[Bug middle-end/45388] [4.6 Regression] Global constructor not found

sje at cup dot hp.com gcc-bugzilla@gcc.gnu.org
Sat Sep 25 00:15:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45388

--- Comment #6 from Steve Ellcey <sje at cup dot hp.com> 2010-09-24 23:45:28 UTC ---
I have a patch I am testing.  It worked on the test case but I haven't fully
bootstrapped it.

Index: ipa.c
===================================================================
--- ipa.c       (revision 164578)
+++ ipa.c       (working copy)
@@ -1480,6 +1480,7 @@ build_cdtor (bool ctor_p, VEC (tree, hea
            DECL_STATIC_CONSTRUCTOR (fn) = 0;
          else
            DECL_STATIC_DESTRUCTOR (fn) = 0;
+         TREE_PUBLIC (fn) = 1;
          /* We do not want to optimize away pure/const calls here.
             When optimizing, these should be already removed, when not
             optimizing, we want user to be able to breakpoint in them.  */

-- 
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Gcc-bugs mailing list