Bug 34617 - ICE with "-fmudflap -fprofile-arcs"
Summary: ICE with "-fmudflap -fprofile-arcs"
Status: RESOLVED DUPLICATE of bug 20128
Alias: None
Product: gcc
Classification: Unclassified
Component: gcov-profile (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code, monitored
Depends on:
Blocks:
 
Reported: 2007-12-30 00:24 UTC by Volker Reichelt
Modified: 2011-11-16 19:24 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2008-12-31 19:43:10


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Reichelt 2007-12-30 00:24:30 UTC
The following trivial testcase crashes the compiler when using the options
"-fmudflap -fprofile-arcs":

==================
void foo() {}
==================

With the C++ frontend I get the following error:

g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

With the C frontend I get the following instead:

bug.cc: In function '_GLOBAL__I_1_foo':
bug.cc:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The bug dates back to GCC 4.0.0 (when "-fmudflap" was introduced).
Comment 1 Andrew Pinski 2008-12-31 19:43:09 UTC
Confirmed, the issue is -fprofile-arcs's arrays constructors don't contain an index.
Comment 2 Volker Reichelt 2011-11-16 19:24:55 UTC
Duplicate of PR20128.

*** This bug has been marked as a duplicate of bug 20128 ***