avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bugs #8643] Misspelled signal names are not caught by gc


From: Theodore A. Roth
Subject: [avr-libc-dev] [bugs #8643] Misspelled signal names are not caught by gcc.
Date: Wed, 21 Apr 2004 14:30:47 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3

This mail is an automated notification from the bugs tracker
 of the project: AVR C Runtime Library.




/**************************************************************************/
[bugs #8643] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=8643>
Project: AVR C Runtime Library
Submitted by: Theodore A. Roth
On: Wed 04/21/04 at 16:51

Category:  Header
Severity:  5 - Average
Item Group:  None
Resolution:  None
Assigned to:  troth
Originator Email:  address@hidden
Status:  Open


Summary:  Misspelled signal names are not caught by gcc.

Original Submission:  When using the SIGNAL() and INTERRUPT() macros, there is 
currently no way for gcc to catch when the signal name (the SIG_* defines in 
the io*.h files) is misspelled. This is a long standing problem.

The core of the problem is that avr-libc defines macros which reference the 
SIG_* defines to generate special function declarations. These declarations are 
what lets gcc know that it should generate an interrupt handler function and in 
turn allows the linker to place a reference to the handler in the interrupt 
vector table.

When the SIG_* is misspelled in the arg to SIGNAL(), gcc will not give any 
indication of the mistake, but will just compile it as a regular function and 
the interrupt vector table will not jump into the handler.

Some possible solutions have been discussed in this thread:

http://mail.gnu.org/archive/html/avr-libc-dev/2004-04/msg00072.html

I'm going to attached the submitted patches to the report so that they don't 
slip through the cracks.





File Attachments
-------------------

-------------------------------------------------------
Date: Wed 04/21/04 at 18:30  Name: avr-libc-misspeeled-sig-4.diff  Size: 5KB   
By: troth
Updated version of Dmitry's patch.
http://savannah.nongnu.org/bugs/download.php?item_id=8643&amp;item_file_id=1214

-------------------------------------------------------
Date: Wed 04/21/04 at 16:55  Name: avr-libc-misspeeled-sig-3-dmitry.diff  Size: 
5KB   By: troth
Dmitry's proposed patch.
http://savannah.nongnu.org/bugs/download.php?item_id=8643&amp;item_file_id=1212

-------------------------------------------------------
Date: Wed 04/21/04 at 16:53  Name: avr-libc-misspeeled-sig-2.diff  Size: 7KB   
By: troth
Updated to fix some asm problems.
http://savannah.nongnu.org/bugs/download.php?item_id=8643&amp;item_file_id=1211

-------------------------------------------------------
Date: Wed 04/21/04 at 16:51  Name: avr-libc-misspeeled-sig.diff  Size: 7KB   
By: troth
First proposed patch.
http://savannah.nongnu.org/bugs/download.php?item_id=8643&amp;item_file_id=1210






For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=8643>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]