Skip to content
Snippets Groups Projects
  • Manuel López-Ibáñez's avatar
    92ef5cf9
    re PR other/23572 (No warning for assigning a value to a 'float' variable that... · 92ef5cf9
    Manuel López-Ibáñez authored
    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
    92ef5cf9
    History
    re PR other/23572 (No warning for assigning a value to a 'float' variable that...
    Manuel López-Ibáñez authored
    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