Bug 56433 - [4.8 Regression] ICE in expand_asm_operands, at stmt.c:910
Summary: [4.8 Regression] ICE in expand_asm_operands, at stmt.c:910
Status: RESOLVED DUPLICATE of bug 56405
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: 4.8.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2013-02-23 03:41 UTC by Matthias Klose
Modified: 2013-02-25 19:30 UTC (History)
1 user (show)

See Also:
Host:
Target: arm-linxux-gnueabihf
Build:
Known to work: 4.7.2
Known to fail: 4.8.0
Last reconfirmed: 2013-02-25 00:00:00


Attachments
preprocessed source (33.63 KB, application/x-gzip)
2013-02-23 03:41 UTC, Matthias Klose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2013-02-23 03:41:33 UTC
Created attachment 29527 [details]
preprocessed source

seen with trunk 195917, works with 4.7 branch, fails with Linaro branch, buildings without -O doesn't show the issue.

$ gcc -c -marm -mfpu=neon -O1 -c dxa.i 
In file included from /scratch/packages/tmp/4.8/libav-0.8.5/libavutil/intreadwrite.h:60:0,
                 from /scratch/packages/tmp/4.8/libav-0.8.5/libavformat/dxa.c:22:
/scratch/packages/tmp/4.8/libav-0.8.5/libavutil/arm/intreadwrite.h: In function 'dxa_read_packet':
/scratch/packages/tmp/4.8/libav-0.8.5/libavutil/arm/intreadwrite.h:45:5: internal compiler error: in expand_asm_operands, at stmt.c:910
     __asm__ ("ldr  %0, %1" : "=r"(v) : "m"(*(const uint32_t *)p));
     ^
Please submit a full bug report,
with preprocessed source if appropriate.
Comment 1 Andrew Pinski 2013-02-23 05:23:08 UTC
AV_RN32(buf + 5))

I bet http://gcc.gnu.org/ml/gcc-patches/2013-02/msg00965.html fixes this issue too.
Comment 2 Jakub Jelinek 2013-02-25 19:30:37 UTC
Yes, it does, just verified that.

*** This bug has been marked as a duplicate of bug 56405 ***