public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/48637] New: %c in ARM inline asm leads to ICE (in arm_print_operand)
@ 2011-04-16  6:35 rabin at rab dot in
  2011-04-16 11:50 ` [Bug inline-asm/48637] " mikpe at it dot uu.se
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rabin at rab dot in @ 2011-04-16  6:35 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: rabin@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)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug inline-asm/48637] %c in ARM inline asm leads to ICE (in arm_print_operand)
  2011-04-16  6:35 [Bug inline-asm/48637] New: %c in ARM inline asm leads to ICE (in arm_print_operand) rabin at rab dot in
@ 2011-04-16 11:50 ` mikpe at it dot uu.se
  2011-05-21 18:49 ` rearnsha at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mikpe at it dot uu.se @ 2011-04-16 11:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637

--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2011-04-16 11:50:01 UTC ---
Created attachment 24010
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24010
reduced test case

Further reduced test case.  "asm goto" is not needed, "%c0" suffices.  ICEs
gcc-4.3.5, 4.4.5, 4.5.2, and 4.7-20110409.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug inline-asm/48637] %c in ARM inline asm leads to ICE (in arm_print_operand)
  2011-04-16  6:35 [Bug inline-asm/48637] New: %c in ARM inline asm leads to ICE (in arm_print_operand) rabin at rab dot in
  2011-04-16 11:50 ` [Bug inline-asm/48637] " mikpe at it dot uu.se
@ 2011-05-21 18:49 ` rearnsha at gcc dot gnu.org
  2011-06-27 21:10 ` [Bug target/48637] " rearnsha at gcc dot gnu.org
  2011-06-27 21:12 ` rearnsha at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2011-05-21 18:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.05.21 18:14:27
                 CC|                            |rearnsha at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2011-05-21 18:14:27 UTC ---
Confirmed.  The back-end doesn't currently know how to handle symbol+offset in
%c.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/48637] %c in ARM inline asm leads to ICE (in arm_print_operand)
  2011-04-16  6:35 [Bug inline-asm/48637] New: %c in ARM inline asm leads to ICE (in arm_print_operand) rabin at rab dot in
  2011-04-16 11:50 ` [Bug inline-asm/48637] " mikpe at it dot uu.se
  2011-05-21 18:49 ` rearnsha at gcc dot gnu.org
@ 2011-06-27 21:10 ` rearnsha at gcc dot gnu.org
  2011-06-27 21:12 ` rearnsha at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2011-06-27 21:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637

--- Comment #3 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2011-06-27 21:09:32 UTC ---
Author: rearnsha
Date: Mon Jun 27 21:09:25 2011
New Revision: 175565

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175565
Log:
    PR target/48637
    * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
    asm operands.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.c


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/48637] %c in ARM inline asm leads to ICE (in arm_print_operand)
  2011-04-16  6:35 [Bug inline-asm/48637] New: %c in ARM inline asm leads to ICE (in arm_print_operand) rabin at rab dot in
                   ` (2 preceding siblings ...)
  2011-06-27 21:10 ` [Bug target/48637] " rearnsha at gcc dot gnu.org
@ 2011-06-27 21:12 ` rearnsha at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2011-06-27 21:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2011-06-27 21:12:03 UTC ---
Fixed on trunk


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-06-27 21:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-16  6:35 [Bug inline-asm/48637] New: %c in ARM inline asm leads to ICE (in arm_print_operand) rabin at rab dot in
2011-04-16 11:50 ` [Bug inline-asm/48637] " mikpe at it dot uu.se
2011-05-21 18:49 ` rearnsha at gcc dot gnu.org
2011-06-27 21:10 ` [Bug target/48637] " rearnsha at gcc dot gnu.org
2011-06-27 21:12 ` rearnsha at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).