public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
@ 2010-10-31 16:32 zsojka at seznam dot cz
2013-04-28 8:03 ` [Bug target/46250] " pinskia at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-31 16:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
Summary: ICE: in extract_insn, at recog.c:2110 (unrecognizable
insn) with -fPIC -mcmodel=large and __thread variable
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
----- testcase.c -----
__thread int i;
void foo (void)
{
i = 0;
}
----------------------
Compiler output:
$ gcc -fPIC -mcmodel=large testcase.c
testcase.c: In function 'foo':
testcase.c:6:1: error: unrecognizable insn:
(call_insn/u 5 4 6 3 (parallel [
(set (reg:DI 0 ax)
(call:DI (mem:QI (symbol_ref:DI ("__tls_get_addr")) [0 S1 A8])
(const_int 0 [0])))
(unspec:DI [
(symbol_ref:DI ("i") [flags 0x10] <var_decl 0x7f2bb3d6a000
i>)
] UNSPEC_TLS_GD)
]) testcase.c:5 -1
(expr_list:REG_EH_REGION (const_int -2147483648 [0xffffffff80000000])
(nil))
(nil))
testcase.c:6:1: internal compiler error: in extract_insn, at recog.c:2110
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Compiler output (4.2.4):
$ gcc-4.2.4 -fPIC -mcmodel=large testcase.c
testcase.c:1: sorry, unimplemented: code model large not supported in PIC mode
testcase.c:1: error: code model 'large' not supported in the 64 bit mode
Tested revisions:
r166105 - crash
4.5.1, 4.4.5, 4.3.5 - crash
4.2.4 - unimplemented
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
@ 2013-04-28 8:03 ` pinskia at gcc dot gnu.org
2013-04-28 8:03 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-04-28 8:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |drepper.fsp at gmail dot
| |com
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-28 08:03:20 UTC ---
*** Bug 50963 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
2013-04-28 8:03 ` [Bug target/46250] " pinskia at gcc dot gnu.org
@ 2013-04-28 8:03 ` pinskia at gcc dot gnu.org
2013-04-28 8:04 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-04-28 8:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-28 08:03:09 UTC ---
*** Bug 57099 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
2013-04-28 8:03 ` [Bug target/46250] " pinskia at gcc dot gnu.org
2013-04-28 8:03 ` pinskia at gcc dot gnu.org
@ 2013-04-28 8:04 ` pinskia at gcc dot gnu.org
2013-04-28 10:12 ` ubizjak at gmail dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-04-28 8:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-04-28
Ever Confirmed|0 |1
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-28 08:04:05 UTC ---
Confirmed based on the dups.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
` (2 preceding siblings ...)
2013-04-28 8:04 ` pinskia at gcc dot gnu.org
@ 2013-04-28 10:12 ` ubizjak at gmail dot com
2013-04-29 17:09 ` hjl.tools at gmail dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2013-04-28 10:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com,
| |ubizjak at gmail dot com
--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2013-04-28 10:12:49 UTC ---
(In reply to comment #3)
> Confirmed based on the dups.
This is ABI limitaton, we can't use indirect call that is necessary to reach
__tls_get_addr in the large memory space here. IIRC, -mtls-dialect=gnu2 should
be used with -mcmodel=large to solve this problem, but the former option is
somehow untested.
We shouldn't ice here, though.
I am adding HJ for his opinion on ABI issue.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
` (3 preceding siblings ...)
2013-04-28 10:12 ` ubizjak at gmail dot com
@ 2013-04-29 17:09 ` hjl.tools at gmail dot com
2021-04-29 16:43 ` zsojka at seznam dot cz
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2013-04-29 17:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2013-04-29 17:09:22 UTC ---
TLS ABI only covers the small model. There is no demand to
extend TLS ABI to support medium/large models.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
` (4 preceding siblings ...)
2013-04-29 17:09 ` hjl.tools at gmail dot com
@ 2021-04-29 16:43 ` zsojka at seznam dot cz
2021-08-02 22:54 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2021-04-29 16:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
Zdenek Sojka <zsojka at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |5.5.0, 6.5.0, 7.5.0
--- Comment #7 from Zdenek Sojka <zsojka at seznam dot cz> ---
No longer fails for me since at least 5.5.0.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
` (5 preceding siblings ...)
2021-04-29 16:43 ` zsojka at seznam dot cz
@ 2021-08-02 22:54 ` pinskia at gcc dot gnu.org
2021-08-02 22:59 ` pinskia at gcc dot gnu.org
2021-08-02 22:59 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-02 22:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gerhard.steinmetz.fortran@t
| |-online.de
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 79497 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
` (6 preceding siblings ...)
2021-08-02 22:54 ` pinskia at gcc dot gnu.org
@ 2021-08-02 22:59 ` pinskia at gcc dot gnu.org
2021-08-02 22:59 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-02 22:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.9.0
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-fPIC -mcmodel=large works now. so closing
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/46250] ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
` (7 preceding siblings ...)
2021-08-02 22:59 ` pinskia at gcc dot gnu.org
@ 2021-08-02 22:59 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-02 22:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |DUPLICATE
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Sorry a dup of bug 58067.
*** This bug has been marked as a duplicate of bug 58067 ***
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-08-02 22:59 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-31 16:32 [Bug target/46250] New: ICE: in extract_insn, at recog.c:2110 (unrecognizable insn) with -fPIC -mcmodel=large and __thread variable zsojka at seznam dot cz
2013-04-28 8:03 ` [Bug target/46250] " pinskia at gcc dot gnu.org
2013-04-28 8:03 ` pinskia at gcc dot gnu.org
2013-04-28 8:04 ` pinskia at gcc dot gnu.org
2013-04-28 10:12 ` ubizjak at gmail dot com
2013-04-29 17:09 ` hjl.tools at gmail dot com
2021-04-29 16:43 ` zsojka at seznam dot cz
2021-08-02 22:54 ` pinskia at gcc dot gnu.org
2021-08-02 22:59 ` pinskia at gcc dot gnu.org
2021-08-02 22:59 ` 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).