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]

Re: Patch to add new target macro: TARGET_WARN_RETURN_TYPE


Nick Clifton <nickc@cygnus.com> said:
>   I would like to get approval for the following patch.  It adds a new
>   target macro called 'TARGET_WARN_RETURN_TYPE' which can be used to
>   disable the check for a non-void function returning without
>   providing a return value.  This ability would be useful for the ARM
>   port which supports the notion of a "naked" function whoes prologue
>   and epilogue is left entirely up to the programmer to code.

I'd suggest handling this (quite special) case by some "attribute((naked))"
or such. Your mechanism will just turn off a quite important warnings,
unless I misread this.
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616


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