https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72802

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iains at gcc dot gnu.org

--- Comment #11 from Iain Sandoe <iains at gcc dot gnu.org> ---
The test case fails on m32 Darwin (since it was added, AFAICT) apparently
because it's wrong code or triggers a code-gen bug that doesn't happen to cause
most platform assemblers to complain.

This is repeatable on x86-64-linux-gnu.

The test-case is a bit inscrutable, but ..

the object
static a[] 

is used thus 
a[i] = something 

in fn6.

the content is never accessed and no storage is associated with a

but the stores to a are not .. so we have (for x86-64-linux-gnu)
        movl    %edx, a(,%rax,4)

and
$ nm pr72802.o
                 U a
0000000000000000 b b

this assembles for linux and x86-64-darwin (with 'a' showing as an undef), but
fails on m32 Darwin which believes that the object should be defined in the TU
(since it's static) but then finds it to be undef.

Was the intention for the test?

Reply via email to