This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ATTRIBUTE_NORETURN on sets_cc0_p
- To: mark at markmitchell dot com
- Subject: Re: ATTRIBUTE_NORETURN on sets_cc0_p
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 18 Oct 1998 17:33:43 -0600
- cc: ghazi at caip dot rutgers dot edu, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199810161826.LAA07779@smtp.earthlink.net>you write:
> Sure. g++.robertl/eb132.C on x86-linux-gnu trips this warning for me.
> You can run `runtest -tool g++ old-deja.exp=eb132.C' and then look at
> the log to see the right set of flags to pass to cc1plus.
Well, "this" is showing up as a VAR_DECL, not a PARM_DECL probably has a lot
to do with the problem. I don't know enough about the G++ front end to decide
if that should be happening or not.
> That's what I meant. A VAR_DECL with DECL_INITIAL or a PARM_DECL
> should never be warned about. That's not a complete solution, but it
> would be a failsafe, and would get rid of some of the most obvious
> false positives.
OK. We never warn for a PARM_DECL (see uninitialized_vars_warning).
I just tweaked that same code to not warn for a VAR_DECL if it has a nonzero
DECL_INITIAL.
jeff