This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/77500] ICE in gfc_trans_omp_atomic, at fortran/trans-openmp.c:2822


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep  8 12:19:21 2016
New Revision: 240038

URL: https://gcc.gnu.org/viewcvs?rev=240038&root=gcc&view=rev
Log:
        PR fortran/77500
        * trans-openmp.c (gfc_trans_omp_atomic): For atomic write or
        swap, don't try to look through GFC_ISYM_CONVERSION.  In other cases,
        check that value.function.isym is non-NULL before dereferencing it.

        * gfortran.dg/gomp/pr77500.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/gomp/pr77500.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-openmp.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]