This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: CYG_INSTRUMENT_CLOCK+PowerPC+FPU problem.
>>>>> "Sergei" == Sergei Organov <osv@javad.ru> writes:
Sergei> Jesper Skov <jskov@redhat.com> writes: [...]
>> What about
>>
>> #define CYG_UNUSED_PARAM(_type_, _var_) \ if (0) { if
>> (((CYG_ADDRESS)&(_var_)) != ((CYG_ADDRESS)&(_var_))); }
>>
>> Is there anything you cannot take the address of?
Sergei> Unfortunately yes. If you declared _var_ to be register:
Sergei> register int v;
Sergei> then gcc will print warning if you try to take its address :-(
Hmm... Being a hacker sure ain't easy :)
What we really need is some GCC attribute magic one can use to mark an
argument (intentionally) unused. Maybe a project for a rainy Sunday...
Jesper