ICE in int_mode_for_mode, at stor-layout.c:490

Bug #879725 reported by Bernhard Rosenkraenzer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
Medium
Bernhard Rosenkraenzer
Linaro GCC
Fix Released
Medium
Revital Eres

Bug Description

Using linaro gcc 4.6-2011.10 to build the attached preprocessed source with
-O -march=armv7-a -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -fmodulo-sched -fmodulo-sched-allow-regmoves

results in

[bero@matterhorn iMX53]$ /opt/android-toolchain-eabi/bin/arm-eabi-g++ -o test.o -c matrix.i -O -march=armv7-a -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -fmodulo-sched -fmodulo-sched-allow-regmoves
frameworks/base/opengl/libagl/matrix.cpp: In function 'void android::invert(GLfloat*, const GLfloat*)':
frameworks/base/opengl/libagl/matrix.cpp:584:1: internal compiler error: in int_mode_for_mode, at stor-layout.c:490

It works with -mtune=cortex-a9 or when omitting the modulo-sched options.

Will reduce the test case when I have some time, unless someone beats me to it.

Revision history for this message
Bernhard Rosenkraenzer (berolinux) wrote :
Changed in linaro-android:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Bernhard Rosenkraenzer (berolinux)
Revision history for this message
Michael Hope (michaelh1) wrote :

Thank you for the bug report. I've confirmed this with gcc-linaro-4.6-2011.10 on ARM:

michaelh@ursa2:~/linaro/bugs$ /tools/toolchains/arch/armv7l/gcc-linaro-4.6-2011.10-armv7l-natty-cbuild186-ursa3-cortexa9r1/bin/g++ -O2 -mcpu=cortex-a8 -fmodulo-sched -fmodulo-sched-allow-regmoves -c matrix.i
frameworks/base/opengl/libagl/matrix.cpp: In function 'void android::invert(GLfloat*, const GLfloat*)':
frameworks/base/opengl/libagl/matrix.cpp:584:1: internal compiler error: in int_mode_for_mode, at stor-layout.c:490

As noted in the report, the work-arounds are to build for A9 or to disable SMS. The fault does not exist in gcc-linaro-4.6-2011.09, gcc-4.5.3, gcc-4.6.1, or a recent-ish gcc trunk r178624.

I've set it to medium priority as it is a ftbfs, occurs at high optimisation levels, and was introduced or exposed through our changes.

Changed in gcc-linaro:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Revital Eres (eres)
Revision history for this message
Bernhard Rosenkraenzer (berolinux) wrote :
Changed in linaro-android:
status: Confirmed → Triaged
Revision history for this message
Revital Eres (eres) wrote :

Thanks for reporting on this. A patch was submitted to gcc-patches@ http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01459.html

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

Bug still present in 4.6-11.12 - please backport the patch for the 12.01 release.

Revision history for this message
Michael Hope (michaelh1) wrote :

@Bernhard: I'll check the patch and see if it's been OK'ed. Are you building Android with SMS turned on?

Revision history for this message
Ulrich Weigand (uweigand) wrote :

Fix checked in - will be in 12.02 release (too late for 12.01).

Changed in gcc-linaro:
status: Triaged → Fix Committed
Michael Hope (michaelh1)
Changed in gcc-linaro:
milestone: none → 4.6-2012.02
Changed in gcc-linaro:
status: Fix Committed → Fix Released
Changed in linaro-android:
status: Triaged → Fix Released
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.