public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c
@ 2003-07-19  1:06 eager at mvista dot com
  2003-07-19  2:19 ` [Bug optimization/11587] " pinskia at physics dot uc dot edu
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: eager at mvista dot com @ 2003-07-19  1:06 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: SH ICE in reload_cse_simplify_operand, postreload.c
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eager at mvista dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: sh4-hardhat-linux

ICE in reload_cse_simplify_operands, at postreload.c:378

tst.c:22: error: insn does not satisfy its constraints:
(insn 90 89 63 7 (set (reg:SI 65 fr1 [orig:158 <result> ] [158])
        (reg:SI 147 t)) 123 {movsi_ie} (insn_list 89 (nil))
    (nil))
tst.c:22: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:378

tst.c:
int foo1(void);
int foo2();
int foo3();

static int goo()
        {
        int i;

        if (i <= 0) return i;

        if (foo1() > 1)
                {
                i = foo2();
                if (i < 0) return i;
                if (i)
                        {
                        if (foo3()) return 1;
                        return 0;
                        }
                }

        }


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

* [Bug optimization/11587] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
@ 2003-07-19  2:19 ` pinskia at physics dot uc dot edu
  2003-08-23  0:53 ` dhazeghi at yahoo dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-19  2:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |optimization
     Ever Confirmed|                            |1
  GCC build triplet|i686-pc-linux               |*-*-*
   GCC host triplet|i686-pc-linux               |*-*-*
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-19 02:19:07
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-19 02:19 -------
Note you forgot to mention what options you used, -O1 was enough to reproduce this.

I can confirm this on 3.3.1 (20030714) and the mainline (20030718).


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

* [Bug optimization/11587] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
  2003-07-19  2:19 ` [Bug optimization/11587] " pinskia at physics dot uc dot edu
@ 2003-08-23  0:53 ` dhazeghi at yahoo dot com
  2003-09-14 22:31 ` dank at kegel dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23  0:53 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|*-*-*                       |
   GCC host triplet|*-*-*                       |
   Target Milestone|3.4                         |---


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

* [Bug optimization/11587] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
  2003-07-19  2:19 ` [Bug optimization/11587] " pinskia at physics dot uc dot edu
  2003-08-23  0:53 ` dhazeghi at yahoo dot com
@ 2003-09-14 22:31 ` dank at kegel dot com
  2003-09-14 23:21 ` [Bug target/11587] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dank at kegel dot com @ 2003-09-14 22:31 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dank at kegel dot com  2003-09-14 21:16 -------
This did not occur in Hard Hat 2.0's gcc-2.97, nor in dodes' gcc-3.0.2,
so IMHO this is a regression.  I'll submit a patch to add this test to
the testsuite.  Thanks!


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

* [Bug target/11587] [3.3/3.4 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (2 preceding siblings ...)
  2003-09-14 22:31 ` dank at kegel dot com
@ 2003-09-14 23:21 ` pinskia at gcc dot gnu dot org
  2003-09-15 17:30 ` dank at kegel dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-14 23:21 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
          Component|optimization                |target
            Summary|SH ICE in                   |[3.3/3.4 Regression] SH ICE
                   |reload_cse_simplify_operand,|in
                   |postreload.c                |reload_cse_simplify_operand,
                   |                            |postreload.c
   Target Milestone|---                         |3.3.2


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-14 22:39 -------
The patch seems simple enough for 3.3.2 (note I cannot approve anything).


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

* [Bug target/11587] [3.3/3.4 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (3 preceding siblings ...)
  2003-09-14 23:21 ` [Bug target/11587] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-09-15 17:30 ` dank at kegel dot com
  2003-09-15 17:55 ` dank at kegel dot com
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dank at kegel dot com @ 2003-09-15 17:30 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dank at kegel dot com  2003-09-15 15:56 -------
Fix works for me in gcc-3.3.1 as released (haven't tried applying it to branch yet).


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

* [Bug target/11587] [3.3/3.4 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (4 preceding siblings ...)
  2003-09-15 17:30 ` dank at kegel dot com
@ 2003-09-15 17:55 ` dank at kegel dot com
  2003-10-16  9:23 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dank at kegel dot com @ 2003-09-15 17:55 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dank at kegel dot com  2003-09-15 17:44 -------
I've prepared a patch to add a testcase for this PR to the testsuite; see
http://www.kegel.com/crosstool/current/patches/gcc-3.3.1/pr11587-1-test.patch
I'll submit it to gcc-patches in a couple days if nobody squawks.

BTW, the fix for bug 11587 seemed to fix bug 11162 for me.


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

* [Bug target/11587] [3.3/3.4 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (5 preceding siblings ...)
  2003-09-15 17:55 ` dank at kegel dot com
@ 2003-10-16  9:23 ` mmitchel at gcc dot gnu dot org
  2003-12-21 20:54 ` gdr at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-10-16  9:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.2                       |3.3.3


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-10-16 09:23 -------
Postponed until GCC 3.3.3.


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

* [Bug target/11587] [3.3/3.4 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (6 preceding siblings ...)
  2003-10-16  9:23 ` mmitchel at gcc dot gnu dot org
@ 2003-12-21 20:54 ` gdr at gcc dot gnu dot org
  2003-12-26 19:11 ` [Bug target/11587] [3.3 " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: gdr at gcc dot gnu dot org @ 2003-12-21 20:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2003-12-21 20:49 -------
Joern --
Can you comment on the patch provided in the audit trail?
Thanks,

-- Gaby


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joern dot rennecke at superh
                   |                            |dot com


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


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

* [Bug target/11587] [3.3 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (7 preceding siblings ...)
  2003-12-21 20:54 ` gdr at gcc dot gnu dot org
@ 2003-12-26 19:11 ` pinskia at gcc dot gnu dot org
  2004-01-06 12:30 ` renneckej at superh dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-26 19:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-26 18:25 -------
This no longer ICEs on the mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.3/3.4 Regression] SH ICE |[3.3 Regression] SH ICE in
                   |in                          |reload_cse_simplify_operand,
                   |reload_cse_simplify_operand,|postreload.c
                   |postreload.c                |


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


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

* [Bug target/11587] [3.3 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (8 preceding siblings ...)
  2003-12-26 19:11 ` [Bug target/11587] [3.3 " pinskia at gcc dot gnu dot org
@ 2004-01-06 12:30 ` renneckej at superh dot com
  2004-01-14  8:16 ` gdr at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: renneckej at superh dot com @ 2004-01-06 12:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From renneckej at superh dot com  2004-01-06 12:30 -------
Subject: Re:  [3.3 Regression] SH ICE in reload_cse_simplify_operand, postreload.c

The patch tests the wrong condition.  A copy from T to a general purpose
register is unproblematic and cheap.  The need for a secondary reload
arises on the contrary when the other class is not a general purpose register.
See how FPSCR_REGS is handled.



-- 


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


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

* [Bug target/11587] [3.3 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (9 preceding siblings ...)
  2004-01-06 12:30 ` renneckej at superh dot com
@ 2004-01-14  8:16 ` gdr at gcc dot gnu dot org
  2004-01-21  4:11 ` gdr at gcc dot gnu dot org
  2004-02-09 16:06 ` dank at kegel dot com
  12 siblings, 0 replies; 14+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-01-14  8:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-01-14 08:16 -------
won't fix before 3.3.3

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug target/11587] [3.3 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (10 preceding siblings ...)
  2004-01-14  8:16 ` gdr at gcc dot gnu dot org
@ 2004-01-21  4:11 ` gdr at gcc dot gnu dot org
  2004-02-09 16:06 ` dank at kegel dot com
  12 siblings, 0 replies; 14+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-01-21  4:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-01-21 04:11 -------
Proposed patch is wrong and the problem is fixed in 3.4.x.
Proper patch for 3.3.x is unlikely.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


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


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

* [Bug target/11587] [3.3 Regression] SH ICE in reload_cse_simplify_operand, postreload.c
  2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
                   ` (11 preceding siblings ...)
  2004-01-21  4:11 ` gdr at gcc dot gnu dot org
@ 2004-02-09 16:06 ` dank at kegel dot com
  12 siblings, 0 replies; 14+ messages in thread
From: dank at kegel dot com @ 2004-02-09 16:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dank at kegel dot com  2004-02-09 16:06 -------
I was surprised and pleased to see that my testcase for this bug
passes if you apply SUGIOKA Toshinobu's backport of the fix for PR13260 to
gcc-3.3.3 (mis-archived as
http://www.m17n.org/linux-sh/ml/linux-sh/2003-02/msg00014.html)!

So those of you using gcc-3.3.3 might want to apply that patch.
In fact, maybe we should consider applying it to gcc-3.3.3 in cvs before release...

-- 


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


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

end of thread, other threads:[~2004-02-09 16:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-19  1:06 [Bug c/11587] New: SH ICE in reload_cse_simplify_operand, postreload.c eager at mvista dot com
2003-07-19  2:19 ` [Bug optimization/11587] " pinskia at physics dot uc dot edu
2003-08-23  0:53 ` dhazeghi at yahoo dot com
2003-09-14 22:31 ` dank at kegel dot com
2003-09-14 23:21 ` [Bug target/11587] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-09-15 17:30 ` dank at kegel dot com
2003-09-15 17:55 ` dank at kegel dot com
2003-10-16  9:23 ` mmitchel at gcc dot gnu dot org
2003-12-21 20:54 ` gdr at gcc dot gnu dot org
2003-12-26 19:11 ` [Bug target/11587] [3.3 " pinskia at gcc dot gnu dot org
2004-01-06 12:30 ` renneckej at superh dot com
2004-01-14  8:16 ` gdr at gcc dot gnu dot org
2004-01-21  4:11 ` gdr at gcc dot gnu dot org
2004-02-09 16:06 ` dank at kegel 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).