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
* [Bug target/54121] ICE at extract_insn, at recog.c:2123 sparc64
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 ` 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
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mikpe at it dot uu.se @ 2012-07-30 7:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2012-07-30 07:28:19 UTC ---
I can reproduce the ICE with gcc 4.8-20120729 and 4.7-20120728, but not with
4.6-20120727, on sparc64-linux.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate
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 ` ebotcazou at gcc dot gnu.org
2012-12-11 9:48 ` ebotcazou at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-11 9:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-12-11
CC| |ebotcazou at gcc dot
| |gnu.org
Target Milestone|--- |4.7.3
Summary|ICE at extract_insn, at |[4.7/4.8 regression] ICE at
|recog.c:2123 sparc64 |extract_insn, at
| |recog.c:2123 with
| |-fprofile-generate
Ever Confirmed|0 |1
--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-11 09:46:34 UTC ---
Yup.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate
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
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-11 9:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |ebotcazou at gcc dot
|gnu.org |gnu.org
--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-11 09:47:45 UTC ---
Investigating.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate
2012-07-29 17:53 [Bug gcov-profile/54121] New: ICE at extract_insn, at recog.c:2123 sparc64 jengelh at medozas dot de
` (2 preceding siblings ...)
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
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-11 11:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-11 11:19:11 UTC ---
Jakub, I presume it's an oversight that the combined tldo_add + store patterns
have a "=r" constraint on the source operand:
(define_insn "*tldo_stb_sp32"
[(set (mem:QI (plus:SI (unspec:SI [(match_operand:SI 2 "register_operand"
"r")
(match_operand 3 "tld_symbolic_operand" "")]
UNSPEC_TLSLDO)
(match_operand:SI 1 "register_operand" "r")))
(match_operand:QI 0 "register_operand" "=r"))]
"TARGET_TLS && TARGET_ARCH32"
"stb\t%0, [%1 + %2], %%tldo_add(%3)"
[(set_attr "type" "store")])
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate
2012-07-29 17:53 [Bug gcov-profile/54121] New: ICE at extract_insn, at recog.c:2123 sparc64 jengelh at medozas dot de
` (3 preceding siblings ...)
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
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-11 11:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-11 11:51:29 UTC ---
(In reply to comment #4)
> Jakub, I presume it's an oversight that the combined tldo_add + store patterns
> have a "=r" constraint on the source operand:
>
> (define_insn "*tldo_stb_sp32"
> [(set (mem:QI (plus:SI (unspec:SI [(match_operand:SI 2 "register_operand"
> "r")
> (match_operand 3 "tld_symbolic_operand" "")]
> UNSPEC_TLSLDO)
> (match_operand:SI 1 "register_operand" "r")))
> (match_operand:QI 0 "register_operand" "=r"))]
> "TARGET_TLS && TARGET_ARCH32"
> "stb\t%0, [%1 + %2], %%tldo_add(%3)"
> [(set_attr "type" "store")])
Obviously. Please remove the = from all the tldo_st*_sp* patterns. I bet I've
created them from the tldo_ld* patterns initially by swapping the operands.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate
2012-07-29 17:53 [Bug gcov-profile/54121] New: ICE at extract_insn, at recog.c:2123 sparc64 jengelh at medozas dot de
` (4 preceding siblings ...)
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
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-11 18:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-11 18:42:37 UTC ---
Author: ebotcazou
Date: Tue Dec 11 18:42:31 2012
New Revision: 194410
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194410
Log:
PR target/54121
* config/sparc/sparc.md (tldo_stb_sp32): Fix pasto.
(tldo_stb_sp64): Likewise.
(tldo_sth_sp32): Likewise.
(tldo_sth_sp64): Likewise.
(tldo_stw_sp32): Likewise.
(tldo_stw_sp64): Likewise.
(tldo_stx_sp64): Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/pr54121.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sparc/sparc.md
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate
2012-07-29 17:53 [Bug gcov-profile/54121] New: ICE at extract_insn, at recog.c:2123 sparc64 jengelh at medozas dot de
` (5 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-11 18:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-11 18:44:57 UTC ---
Author: ebotcazou
Date: Tue Dec 11 18:44:48 2012
New Revision: 194411
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194411
Log:
PR target/54121
* config/sparc/sparc.md (tldo_stb_sp32): Fix pasto.
(tldo_stb_sp64): Likewise.
(tldo_sth_sp32): Likewise.
(tldo_sth_sp64): Likewise.
(tldo_stw_sp32): Likewise.
(tldo_stw_sp64): Likewise.
(tldo_stx_sp64): Likewise.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr54121.c
- copied unchanged from r194410, trunk/gcc/testsuite/gcc.dg/pr54121.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/config/sparc/sparc.md
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate
2012-07-29 17:53 [Bug gcov-profile/54121] New: ICE at extract_insn, at recog.c:2123 sparc64 jengelh at medozas dot de
` (6 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-11 18:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-11 18:46:30 UTC ---
Author: ebotcazou
Date: Tue Dec 11 18:46:20 2012
New Revision: 194413
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194413
Log:
PR target/54121
* config/sparc/sparc.md (tldo_stb_sp32): Fix pasto.
(tldo_stb_sp64): Likewise.
(tldo_sth_sp32): Likewise.
(tldo_sth_sp64): Likewise.
(tldo_stw_sp32): Likewise.
(tldo_stw_sp64): Likewise.
(tldo_stx_sp64): Likewise.
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/config/sparc/sparc.md
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/54121] [4.7/4.8 regression] ICE at extract_insn, at recog.c:2123 with -fprofile-generate
2012-07-29 17:53 [Bug gcov-profile/54121] New: ICE at extract_insn, at recog.c:2123 sparc64 jengelh at medozas dot de
` (7 preceding siblings ...)
2012-12-11 18:46 ` ebotcazou at gcc dot gnu.org
@ 2012-12-11 18:48 ` ebotcazou at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-11 18:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54121
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-11 18:47:49 UTC ---
Thanks for reporting the problem.
^ 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).