This is the mail archive of the gcc@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: ATTRIBUTE_NORETURN on sets_cc0_p



  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


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