Bug 19749 - Coldfire ICE at -O2 or higher
Summary: Coldfire ICE at -O2 or higher
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-02-02 02:38 UTC by Chris Johns
Modified: 2006-05-08 16:04 UTC (History)
4 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: m68k-rtems
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Preprocessed file that generates the ICE. (1.60 KB, application/octet-stream)
2005-02-02 02:39 UTC, Chris Johns
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Johns 2005-02-02 02:38:36 UTC
The attach file passes with -O1 and lower but fails at this level. The code is
part of RTEMS.

$ m68k-rtems-gcc -m5200 -O2 -c ata.i
ata.i: In function 'ata_initialize':
ata.i:190: error: insn does not satisfy its constraints:
(insn 353 198 200 13 (set (reg:QI 8 %a0)
        (mem:QI (plus:SI (reg/f:SI 14 %a6)
                (const_int -71 [0xffffffb9])) [29 D.1229+0 S1 A8])) 34
{*m68k.md:752} (nil)
    (nil))
ata.i:190: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Compiler version is:
$ m68k-rtems-gcc -v
Using built-in specs.
Configured with: ../cvs/head/configure --target=m68k-rtems
--prefix=/local/tools/head --with-gnu-as --with-gnu-ld --with-newlib
--disable-nls --with-system-zlib --enable-version-specific-runtime-libs
--enable-languages=c,c++ --enable-threads=rtems
Thread model: rtems
gcc version 4.0.0 20050131 (experimental)
Comment 1 Chris Johns 2005-02-02 02:39:56 UTC
Created attachment 8123 [details]
Preprocessed file that generates the ICE.
Comment 2 Andrew Pinski 2005-02-02 02:44:30 UTC
I think this is a dup of bug 16719.
Comment 3 Kazu Hirata 2006-05-08 16:04:05 UTC
The mainline works fine.