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]
Other format: [Raw text]

Re: PATCH: revive function address warning


Ben Elliston <bje@au1.ibm.com> writes:

| +	{
| +	  if (TREE_CODE (op1) == ADDR_EXPR 
| +	      && DECL_P (TREE_OPERAND (op1, 0))
| +	      && !DECL_WEAK (TREE_OPERAND (op1, 0)))
| +	    warning (0, "the address of %qD will never be NULL",
                    ^^

Could you use a flag value there?  We're trying to get rid of

     warning(0, xxx)

-- Gaby


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