public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-18 16:14 ` tg at mirbsd dot org
  2010-10-23 17:44 ` tg at mirbsd dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: tg at mirbsd dot org @ 2010-10-18 16:14 UTC (permalink / raw)
  To: gcc-bugs

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

Thorsten Glaser <tg at mirbsd dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tg at mirbsd dot org

--- Comment #18 from Thorsten Glaser <tg at mirbsd dot org> 2010-10-18 16:14:04 UTC ---
I just added your patch (Attachment #20541) to my Debian source package
gcc-4.4_4.4.5-3+m68k.1 – Finn Thain says it fixes that problem for him,
and it does occur in compiling the debugging libstdc++ after bootstrap,
so I will be able to report success (I hope) soonish. Except genattrtab
takes 3.5 hours in 4.4 instead of less than half an hour in 4.3… so, it
will be some days.


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
  2010-10-18 16:14 ` [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands tg at mirbsd dot org
@ 2010-10-23 17:44 ` tg at mirbsd dot org
  2010-12-16 13:28 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: tg at mirbsd dot org @ 2010-10-23 17:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Thorsten Glaser <tg at mirbsd dot org> 2010-10-23 17:43:59 UTC ---
I could build gcc-4.4 on Debian with it, and the patch has been included
into the package since. No testsuite runs with it, though – I will do it
on real hardware whose usage I have been offered, but this will take a
while longer. Just so you know.


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
  2010-10-18 16:14 ` [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands tg at mirbsd dot org
  2010-10-23 17:44 ` tg at mirbsd dot org
@ 2010-12-16 13:28 ` rguenth at gcc dot gnu.org
  2011-02-27 11:49 ` mikpe at it dot uu.se
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-16 13:28 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.2                       |4.5.3

--- Comment #20 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-16 13:03:46 UTC ---
GCC 4.5.2 is being released, adjusting target milestone.


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2010-12-16 13:28 ` rguenth at gcc dot gnu.org
@ 2011-02-27 11:49 ` mikpe at it dot uu.se
  2011-04-24 20:07 ` [Bug target/43804] [4.5/4.6/4.7 " schwab at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: mikpe at it dot uu.se @ 2011-02-27 11:49 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #21 from Mikael Pettersson <mikpe at it dot uu.se> 2011-02-27 09:34:08 UTC ---
*** Bug 47909 has been marked as a duplicate of this bug. ***


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

* [Bug target/43804] [4.5/4.6/4.7 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-02-27 11:49 ` mikpe at it dot uu.se
@ 2011-04-24 20:07 ` schwab at gcc dot gnu.org
  2011-04-24 20:09 ` schwab@linux-m68k.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: schwab at gcc dot gnu.org @ 2011-04-24 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from Andreas Schwab <schwab at gcc dot gnu.org> 2011-04-24 20:04:26 UTC ---
Author: schwab
Date: Sun Apr 24 20:04:24 2011
New Revision: 172920

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172920
Log:
Author: Richard Sandiford <richard.sandiford@linaro.org>

PR target/43804
* gcc/config/m68k/constraints.md (T): Allow PIC operands that satisfy
LEGITIMATE_PIC_OPERAND_P.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/m68k/constraints.md


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

* [Bug target/43804] [4.5/4.6/4.7 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2011-04-24 20:07 ` [Bug target/43804] [4.5/4.6/4.7 " schwab at gcc dot gnu.org
@ 2011-04-24 20:09 ` schwab@linux-m68k.org
  2011-04-28 15:53 ` [Bug target/43804] [4.5/4.6 " rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: schwab@linux-m68k.org @ 2011-04-24 20:09 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.7.0

--- Comment #23 from Andreas Schwab <schwab@linux-m68k.org> 2011-04-24 20:05:46 UTC ---
Fixed for 4.7.


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2011-04-24 20:09 ` schwab@linux-m68k.org
@ 2011-04-28 15:53 ` rguenth at gcc dot gnu.org
  2011-07-01 19:36 ` tg at mirbsd dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-28 15:53 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.3                       |4.5.4

--- Comment #24 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-28 14:51:53 UTC ---
GCC 4.5.3 is being released, adjusting target milestone.


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2011-04-28 15:53 ` [Bug target/43804] [4.5/4.6 " rguenth at gcc dot gnu.org
@ 2011-07-01 19:36 ` tg at mirbsd dot org
  2011-07-26 20:17 ` tg at mirbsd dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: tg at mirbsd dot org @ 2011-07-01 19:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #25 from Thorsten Glaser <tg at mirbsd dot org> 2011-07-01 19:36:06 UTC ---
Applied the diff from svn r172920 to the Debian gcc-4.6 source package as well;
let’s see whether this works.


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2011-07-01 19:36 ` tg at mirbsd dot org
@ 2011-07-26 20:17 ` tg at mirbsd dot org
  2011-09-04 18:03 ` leopardboy2 at yahoo dot com
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 20+ messages in thread
From: tg at mirbsd dot org @ 2011-07-26 20:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #26 from Thorsten Glaser <tg at mirbsd dot org> 2011-07-26 20:16:22 UTC ---
Both gcc-4.4 and gcc-4.6 with that patch applied compile memtest.i properly.


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2011-07-26 20:17 ` tg at mirbsd dot org
@ 2011-09-04 18:03 ` leopardboy2 at yahoo dot com
  2012-07-02 14:03 ` [Bug target/43804] [4.6 " rguenth at gcc dot gnu.org
  2013-04-12 16:18 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 20+ messages in thread
From: leopardboy2 at yahoo dot com @ 2011-09-04 18:03 UTC (permalink / raw)
  To: gcc-bugs

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

leopardboy2 at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |leopardboy2 at yahoo dot
                   |                            |com

--- Comment #27 from leopardboy2 at yahoo dot com 2011-09-04 18:02:22 UTC ---
I had the same failure on GCC 4.6 ( 4.6 branch as of 9/03/2011)  cross building
for m68k.   I added the proposed patch from above and rebuilt GCC and it fixed
it...

Can this fix get put into the 4.6 branch also?


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

* [Bug target/43804] [4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2011-09-04 18:03 ` leopardboy2 at yahoo dot com
@ 2012-07-02 14:03 ` rguenth at gcc dot gnu.org
  2013-04-12 16:18 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 14:03 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.4                       |4.6.4


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

* [Bug target/43804] [4.6 regression] ICE in reload_cse_simplify_operands
       [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2012-07-02 14:03 ` [Bug target/43804] [4.6 " rguenth at gcc dot gnu.org
@ 2013-04-12 16:18 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-12 16:18 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #28 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-12 16:18:06 UTC ---
The 4.6 branch has been closed, fixed in GCC 4.7.0.


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
  2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
                   ` (6 preceding siblings ...)
  2010-05-19 12:33 ` rguenth at gcc dot gnu dot org
@ 2010-07-31  9:34 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31  9:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from rguenth at gcc dot gnu dot org  2010-07-31 09:29 -------
GCC 4.5.1 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.1                       |4.5.2


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


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
  2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
                   ` (5 preceding siblings ...)
  2010-05-10 19:49 ` rsandifo at gcc dot gnu dot org
@ 2010-05-19 12:33 ` rguenth at gcc dot gnu dot org
  2010-07-31  9:34 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 12:33 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
  2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
                   ` (4 preceding siblings ...)
  2010-05-03 20:17 ` schwab at linux-m68k dot org
@ 2010-05-10 19:49 ` rsandifo at gcc dot gnu dot org
  2010-05-19 12:33 ` rguenth at gcc dot gnu dot org
  2010-07-31  9:34 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 20+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2010-05-10 19:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from rsandifo at gcc dot gnu dot org  2010-05-10 19:49 -------
Thanks Andreas.  I don't have access to m68k-elfy targets these days, so could
someone test it just to be sure?  I'll commit if everything goes OK.


-- 

rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rsandifo at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-10 19:49:34
               date|                            |


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


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
  2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
                   ` (3 preceding siblings ...)
  2010-05-03  9:55 ` rsandifo at gcc dot gnu dot org
@ 2010-05-03 20:17 ` schwab at linux-m68k dot org
  2010-05-10 19:49 ` rsandifo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 20+ messages in thread
From: schwab at linux-m68k dot org @ 2010-05-03 20:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from schwab at linux-m68k dot org  2010-05-03 20:17 -------
The patch is ok, please check it in.


-- 


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


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
  2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
                   ` (2 preceding siblings ...)
  2010-05-03  9:53 ` rdsandiford at googlemail dot com
@ 2010-05-03  9:55 ` rsandifo at gcc dot gnu dot org
  2010-05-03 20:17 ` schwab at linux-m68k dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 20+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2010-05-03  9:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from rsandifo at gcc dot gnu dot org  2010-05-03 09:55 -------
Created an attachment (id=20541)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20541&action=view)
proposed patch


-- 


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


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
  2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
  2010-05-02 18:02 ` [Bug target/43804] " mkuvyrkov at gcc dot gnu dot org
  2010-05-02 18:04 ` mkuvyrkov at gcc dot gnu dot org
@ 2010-05-03  9:53 ` rdsandiford at googlemail dot com
  2010-05-03  9:55 ` rsandifo at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 20+ messages in thread
From: rdsandiford at googlemail dot com @ 2010-05-03  9:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from rdsandiford at googlemail dot com  2010-05-03 09:53 -------
Subject: Re:  [4.5/4.6 regression] ICE in reload_cse_simplify_operands

"mkuvyrkov at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> ------- Comment #10 from mkuvyrkov at gcc dot gnu dot org  2010-04-23 10:20 -------
> The problem seems to be in Richard's patch
> (http://article.gmane.org/gmane.comp.gcc.patches/130602) checked in r120961.
>
> All and all, it seems that revision 120961 should be reverted to enable 'T'
> constraint for (flag_pic && !TARGET_PCREL).
>
> The 's' constraint is defined as
> ==
>               case 's':
>                 if (CONST_INT_P (op)
>                     || (GET_CODE (op) == CONST_DOUBLE
>                         && GET_MODE (op) == VOIDmode))
>                   break;
>               case 'i':
>                 if (CONSTANT_P (op))
>                   win = 1;
>                 break;
> ==
>
> So, unless I'm missing something, the statement
> "... 's' doesn't accept anything if flag_pic"
> is just wrong.

I meant "flag_pic && !TARGET_PCREL", since only the !TARGET_PCREL case
matters for 'T'.  And that was right at the time that I wrote it.
The interesting definition of 's' isn't the one you quote, but the one
in reload:

              case 's':
                if (CONST_INT_P (operand)
                    || (GET_CODE (operand) == CONST_DOUBLE
                        && GET_MODE (operand) == VOIDmode))
                  break;
              case 'i':
                if (CONSTANT_P (operand)
                    && (! flag_pic || LEGITIMATE_PIC_OPERAND_P (operand)))
                  win = 1;
                break;

That is, 's' operands have to satisfy LEGITIMATE_PIC_OPERAND_P when
generating PIC.  I'm not sure which version you were quoting, but if it
was constrain_operands, that's a special case.  constrain_operands can
rely on the predicates to check for legitimate PIC operands, so there's
no need to repeat the check there.

At the time I committed the patch, LEGITIMATE_PIC_OPERAND_P was
defined as follows:

#define LEGITIMATE_PIC_OPERAND_P(X)                             \
  (!symbolic_operand (X, VOIDmode)                              \
   || (TARGET_PCREL && REG_STRICT_P))

Thus no symbolic constant was a legitimate PIC operand for
flag_pic && !TARGET_PCREL.  Thus nothing satisfied 's' when
flag_pic && !TARGET_PCREL.

The 'T' constraint is defined as follows:

  satisifies(T) == satisifies(s) && !TARGET_PCREL

so it followed that nothing should match 'T' when flag_pic.

So the patch was correct at the time it was committed.  Please
understand that reverting it is the wrong thing to do.  It would
reintroduce the original bug: that constraints _must not_ match
something that the associated predicates do not.  Only the other
way is allowed: predicates can allow things that the constraints
don't, within certain limits.

For example, let's say you have an insn that matches:

(define_insn "subsi3"
  [(set (match_operand:SI 0 "nonimmediate_operand" "=mda,m,d,a")
        (minus:SI (match_operand:SI 1 "general_operand" "0,0,0,0")
                  (match_operand:SI 2 "general_src_operand"
"I,dT,mSrT,mSrs")))]
  ""
  "@
   subq%.l %2, %0
   sub%.l %2,%0
   sub%.l %2,%0
   sub%.l %2,%0"
  [(set_attr "type" "aluq_l,alu_l,alu_l,alu_l")
   (set_attr "opy" "2")])

And let's suppose that operand 2 is a register that is equal to:

  (symbol_ref "x")

If 'T' allows any CONST, SYMBOL_REF or LABEL_REF when flag_pic &&
!TARGET_PCREL (as in your suggested patch), reload could quite happily
establish that operand 2 is (symbol_ref "x"), see that it matches 'T',
and use it.  This will then lead to an unrecognisable insn, because
although the constant matches the 'T' constraint, it doesn't match
general_src_operand.

Instead, the bug is that the 'T' constraint wasn't updated by the TLS
support at the same time as LEGITIMATE_PIC_OPERAND_P was.  An easy thing
to miss, of course.  I think the correct patch is the one I'm about
to attach.

Richard


-- 


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


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
  2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
  2010-05-02 18:02 ` [Bug target/43804] " mkuvyrkov at gcc dot gnu dot org
@ 2010-05-02 18:04 ` mkuvyrkov at gcc dot gnu dot org
  2010-05-03  9:53 ` rdsandiford at googlemail dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 20+ messages in thread
From: mkuvyrkov at gcc dot gnu dot org @ 2010-05-02 18:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from mkuvyrkov at gcc dot gnu dot org  2010-05-02 18:03 -------
Ping.

Richard S.,
Andreas,

Any comment on the above analysis?

AFAICT, the "T" constraint should accept operands if "flag_pic &&
!TARGET_PCREL".


-- 


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


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

* [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands
  2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
@ 2010-05-02 18:02 ` mkuvyrkov at gcc dot gnu dot org
  2010-05-02 18:04 ` mkuvyrkov at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 20+ messages in thread
From: mkuvyrkov at gcc dot gnu dot org @ 2010-05-02 18:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from mkuvyrkov at gcc dot gnu dot org  2010-05-02 18:02 -------
Created an attachment (id=20536)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20536&action=view)
Revert previous patch


-- 


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


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

end of thread, other threads:[~2013-04-12 16:18 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43804-4@http.gcc.gnu.org/bugzilla/>
2010-10-18 16:14 ` [Bug target/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands tg at mirbsd dot org
2010-10-23 17:44 ` tg at mirbsd dot org
2010-12-16 13:28 ` rguenth at gcc dot gnu.org
2011-02-27 11:49 ` mikpe at it dot uu.se
2011-04-24 20:07 ` [Bug target/43804] [4.5/4.6/4.7 " schwab at gcc dot gnu.org
2011-04-24 20:09 ` schwab@linux-m68k.org
2011-04-28 15:53 ` [Bug target/43804] [4.5/4.6 " rguenth at gcc dot gnu.org
2011-07-01 19:36 ` tg at mirbsd dot org
2011-07-26 20:17 ` tg at mirbsd dot org
2011-09-04 18:03 ` leopardboy2 at yahoo dot com
2012-07-02 14:03 ` [Bug target/43804] [4.6 " rguenth at gcc dot gnu.org
2013-04-12 16:18 ` jakub at gcc dot gnu.org
2010-04-19 20:11 [Bug rtl-optimization/43804] New: [4.5/4.6 " schwab at linux-m68k dot org
2010-05-02 18:02 ` [Bug target/43804] " mkuvyrkov at gcc dot gnu dot org
2010-05-02 18:04 ` mkuvyrkov at gcc dot gnu dot org
2010-05-03  9:53 ` rdsandiford at googlemail dot com
2010-05-03  9:55 ` rsandifo at gcc dot gnu dot org
2010-05-03 20:17 ` schwab at linux-m68k dot org
2010-05-10 19:49 ` rsandifo at gcc dot gnu dot org
2010-05-19 12:33 ` rguenth at gcc dot gnu dot org
2010-07-31  9:34 ` rguenth 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).