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 target/33579] INIT_PRIORITY is broken



------- Comment #14 from mmitchel at gcc dot gnu dot org  2007-11-06 00:31 -------
Subject: Bug 33579

Author: mmitchel
Date: Tue Nov  6 00:30:52 2007
New Revision: 129918

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129918
Log:
        PR target/33579
        * tree.h (DECL_INIT_PRIORITY): Do not require
        DECL_HAS_INIT_PRIORITY_P.
        (DECL_FINI_PRIORITY): Likewise.
        * tree.c (decl_init_priority_lookup): Remove assert.
        (decl_fini_priority_insert): Likewise.
        * cgraphunit.c (static_ctors): Make it a VEC.
        (static_dtors): Likewise.
        (record_cdtor_fn): Adjust accordingly.
        (build_cdtor): Generate multiple functions for each initialization
        priority.
        (compare_ctor): New function.
        (compare_dtor): Likewise.
        (cgraph_build_cdtor_fns): Sort the functions by priority before
        calling build_cdtor.
        (cgraph_build_static_cdtor): Put the priority in the function's
        name.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraphunit.c
    trunk/gcc/tree.c
    trunk/gcc/tree.h


-- 


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


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