public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26765]  New: ICE in in extract_insn, at recog.c:2036
@ 2006-03-20  8:31 raj dot khem at gmail dot com
  2006-03-20 17:30 ` [Bug target/26765] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: raj dot khem at gmail dot com @ 2006-03-20  8:31 UTC (permalink / raw)
  To: gcc-bugs

GCC trunk gets this ICE when building glibc. The ICE happens on gcc 4.1 too.
This happens when -O2 is turned on. Here is a reduced testcase to reproduce the
problem.

example.c
==================
__thread int *a = 0;

void foo (void)
{
  extern int *b;
  b = (int *) ((*a));
}


how to reproduce 

mips-elf-gcc -O2 -c example.c


example.c: In function 'foo':
example.c:7: error: unrecognizable insn:
(insn 14 13 15 3 (set (reg/f:SI 193)
        (mem/c/i:SI (lo_sum:SI (reg:SI 195)
                (const:SI (unspec:SI [
                            (symbol_ref:SI ("a") [flags 0x22] <var_decl
0xb7c4a840 a>)
                        ] 114))) [2 a+0 S4 A32])) -1 (nil)
    (nil))
example.c:7: internal compiler error: in extract_insn, at recog.c:2036
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE in in extract_insn, at recog.c:2036
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: raj dot khem at gmail dot com
 GCC build triplet: i386-redhat-linux
  GCC host triplet: i386-redhat-linux
GCC target triplet: mips-unknown-elf


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


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

* [Bug target/26765] ICE in in extract_insn, at recog.c:2036
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
@ 2006-03-20 17:30 ` pinskia at gcc dot gnu dot org
  2006-03-20 17:56 ` [Bug target/26765] ICE in in extract_insn with __thread and optimization pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-20 17:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-20 17:30 -------
First this is a bug but glibc does not support mips-elf as a target though, it
does support mips-linux-gnu though.


-- 


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


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

* [Bug target/26765] ICE in in extract_insn with __thread and optimization
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
  2006-03-20 17:30 ` [Bug target/26765] " pinskia at gcc dot gnu dot org
@ 2006-03-20 17:56 ` pinskia at gcc dot gnu dot org
  2006-03-21  1:20 ` raj dot khem at gmail dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-20 17:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-03-20 17:56 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|i386-redhat-linux           |
   GCC host triplet|i386-redhat-linux           |
 GCC target triplet|mips-unknown-elf            |mips-*-elf
   Last reconfirmed|0000-00-00 00:00:00         |2006-03-20 17:56:56
               date|                            |
            Summary|ICE in in extract_insn, at  |ICE in in extract_insn with
                   |recog.c:2036                |__thread and optimization


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


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

* [Bug target/26765] ICE in in extract_insn with __thread and optimization
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
  2006-03-20 17:30 ` [Bug target/26765] " pinskia at gcc dot gnu dot org
  2006-03-20 17:56 ` [Bug target/26765] ICE in in extract_insn with __thread and optimization pinskia at gcc dot gnu dot org
@ 2006-03-21  1:20 ` raj dot khem at gmail dot com
  2006-04-10  7:38 ` raj dot khem at gmail dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: raj dot khem at gmail dot com @ 2006-03-21  1:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from raj dot khem at gmail dot com  2006-03-21 01:20 -------
(In reply to comment #1)
> First this is a bug but glibc does not support mips-elf as a target though, it
> does support mips-linux-gnu though.
> 

True. I found it on mips-linux-gnu but because I verified the reduced testcase
on baremetal (mips-elf) thats why the target.


-- 


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


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

* [Bug target/26765] ICE in in extract_insn with __thread and optimization
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
                   ` (2 preceding siblings ...)
  2006-03-21  1:20 ` raj dot khem at gmail dot com
@ 2006-04-10  7:38 ` raj dot khem at gmail dot com
  2006-05-04 20:07 ` kazu at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: raj dot khem at gmail dot com @ 2006-04-10  7:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from raj dot khem at gmail dot com  2006-04-10 07:38 -------
I am unable to compile glibc 2.3.6 with GCC 4.1 on all mips-linux architecture
because of this ICE.


-- 

raj dot khem at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |blocker


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


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

* [Bug target/26765] ICE in in extract_insn with __thread and optimization
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
                   ` (3 preceding siblings ...)
  2006-04-10  7:38 ` raj dot khem at gmail dot com
@ 2006-05-04 20:07 ` kazu at gcc dot gnu dot org
  2006-05-04 20:13 ` kazu at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-04 20:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

kazu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |kazu at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug target/26765] ICE in in extract_insn with __thread and optimization
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
                   ` (4 preceding siblings ...)
  2006-05-04 20:07 ` kazu at gcc dot gnu dot org
@ 2006-05-04 20:13 ` kazu at gcc dot gnu dot org
  2006-05-04 20:15 ` kazu at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-04 20:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kazu at gcc dot gnu dot org  2006-05-04 20:13 -------
Subject: Bug 26765

Author: kazu
Date: Thu May  4 20:13:37 2006
New Revision: 113536

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113536
Log:
gcc/
        PR target/26765
        * config/mips/mips.c (mips_symbolic_address_p): Return true
        for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
        SYMBOL_GOTTPREL, and SYMBOL_TLS.

gcc/testsuite/
        PR target/26765
        * gcc.target/mips/pr26765.c: New.

Added:
    trunk/gcc/testsuite/gcc.target/mips/pr26765.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/mips/mips.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/26765] ICE in in extract_insn with __thread and optimization
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
                   ` (5 preceding siblings ...)
  2006-05-04 20:13 ` kazu at gcc dot gnu dot org
@ 2006-05-04 20:15 ` kazu at gcc dot gnu dot org
  2006-05-04 20:18 ` kazu at gcc dot gnu dot org
  2006-05-04 20:21 ` kazu at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-04 20:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kazu at gcc dot gnu dot org  2006-05-04 20:15 -------
Subject: Bug 26765

Author: kazu
Date: Thu May  4 20:14:58 2006
New Revision: 113537

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113537
Log:
gcc/
        PR target/26765
        * config/mips/mips.c (mips_symbolic_address_p): Return true
        for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
        SYMBOL_GOTTPREL, and SYMBOL_TLS.

gcc/testsuite/
        PR target/26765
        * gcc.target/mips/pr26765.c: New.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.target/mips/pr26765.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/config/mips/mips.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/26765] ICE in in extract_insn with __thread and optimization
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
                   ` (6 preceding siblings ...)
  2006-05-04 20:15 ` kazu at gcc dot gnu dot org
@ 2006-05-04 20:18 ` kazu at gcc dot gnu dot org
  2006-05-04 20:21 ` kazu at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-04 20:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from kazu at gcc dot gnu dot org  2006-05-04 20:18 -------
Subject: Bug 26765

Author: kazu
Date: Thu May  4 20:18:24 2006
New Revision: 113538

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113538
Log:
gcc/
        PR target/26765
        * config/mips/mips.c (mips_symbolic_address_p): Return true
        for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
        SYMBOL_GOTTPREL, and SYMBOL_TLS.

gcc/testsuite/
        PR target/26765
        * gcc.target/mips/pr26765.c: New.

Added:
    branches/csl/sourcerygxx-4_1/gcc/testsuite/gcc.target/mips/pr26765.c
Modified:
    branches/csl/sourcerygxx-4_1/ChangeLog.csl
    branches/csl/sourcerygxx-4_1/gcc/config/mips/mips.c


-- 


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


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

* [Bug target/26765] ICE in in extract_insn with __thread and optimization
  2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
                   ` (7 preceding siblings ...)
  2006-05-04 20:18 ` kazu at gcc dot gnu dot org
@ 2006-05-04 20:21 ` kazu at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-04 20:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from kazu at gcc dot gnu dot org  2006-05-04 20:21 -------
Just checked in a patch.


-- 

kazu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.1


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


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

end of thread, other threads:[~2006-05-04 20:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-20  8:31 [Bug c/26765] New: ICE in in extract_insn, at recog.c:2036 raj dot khem at gmail dot com
2006-03-20 17:30 ` [Bug target/26765] " pinskia at gcc dot gnu dot org
2006-03-20 17:56 ` [Bug target/26765] ICE in in extract_insn with __thread and optimization pinskia at gcc dot gnu dot org
2006-03-21  1:20 ` raj dot khem at gmail dot com
2006-04-10  7:38 ` raj dot khem at gmail dot com
2006-05-04 20:07 ` kazu at gcc dot gnu dot org
2006-05-04 20:13 ` kazu at gcc dot gnu dot org
2006-05-04 20:15 ` kazu at gcc dot gnu dot org
2006-05-04 20:18 ` kazu at gcc dot gnu dot org
2006-05-04 20:21 ` kazu at gcc dot gnu dot 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).