Bug 772671

Summary: ./menu.c:3832:1: internal compiler error: in inline_small_functions, at ipa-inline.c:1410
Product: [Fedora] Fedora Reporter: Sami Farin <hvtaifwkbgefbaei>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, jakub
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-12 23:54:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
menu.i none

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.