Bug 41670 - FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -fwhopr
Summary: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -fwhopr
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: 4.5.0
Assignee: Not yet assigned to anyone
URL:
Keywords: lto
Depends on: 41657
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-10 20:52 UTC by John David Anglin
Modified: 2010-01-02 14:22 UTC (History)
1 user (show)

See Also:
Host: hppa64-hp-hpux11.11
Target: hppa64-hp-hpux11.11
Build: hppa64-hp-hpux11.11
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2009-10-10 20:52:52 UTC
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/memcpy-chk.c /test/g
nu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk-lib.c /test/g
nu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c  -w  -O2 -fwh
opr   -lm   -o /test/gnu/gcc/objdir/gcc/testsuite/gcc/memcpy-chk.x9    (timeout 
= 300)
ld: (Warning) Symbol "buf5" in "/var/tmp//ccgAAXaF.wpa.ltrans.o" does not satisf
y the required 16-byte alignment in "/var/tmp//ccuB8z6E.wpa.ltrans.o".
ld: (Warning) Symbol "buf7" in "/var/tmp//ccgAAXaF.wpa.ltrans.o" does not satisf
y the required 16-byte alignment in "/var/tmp//ccuB8z6E.wpa.ltrans.o".
2 warnings.
output is:
ld: (Warning) Symbol "buf5" in "/var/tmp//ccgAAXaF.wpa.ltrans.o" does not satisf
y the required 16-byte alignment in "/var/tmp//ccuB8z6E.wpa.ltrans.o".
ld: (Warning) Symbol "buf7" in "/var/tmp//ccgAAXaF.wpa.ltrans.o" does not satisf
y the required 16-byte alignment in "/var/tmp//ccuB8z6E.wpa.ltrans.o".
2 warnings.

FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -fwhopr 

The output for buf5 in the .s file looks like this:

        .weak   buf5
        .section        .gnu.linkonce.b.buf5,"aw",@nobits
        .align 8
        .type   buf5, @object
        .size   buf5, 160
buf5:
        .zero   160

In "/var/tmp//ccgAAXaF.wpa.ltrans.o", buf5 and buf7 are allocated in
.bss (common):

[12]     |                    16|     160|OBJT |GLOB |0|    COMM|buf5
[19]     |                    16|      20|OBJT |GLOB |0|    COMM|buf7

The alignment of common in HP-UX is unusual in that the .comm directive
does not specify an alignment, only a size.  The assembler sets the
alignment from the size.

In spite of the warning, the test executes successfully.

Similar fails are:

FAIL: gcc.c-torture/execute/builtins/memmove-chk.c compilation,  -O2 -fwhopr
FAIL: gcc.c-torture/execute/builtins/memops-asm.c compilation,  -O2 -fwhopr
FAIL: gcc.c-torture/execute/builtins/mempcpy-2.c compilation,  -O2 -fwhopr
FAIL: gcc.c-torture/execute/builtins/mempcpy-chk.c compilation,  -O2 -fwhopr
FAIL: gcc.c-torture/execute/builtins/memset-chk.c compilation,  -O2 -fwhopr
FAIL: gcc.c-torture/execute/builtins/memset.c compilation,  -O2 -fwhopr
FAIL: gcc.c-torture/execute/builtins/strcpy-2.c compilation,  -O2 -fwhopr
FAIL: gcc.c-torture/execute/builtins/strpcpy-2.c compilation,  -O2 -fwhopr
Comment 1 Richard Biener 2009-12-11 15:55:50 UTC
I believe this should get fixed with the fix for PR41657 I am going to check
in soon.  Please update this PR accordingly.
Comment 2 Richard Biener 2010-01-02 14:22:28 UTC
http://gcc.gnu.org/ml/gcc-testresults/2009-12/msg02393.html says this is fixed.