Bug 772671 - ./menu.c:3832:1: internal compiler error: in inline_small_functions, at ipa-inline.c:1410
Summary: ./menu.c:3832:1: internal compiler error: in inline_small_functions, at ipa-i...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-09 15:30 UTC by Sami Farin
Modified: 2012-01-12 23:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-12 23:54:02 UTC
Type: ---


Attachments (Terms of Use)
menu.i (466.91 KB, text/plain)
2012-01-09 15:30 UTC, Sami Farin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 51801 0 None None None Never

Description Sami Farin 2012-01-09 15:30:12 UTC
Description of problem:

xterm-277 menu.c fails to compile

$ gcc -c -O3 menu-out.c 
./menu.c:3832:1: internal compiler error: in inline_small_functions, at ipa-inline.c:1410
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

Version-Release number of selected component (if applicable):
4.7.0-0.5.fc17

How reproducible:
100%

Steps to Reproduce:
1. gcc -c -O3 menu-out.c
2.
3.
  
Actual results:
ICE

Expected results:
compile

Additional info:

Comment 1 Sami Farin 2012-01-09 15:30:57 UTC
Created attachment 551583 [details]
menu.i

Comment 2 Alexandre Oliva 2012-01-10 19:02:31 UTC
Thanks for the bug report.  This is already fixed in today's upstream tree towards GCC 4.7, so it will be fixed in rawhide when Jakub pulls the next snapshot.  I suggest using the more standard compile flag -O2 for now, and even after the next GCC build, unless there's actual evidence that -O3 generates better code for this specific package.  The expensive optimizations enabled by -O3 can sometimes make the resulting code somewhat worse.

Comment 3 Jakub Jelinek 2012-01-12 23:54:02 UTC
Should be fixed in gcc-4.7.0-0.6.fc17.


Note You need to log in before you can comment on or make changes to this bug.