public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/48344] New: powerpc ICE error: unrecognizable insn
@ 2011-03-29 22:37 raj.khem at gmail dot com
  2011-04-01 20:43 ` [Bug target/48344] " raj.khem at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: raj.khem at gmail dot com @ 2011-03-29 22:37 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: powerpc ICE error: unrecognizable insn
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: raj.khem@gmail.com


when compiling following testcase

void foo ()
{
    int N = 2;
    int slots[N];

}

with -fstack-limit-register=r2 for ppc32 gcc ICEs


$ powerpc-linux-uclibc-gcc-4.6.0 -fstack-limit-register=r2 a.c
a.c: In function ‘foo’:
a.c:6:1: error: unrecognizable insn:
(insn 35 34 36 3 (set (reg:SI 144)
        (reg 2 2)) a.c:4 -1
     (nil))
a.c:6:1: internal compiler error: in extract_insn, at recog.c:2109
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Here is how I configured gcc

Using built-in specs.
COLLECT_GCC=powerpc-linux-uclibc-gcc-4.6.0
COLLECT_LTO_WRAPPER=/home/kraj/work/cross/powerpc-linux-uclibc/tools/libexec/gcc/powerpc-linux-uclibc/4.6.0/lto-wrapper
Target: powerpc-linux-uclibc
Configured with:
/home/kraj/work/cross/powerpc-linux-uclibc/../../gcc.git/configure
--target=powerpc-linux-uclibc
--prefix=/home/kraj/work/cross/powerpc-linux-uclibc/tools
--with-sysroot=/home/kraj/work/cross/powerpc-linux-uclibc/sysroot
--enable-__cxa_atexit --disable-libssp --disable-libgomp --disable-libmudflap
--enable-languages=c,c++ --disable-multilib


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

* [Bug target/48344] powerpc ICE error: unrecognizable insn
  2011-03-29 22:37 [Bug target/48344] New: powerpc ICE error: unrecognizable insn raj.khem at gmail dot com
@ 2011-04-01 20:43 ` raj.khem at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: raj.khem at gmail dot com @ 2011-04-01 20:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Khem Raj <raj.khem at gmail dot com> 2011-04-01 20:43:26 UTC ---
I could track it down to commit 148869 on trunk 

Step 1 of VSX changes: Powerpc infrstructure changes

ChangeLog goes like this

2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
        Pat Haugen  <pthaugen@us.ibm.com>
        Revital Eres  <eres@il.ibm.com>

    * config.in (HAVE_AS_POPCNTD): Add default definition.
    (HAVE_AS_LWSYNC): Ditto.

    * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
    release number.
    (gcc_cv_as_powerpc_cmpb): Ditto.
    (gcc_cv_as_powerpc_dfp): Ditto.
    (gcc_cv_as_powerpc_vsx): Ditto.
    (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
    supporting the popcntd/lwsync instructions.
    (gcc_cv_as_powerpc_lwsync): Ditto.
    * configure: Regenerate.

    * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
    -mcpu=native and -mcpu=power7.
    * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.

...


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

end of thread, other threads:[~2011-04-01 20:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-29 22:37 [Bug target/48344] New: powerpc ICE error: unrecognizable insn raj.khem at gmail dot com
2011-04-01 20:43 ` [Bug target/48344] " raj.khem at gmail 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).