[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-04-06 Thread manu at gcc dot gnu dot org
--- Comment #14 from manu at gcc dot gnu dot org 2007-04-06 12:25 --- /home/apinski/src/local/gcc/gcc/testsuite/gcc.dg/float-range-3.c:10: error: 'FP_INFINITE' undeclared (first use in this function) Is FP_INFINITE undeclared in spu-elf? --

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-04-06 Thread danglin at gcc dot gnu dot org
--- Comment #15 from danglin at gcc dot gnu dot org 2007-04-06 19:58 --- The same errors occur on hppa*-*-hpux*. FP_INFINITE isn't defined in HP-UX 10. For HP-UX 11, we need -D_HPUX_SOURCE to get math.h to define FP_INFINITE. -- danglin at gcc dot gnu dot org changed:

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-04-05 Thread pinskia at gcc dot gnu dot org
--- Comment #13 from pinskia at gcc dot gnu dot org 2007-04-06 00:58 --- These testcases fail on spu-elf: +FAIL: gcc.dg/float-range-1.c (test for warnings, line 11) +FAIL: gcc.dg/float-range-1.c (test for excess errors) +FAIL: gcc.dg/float-range-3.c (test for excess errors) +FAIL:

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-03-22 Thread manu at gcc dot gnu dot org
--- Comment #11 from manu at gcc dot gnu dot org 2007-03-22 23:04 --- Subject: Bug 23572 Author: manu Date: Thu Mar 22 23:04:24 2007 New Revision: 123137 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=123137 Log: 2007-03-22 Manuel Lopez-Ibanez [EMAIL PROTECTED] PR

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-03-22 Thread manu at gcc dot gnu dot org
--- Comment #12 from manu at gcc dot gnu dot org 2007-03-22 23:12 --- Fixed for GCC 4.3 -- manu at gcc dot gnu dot org changed: What|Removed |Added

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-03-21 Thread patchapp at dberlin dot org
--- Comment #10 from patchapp at dberlin dot org 2007-03-21 21:05 --- Subject: Bug number PR 23572 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01437.html --

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-03-14 Thread patchapp at dberlin dot org
--- Comment #9 from patchapp at dberlin dot org 2007-03-14 18:15 --- Subject: Bug number PR 23572 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00943.html --

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2007-01-22 17:05 --- *** Bug 20764 has been marked as a duplicate of this bug. *** -- manu at gcc dot gnu dot org changed: What|Removed |Added

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-01-21 Thread patchapp at dberlin dot org
--- Comment #7 from patchapp at dberlin dot org 2007-01-21 16:01 --- Subject: Bug number PR 23572 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01730.html --

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-01-09 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2007-01-09 15:09 --- (In reply to comment #0) Is this a bug either in GCC or a bug in documentation? It is a bug in the documentation. As today in GCC 4.3 there is not a single Wextra warning that has anything to do with

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2006-11-25 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2006-11-25 15:24 --- Why this is marked as other ? This is either a problem on the C/C++ front-ends or it is a problem in the middle-end that doesn't handle the overflow/underflow correctly during conversion, isn't it? Also, this happens

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2005-08-28 Thread qiyaoltc at cn dot ibm dot com
--- Additional Comments From qiyaoltc at cn dot ibm dot com 2005-08-29 02:57 --- OK. GCC version: 3.4.3 20050227 (Red Hat 3.4.3-22.1) GNU C Library: stable release version 2.3.4 OS : Red Hat Enterprise Linux AS release 4 (Nahant Update 1) I write a small example named overflow-test.c,

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2005-08-28 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-29 03:10 --- I think there are some real interesting issues here. First with -pedantic we get a warning for line 9 but nothing more. If we add f to the end of the constant on line 5, we then get a warning. And yes

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2005-08-28 Thread qiyaoltc at cn dot ibm dot com
--- Additional Comments From qiyaoltc at cn dot ibm dot com 2005-08-29 05:00 --- I add suffix f to the end of float constants at line 5 and line 7, and add option -pedantic, the output from gcc is like this: overflow-test.c:5: warning: floating constant exceeds range of float

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2005-08-26 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-26 12:51 --- Can you show an example? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23572