public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/47264] New: [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c
@ 2011-01-12  7:28 danglin at gcc dot gnu.org
  2011-01-12 10:53 ` [Bug lto/47264] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-01-12  7:28 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] Many tests fail with -flto due
                    unaligned load in lto-plugin.c
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu


FAIL: gcc.c-torture/execute/builtins/20010124-1.c compilation,  -O2 -flto
-flto-
partition=none 
FAIL: gcc.c-torture/execute/builtins/20010124-1.c compilation,  -O2 -flto 
FAIL: gcc.c-torture/execute/builtins/abs-1.c compilation,  -O2 -flto
-flto-parti
tion=none 
FAIL: gcc.c-torture/execute/builtins/abs-1.c compilation,  -O2 -flto 
FAIL: gcc.c-torture/execute/builtins/abs-2.c compilation,  -O2 -flto
-flto-parti
tion=none 
FAIL: gcc.c-torture/execute/builtins/abs-2.c compilation,  -O2 -flto 
FAIL: gcc.c-torture/execute/builtins/abs-3.c compilation,  -O2 -flto
-flto-parti
tion=none 
FAIL: gcc.c-torture/execute/builtins/abs-3.c compilation,  -O2 -flto 
FAIL: gcc.c-torture/execute/builtins/complex-1.c compilation,  -O2 -flto
-flto-p
artition=none 
FAIL: gcc.c-torture/execute/builtins/complex-1.c compilation,  -O2 -flto 
FAIL: gcc.c-torture/execute/builtins/fprintf.c compilation,  -O2 -flto
-flto-par
tition=none 
FAIL: gcc.c-torture/execute/builtins/fprintf.c compilation,  -O2 -flto 
FAIL: gcc.c-torture/execute/builtins/fputs.c compilation,  -O2 -flto
-flto-parti
tion=none 
FAIL: gcc.c-torture/execute/builtins/fputs.c compilation,  -O2 -flto 
FAIL: gcc.c-torture/execute/builtins/memchr.c compilation,  -O2 -flto
-flto-part
ition=none 
...

Executing on host: /home2/dave/gcc-4.6/objdir/gcc/xgcc
-B/home2/dave/gcc-4.6/obj
dir/gcc/
/home2/dave/gcc-4.6/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/20
010124-1.c
/home2/dave/gcc-4.6/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/
20010124-1-lib.c
/home2/dave/gcc-4.6/gcc/gcc/testsuite/gcc.c-torture/execute/bui
ltins/lib/main.c  -w  -O2 -flto -flto-partition=none   -lm   -o
/home2/dave/gcc-
4.6/objdir/gcc/testsuite/gcc/20010124-1.x6    (timeout = 300)
collect2: ld terminated with signal 10 [Bus error], core dumped
compiler exited with status 1
output is:
collect2: ld terminated with signal 10 [Bus error], core dumped

FAIL: gcc.c-torture/execute/builtins/20010124-1.c compilation,  -O2 -flto
-flto-
partition=none 

dave@gsyprf11:~/gcc-4.6/objdir/gcc/testsuite/gcc$ gdb -c core.save
/home2/dave/opt/gnu/bin/ld
GNU gdb (GDB) 7.2.50.20101119-cvs
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "hppa-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home2/dave/opt/gnu/bin/ld...done.
BFD: Warning: /home2/dave/gcc-4.6/objdir/gcc/testsuite/gcc/core.save is
truncated: expected core file size >= 1998848, found: 1871872.
[New LWP 29059]
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/ld.so.1
Reading symbols from /home2/dave/gcc-4.6/objdir/gcc/liblto_plugin.so...done.
Loaded symbols for /home2/dave/gcc-4.6/objdir/gcc/liblto_plugin.so
Core was generated by `/home2/dave/opt/gnu/bin/ld -plugin
/home2/dave/gcc-4.6/objdir/gcc/liblto_plugin'.
Program terminated with signal 10, Bus error.
#0  parse_table_entry (entry=0x122c28, p=<value optimized out>, 
    aux=<value optimized out>) at ../../gcc/lto-plugin/lto-plugin.c:252
252      entry->size = *(uint64_t *) p;
(gdb) p/x $pc
$2 = 0x403df3d8
(gdb) disass 0x403df3c8,0x403df3e8
Dump of assembler code from 0x403df3c8 to 0x403df3e8:
   0x403df3c8 <process_symtab+948>:    ldw,s r5(r6),ret0
   0x403df3cc <process_symtab+952>:    stw ret0,-10(r9)
   0x403df3d0 <process_symtab+956>:    ldi -1,r20
   0x403df3d4 <process_symtab+960>:    copy r4,r19
=> 0x403df3d8 <process_symtab+964>:    ldw 3(r17),ret0
   0x403df3dc <process_symtab+968>:    ldw 7(r17),ret1
   0x403df3e0 <process_symtab+972>:    stw ret0,-c(r9)
   0x403df3e4 <process_symtab+976>:    stw ret1,-8(r9)
End of assembler dump.
(gdb) p/x $r17
$3 = 0x122b4c


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

* [Bug lto/47264] [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c
  2011-01-12  7:28 [Bug lto/47264] New: [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c danglin at gcc dot gnu.org
@ 2011-01-12 10:53 ` rguenth at gcc dot gnu.org
  2011-01-12 12:08 ` rguenth at gcc dot gnu.org
  2011-01-12 13:03 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-12 10:53 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.01.12 10:49:43
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.6.0
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-12 10:49:43 UTC ---
Ick - what of a bad coding style.

I'll fix it.


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

* [Bug lto/47264] [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c
  2011-01-12  7:28 [Bug lto/47264] New: [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c danglin at gcc dot gnu.org
  2011-01-12 10:53 ` [Bug lto/47264] " rguenth at gcc dot gnu.org
@ 2011-01-12 12:08 ` rguenth at gcc dot gnu.org
  2011-01-12 13:03 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-12 12:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-12 12:04:45 UTC ---
Author: rguenth
Date: Wed Jan 12 12:04:39 2011
New Revision: 168708

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168708
Log:
2011-01-12  Richard Guenther  <rguenther@suse.de>

    PR lto/47264
    * lto-plugin.c (parse_table_entry): Use memcpy to access
    unaligned fields.

Modified:
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/lto-plugin.c


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

* [Bug lto/47264] [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c
  2011-01-12  7:28 [Bug lto/47264] New: [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c danglin at gcc dot gnu.org
  2011-01-12 10:53 ` [Bug lto/47264] " rguenth at gcc dot gnu.org
  2011-01-12 12:08 ` rguenth at gcc dot gnu.org
@ 2011-01-12 13:03 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-12 13:03 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-12 12:08:22 UTC ---
Fixed.


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

end of thread, other threads:[~2011-01-12 12:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-12  7:28 [Bug lto/47264] New: [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c danglin at gcc dot gnu.org
2011-01-12 10:53 ` [Bug lto/47264] " rguenth at gcc dot gnu.org
2011-01-12 12:08 ` rguenth at gcc dot gnu.org
2011-01-12 13:03 ` rguenth at gcc dot gnu.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).