ICE reload1.c:1058 using 4.8 with mthumb fomit-frame-pointer

Bug #1278004 reported by abx on 2014-02-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Joey Ye
Joey Ye
Joey Ye

Bug Description

arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.8.3 20131129 (release) [ARM/embedded-4_8-branch revision 205641]

ubuntu 13.10 (but also occurs on windows 8.1 using windows binaries)

Test Case 1 (attachment: png.c):
arm-none-eabi-gcc ~/Dropbox/ICE/png.c -c -fomit-frame-pointer -mthumb -fPIC
/home/ab/Dropbox/ICE/png.c: In function 'png_do_read_swap_alpha':
/home/ab/Dropbox/ICE/png.c:104:1: internal compiler error: in reload, at reload1.c:1058

Test Case 2 (attachement: etc.cpp):
/arm-none-eabi-g++ etc.cpp -c -fomit-frame-pointer -mthumb -fPIC
etc.cpp: In function 'int {anonymous}::compressBlockWithTable2x4({anonymous}::uint8*, int, int, int, int, {anonymous}::uint8*, int, unsigned int*, unsigned int*)':
etc.cpp:78:1: internal compiler error: in reload, at reload1.c:1058

The two test cases provided are snippets from larger libraries. The first being libpng and the second an internal graphics library. The issue with libpng has been reported by people using the android ndk r8c and is said to have been resolved in r8d (according to their changelog).

Building thumb 2 (-mthumb -march=armv7-a) is fine. ICE only occurs with combination of -mthumb and -fomit-frame-pointer, sometimes with -fPIC. Test Case 1 only seems to occur with 4.8, whereas Test Case 2 also occurs with 4.7


abx (ab-7) wrote :
Joey Ye (jinyun-ye) on 2014-02-10
Changed in gcc-arm-embedded:
status: New → Confirmed
Joey Ye (jinyun-ye) wrote :
Changed in gcc-arm-embedded:
importance: Undecided → High
assignee: nobody → Joey Ye (jinyun-ye)
status: Confirmed → In Progress
Joey Ye (jinyun-ye) on 2014-02-28
Changed in gcc-arm-embedded:
status: In Progress → Fix Committed
milestone: none → 4.8-2014-q1-update
milestone: 4.8-2014-q1-update → 4.7-2014-q2-update
milestone: 4.7-2014-q2-update → 4.8-2014-q1-update
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.