[Bug testsuite/94077] gcc.dg/gomp/pr82374.c fails on power 7

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 12 09:44:13 GMT 2020


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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Kewen Lin <linkw@gcc.gnu.org>:

https://gcc.gnu.org/g:ffb32ba2fb79d90be4be9a59ef0336d3404ff538

commit r9-8806-gffb32ba2fb79d90be4be9a59ef0336d3404ff538
Author: Kewen Lin <linkw@linux.ibm.com>
Date:   Wed Aug 12 04:19:16 2020 -0500

    testsuite: Add -fno-common to pr82374.c [PR94077]

    As the PR comments show, the case gcc.dg/gomp/pr82374.c fails on
    Power7 since gcc8.  But it passes from gcc10.  By looking into
    the difference, it's due to that gcc10 sets -fno-common as default,
    which makes vectorizer force the alignment and be able to use
    aligned vector load/store on those targets which doesn't support
    unaligned vector load/store (here it's Power7).

    As Jakub suggested in the PR, this patch is to append -fno-common
    into dg-options.

    Verified with gcc8/gcc9 releases on ppc64-redhat-linux (Power7).

    gcc/testsuite/ChangeLog:

            PR testsuite/94077
            * gcc.dg/gomp/pr82374.c: Add option -fno-common.


More information about the Gcc-bugs mailing list