This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/53214] [lto]: ICE: munmap_chunk(): invalid pointer
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 May 2012 10:05:02 +0000
- Subject: [Bug lto/53214] [lto]: ICE: munmap_chunk(): invalid pointer
- Auto-submitted: auto-generated
- References: <bug-53214-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53214
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-04 10:05:02 UTC ---
Reduced C testcase:
double a(double) __attribute__ ((optimize(3), used));
double a(double r)
{
return r;
}
int main () { }
ICEs this way with
gcc -flto t.c
but not with -flto-partition=none or when the optimization level selected
in the attribute matches that of the compile.