[Bug fortran/92113] [8/9 regression] r276673 causes segfault in gfortran.dg/pr51434.f90

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 10 12:08:00 GMT 2019


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

--- Comment #11 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Nov 10 12:07:56 2019
New Revision: 278018

URL: https://gcc.gnu.org/viewcvs?rev=278018&root=gcc&view=rev
Log:
Put vtab into RO section, same for __def_init if it contains an initializer.


2019-11-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

    Backport from trunk
    PR fortran/92113
    * trans-decl.c (gfc_get_symbol_decl): If __def_init actually
    contains a value, put it into  the read-only section.

Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/trans-decl.c


More information about the Gcc-bugs mailing list