This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ATTRIBUTE_NORETURN on sets_cc0_p
- To: egcs at cygnus dot com
- Subject: ATTRIBUTE_NORETURN on sets_cc0_p
- From: Mark Mitchell <mark at markmitchell dot com>
- Date: Wed, 14 Oct 1998 19:00:34 -0700
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Reply-to: mark at markmitchell dot com
On x86-linux-gnu (which defines HAVE_cc0), I'm seeing:
../../gcc/jump.c: In function `sets_cc0_p':
../../gcc/jump.c:3335: warning: function declared `noreturn' has a `return' statement
That's not good; this function does return and we don't want the
compiler assuming it doesn't. That could be very dangerous.
I see that rtl.h has:
extern int sets_cc0_p PROTO ((rtx))
#ifndef HAVE_cc0
ATTRIBUTE_NORETURN
#endif
;
Perhaps HAVE_cc0 is not yet be set at that point?
--
Mark Mitchell mark@markmitchell.com
Mark Mitchell Consulting http://www.markmitchell.com