public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/35200]  New: [4.3 Regression] gcc 4.3 failed to compile binutils
@ 2008-02-14 19:50 hjl dot tools at gmail dot com
  2008-02-14 19:52 ` [Bug tree-optimization/35200] " hjl dot tools at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-02-14 19:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1173 bytes --]

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-02-14 22:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-14 19:50 [Bug tree-optimization/35200] New: [4.3 Regression] gcc 4.3 failed to compile binutils hjl dot tools at gmail dot com
2008-02-14 19:52 ` [Bug tree-optimization/35200] " hjl dot tools at gmail dot com
2008-02-14 19:58 ` pinskia at gcc dot gnu dot org
2008-02-14 20:01 ` [Bug tree-optimization/35200] [4.3 Regression] bogus aliasing warning pinskia at gcc dot gnu dot org
2008-02-14 20:17 ` hjl dot tools at gmail dot com
2008-02-14 20:22 ` pinskia at gcc dot gnu dot org
2008-02-14 20:55 ` hjl dot tools at gmail dot com
2008-02-14 22:09   ` Andrew Pinski
2008-02-14 21:20 ` rguenth at gcc dot gnu dot org
2008-02-14 21:24 ` rguenth at gcc dot gnu dot org
2008-02-14 22:10 ` pinskia at gmail dot com
2008-02-14 22:57 ` hjl dot tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).