This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CYG_INSTRUMENT_CLOCK+PowerPC+FPU problem.


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?

Unfortunately yes. If you declared _var_ to be register:

register int v;

then gcc will print warning if you try to take its address :-(

Sergei.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]