Comment 15 for bug 342335

Revision history for this message
In , Bje-0 (bje-0) wrote :

Subject: Bug 39175

Author: bje
Date: Wed Mar 25 22:05:08 2009
New Revision: 145076

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145076
Log:
 Backport from mainline:
 2009-02-19 Jakub Jelinek <email address hidden>

 PR target/39175
 * c-common.c (c_determine_visibility): If visibility changed and
 DECL_RTL has been already set, call make_decl_rtl to update symbol
 flags.

cp/
 * decl2.c (determine_visibility): If visibility changed and
 DECL_RTL has been already set, call make_decl_rtl to update symbol
 flags.

testsuite/
 * gcc.dg/visibility-20.c: New test.
 * g++.dg/ext/visibility/visibility-11.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/ext/visibility/visibility-11.C
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/visibility-20.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/c-common.c
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/decl2.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog