Bug 915830 - gcc ICE: output_operand: invalid shift operand
Summary: gcc ICE: output_operand: invalid shift operand
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: arm
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: ARMTracker
TreeView+ depends on / blocked
Reported: 2013-02-26 15:26 UTC by Brendan Conoboy
Modified: 2013-03-22 02:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-03-22 02:28:38 UTC

Attachments (Terms of Use)
Preprocessed iwmxxt.c (207.11 KB, text/plain)
2013-02-26 15:27 UTC, Brendan Conoboy
no flags Details

System ID Priority Status Summary Last Updated
GNU Compiler Collection 56470 None None None Never

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:


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!

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