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

Bug #642043 reported by Matthias Klose on 2010-09-18
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)
High
Unassigned
gcc-4.4 (Ubuntu)
Medium
Unassigned
gcc-4.5 (Ubuntu)
Medium
Unassigned
gcc-4.6 (Ubuntu)
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

Matthias Klose (doko) wrote :
Changed in fbasics (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Matthias Klose (doko) wrote :

seen as well with 4.5 and trunk

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

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

Matthias Klose (doko) on 2010-09-18
Changed in gcc-4.5 (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
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
Matthias Klose (doko) wrote :

reopening the fbasics task, built in arm mode

Changed in fbasics (Ubuntu):
status: Fix Released → Triaged
Chung-Lin Tang (cltang) wrote :

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

tags: added: ice
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
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
Michael Hope (michaelh1) wrote :

Note that it only happens at -O1.

Changed in gcc-linaro:
importance: Undecided → Medium

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

Dave

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.

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

Dave

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

Michael Hope (michaelh1) wrote :

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

Michael Hope (michaelh1) wrote :

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

Michael Hope (michaelh1) wrote :

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

Changed in fbasics (Debian):
status: Unknown → New
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) on 2011-12-14
Changed in gcc-4.6 (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
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
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
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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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