This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/53546] New: gcc ICEs when using -fripa at varpool.c:45
- From: "asharif at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 May 2012 23:57:09 +0000
- Subject: [Bug gcov-profile/53546] New: gcc ICEs when using -fripa at varpool.c:45
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: asharif@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.