Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /te st/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/strpcpy-2.c /test/gn u/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/strpcpy-2-lib.c /test/gnu /gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c -w -O1 -lm -o /test/gnu/gcc/objdir/gcc/testsuite/gcc/strpcpy-2.x1 (timeout = 300) PASS: gcc.c-torture/execute/builtins/strpcpy-2.c compilation, -O1 Setting LD_LIBRARY_PATH to :/test/gnu/gcc/objdir/gcc::/test/gnu/gcc/objdir/gcc FAIL: gcc.c-torture/execute/builtins/strpcpy-2.c execution, -O1
Program received signal SIGBUS, Bus error. 0x4000000000002cb4 in test (buf3=<value optimized out>, buf4=<value optimized out>, buf6=<value optimized out>, n=<value optimized out>) at /test/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/strpcpy-2.c:28 28 if (__builtin_stpcpy ((char *) buf3, "ABCDEFG") != (char *) buf1 + 7 (gdb) p/x $pc $1 = 0x4000000000002cb4 (gdb) disass 0x4000000000002ca4 0x4000000000002cc4 Dump of assembler code from 0x4000000000002ca4 to 0x4000000000002cc4: 0x4000000000002ca4 <test+116>: addil L%0,dp,r1 0x4000000000002ca8 <test+120>: ldd 8(r1),r26 0x4000000000002cac <test+124>: addil L%0,dp,r1 0x4000000000002cb0 <test+128>: ldd 10(r1),ret0 0x4000000000002cb4 <test+132>: ldd 0(ret0),ret0 0x4000000000002cb8 <test+136>: std ret0,0(r26) 0x4000000000002cbc <test+140>: addil L%0,dp,r1 0x4000000000002cc0 <test+144>: ldd 18(r1),r25 End of assembler dump. (gdb) p/x $ret0 $2 = 0x40000000000017ac (gdb) x/8c 0x40000000000017ac 0x40000000000017ac <L$C0001>: 65 'A' 66 'B' 67 'C' 68 'D' 69 'E' 70 'F' 7 "ABCDEFG" is misaligned. At first glance, this appears to be a problem with the alignment of the .rodata section. -- Summary: [4.6 Regression] FAIL: gcc.c- torture/execute/builtins/strpcpy-2.c execution, at -O1 and above Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danglin at gcc dot gnu dot org GCC build triplet: hppa64-hp-hpux11.11 GCC host triplet: hppa64-hp-hpux11.11 GCC target triplet: hppa64-hp-hpux11.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44805