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

             Bug #: 53546
           Summary: gcc ICEs when using -fripa at varpool.c:45
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: asha...@gcc.gnu.org


Created attachment 27535
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27535
Proposed patch to fix this problem.

This only happens in -fripa compilation mode under some circumstances.

The reason is that in dwarf2asm.c dw2_output_indirect_constant_1, we do not
copy the TREE_STATIC() property from id to decl.

I am attaching a patch that fixes this problem.

Reply via email to