[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #15732] interrupt.h: ISR() incompatibility with gcc
From: |
anonymous |
Subject: |
[avr-libc-dev] [bug #15732] interrupt.h: ISR() incompatibility with gcc 3.4.5 |
Date: |
Mon, 13 Feb 2006 10:40:10 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 |
URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15732>
Summary: interrupt.h: ISR() incompatibility with gcc 3.4.5
Project: AVR C Runtime Library
Submitted by: None
Submitted on: Mo 13.02.2006 um 10:40
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Percent Complete: 0%
Originator Email: address@hidden
Open/Closed: Open
_______________________________________________________
Details:
gcc 3.4.5 (comes with WinAVR 20060125) complains when using ISR(...) in C++:
usart.cpp:179: warning: `_Z11__vector_25v' appears to be a misspelled signal
handler
i.e., it mangles the name despite the <extern "C">; this can be fixed by
changing the definition of ISR for C++ from
#define ISR(vector) \
extern "C" void vector(void); \
void vector (void) __attribute__ ((signal)); \
void vector (void)
to
#define ISR(vector) \
extern "C" void vector (void) __attribute__ ((signal)); \
void vector (void)
However, I don't know if this is compatible with other versions of gcc.
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
lx_b --AT-- gmx --PUNKT-- at | Originator Email
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15732>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #15732] interrupt.h: ISR() incompatibility with gcc 3.4.5,
anonymous <=