This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24851] [4.1 Regression] f2c miscompilation
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2005 15:56:38 -0000
- Subject: [Bug middle-end/24851] [4.1 Regression] f2c miscompilation
- References: <bug-24851-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2005-11-14 15:56 -------
The problem here is that we are comparing in unsigned when we shoud be
comparing in a signed type.
This was introduced by:
2005-01-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
PR tree-optimization/15791
* fold-const.c (extract_array_ref): New function.
(fold): Fold comparisons between &a[i] and &a[j] or
semantically equivalent trees.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24851