Hello,
is following behaviour a bug? Should I file as bug with the tad file appended?
I see no way to attach files here.
Running in the directory from appended tar file give
> arm-none-eabi-gcc -c -MD -MP -mcpu=cortex-m0plus -mthumb -D__CORTEX__ -ffunction-sections -fdata-sections -fomit-frame-pointer -g3 -Og -Wall -Wstrict-prototypes -Werror -O0 -mtpcs-frame -mtpcs-leaf-frame -fno-omit-frame-pointer test.c
test.c: In function 'main':
test.c:5:1: error: insn does not satisfy its constraints:
}
^
(insn 23 22 24 (set (reg:SI 2 r2)
(reg:SI 15 pc)) test.c:3 187 {*thumb1_movsi_insn}
(nil))
test.c:5:1: internal compiler error: in note_invalid_constants, at config/arm/arm.c:15756
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
gives an internal compiler error.
Removing -mtpcs-frame from the command line lets the file compile:
> arm-none-eabi-gcc -c -MD -MP -mcpu=cortex-m0plus -mthumb -D__CORTEX__ -ffunction-sections -fdata-sections -fomit-frame-pointer -g3 -Og -Wall -Wstrict-prototypes -Werror -O0 -mtpcs-frame -fno-omit-frame-pointer test.c
-mtpcs-frame is not flagged to be invalid with M0+. The same error happens when compiling for M0.
> arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=/opt/cross/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/opt/cross/gcc-arm-none-eabi-4_8-2014q3/bin/../lib/gcc/arm-none-eabi/4.8.4/lto-wrapper
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-8-build/src/gcc/configure --target=arm-none-eabi --prefix=/home/build/work/GCC-4-8-build/install-native --libexecdir=/home/build/work/GCC-4-8-build/install-native/lib --infodir=/home/build/work/GCC-4-8-build/install-native/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-8-build/install-native/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-8-build/install-native/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-8-build/install-native/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-newlib --with-headers=yes --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-8-build/install-native/arm-none-eabi --build=i686-linux-gnu --host=i686-linux-gnu --with-gmp=/home/build/work/GCC-4-8-build/build-native/host-libs/usr --with-mpfr=/home/build/work/GCC-4-8-build/build-native/host-libs/usr --with-mpc=/home/build/work/GCC-4-8-build/build-native/host-libs/usr --with-isl=/home/build/work/GCC-4-8-build/build-native/host-libs/usr --with-cloog=/home/build/work/GCC-4-8-build/build-native/host-libs/usr --with-libelf=/home/build/work/GCC-4-8-build/build-native/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r
Thread model: single
gcc version 4.8.4 20140725 (release) [ARM/embedded-4_8-branch revision 213147] (GNU Tools for ARM Embedded Processors)