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

 
 

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

Submitted by:  None
Submitted on:  Mon 13 Feb 2006 10:40:09 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 19 Apr 2006 08:52:30 PM UTCjoerg_wunschAssigned toNone=>joerg_wunsch
  Open/ClosedOpen=>Closed
Wed 19 Apr 2006 08:52:29 PM UTCjoerg_wunschStatusNone=>Fixed
Mon 13 Feb 2006 10:40:09 AM UTCNoneCarbon-Copy-=>Added lx_b --AT-- gmx --PUNKT-- at

Back to the top


Powered by Savane 3.1-cleanup1