bugAVR C Runtime Library - Bugs: bug #15732, interrupt.h: ISR() incompatibility...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #15732: interrupt.h: ISR() incompatibility with gcc 3.4.5

Submitter:  None
Submitted:  Mon 13 Feb 2006 10:40:09 AM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  joerg_wunsch
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Discussion

Wed 19 Apr 2006 08:52:30 PM UTC, comment #1: 

While I could not reproduce the problem on both, GCC 3.4.6
and GCC 4.1.0, the suggested change won't hurt in either
case, so I applied it.

Joerg Wunsch <joerg_wunsch>
Group administrator
Mon 13 Feb 2006 10:40:09 AM UTC, original submission:  

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.

Anonymous

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

History

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-19 joerg_wunsch Assigned toNone joerg_wunsch
    Open/ClosedOpen Closed
2006-04-19 joerg_wunsch StatusNone Fixed
2006-02-13 None Carbon-Copy- Added lx_b --AT-- gmx --PUNKT-- at

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code