[armel] gfortran ICE with armv7, armv5t and armv6 do work

Bug #642043 reported by Matthias Klose
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Fix Released
Medium
Unassigned
fbasics (Debian)
Fix Released
Unknown
fbasics (Ubuntu)
Fix Released
High
Unassigned
gcc-4.4 (Ubuntu)
Won't Fix
Medium
Unassigned
gcc-4.5 (Ubuntu)
Won't Fix
Medium
Unassigned
gcc-4.6 (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

$ gfortran-4.4 -g -O2 -c gss.f -o gss.o
gss.f: In function 'deval':
gss.f:604: internal compiler error: in arm_select_dominance_cc_mode, at config/arm/arm.c:10172
Please submit a full bug report,
with preprocessed source if appropriate.

works with -O0, or -march=armv5t, or -march=armv6

Revision history for this message
Matthias Klose (doko) wrote :
Changed in fbasics (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

seen as well with 4.5 and trunk

Changed in gcc-4.4 (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

gcc-snapshot on debian doesn't ice with -march=armv7-a

Matthias Klose (doko)
Changed in gcc-4.5 (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fbasics - 2110.79-1ubuntu1

---------------
fbasics (2110.79-1ubuntu1) maverick; urgency=low

  * Work around gfortran ICE on armel, build with -march=armv6. LP: #642043.
 -- Matthias Klose <email address hidden> Sat, 18 Sep 2010 15:54:14 +0200

Changed in fbasics (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

reopening the fbasics task, built in arm mode

Changed in fbasics (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Chung-Lin Tang (cltang) wrote :

A reduced C testcase that hits the same ICE on mainline trunk under -O1

tags: added: ice
Revision history for this message
Steve Langasek (vorlon) wrote :

ICE with the reduced C test case using -O1 is still reproducible for me with current gcc-4.5-arm-linux-gnueabi in natty.

Changed in gcc-linaro:
status: New → Confirmed
Revision history for this message
Michael Hope (michaelh1) wrote :

Confirmed in gcc-linaro-4.5-2011.02-0:

michaelh@ursa1:~/linaro/bugs$ /tools/toolchains/gcc-linaro-4.5-2011.02-0-armv7l-maverick-cbuild46-pavo3-cortexa8r1/bin/gcc -O1 -S testcase.c
testcase.c: In function 'foo':
testcase.c:12:1: internal compiler error: in arm_select_dominance_cc_mode, at config/arm/arm.c:10528
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Changed in gcc-linaro:
status: Confirmed → Triaged
Revision history for this message
Michael Hope (michaelh1) wrote :

Note that it only happens at -O1.

Changed in gcc-linaro:
importance: Undecided → Medium
Revision history for this message
Dr. David Alan Gilbert (davidgil-uk) wrote :

Seems to compile OK for me with bzr rev 99485 (4.5-2011.03-0)

Dave

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

Still fails for me in 4.5-2011.03-0:

michaelh@ursa1:~/linaro/bugs$ /tools/toolchains/gcc-linaro-4.5-2011.03-0-armv7l-maverick-cbuild71-carina7-cortexa8r1/bin/gcc -O1 -S testcase.c
testcase.c: In function 'foo':
testcase.c:12:1: internal compiler error: in arm_select_dominance_cc_mode, at config/arm/arm.c:10799
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
Dr. David Alan Gilbert (davidgil-uk) wrote :

Agreed, still fails - not sure what I did last time; (bzr 99489).

Dave

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

Still fails in gcc-linaro-4.5-2011.05-0:

michaelh@ursa1:~/linaro/bugs$ /scratch/michaelh/toolchains/gcc-linaro-4.5-2011.05-0-armv7l-maverick-cbuild114-ursa4-cortexa8r1/bin/gcc -O1 -S testcase.c
testcase.c: In function 'foo':
testcase.c:12:1: internal compiler error: in arm_select_dominance_cc_mode, at config/arm/arm.c:10846

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

Also fails in trunk r174795 (and every other build that I have...)

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

(recheck after the fix to LP:823708 goes in)

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

Fails with gcc-linaro-4.6+bzr106798~rsandifo~lp823708-4.6.

Changed in fbasics (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fbasics - 2110.79-1ubuntu2

---------------
fbasics (2110.79-1ubuntu2) precise; urgency=low

  * Work around gfortran ICE on ARM, build with -march=armv6. LP: #642043.
 -- Matthias Klose <email address hidden> Sat, 10 Dec 2011 15:06:39 +0100

Changed in fbasics (Ubuntu):
status: Triaged → Fix Released
Matthias Klose (doko)
Changed in gcc-4.6 (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

and seen with gcc-4.7

$ gcc-4.7 -c -O1 testcase.c
testcase.c: In function 'foo':
testcase.c:12:1: internal compiler error: in arm_select_dominance_cc_mode, at config/arm/arm.c:11544
Please submit a full bug report,
with preprocessed source if appropriate.

Changed in gcc-4.6 (Ubuntu):
status: Confirmed → Triaged
Changed in gcc-4.5 (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Matthias Klose (doko) wrote :

won't fix anymore for 4.4 and 4.5

Changed in gcc-4.4 (Ubuntu):
status: Confirmed → Won't Fix
Changed in gcc-4.5 (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Yvan Roux (yvan-roux) wrote :

Fixed in Linaro's releases

Changed in gcc-linaro:
status: Triaged → Fix Released
Changed in fbasics (Debian):
status: New → 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.