On x86_64-apple-darwin10, the change...

Author: hubicka
Date: Wed May 12 13:49:34 2010
New Revision: 159321

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159321
Log:

        * cgraph.h (struct varpool_node): Add aux.
        * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
        * varpool.c (varpool_remove_node): Do not remove initializer.
        (varpool_reset_queue): Export.
        (varpool_finalize_decl): Volatile vars are forced to be output.
        * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
        replaced decl.
        * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
        process_references, varpool_can_remove_if_no_refs): New functions.
        (cgraph_remove_unreachable_nodes): Handle variables too.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.c
    trunk/gcc/cgraph.h
    trunk/gcc/ipa.c
    trunk/gcc/lto-symtab.c
    trunk/gcc/tree-inline.c
    trunk/gcc/tree-inline.h
    trunk/gcc/varasm.c
    trunk/gcc/varpool.c

triggered the regression of...

FAIL: g++.dg/ext/visibility/anon6.C scan-assembler 1BIiE1cE

At r159319, the assembly generated for anon6.s was...

        .const
        .align 2
__ZN12_GLOBAL__N_11BIiE1cE:
        .space 4
        .constructor
        .destructor
        .align 1
        .subsections_via_symbols

...while at r159321, the assembly becomes...

        .constructor
        .destructor
        .align 1
        .subsections_via_symbols


-- 
           Summary: r159321 causes FAIL: g++.dg/ext/visibility/anon6.C scan-
                    assembler 1BIiE1cE
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


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

Reply via email to