public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/56618] New: inline assembler with too many lines causes ICE in account_size_time, at ipa-inline-analysis.c
@ 2013-03-14 13:12 andi-gcc at firstfloor dot org
2013-03-14 16:24 ` [Bug tree-optimization/56618] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: andi-gcc at firstfloor dot org @ 2013-03-14 13:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56618
Bug #: 56618
Summary: inline assembler with too many lines causes ICE in
account_size_time, at ipa-inline-analysis.c
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: andi-gcc@firstfloor.org
A 6.4 mio lines inline assembler statement (happened in some auto generated
real code) causes an overflow in the inliner cost estimation per cpu, resulting
in a ICE.
Reproducer
#!/usr/bin/python
print "int foo(void) {"
print " asm("
for i in range(6400000):
print r' "\n"'
print " );"
print "}"
./longasm.py > l.c
gcc l.c
Observed back to 4.7 at least, but much older compilers should be ok. So it's a
regression
Patch has been posted at
http://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg50027.html
There was some discussion, but no approval
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/56618] inline assembler with too many lines causes ICE in account_size_time, at ipa-inline-analysis.c
2013-03-14 13:12 [Bug tree-optimization/56618] New: inline assembler with too many lines causes ICE in account_size_time, at ipa-inline-analysis.c andi-gcc at firstfloor dot org
@ 2013-03-14 16:24 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-03-14 16:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56618
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-03-14 16:24:23 UTC ---
In a mean time, it was already filed by someone else.
*** This bug has been marked as a duplicate of bug 56580 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-14 16:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-14 13:12 [Bug tree-optimization/56618] New: inline assembler with too many lines causes ICE in account_size_time, at ipa-inline-analysis.c andi-gcc at firstfloor dot org
2013-03-14 16:24 ` [Bug tree-optimization/56618] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).