This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/21691] New: ICE in reload_cse_simplify_operands, at postreload.c:391 (ARM -mthumb -Os)


The following fails, while adding -fno-inline or -O[012345] or removing -mthumb
or reverting to 3.3.2 makes it work.

$ arm-elf-gcc -c -mthumb -Os  arm-thumb-Os-inline-bug.c
arm-thumb-Os-inline-bug.c: In function `show':
arm-thumb-Os-inline-bug.c:24: error: insn does not satisfy its constraints:
(insn:HI 43 132 44 3 (set (reg:SI 3 r3 [86])
        (mem:SI (plus:SI (reg:SI 2 r2 [114])
                (reg/f:SI 13 sp)) [3 S4 A32])) 126 {*thumb_movsi_insn} (nil)
    (expr_list:REG_EQUIV (mem:SI (plus:SI (reg:SI 2 r2 [114])
                (reg/f:SI 13 sp)) [3 S4 A32])
        (nil)))
arm-thumb-Os-inline-bug.c:24: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:391

$ arm-elf-gcc -v
Reading specs from /usr/lib/gcc/arm-elf/3.4.4/specs
Configured with: ../source-tree/gcc-3.4.4/configure --host=i686-pc-linux-gnu
--target=arm-elf --enable-languages=c --with-cpu=arm9tdmi --prefix=/usr
--with-gxx-include-dir=/usr/arm-elf/include/g++-v3
--includedir=/usr/arm-elf/include
--with-headers=/source-tree/gcc-3.4.4/gcc/gincludes --enable-multilib
--enable-big-endian --enable-interwork
Thread model: single
gcc version 3.4.4

-- 
           Summary: ICE in reload_cse_simplify_operands, at postreload.c:391
                    (ARM -mthumb -Os)
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: radford at indigita dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-elf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]