public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/54121] New: ICE at extract_insn, at recog.c:2123 sparc64
@ 2012-07-29 17:53 jengelh at medozas dot de
  2012-07-30  7:28 ` [Bug target/54121] " mikpe at it dot uu.se
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jengelh at medozas dot de @ 2012-07-29 17:53 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54121
           Summary: ICE at extract_insn, at recog.c:2123 sparc64
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jengelh@medozas.de


Created attachment 27889
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27889
preprocessed input

$ gcc -std=gnu99 -O1 -fprofile-generate=/tmp/x -c lz_decoder.i -fPIC -o lzd.o
lz/lz_decoder.c: In function 'decode_buffer':
lz/lz_decoder.c:124:1: error: unrecognizable insn:
(insn 267 85 233 7 (set (symbol_ref:DI ("__gcov5.decode_buffer") [flags 0x2]
<var_decl 0xfffff80100dc1360 __gcov5.decode_buffer>)
        (reg:DI 1 %g1)) -1
     (nil))
lz/lz_decoder.c:124:1: internal compiler error: in extract_insn, at
recog.c:2123
Please submit a full bug report,
with preprocessed source if appropriate.


The problem goes away if either of these is done:
- using no optimization
- leaving out -fPIC
- leaving out -fprofile-generate


$ gcc -v
[Configured to output ELF64 objects by default]
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/sparc64-suse-linux/4.7/lto-wrapper
Target: sparc64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java --enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp --disable-libssp
--disable-libitm --disable-plugin --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap
--with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --enable-linker-build-id
--program-suffix=-4.7 --enable-linux-futex --without-system-libunwind
--with-cpu=ultrasparc --with-long-double-128 --build=sparc64-suse-linux
Thread model: posix
gcc version 4.7.1 20120723 [gcc-4_7-branch revision 189773] (SUSE Linux) 
with binutils-2.22


recog.c:2123 is the following:
/* recog.c */
    default:
    normal_insn:
      /* Ordinary insn: recognize it, get the operands via insn_extract
         and get the constraints.  */

      icode = recog_memoized (insn);
      if (icode < 0)
2123#   fatal_insn_not_found (insn);

      recog_data.n_operands = noperands = insn_data[icode].n_operands;
      recog_data.n_alternatives = insn_data[icode].n_alternatives;
      recog_data.n_dups = insn_data[icode].n_dups;


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

end of thread, other threads:[~2012-12-11 18:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-29 17:53 [Bug gcov-profile/54121] New: ICE at extract_insn, at recog.c:2123 sparc64 jengelh at medozas dot de
2012-07-30  7:28 ` [Bug target/54121] " mikpe at it dot uu.se
2012-12-11  9:46 ` [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate ebotcazou at gcc dot gnu.org
2012-12-11  9:48 ` ebotcazou at gcc dot gnu.org
2012-12-11 11:19 ` ebotcazou at gcc dot gnu.org
2012-12-11 11:51 ` jakub at gcc dot gnu.org
2012-12-11 18:43 ` ebotcazou at gcc dot gnu.org
2012-12-11 18:45 ` ebotcazou at gcc dot gnu.org
2012-12-11 18:46 ` ebotcazou at gcc dot gnu.org
2012-12-11 18:48 ` ebotcazou 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).