public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44557]  New: internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
@ 2010-06-16 14:02 raj dot khem at gmail dot com
  2010-06-16 14:04 ` [Bug target/44557] " raj dot khem at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: raj dot khem at gmail dot com @ 2010-06-16 14:02 UTC (permalink / raw)
  To: gcc-bugs

X-Bugzilla-Reason: CC

gcc built from recent gcc-4_5-branch ICE's compiling attached testcase for arm
with following options

-mthumb -O1 -fno-omit-frame-pointer

$ arm-oe-linux-uclibceabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-oe-linux-uclibceabi-gcc
COLLECT_LTO_WRAPPER=/home/kraj/work/oe/tmp/cross/armv5te/libexec/gcc/arm-oe-linux-uclibceabi/4.5.1/lto-wrapper
Target: arm-oe-linux-uclibceabi
Configured with:
/home/kraj/work/oe/tmp/work/armv5te-oe-linux-uclibceabi/gcc-cross-4.5-r1+svnr160764/gcc-4.5/configure
--build=x86_64-linux --host=x86_64-linux --target=arm-oe-linux-uclibceabi
--prefix=/home/kraj/work/oe/tmp/cross/armv5te
--exec_prefix=/home/kraj/work/oe/tmp/cross/armv5te
--bindir=/home/kraj/work/oe/tmp/cross/armv5te/bin
--sbindir=/home/kraj/work/oe/tmp/cross/armv5te/bin
--libexecdir=/home/kraj/work/oe/tmp/cross/armv5te/libexec
--datadir=/home/kraj/work/oe/tmp/cross/armv5te/share
--sysconfdir=/home/kraj/work/oe/tmp/cross/armv5te/etc
--sharedstatedir=/home/kraj/work/oe/tmp/cross/armv5te/com
--localstatedir=/home/kraj/work/oe/tmp/cross/armv5te/var
--libdir=/home/kraj/work/oe/tmp/cross/armv5te/lib
--includedir=/home/kraj/work/oe/tmp/cross/armv5te/include
--oldincludedir=/home/kraj/work/oe/tmp/cross/armv5te/include
--infodir=/home/kraj/work/oe/tmp/cross/armv5te/share/info
--mandir=/home/kraj/work/oe/tmp/cross/armv5te/share/man
--enable-clocale=generic --with-gnu-ld --enable-shared --enable-languages=c,c++
--enable-threads=posix --enable-multilib --enable-c99 --enable-long-long
--enable-symvers=gnu --enable-libstdcxx-pch
--program-prefix=arm-oe-linux-uclibceabi- --enable-lto --enable-libssp
--disable-bootstrap --disable-libgomp --disable-libmudflap --with-float=soft
--with-local-prefix=/home/kraj/work/oe/tmp/sysroots/armv5te-oe-linux-uclibceabi/usr
--with-gxx-include-dir=/home/kraj/work/oe/tmp/sysroots/armv5te-oe-linux-uclibceabi//usr/include/c++
--with-sysroot=/home/kraj/work/oe/tmp/sysroots/armv5te-oe-linux-uclibceabi
--with-build-sysroot=/home/kraj/work/oe/tmp/sysroots/armv5te-oe-linux-uclibceabi
--disable-libunwind-exceptions
--with-mpfr=/home/kraj/work/oe/tmp/sysroots/x86_64-linux/usr --with-system-zlib
--disable-decimal-float --program-prefix=arm-oe-linux-uclibceabi-
--disable-__cxa_atexit --disable-nls
Thread model: posix
gcc version 4.5.1 20100614 (prerelease) (GCC)


-- 
           Summary: internal compiler error: in gen_thumb_movhi_clobber, at
                    config/arm/arm.md:5811
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: raj dot khem at gmail dot com
 GCC build triplet: x86_64-linux
  GCC host triplet: x86_64-linux
GCC target triplet: arm-oe-linux-uclibceabi


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


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
  2010-06-16 14:02 [Bug target/44557] New: internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811 raj dot khem at gmail dot com
@ 2010-06-16 14:04 ` raj dot khem at gmail dot com
  2010-06-16 21:26 ` mikpe at it dot uu dot se
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: raj dot khem at gmail dot com @ 2010-06-16 14:04 UTC (permalink / raw)
  To: gcc-bugs

X-Bugzilla-Reason: CC



------- Comment #1 from raj dot khem at gmail dot com  2010-06-16 14:04 -------
Created an attachment (id=20928)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20928&action=view)
testcase


-- 


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


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
  2010-06-16 14:02 [Bug target/44557] New: internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811 raj dot khem at gmail dot com
  2010-06-16 14:04 ` [Bug target/44557] " raj dot khem at gmail dot com
@ 2010-06-16 21:26 ` mikpe at it dot uu dot se
  2010-06-17 13:51 ` mikpe at it dot uu dot se
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: mikpe at it dot uu dot se @ 2010-06-16 21:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mikpe at it dot uu dot se  2010-06-16 21:25 -------
With crosses to armv5tel-unknown-linux-gnueabi, gcc-4.3 and 4.4 work but a
recent 4.5 ICEs as described here.

This stopped ICEing in 4.6 with r160260, an ira/reload patch.  However, that
was just an improvement fixing a number of missed-optimization PRs (PR39871,
R40615, PR42500, PR42502) with no ARM backend changes, so I suspect there's a
bug here still latent on trunk.

I'll try a bisect next to see which revision introduced the ICE.


-- 

mikpe at it dot uu dot se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu dot se
            Summary|internal compiler error: in |internal compiler error: in
                   |gen_thumb_movhi_clobber, at |gen_thumb_movhi_clobber, at
                   |config/arm/arm.md:5811      |config/arm/arm.md:5811


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


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
  2010-06-16 14:02 [Bug target/44557] New: internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811 raj dot khem at gmail dot com
  2010-06-16 14:04 ` [Bug target/44557] " raj dot khem at gmail dot com
  2010-06-16 21:26 ` mikpe at it dot uu dot se
@ 2010-06-17 13:51 ` mikpe at it dot uu dot se
  2010-06-19 17:56 ` mikpe at it dot uu dot se
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: mikpe at it dot uu dot se @ 2010-06-17 13:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mikpe at it dot uu dot se  2010-06-17 13:51 -------
The ICE was introduced in 4.5 by r146904, an ira tweak for a missed
optimization (PR39914) with no ARM specific bits.  That change was then applied
to 4.4 in r147081, and indeed that caused 4.4 branch to ICE too.

I'll bisect 4.4 next to see what stopped the ICE between r147081 and now.


-- 


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


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
  2010-06-16 14:02 [Bug target/44557] New: internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811 raj dot khem at gmail dot com
                   ` (2 preceding siblings ...)
  2010-06-17 13:51 ` mikpe at it dot uu dot se
@ 2010-06-19 17:56 ` mikpe at it dot uu dot se
  2010-09-07 16:25 ` ibolton at gcc dot gnu dot org
  2010-09-08 10:16 ` mikpe at it dot uu dot se
  5 siblings, 0 replies; 11+ messages in thread
From: mikpe at it dot uu dot se @ 2010-06-19 17:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mikpe at it dot uu dot se  2010-06-19 17:56 -------
I my earlier tests I failed to notice that this test case triggers one of two
different ICEs, depending on options and compiler version.  I also mistakenly
tested with a locally modified gcc-4.4.

The ICE in this PR, in gen_thumb_movhi_clobber, is triggered by r147270 +
r147274, updates to loop-invariant.c part of PR33928 fixes with no ARM specific
bits.  Another ICE, in default_secondary_reload, is triggered by r146904. 
Which ICE you get depends on -f{no-,}forward-propagate.  Both ICEs disappear if
r146904 is reverted.  gcc-4.4.4 includes a backport or r146904 and does trigger
the default_secondary_reload ICE.  gcc-4.3.4 does not ICE.


-- 


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


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
  2010-06-16 14:02 [Bug target/44557] New: internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811 raj dot khem at gmail dot com
                   ` (3 preceding siblings ...)
  2010-06-19 17:56 ` mikpe at it dot uu dot se
@ 2010-09-07 16:25 ` ibolton at gcc dot gnu dot org
  2010-09-08 10:16 ` mikpe at it dot uu dot se
  5 siblings, 0 replies; 11+ messages in thread
From: ibolton at gcc dot gnu dot org @ 2010-09-07 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ibolton at gcc dot gnu dot org  2010-09-07 16:24 -------
(In reply to comment #4)
> I my earlier tests I failed to notice that this test case triggers one of two
> different ICEs, depending on options and compiler version.  I also mistakenly
> tested with a locally modified gcc-4.4.
> 
> The ICE in this PR, in gen_thumb_movhi_clobber, is triggered by r147270 +
> r147274, updates to loop-invariant.c part of PR33928 fixes with no ARM specific
> bits.  Another ICE, in default_secondary_reload, is triggered by r146904. 
> Which ICE you get depends on -f{no-,}forward-propagate.  Both ICEs disappear if
> r146904 is reverted.  gcc-4.4.4 includes a backport or r146904 and does trigger
> the default_secondary_reload ICE.  gcc-4.3.4 does not ICE.
> 

I can't get this to ICE with latest version of 4.4, 4.5 or 4.6 branches.

I am doing:

arm-none-linux-gnueabi/obj/gcc3/gcc/cc1 -O1 -mthumb -fno-omit-frame-pointer
pr44557.i

Please can someone else try to see if they can still get the ICE.


-- 

ibolton at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
  2010-06-16 14:02 [Bug target/44557] New: internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811 raj dot khem at gmail dot com
                   ` (4 preceding siblings ...)
  2010-09-07 16:25 ` ibolton at gcc dot gnu dot org
@ 2010-09-08 10:16 ` mikpe at it dot uu dot se
  5 siblings, 0 replies; 11+ messages in thread
From: mikpe at it dot uu dot se @ 2010-09-08 10:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mikpe at it dot uu dot se  2010-09-08 10:16 -------
(In reply to comment #5)
> I can't get this to ICE with latest version of 4.4, 4.5 or 4.6 branches.

The default_secondary_reload ICE is on a gcc_assert() so you must configure
with --enable-checking; --enable-checking=release is sufficient.  You also need
to target Thumb-1 not Thumb-2; -march=armv5te suffices.

The gen_thumb_movhi_clobber ICE is a gcc_unreachable() in a pattern guarded by
TARGET_THUMB1, so you must target Thumb-1 not Thumb-2; -march=armv5te suffices.

I just reproduced the first with 4.4-20100907 and 4.5-20100902, and the second
with 4.5-20100902.  I didn't check 4.6.


-- 


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


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
       [not found] <bug-44557-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2014-05-17  4:07 ` sandra at codesourcery dot com
@ 2014-05-20 15:09 ` cltang at gcc dot gnu.org
  3 siblings, 0 replies; 11+ messages in thread
From: cltang at gcc dot gnu.org @ 2014-05-20 15:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44557

--- Comment #10 from Chung-Lin Tang <cltang at gcc dot gnu.org> ---
The ICE still happens under -mno-lra (and using reload).


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
       [not found] <bug-44557-4@http.gcc.gnu.org/bugzilla/>
  2010-09-25 15:01 ` mikpe at it dot uu.se
  2010-12-13  6:46 ` cltang at gcc dot gnu.org
@ 2014-05-17  4:07 ` sandra at codesourcery dot com
  2014-05-20 15:09 ` cltang at gcc dot gnu.org
  3 siblings, 0 replies; 11+ messages in thread
From: sandra at codesourcery dot com @ 2014-05-17  4:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44557

Sandra Loosemore <sandra at codesourcery dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandra at codesourcery dot com

--- Comment #9 from Sandra Loosemore <sandra at codesourcery dot com> ---
The testcase (as packaged with Chung-Lin's patch) no longer fails on 4.9.0 or
mainline.  Has the problem gone away due to all the register allocator changes
since it was initially reported against GCC 4.5, or is it simply being masked
by them?


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
       [not found] <bug-44557-4@http.gcc.gnu.org/bugzilla/>
  2010-09-25 15:01 ` mikpe at it dot uu.se
@ 2010-12-13  6:46 ` cltang at gcc dot gnu.org
  2014-05-17  4:07 ` sandra at codesourcery dot com
  2014-05-20 15:09 ` cltang at gcc dot gnu.org
  3 siblings, 0 replies; 11+ messages in thread
From: cltang at gcc dot gnu.org @ 2010-12-13  6:46 UTC (permalink / raw)
  To: gcc-bugs

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

Chung-Lin Tang <cltang at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cltang at gcc dot gnu.org

--- Comment #8 from Chung-Lin Tang <cltang at gcc dot gnu.org> 2010-12-13 06:46:26 UTC ---
Patch here:
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00732.html


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

* [Bug target/44557] internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811
       [not found] <bug-44557-4@http.gcc.gnu.org/bugzilla/>
@ 2010-09-25 15:01 ` mikpe at it dot uu.se
  2010-12-13  6:46 ` cltang at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: mikpe at it dot uu.se @ 2010-09-25 15:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Mikael Pettersson <mikpe at it dot uu.se> 2010-09-25 11:51:17 UTC ---
The default_secondary_reload ICE still triggers on trunk (4.6 r164610) if you
target Thumb-1:

> objdir/gcc/xgcc -Bobjdir/gcc -march=armv7-a -mthumb -O1 -fno-omit-frame-pointer -fno-forward-propagate -S pr44557.i
> objdir/gcc/xgcc -Bobjdir/gcc -march=armv5te -mthumb -O1 -fno-omit-frame-pointer -fno-forward-propagate -S pr44557.i
omDefault.c: In function '_XmbDefaultTextPerCharExtents':
omDefault.c:272:1: internal compiler error: in default_secondary_reload, at
targhooks.c:907
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
> uname -a
Linux brewer 2.6.36-rc5 #1 SMP Thu Sep 23 12:39:05 CEST 2010 i686 i686 i386
GNU/Linux
> objdir/gcc/xgcc -v                                                                            Using built-in specs.
COLLECT_GCC=objdir/gcc/xgcc
Target: armv5tel-unknown-linux-gnueabi
Configured with: /tmp/gcc-4.6-r164610/configure
--target=armv5tel-unknown-linux-gnueabi --with-arch=armv5te --with-tune=xscale
--prefix=/home/mikpe/pkgs/linux-x86/cross-armv5tel
--with-gmp=/home/mikpe/pkgs/linux-x86/gmp-4.3.2
--with-mpfr=/home/mikpe/pkgs/linux-x86/mpfr-2.4.2
--with-mpc=/home/mikpe/pkgs/linux-x86/mpc-0.8.2 --disable-plugins --disable-lto
--disable-nls --disable-shared --disable-libmudflap --disable-multilib
--enable-threads=posix --enable-checking=release --enable-languages=c
Thread model: posix
gcc version 4.6.0 20100924 (experimental) (GCC)

-- 
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-05-20 15:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-16 14:02 [Bug target/44557] New: internal compiler error: in gen_thumb_movhi_clobber, at config/arm/arm.md:5811 raj dot khem at gmail dot com
2010-06-16 14:04 ` [Bug target/44557] " raj dot khem at gmail dot com
2010-06-16 21:26 ` mikpe at it dot uu dot se
2010-06-17 13:51 ` mikpe at it dot uu dot se
2010-06-19 17:56 ` mikpe at it dot uu dot se
2010-09-07 16:25 ` ibolton at gcc dot gnu dot org
2010-09-08 10:16 ` mikpe at it dot uu dot se
     [not found] <bug-44557-4@http.gcc.gnu.org/bugzilla/>
2010-09-25 15:01 ` mikpe at it dot uu.se
2010-12-13  6:46 ` cltang at gcc dot gnu.org
2014-05-17  4:07 ` sandra at codesourcery dot com
2014-05-20 15:09 ` cltang 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).