On 01/16/2018 03:39 PM, Eric Botcazou wrote:
On these platforms, one of the instances of the constructor generated in
test_strcpy_bounds_memarray_range is put into the constant pool so the strlen
pass cannot do its magic.

Tested on visium-elf, SPARC64 and x86-64/Linux, applied on the mainline.

Sorry about these lingering failures.  I'm aware of the assertion
failing on a number of targets.  The failure is being tracked in
bug 83462 (along with some others) but I haven't yet gotten around
to dealing with it.  The ideal fix is to have string_constant() get
the string from the constructor (tracked in bug 83543) but it's too
late for such a change now.   It might be easiest to simply skip
the assertion on all non-x86_64 targets.  I'm hoping to get to it
soon.

Martin



2018-01-16  Eric Botcazou  <ebotca...@adacore.com>

        * c-c++-common/Warray-bounds-4.c (test_strcpy_bounds_memarray_range):
        XFAIL last test on SPARC and Visium.


Reply via email to