http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637
Summary: %c in ARM inline asm leads to ICE (in arm_print_operand) Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: inline-asm AssignedTo: unassig...@gcc.gnu.org ReportedBy: ra...@rab.in Created attachment 24009 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24009 minimized test case Compiling the attached file leads to ICE with a GCC 4.6.0 ARM cross-compiler. It uses inline asm with %c and an element of a structure. If the referenced "state" element is made the first element of the structure, the file compiles successfully. ~/tmp$ ~/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-gcc -c test.c test.c: In function 'test': test.c:25:1: internal compiler error: in arm_print_operand, at config/arm/arm.c:16147 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. ~/tmp$ ~/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-gcc -v Using built-in specs. COLLECT_GCC=/home/rabin/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-gcc COLLECT_LTO_WRAPPER=/home/rabin/x-tools/arm-unknown-eabi/libexec/gcc/arm-unknown-eabi/4.6.0/lto-wrapper Target: arm-unknown-eabi Configured with: /home/rabin/dev/crosstool-ng/.build/src/gcc-4.6.0/configure --build=x86_64-build_unknown-linux-gnu --host=x86_64-build_unknown-linux-gnu --target=arm-unknown-eabi --prefix=/home/rabin/x-tools/arm-unknown-eabi --with-local-prefix=/home/rabin/x-tools/arm-unknown-eabi/arm-unknown-eabi/sysroot --disable-multilib --disable-libmudflap --with-sysroot=/home/rabin/x-tools/arm-unknown-eabi/arm-unknown-eabi/sysroot --with-newlib --enable-threads=no --disable-shared --with-pkgversion=crosstool-NG-hg_default@2404_8988576c491a --with-arch=armv5 --disable-__cxa_atexit --with-gmp=/home/rabin/dev/crosstool-ng/.build/arm-unknown-eabi/build/static --with-mpfr=/home/rabin/dev/crosstool-ng/.build/arm-unknown-eabi/build/static --with-mpc=/home/rabin/dev/crosstool-ng/.build/arm-unknown-eabi/build/static --with-ppl=no --with-cloog=no --with-libelf=no --disable-lto --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --disable-nls --enable-symvers=gnu --enable-languages=c Thread model: single gcc version 4.6.0 (crosstool-NG-hg_default@2404_8988576c491a)