This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: warning when a function's address is tested?


Op zo 12-10-2003, om 20:09 schreef Zack Weinberg:
> Steven Bosscher <s.bosscher@student.tudelft.nl> writes:
> 
> > Something like the attached patch should work, I'll propose it on
> > gcc-patches after I've tested it.
> 
> Informally speaking, the patch looks good - just a couple of notes:
> 
> 1) there's now code in the C front end that handles a bare
>    FUNCTION_DECL - it should be found and removed.

I'm not sure that code has to be removed.  The code is in
c-typeck.c:default_function_array_conversion() and perhaps (read:
likely) it is necessary in other parts in the C front end to convert
this kind of use of a function to a function address.

Gr.
Steven


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