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: RFC: c-common PATCHes to fully fold warning function arguments


On Wed, 2 Dec 2015, Jason Merrill wrote:

> > The new file needs copyright and license notices.
> 
> So it does, thanks.
> 
> > > The second patch defines fold_for_warn to call c_fully_fold and uses it in
> > > places in the warn_* functions that want to know if the operand has a
> > > constant
> > > value.
> > > 
> > > Joseph, are these changes OK for C?  The extra folding isn't currently
> > > necessary for C, should fold_for_warn check c_dialect_cxx()?
> > 
> > I think it should check that, yes.
> 
> Done.
> 
> Are these OK?

These are OK for C, with the copyright dates on the new file copied from 
c-common.c rather than only 2015.

-- 
Joseph S. Myers
joseph@codesourcery.com


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