Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 915830

Summary: gcc ICE: output_operand: invalid shift operand
Product: [Fedora] Fedora Reporter: Brendan Conoboy <blc>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: jakub, law, pbrobinson
Target Milestone: ---   
Target Release: ---   
Hardware: arm   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-22 02:28:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 245418    
Attachments:
Description Flags
Preprocessed iwmxxt.c none

Description Brendan Conoboy 2013-02-26 15:26:55 UTC
Description of problem:

Gcc experiences an ICE when compiling F19's crash package.

Version-Release number of selected component (if applicable):

This is gcc 4.8.0-0.14.fc19

How reproducible:

Happens consistently

Steps to Reproduce:

The failing command is:
gcc -c -DHAVE_CONFIG_H     -DPROFILE=1 -DWITH_PROFILE=-1          -DDEFAULT_INLINE=0           -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES   -I. -I. -I../common -I./../common -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../opcodes  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard iwmmxt.c

Actual results:

iwmmxt.c: In function 'WSUB':
iwmmxt.c:3241:1: internal compiler error: output_operand: invalid shift operand
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
{standard input}: Assembler messages:
{standard input}:6399: Warning: end of file not at end of a line; newline inserted
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
Preprocessed source stored into /tmp/ccdBhcMp.out file, please attach this to your bugreport.

Expected results:

$?=0

Additional info:

Preprocessed source attached.

Comment 1 Brendan Conoboy 2013-02-26 15:27:50 UTC
Created attachment 702973 [details]
Preprocessed iwmxxt.c

Comment 2 Jakub Jelinek 2013-02-26 18:08:53 UTC
int shifts by 32 are undefined behavior, you'd better avoid them.

Comment 3 Brendan Conoboy 2013-03-09 01:08:44 UTC
Surely an ICE isn't a good response though?

Comment 4 Brendan Conoboy 2013-03-22 02:28:38 UTC
Fixed as of 4.8.0-0.17.fc19. Thanks!