public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48183] New: ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon -g -O1)
@ 2011-03-18 15:54 juha.kallioinen at nokia dot com
  2011-04-04 20:54 ` [Bug target/48183] " ramana at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: juha.kallioinen at nokia dot com @ 2011-03-18 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon
                    -g -O1)
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: juha.kallioinen@nokia.com


Created attachment 23707
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23707
pre-processed source

When compiling the attached pre-processed source for arm (-march=armv7-a
-mtune=cortex-a8) and using options -mfpu=neon -g -O1 I get an ICE.

kaltsi@kaltsnatty:~/tmp/ice$ arm-linux-gnueabi-gcc-4.5 -mfpu=neon -O1 -g -c
emit-rtl-ice.i
optimized.c: In function ‘move_16bit_to_32bit’:
optimized.c:4:6: internal compiler error: in immed_double_const, at
emit-rtl.c:552
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.

This does not happen if I leave the -g option out.

Also reported to linaro: https://bugs.launchpad.net/gcc-linaro/+bug/736007


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

* [Bug target/48183] ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon -g -O1)
  2011-03-18 15:54 [Bug c/48183] New: ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon -g -O1) juha.kallioinen at nokia dot com
@ 2011-04-04 20:54 ` ramana at gcc dot gnu.org
  2011-12-01 19:58 ` havard.graff at gmail dot com
  2014-07-09  8:35 ` ktkachov at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-04-04 20:54 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.04.04 20:54:30
                 CC|                            |ramana at gcc dot gnu.org
     Ever Confirmed|0                           |1
      Known to fail|                            |4.6.0


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

* [Bug target/48183] ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon -g -O1)
  2011-03-18 15:54 [Bug c/48183] New: ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon -g -O1) juha.kallioinen at nokia dot com
  2011-04-04 20:54 ` [Bug target/48183] " ramana at gcc dot gnu.org
@ 2011-12-01 19:58 ` havard.graff at gmail dot com
  2014-07-09  8:35 ` ktkachov at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: havard.graff at gmail dot com @ 2011-12-01 19:58 UTC (permalink / raw)
  To: gcc-bugs

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

Havard Graff <havard.graff at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |havard.graff at gmail dot
                   |                            |com

--- Comment #1 from Havard Graff <havard.graff at gmail dot com> 2011-12-01 19:58:11 UTC ---
I have some additional info related to this bug:

If I compile the following:

#include "arm_neon.h"
#include "stdlib.h"

int main ()
{
   float r [] = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
   float32x4x2_t d;
   d = vld2q_f32 (r);
   vst2q_f32 (r, d);
   return 0;
}

using: arm-linux-androideabi-gcc test.c -mfloat-abi=softfp -mfpu=neon -g -O1

I get:
test.c: In function 'main':
test.c:4:5: internal compiler error: in immed_double_const, at emit-rtl.c:550
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

However, if I comment out vst2q_f32 (r, d);, the problem goes away. Also by not
using -g or -O1.

$ arm-linux-androideabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-androideabi-gcc
COLLECT_LTO_WRAPPER=/Users/havard.graff/Code/android-ndk-r7/toolchains/arm-linux-androideabi-4.6.2/prebuilt/darwin-x86/libexec/gcc/arm-linux-androideabi/4.6.2/lto-wrapper
Target: arm-linux-androideabi
Configured with:
/Users/havard.graff/Code/selfbuilt_android_toolchain/build/../gcc/gcc-4.6.2/configure
--prefix=/Users/havard.graff/Code/android-ndk-r7/toolchains/arm-linux-androideabi-4.6.2/prebuilt/darwin-x86
--target=arm-linux-androideabi --host=i686-apple-darwin
--build=i686-apple-darwin --with-gnu-as --with-gnu-ld
--enable-languages=c,c++,objc
--with-gmp=/tmp/ndk-havard.graff/build/toolchain/temp-install
--with-mpfr=/tmp/ndk-havard.graff/build/toolchain/temp-install
--with-mpc=/tmp/ndk-havard.graff/build/toolchain/temp-install --disable-libssp
--enable-threads --disable-nls --disable-libmudflap --disable-libgomp
--disable-sjlj-exceptions --disable-shared --disable-tls --with-float=soft
--with-fpu=vfp --with-arch=armv5te --enable-target-optspace
--disable-hosted-libstdcxx --enable-cxx-flags='-fexceptions -frtti'
--enable-initfini-array --disable-nls
--prefix=/Users/havard.graff/Code/android-ndk-r7/toolchains/arm-linux-androideabi-4.6.2/prebuilt/darwin-x86
--with-sysroot=/Users/havard.graff/Code/android-ndk-r7/toolchains/arm-linux-androideabi-4.6.2/prebuilt/darwin-x86/sysroot
--with-binutils-version=2.22.51 --with-mpfr-version=2.4.1
--with-gmp-version=4.2.4 --with-gcc-version=4.6.2 --with-gdb-version=6.6
--with-arch=armv5te --program-transform-name='s,^,arm-linux-androideabi-,'
Thread model: posix
gcc version 4.6.2 (GCC)


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

* [Bug target/48183] ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon -g -O1)
  2011-03-18 15:54 [Bug c/48183] New: ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon -g -O1) juha.kallioinen at nokia dot com
  2011-04-04 20:54 ` [Bug target/48183] " ramana at gcc dot gnu.org
  2011-12-01 19:58 ` havard.graff at gmail dot com
@ 2014-07-09  8:35 ` ktkachov at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2014-07-09  8:35 UTC (permalink / raw)
  To: gcc-bugs

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ktkachov at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #2 from ktkachov at gcc dot gnu.org ---
>From what I can see in the Linaro report this has been fixed.
I can't reproduce it on 4.10 trunk or 4.8.3


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

end of thread, other threads:[~2014-07-09  8:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-18 15:54 [Bug c/48183] New: ICE [arm] immed_double_const at emit-rtl.c (-mfpu=neon -g -O1) juha.kallioinen at nokia dot com
2011-04-04 20:54 ` [Bug target/48183] " ramana at gcc dot gnu.org
2011-12-01 19:58 ` havard.graff at gmail dot com
2014-07-09  8:35 ` ktkachov 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).