public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109
@ 2012-04-03 20:09 mpthompson at gmail dot com
  2012-04-04 15:30 ` [Bug c/52855] " mpthompson at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mpthompson at gmail dot com @ 2012-04-03 20:09 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52855
           Summary: ARM: Internal compiler error: in extract_insn, at
                    recog.c:2109
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mpthompson@gmail.com


Created attachment 27080
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27080
Preprocessed *.i* file that triggers the bug.  See command line in description
to trigger bug.

Using GCC 4.6.3 on Debian armhf to create ARMv6+VFP binaries for Raspberry Pi
computer.  The compiler differs from the standard Debian Wheezy armhf as the
configured with the options: --with-arch=armv6 --with-float=hard --with-fpu=vfp

The file that triggers the error mg.c from a build of the Perl package.  Test
files and information to reproduce the error given below.

##
## GCC Version and Configurations Options 
##
## Note: --with-arch=armv6 --with-float=hard --with-fpu=vfp
##

$ 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-1'
--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-plugin
--enable-objc-gc --disable-sjlj-exceptions --with-arch=armv6 --with-float=hard
--with-fpu=vfp --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-1)

##
## System Type and Information
##

Debian Wheezy armhf (hard float) install.

$ uname -a
Linux armor.home.lan 2.6.35.3-mx5 #1 PREEMPT Wed Mar 28 04:03:29 PDT 2012
armv7l GNU/Linux

$ cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 999.42
Features        : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc08
CPU revision    : 5
Hardware        : Freescale MX53 LOCO Board
Revision        : 53321
Serial          : 0000000000000000

##
## Command Line To Reproduce Bug
##

gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -D_FORTIFY_SOURCE=2 -g
-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -O2 -g -Wall   -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings -o
cccPDUUP.o cccPDUUP.i

##
## Compiler Error Messages
##

mg.c: In function ‘Perl_magic_get’:
mg.c:1168:1: error: unrecognizable insn:
(insn 1708 1707 1709 69 (set (reg:SI 2 r2)
        (sign_extend:SI (mem/s/j:QI (plus:SI (reg:SI 0 r0)
                    (const_int 1681 [0x691])) [0 my_perl_54(D)->Iutf8cache+0 S1
A8]))) mg.c:967 -1
     (nil))
mg.c:1168: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/ccsQAOCv.out file, please attach this to
your bugreport.
$


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

* [Bug c/52855] ARM: Internal compiler error: in extract_insn, at recog.c:2109
  2012-04-03 20:09 [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109 mpthompson at gmail dot com
@ 2012-04-04 15:30 ` mpthompson at gmail dot com
  2012-04-04 15:34 ` [Bug target/52855] " pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mpthompson at gmail dot com @ 2012-04-04 15:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Mike Thompson <mpthompson at gmail dot com> 2012-04-04 15:29:47 UTC ---
This bug can be reproduced using the standard gcc 4.6.3 packages that is part
of the Debian wheezy armhf port.  The command line to trigger the bug is:

 gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -D_FORTIFY_SOURCE=2 -g
-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -O2 -g -Wall   -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings -marm
-march=armv6 -mfpu=vfp -o cccPDUUP.o cccPDUUP.

The regular Debian wheezy gcc is configured with the following options:

Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-1'
--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-plugin
--enable-objc-gc --disable-sjlj-exceptions --with-arch=armv7-a
--with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb
--enable-checking=release --build=arm-linux-gnueabihf
--host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix


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

* [Bug target/52855] ARM: Internal compiler error: in extract_insn, at recog.c:2109
  2012-04-03 20:09 [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109 mpthompson at gmail dot com
  2012-04-04 15:30 ` [Bug c/52855] " mpthompson at gmail dot com
@ 2012-04-04 15:34 ` pinskia at gcc dot gnu.org
  2012-10-24 13:38 ` mans at mansr dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-04-04 15:34 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target
           Severity|major                       |normal


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

* [Bug target/52855] ARM: Internal compiler error: in extract_insn, at recog.c:2109
  2012-04-03 20:09 [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109 mpthompson at gmail dot com
  2012-04-04 15:30 ` [Bug c/52855] " mpthompson at gmail dot com
  2012-04-04 15:34 ` [Bug target/52855] " pinskia at gcc dot gnu.org
@ 2012-10-24 13:38 ` mans at mansr dot com
  2012-10-27 13:27 ` mikpe at it dot uu.se
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mans at mansr dot com @ 2012-10-24 13:38 UTC (permalink / raw)
  To: gcc-bugs


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

Mans Rullgard <mans at mansr dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mans at mansr dot com

--- Comment #2 from Mans Rullgard <mans at mansr dot com> 2012-10-24 13:38:10 UTC ---
Confirmed with 4.6.3 and -march=armv6 or higher at -O1 and higher, no other
flags needed.  No error with 4.5, 4.7, or 4.8.

The Linaro 4.6 branch does not have the problem either, so whatever they've
added seems to fix it.


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

* [Bug target/52855] ARM: Internal compiler error: in extract_insn, at recog.c:2109
  2012-04-03 20:09 [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109 mpthompson at gmail dot com
                   ` (2 preceding siblings ...)
  2012-10-24 13:38 ` mans at mansr dot com
@ 2012-10-27 13:27 ` mikpe at it dot uu.se
  2012-11-16  9:48 ` stemidts at cisco dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mikpe at it dot uu.se @ 2012-10-27 13:27 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Mikael Pettersson <mikpe at it dot uu.se> 2012-10-27 13:26:47 UTC ---
The ICE is fixed by the patch for PR50099.  See especially
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50099#c6 which shows the same ICE
in Perl as shown here.  Therefore I think this is a dup of PR50099.


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

* [Bug target/52855] ARM: Internal compiler error: in extract_insn, at recog.c:2109
  2012-04-03 20:09 [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109 mpthompson at gmail dot com
                   ` (3 preceding siblings ...)
  2012-10-27 13:27 ` mikpe at it dot uu.se
@ 2012-11-16  9:48 ` stemidts at cisco dot com
  2012-11-28  3:22 ` ramana at gcc dot gnu.org
  2014-02-16 13:17 ` jackie.rosen at hushmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: stemidts at cisco dot com @ 2012-11-16  9:48 UTC (permalink / raw)
  To: gcc-bugs


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

Steinar Midtskogen <stemidts at cisco dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stemidts at cisco dot com

--- Comment #4 from Steinar Midtskogen <stemidts at cisco dot com> 2012-11-16 09:48:36 UTC ---
I've run into the same bug.  The code below reproduces it:

#include <arm_neon.h>

static const __attribute__((aligned(16)))
int16_t c[][2][8] =
{
    { { 0 }, { 0 } }, { { 0 }, { 0 } }, { { 0 }, { 0 } }, { { 0 }, { 0 } },
    { { 0 }, { 0 } }, { { 0 }, { 0 } }, { { 0 }, { 0 } }, { { 0 }, { 0 } }
};


int16x8_t test2(int off)
{
    return vld1q_u8((uint8_t*)c[off][0]);
}

int16x8_t test(int off, uint8_t **c)
{
    static int8_t m[] = { 1, 2, 3 };
    long long cf = m[off];

    return vld1q_u8((uint8_t*)c[cf]);
}

Version: 4.6.3
Options: -mapcs-frame -mfloat-abi=softfp -mfpu=neon -flax-vector-conversions
-O1

Changing "long long cf" into "int cf" eliminates the crash.


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

* [Bug target/52855] ARM: Internal compiler error: in extract_insn, at recog.c:2109
  2012-04-03 20:09 [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109 mpthompson at gmail dot com
                   ` (4 preceding siblings ...)
  2012-11-16  9:48 ` stemidts at cisco dot com
@ 2012-11-28  3:22 ` ramana at gcc dot gnu.org
  2014-02-16 13:17 ` jackie.rosen at hushmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: ramana at gcc dot gnu.org @ 2012-11-28  3:22 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ramana at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #5 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2012-11-28 03:22:18 UTC ---
appears to be a dup of PR50099

*** This bug has been marked as a duplicate of bug 50099 ***


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

* [Bug target/52855] ARM: Internal compiler error: in extract_insn, at recog.c:2109
  2012-04-03 20:09 [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109 mpthompson at gmail dot com
                   ` (5 preceding siblings ...)
  2012-11-28  3:22 ` ramana at gcc dot gnu.org
@ 2014-02-16 13:17 ` jackie.rosen at hushmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 13:17 UTC (permalink / raw)
  To: gcc-bugs

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

Jackie Rosen <jackie.rosen at hushmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackie.rosen at hushmail dot com

--- Comment #6 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.


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

end of thread, other threads:[~2014-02-16 13:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-03 20:09 [Bug c/52855] New: ARM: Internal compiler error: in extract_insn, at recog.c:2109 mpthompson at gmail dot com
2012-04-04 15:30 ` [Bug c/52855] " mpthompson at gmail dot com
2012-04-04 15:34 ` [Bug target/52855] " pinskia at gcc dot gnu.org
2012-10-24 13:38 ` mans at mansr dot com
2012-10-27 13:27 ` mikpe at it dot uu.se
2012-11-16  9:48 ` stemidts at cisco dot com
2012-11-28  3:22 ` ramana at gcc dot gnu.org
2014-02-16 13:17 ` jackie.rosen at hushmail dot com

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).