Re: [ARM] Fix RTL checking failure in Thumb mode

2016-08-31 Thread Kyrill Tkachov
On 31/08/16 08:31, Eric Botcazou wrote: Hi, compiling any non-trivial program in Thumb mode yields with RTL checking: eric@arcturus:~/build/gcc/arm-eabi> gcc/xgcc -Bgcc -S t.c -mthumb t.c:4:5: internal compiler error: RTL check: expected code 'const_int', have 'reg' in thumb1_size_rtx_costs, a

[ARM] Fix RTL checking failure in Thumb mode

2016-08-31 Thread Eric Botcazou
Hi, compiling any non-trivial program in Thumb mode yields with RTL checking: eric@arcturus:~/build/gcc/arm-eabi> gcc/xgcc -Bgcc -S t.c -mthumb t.c:4:5: internal compiler error: RTL check: expected code 'const_int', have 'reg' in thumb1_size_rtx_costs, at config/arm/arm.c:9130 int foo (int a, i