Bug 45616 - internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243
Summary: internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.5.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: error-recovery, ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2010-09-09 15:51 UTC by Paul Chavent
Modified: 2018-03-12 14:53 UTC (History)
4 users (show)

See Also:
Host: i486-slackware-linux-gnu
Target: arm-oc8s-linux-gnueabi
Build: i486-slackware-linux-gnu
Known to work: 4.6.0
Known to fail: 4.5.1
Last reconfirmed: 2010-09-14 14:29:06


Attachments
the preprocessed file that triggers the bug (8.60 KB, text/plain )
2010-09-09 15:53 UTC, Paul Chavent
Details
the options given when GCC was configured/built (1.17 KB, text/plain)
2010-09-09 15:54 UTC, Paul Chavent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Chavent 2010-09-09 15:51:57 UTC
Here is the log :


arm-oc8s-linux-gnueabi-gcc -Wall -std=gnu99 -mthumb -save-temps -DDEFAULT_GPIO=4   -c -o chrono.o chrono.c
chrono.c: In function 'chrono_diff':
chrono.c:188:1: error: insn does not satisfy its constraints:
(insn 236 40 41 chrono.c:155 (set (reg:DF 63 s0)
        (reg:DF 1 r1)) 184 {*thumb_movdf_insn} (nil))
chrono.c:188:1: internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [chrono.o] Error 1
Comment 1 Paul Chavent 2010-09-09 15:53:34 UTC
Created attachment 21753 [details]
the preprocessed file that triggers the bug
Comment 2 Paul Chavent 2010-09-09 15:54:49 UTC
Created attachment 21754 [details]
the options given when GCC was configured/built
Comment 3 Andrew Pinski 2010-09-09 17:00:32 UTC
>--with-cpu=arm926ej-s --with-tune=arm926ej-s --with-arch=armv5te --with-fpu=vfp --with-float=hard

Hmm, these default CPUs don't support vfp in thumb.
Comment 4 Paul Chavent 2010-09-09 19:09:22 UTC
Subject: Re:  internal compiler error: in note_invalid_constants,
 at config/arm/arm.c:11243

Sorry to haven't checking that.

Thank you.

pinskia at gcc dot gnu dot org wrote:
> ------- Comment #3 from pinskia at gcc dot gnu dot org  2010-09-09 17:00 -------
>> --with-cpu=arm926ej-s --with-tune=arm926ej-s --with-arch=armv5te --with-fpu=vfp --with-float=hard
> 
> Hmm, these default CPUs don't support vfp in thumb.
> 
> 

Comment 5 Ian Bolton 2010-09-13 11:04:28 UTC
Reporter needs to try again with different configure options.  (We may still want a more user-friendly way of catching the original problem though.)
Comment 6 Ian Bolton 2010-09-14 14:29:06 UTC
Technically, this is ICE on invalid code, but a more user-friendly error would be better.  As it happens, one has been added to trunk, as of 16th June.

http://gcc.gnu.org/ml/gcc-patches/2010-06/msg01501.html

I will backport it to 4.5, unless Mr Brook wants to.
Comment 7 Eric Gallager 2018-03-12 14:53:45 UTC
(In reply to Ian Bolton from comment #6)
> Technically, this is ICE on invalid code, but a more user-friendly error
> would be better.  As it happens, one has been added to trunk, as of 16th
> June.
> 
> http://gcc.gnu.org/ml/gcc-patches/2010-06/msg01501.html
> 
> I will backport it to 4.5, unless Mr Brook wants to.

4.5 branch is closed, so a backport is unnecessary. Closing as FIXED.