[Bug tree-optimization/35200] New: [4.3 Regression] gcc 4.3 failed to compile binutils
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 14 19:50:00 GMT 2008
Gcc 4.3 revision 132310 gives bogus error when compiling binutils
on Linux/ia32:
[hjl@gnu-25 gas]$ /usr/gcc-4.3/bin/gcc -O2 x.i -S -Wall
x.c: In function Âoperand_type_matchÂ:
x.c:1025: warning: likely type-punning may break strict-aliasing rules: object
Â*{unknown} of main type Âunsigned int is referenced at or around x.c:1025
and may be aliased to object Â{unknown}Â of main type Âunsigned char:1Â which
is referenced at or around x.c:1025.
....
This error is very sensitive to gcc revision as well as the input.
If I remove a blank line in the source, I won't see the error. It is
also OK if I compile it on Linux/Intel64 with -m32.
--
Summary: [4.3 Regression] gcc 4.3 failed to compile binutils
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35200
More information about the Gcc-bugs
mailing list