public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/42534]  New: ICE with -flto when using __attribute__((__aligned__(X)))
@ 2009-12-29 11:49 anton at samba dot org
  2009-12-29 16:11 ` [Bug lto/42534] " steven at gcc dot gnu dot org
  2009-12-31 17:03 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: anton at samba dot org @ 2009-12-29 11:49 UTC (permalink / raw)
  To: gcc-bugs

I'm hitting an ICE on gcc svn from 20091229 when building the Linux kernel with
-flto. A cutdown test case:

struct zot
{
        void *p;
        int *padding;
} __attribute__((__aligned__(128)));

void foo(struct zot *buf)
{
        int i;

        for (i = 0; i < 4; i++)
                buf->padding[i] = 0;
}

# gcc -m64 -O2 -flto -c -o test.o test.c
# gcc -m64 -O2 -flto -r -o test2.o test.o -nostdlib

In file included from :0:0:
test.c: In function 'foo':
test.c:7:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /root/gcc-installed/bin/gcc returned 1 exit status
collect2: lto-wrapper returned 1 exit status


-- 
           Summary: ICE with -flto when using
                    __attribute__((__aligned__(X)))
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anton at samba dot org
GCC target triplet: powerpc64-linux-gnu-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42534


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

* [Bug lto/42534] ICE with -flto when using __attribute__((__aligned__(X)))
  2009-12-29 11:49 [Bug lto/42534] New: ICE with -flto when using __attribute__((__aligned__(X))) anton at samba dot org
@ 2009-12-29 16:11 ` steven at gcc dot gnu dot org
  2009-12-31 17:03 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-12-29 16:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from steven at gcc dot gnu dot org  2009-12-29 16:11 -------
I can reproduce the ICE, but unfortunately not inside gdb yet.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code, lto
   Last reconfirmed|0000-00-00 00:00:00         |2009-12-29 16:11:35
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42534


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

* [Bug lto/42534] ICE with -flto when using __attribute__((__aligned__(X)))
  2009-12-29 11:49 [Bug lto/42534] New: ICE with -flto when using __attribute__((__aligned__(X))) anton at samba dot org
  2009-12-29 16:11 ` [Bug lto/42534] " steven at gcc dot gnu dot org
@ 2009-12-31 17:03 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-31 17:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-12-31 17:02 -------
Works on i?68-linux.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42534


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

end of thread, other threads:[~2009-12-31 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-29 11:49 [Bug lto/42534] New: ICE with -flto when using __attribute__((__aligned__(X))) anton at samba dot org
2009-12-29 16:11 ` [Bug lto/42534] " steven at gcc dot gnu dot org
2009-12-31 17:03 ` rguenth at gcc dot gnu dot org

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).