avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Where did my interrupt vectors go?


From: E. Weddington
Subject: Re: [avr-gcc-list] Where did my interrupt vectors go?
Date: Mon, 27 Dec 2004 10:02:48 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Andy Warner wrote:



I got bitten by a variant of this last week, with a
simple typo in my SIGNAL(SIG_xxx) statement. It took a while
to track down, because the default handler was causing a
reset, so things behaved _very_ strangely until I figured
it out.

In the spirit of posting a patch, rather than trolling for
others to do the work, I tried to come up with more pre-processor
goo to spit out a warning/error if the argument to either
SIGNAL() or INTERRUPT() macros was not defined, but
everything I tried refused to compile. So, I'm resorting
to throwing the idea out there in the hope that someone
more skilled at beating the preprocessor into submission can
come up with a scheme that works, or others can explain why
it's a short-sighted approach.


I don't know if I'm repeating anybody who's already answered, but there is already a patch to GCC itself to catch misspelled signal names. It's been rolled into GCC HEAD, so this will be available in the upcoming GCC 4.0.0.

Eric


reply via email to

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