Segmentation fault in gcc 4.7-2013.08 while building WebP (part of Android) with -mtune=cortex-a9

Bug #1215925 reported by Bernhard Rosenkraenzer
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linaro GCC
Won't Fix
Undecided
Charles Baylis

Bug Description

$ arm-linux-androideabi-gcc -o upsampling_neon.o -c upsampling_neon.i -march=armv7-a -mfloat-abi=softfp -mfpu=neon -O3 -frename-registers -mtune=cortex-a9 -mthumb -g
external/webp/src/dec/../dsp/upsampling_neon.c: In function 'UpsampleBgraLinePairNEON':
external/webp/src/dec/../dsp/upsampling_neon.c:264:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Revision history for this message
Bernhard Rosenkraenzer (berolinux) wrote :
Revision history for this message
Bernhard Rosenkraenzer (berolinux) wrote :

Attaching somewhat reduced test case, still too large, but not quite the 400 kB monstrosity it used to be.

Changed in gcc-linaro:
assignee: nobody → Charles Baylis (cbaylis)
Revision history for this message
Charles Baylis (cbaylis) wrote :

This crash was introduced in revno 115051 " Merge from FSF GCC 4.7.3 (svn branches/gcc-4_7-branch 195745)."

The crash does not occur in the FSF 4.7 branch at r195745 which the merge was taken from, so it is presumably caused by an interaction with an earlier change on the linaro-4.7 branch.

Revision history for this message
Joshua Palmer (insane-palmer) wrote :

-fschedule-insns -fschedule-insns2 is causing the issue. So anyone compiling with -o2 and up will run into this. I worked around it by
adding -fno-schedule-insns -fno-schedule-insns2 to LOCAL_CFLAGS in external/webp/src/dec/Android.mk

Just thought I would put this here for anyone else who lands here after running into this as this bug report was the only thing referencing it when I googled.

Revision history for this message
Charles Baylis (cbaylis) wrote :

GCC 4.7 is no longer maintained, and this bug has not been demonstrated on newer versions of GCC, so closing this.

Changed in gcc-linaro:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.