Re: Updating fixed-point support for new C constant expression handling

2009-08-09 Thread Joseph S. Myers
On Sun, 9 Aug 2009, Richard Sandiford wrote: > gcc/ > * c-common.c (c_fully_fold_internal): Issue a warning if a binary > operation overflows. Likewise non-cast unary arithmetic. > If one arm of a conditional expression is always taken, > inhibit evaluation warnings for th

Re: Updating fixed-point support for new C constant expression handling

2009-08-09 Thread Richard Sandiford
"Joseph S. Myers" writes: > On Tue, 30 Jun 2009, Richard Sandiford wrote: >> The 4.5 C constant expressions patch: >> >> http://gcc.gnu.org/ml/gcc-patches/2008-10/msg01061.html >> >> stopped us from emitting the warnings expected by >> gcc.dg/fixed-point/addsub.c. >> We used to handle the w

Re: Updating fixed-point support for new C constant expression handling

2009-06-30 Thread Joseph S. Myers
On Tue, 30 Jun 2009, Richard Sandiford wrote: > The 4.5 C constant expressions patch: > > http://gcc.gnu.org/ml/gcc-patches/2008-10/msg01061.html > > stopped us from emitting the warnings expected by gcc.dg/fixed-point/addsub.c. > We used to handle the warnings in parser_build_binary_op, but

Updating fixed-point support for new C constant expression handling

2009-06-30 Thread Richard Sandiford
The 4.5 C constant expressions patch: http://gcc.gnu.org/ml/gcc-patches/2008-10/msg01061.html stopped us from emitting the warnings expected by gcc.dg/fixed-point/addsub.c. We used to handle the warnings in parser_build_binary_op, but now that fixed-point constant folding is delayed until c_f