[ECOS] CYG_INSTRUMENT_CLOCK+PowerPC+FPU problem.
Jesper Skov
jskov@redhat.com
Tue May 16 04:34:00 GMT 2000
>>>>> "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
More information about the Ecos-discuss
mailing list