This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to add new target macro: TARGET_WARN_RETURN_TYPE
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: Patch to add new target macro: TARGET_WARN_RETURN_TYPE
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Thu, 18 Mar 1999 22:43:46 -0500
- cc: egcs-patches at cygnus dot com
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