This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/47264] New: [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c
- From: "danglin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Jan 2011 03:45:07 +0000
- Subject: [Bug lto/47264] New: [4.6 Regression] Many tests fail with -flto due unaligned load in lto-plugin.c
- Auto-submitted: auto-generated
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