re PR other/23572 (No warning for assigning a value to a 'float' variable that…
re PR other/23572 (No warning for assigning a value to a 'float' variable that overflows with option -Wextra) 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR other/23572 * c-lex.c (interpret_float): On overflow, emit pedantic warning if infinities not supported, otherwise emit warning if -Woverflow. On underflow, emit warning if -Woverflow. * real.c (real_from_string): Return -1 if underflow, +1 if overflow and 0 otherwise. * real.h (real_from_string): Update declaration testsuite/ * gcc.dg/float-range-4.c: New. * gcc.dg/float-range-1.c: Update. Test for a warning. * gcc.dg/float-range-3.c: New. * gcc.dg/float-range-5.c: New. From-SVN: r123137
Showing
gcc/testsuite/gcc.dg/float-range-3.c
0 → 100644
gcc/testsuite/gcc.dg/float-range-4.c
0 → 100644
gcc/testsuite/gcc.dg/float-range-5.c
0 → 100644
Please
register
or
sign in
to comment