public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56940] New: internal compiler error: unrecognizable insn:
@ 2013-04-12 20:20 gcc.hall at gmail dot com
  2013-04-12 21:22 ` [Bug target/56940] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gcc.hall at gmail dot com @ 2013-04-12 20:20 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56940
           Summary: internal compiler error: unrecognizable insn:
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gcc.hall@gmail.com


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

I know this is an old version of GCC, but it is the one distributed with the
current Debian (well, raspbian).

Version
-------

pi@raspberrypi ~ $ gcc -v      
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-14+rpi1'
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv6
--with-fpu=vfp --with-float=hard --enable-checking=release
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-14+rpi1) 

Error
-----

gcc -pipe -std=gnu99 -funsigned-char -DFILE_TABS=4 -DSCREEN_TABS=2 -c g.c
-DEDITOR=0 -DLATIN8 -O3 -Wall -Wextra -Wunused -Wunreachable-code
-Wstrict-aliasing=3 -Wredundant-decls -Winline -Wundef -Wwrite-strings
-Wcast-qual -Wmissing-noreturn -Winit-self -Wformat=2 -Woverlength-strings
-Wlogical-op -Wshadow -Wstrict-prototypes -Wstrict-overflow=1
-Wmissing-include-dirs -Wold-style-definition -Wpointer-arith
-Wdisabled-optimization -Wredundant-decls -Wmissing-prototypes
-Wmissing-declarations -Wunused-parameter -Wno-char-subscripts -Wuninitialized
-Wunsafe-loop-optimizations -Waggregate-return -Wmissing-format-attribute
-Wsign-conversion -Wvariadic-macros -Wnormalized=nfc -Wnested-externs
-Wunused-macros -Wconversion -ffast-math -fno-reciprocal-math
-fno-associative-math -fwrapv -mfloat-abi=hard -mfpu=vfp -fwhole-program
-fomit-frame-pointer -fmerge-all-constants -fno-ident -fno-unwind-tables
-fno-asynchronous-unwind-tables -lm -lcurses -ldl -o /dev/null
g.c: In function 'print_val':
g.c:10360:1: error: unrecognizable insn:
(insn 1086 1085 1087 72 (set (subreg:SI (reg/v:DI 252 [ ival ]) 0)
        (sign_extend:SI (mem/s/c:QI (plus:SI (reg/f:SI 323)
                    (const_int 1672 [0x688])) [0 MEM[(const struct VALUE
*)&locals + 1248B].v.o+0 S1 A64]))) g.c:6373 -1
     (nil))
g.c:10360:1: internal compiler error: in extract_insn, at recog.c:2109
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccDnsSF8.out file, please attach this to
your bugreport.


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

* [Bug target/56940] internal compiler error: unrecognizable insn:
  2013-04-12 20:20 [Bug c/56940] New: internal compiler error: unrecognizable insn: gcc.hall at gmail dot com
@ 2013-04-12 21:22 ` pinskia at gcc dot gnu.org
  2013-04-13  7:58 ` gcc.hall at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-04-12 21:22 UTC (permalink / raw)
  To: gcc-bugs


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |arm-linux-gnueabihf
          Component|c                           |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-12 21:22:05 UTC ---
> I know this is an old version of GCC, but it is the one distributed with the
> current Debian (well, raspbian).

You should report this failure to where you got the binary from really.


Can you try 4.6.4 which was released today?  Also try 4.7.3 too.
Note 4.6.x is no longer supported and there is no future updates to the 4.6
branch.


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

* [Bug target/56940] internal compiler error: unrecognizable insn:
  2013-04-12 20:20 [Bug c/56940] New: internal compiler error: unrecognizable insn: gcc.hall at gmail dot com
  2013-04-12 21:22 ` [Bug target/56940] " pinskia at gcc dot gnu.org
@ 2013-04-13  7:58 ` gcc.hall at gmail dot com
  2013-04-13 10:55 ` mikpe at it dot uu.se
  2013-04-13 17:33 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: gcc.hall at gmail dot com @ 2013-04-13  7:58 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Jeremy <gcc.hall at gmail dot com> 2013-04-13 07:58:24 UTC ---

> You should report this failure to where you got the binary from really.

Yes, sorry.  They should be distributing a supported version too.

I suspect this is an ARM issue.
The problem does not occur with GCC 4.3.2, 4.7.0 (x86) and 4.8.0 (x64)

I was unable to build GCC on the Raspberry Pi so I cant (yet) test 4.6.4.

Note the problem happens with -O3 and not -O2.


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

* [Bug target/56940] internal compiler error: unrecognizable insn:
  2013-04-12 20:20 [Bug c/56940] New: internal compiler error: unrecognizable insn: gcc.hall at gmail dot com
  2013-04-12 21:22 ` [Bug target/56940] " pinskia at gcc dot gnu.org
  2013-04-13  7:58 ` gcc.hall at gmail dot com
@ 2013-04-13 10:55 ` mikpe at it dot uu.se
  2013-04-13 17:33 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mikpe at it dot uu.se @ 2013-04-13 10:55 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Mikael Pettersson <mikpe at it dot uu.se> 2013-04-13 10:55:21 UTC ---
I can reproduce the ICE with gcc 4.6.4, but not with 4.7.3 or 4.8.0, all built
as crosses to arm-linux-gnueabi from unmodified FSF releases.


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

* [Bug target/56940] internal compiler error: unrecognizable insn:
  2013-04-12 20:20 [Bug c/56940] New: internal compiler error: unrecognizable insn: gcc.hall at gmail dot com
                   ` (2 preceding siblings ...)
  2013-04-13 10:55 ` mikpe at it dot uu.se
@ 2013-04-13 17:33 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-04-13 17:33 UTC (permalink / raw)
  To: gcc-bugs


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.3

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-13 17:33:22 UTC ---
So fixed for 4.7.3.


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

end of thread, other threads:[~2013-04-13 17:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-12 20:20 [Bug c/56940] New: internal compiler error: unrecognizable insn: gcc.hall at gmail dot com
2013-04-12 21:22 ` [Bug target/56940] " pinskia at gcc dot gnu.org
2013-04-13  7:58 ` gcc.hall at gmail dot com
2013-04-13 10:55 ` mikpe at it dot uu.se
2013-04-13 17:33 ` pinskia 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).