public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/10692] [3.0/3.2/3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
@ 2003-05-25 13:39 ` pinskia@physics.uc.edu
  2003-06-11 22:18 ` [Bug target/10692] [3.3/3.4 " pinskia@physics.uc.edu
                   ` (25 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: pinskia@physics.uc.edu @ 2003-05-25 13:39 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=10692


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-25 13:33:52
               date|                            |





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
  2003-05-25 13:39 ` [Bug target/10692] [3.0/3.2/3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC pinskia@physics.uc.edu
@ 2003-06-11 22:18 ` pinskia@physics.uc.edu
  2003-07-12  8:37 ` ebotcazou at gcc dot gnu dot org
                   ` (24 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-11 22:18 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=10692


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |3.3.1


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
  2003-05-25 13:39 ` [Bug target/10692] [3.0/3.2/3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC pinskia@physics.uc.edu
  2003-06-11 22:18 ` [Bug target/10692] [3.3/3.4 " pinskia@physics.uc.edu
@ 2003-07-12  8:37 ` ebotcazou at gcc dot gnu dot org
  2003-07-12  9:07 ` doko at cs dot tu-berlin dot de
                   ` (23 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-07-12  8:37 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=10692



------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-07-12 08:37 -------
I'm willing to try to debug this, but I don't have access to m68k hardware.
Could you try to further narrow down the problem and maybe pinpoint the
miscompilation in the assembly file? Thanks in advance.


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (2 preceding siblings ...)
  2003-07-12  8:37 ` ebotcazou at gcc dot gnu dot org
@ 2003-07-12  9:07 ` doko at cs dot tu-berlin dot de
  2003-07-14 21:45 ` mmitchel at gcc dot gnu dot org
                   ` (22 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: doko at cs dot tu-berlin dot de @ 2003-07-12  9:07 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=10692



------- Additional Comments From doko at cs dot tu-berlin dot de  2003-07-12 09:07 -------
Subject: Re: Bug#187564:  [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC

ebotcazou at gcc dot gnu dot org writes:
> I'm willing to try to debug this, but I don't have access to m68k hardware.
> Could you try to further narrow down the problem and maybe pinpoint the
> miscompilation in the assembly file? Thanks in advance.

Adam, Brendan, could you followup (keeping the bugzilla address) in
the reply?


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (3 preceding siblings ...)
  2003-07-12  9:07 ` doko at cs dot tu-berlin dot de
@ 2003-07-14 21:45 ` mmitchel at gcc dot gnu dot org
  2003-07-17 22:17 ` rth at gcc dot gnu dot org
                   ` (21 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-07-14 21:45 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=10692


mmitchel at gcc dot gnu dot org changed:

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


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-07-14 21:45 -------
Postponed until GCC 3.3.2; 68K is not a primary platform.


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (4 preceding siblings ...)
  2003-07-14 21:45 ` mmitchel at gcc dot gnu dot org
@ 2003-07-17 22:17 ` rth at gcc dot gnu dot org
  2003-07-17 22:19 ` rth at gcc dot gnu dot org
                   ` (20 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: rth at gcc dot gnu dot org @ 2003-07-17 22:17 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=10692


rth at gcc dot gnu dot org changed:

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


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (5 preceding siblings ...)
  2003-07-17 22:17 ` rth at gcc dot gnu dot org
@ 2003-07-17 22:19 ` rth at gcc dot gnu dot org
  2003-10-16 17:04 ` mmitchel at gcc dot gnu dot org
                   ` (19 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: rth at gcc dot gnu dot org @ 2003-07-17 22: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=10692


rth at gcc dot gnu dot org changed:

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


------- Additional Comments From rth at gcc dot gnu dot org  2003-07-17 22:19 -------
Oops, wrong PR.


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (6 preceding siblings ...)
  2003-07-17 22:19 ` rth at gcc dot gnu dot org
@ 2003-10-16 17:04 ` mmitchel at gcc dot gnu dot org
  2003-12-21 18:56 ` gdr at gcc dot gnu dot org
                   ` (18 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-10-16 17:04 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=10692


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 17:04 -------
Postponed until GCC 3.3.3.


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (7 preceding siblings ...)
  2003-10-16 17:04 ` mmitchel at gcc dot gnu dot org
@ 2003-12-21 18:56 ` gdr at gcc dot gnu dot org
  2004-01-11 21:52 ` schwab at suse dot de
                   ` (17 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: gdr at gcc dot gnu dot org @ 2003-12-21 18:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2003-12-21 18:46 -------
Jeff --
Your input would be needed here, as an m68k maintainer.
Thanks,

-- Gaby

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu dot org


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


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (8 preceding siblings ...)
  2003-12-21 18:56 ` gdr at gcc dot gnu dot org
@ 2004-01-11 21:52 ` schwab at suse dot de
  2004-01-11 22:30 ` schwab at suse dot de
                   ` (16 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: schwab at suse dot de @ 2004-01-11 21:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schwab at suse dot de  2004-01-11 21:52 -------
The miscompilation happens here: 
 
    yearday %= (4*365 +1); 
 
With -fregmove, this is generated: 
 
	move.l %d3,%d1	| yearday, tmp264 
	muls.l #376287347,%d0:%d1	|, tmp262, tmp264 
	asr.l #7,%d0	|, tmp262 
	move.l %d3,%d1	| yearday, tmp266 
	add.l %d1,%d1	| tmp266 
	subx.l %d1,%d1	| tmp266 
	sub.l %d1,%d0	| tmp266, tmp262 
	lea (%a1,%d0.l*4),%a1	|, year 
	move.l %d0,%a0	| tmp262, 
	lea (%a0,%d0.l*8),%a0	|, 
	move.l %a0,%d1	|, tmp276 
	move.l %d0,%a0	| tmp262, 
	lea (%a0,%d1.l*8),%a0	|, 
--->	lea (%a0,%d1.l*4),%a0	|, 
	move.l %a0,%d1	|, tmp280 
	move.l %d0,%a0	| tmp262, 
	lea (%a0,%d1.l*4),%a0	|, 
	sub.l %a0,%d3	| tmp282, yearday 
 
With -fno-regmove, this is generated: 
 
	move.l %d3,%d1	| yearday, tmp264 
	muls.l #376287347,%d0:%d1	|, tmp263, tmp264 
	asr.l #7,%d0	|, tmp265 
	move.l %d3,%d1	| yearday, tmp266 
	add.l %d1,%d1	| tmp266 
	subx.l %d1,%d1	| tmp266 
	move.l %d0,%a1	| tmp265, tmp262 
	sub.l %d1,%a1	| tmp266, tmp262 
	lea (%a3,%a1.l*4),%a3	|, year 
	lea (%a1,%a1.l*8),%a0	|, tmp276 
	lea (%a1,%a0.l*8),%a0	|, tmp278 
--->	lea (%a0,%a0.l*4),%a0	|, tmp280 
	lea (%a1,%a0.l*4),%a0	|, tmp282 
	sub.l %a0,%d3	| tmp282, yearday 
 
(much more compact, btw.) 
The real difference is in the marked lines, they should be identical. 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schwab at suse dot de


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


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (9 preceding siblings ...)
  2004-01-11 21:52 ` schwab at suse dot de
@ 2004-01-11 22:30 ` schwab at suse dot de
  2004-01-11 22:34 ` schwab at suse dot de
                   ` (15 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: schwab at suse dot de @ 2004-01-11 22:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schwab at suse dot de  2004-01-11 22:30 -------
The differing line corresponds to this insn: 
 
(insn 368 367 369 18 (set (reg:SI 280) 
        (plus:SI (mult:SI (reg:SI 278) 
                (const_int 4 [0x4])) 
            (reg:SI 278))) 359 {*m68k.md:6699} (insn_list 366 (nil)) 
    (expr_list:REG_DEAD (reg:SI 278) 
        (nil))) 
 
Note that it stays unmodified until global alloc, so this is a reload bug that 
is just triggered by -fregmove due to the higher register pressure. 

-- 


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


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

* [Bug target/10692] [3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (10 preceding siblings ...)
  2004-01-11 22:30 ` schwab at suse dot de
@ 2004-01-11 22:34 ` schwab at suse dot de
  2004-01-29 12:54 ` [Bug target/10692] [3.3/3.4/3.5 " gdr at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: schwab at suse dot de @ 2004-01-11 22:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schwab at suse dot de  2004-01-11 22:34 -------
s/stays unmodified/does not differ between -fregmove and -fno-regmove/ 

-- 


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


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

* [Bug target/10692] [3.3/3.4/3.5 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (11 preceding siblings ...)
  2004-01-11 22:34 ` schwab at suse dot de
@ 2004-01-29 12:54 ` gdr at gcc dot gnu dot org
  2004-02-29 23:48 ` mmitchel at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-01-29 12:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-01-29 12:54 -------
This seems to have been failing since ages;
postponed until 3.3.4

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


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


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

* [Bug target/10692] [3.3/3.4/3.5 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (12 preceding siblings ...)
  2004-01-29 12:54 ` [Bug target/10692] [3.3/3.4/3.5 " gdr at gcc dot gnu dot org
@ 2004-02-29 23:48 ` mmitchel at gcc dot gnu dot org
  2004-05-29 17:58 ` mmitchel at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-29 23:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-02-29 23:48 -------
m68k is not a primary platform, so I have postponed this bug until 3.4.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.4                       |3.4.1


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


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

* [Bug target/10692] [3.3/3.4/3.5 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (13 preceding siblings ...)
  2004-02-29 23:48 ` mmitchel at gcc dot gnu dot org
@ 2004-05-29 17:58 ` mmitchel at gcc dot gnu dot org
  2004-06-06 17:21 ` zippel at linux-m68k dot org
                   ` (11 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-05-29 17:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-05-28 21:32 -------
Jeff -- 

You're listed as the M68K maintainer.  Please comment on this problem -- or, if
you're not maintaining M68K anymore, remove yourself from the MAINTAINERS file
for that port.

Thanks,

-- Mark

-- 


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


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

* [Bug target/10692] [3.3/3.4/3.5 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (14 preceding siblings ...)
  2004-05-29 17:58 ` mmitchel at gcc dot gnu dot org
@ 2004-06-06 17:21 ` zippel at linux-m68k dot org
  2004-06-18 23:40 ` mmitchel at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: zippel at linux-m68k dot org @ 2004-06-06 17:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zippel at linux-m68k dot org  2004-06-06 17:21 -------
Here is a bit more info, this is the situation before reload:

(insn 365 364 366 18 bug-187564.i:90 (set (reg:SI 277)
        (plus:SI (mult:SI (reg:SI 275)
                (const_int 8 [0x8]))
            (reg:SI 261))) 359 {*m68k.md:6544} (insn_list 363 (nil))
    (expr_list:REG_DEAD (reg:SI 275)
        (nil)))

(note 366 365 367 18 NOTE_INSN_DELETED)

(insn 367 366 368 18 bug-187564.i:90 (set (reg:SI 279)
        (plus:SI (mult:SI (reg:SI 277)
                (const_int 4 [0x4]))
            (reg:SI 277))) 359 {*m68k.md:6544} (insn_list 365 (nil))
    (expr_list:REG_DEAD (reg:SI 277)
        (nil)))

Reload now decides to put (reg 277) and (reg 279) into %d1, which triggers the
reload as insn 367 needs it to be in an address register. This is the reload
information:

Reloads for insn # 365
Reload 0: reload_in (SI) = (reg:SI 0 %d0 [261])
        reload_out (SI) = (reg:SI 1 %d1 [277])
        ADDR_REGS, RELOAD_OTHER (opnum = 1)
        reload_in_reg: (reg:SI 0 %d0 [261])
        reload_out_reg: (reg:SI 1 %d1 [277])
        reload_reg_rtx: (reg:SI 8 %a0)
Reload 1: ADDR_REGS, RELOAD_FOR_OUTPUT (opnum = 0)
        reload_out_reg: (reg:SI 1 %d1 [277])

Reloads for insn # 367
Reload 0: reload_in (SI) = (reg:SI 1 %d1 [277])
        reload_out (SI) = (reg:SI 1 %d1 [279])
        ADDR_REGS, RELOAD_OTHER (opnum = 1)
        reload_in_reg: (reg:SI 1 %d1 [277])
        reload_out_reg: (reg:SI 1 %d1 [279])
        reload_reg_rtx: (reg:SI 8 %a0)
Reload 1: ADDR_REGS, RELOAD_FOR_OUTPUT (opnum = 0)
        reload_out_reg: (reg:SI 1 %d1 [279])

Everything is fine until insn 365, for which an input and an output reload is
generated. The problem is now that do_input_reload() for insn 367/reload 0
deletes the previous output reload, although insn 367 still needs the value as
input.
As a workaround I changed the '#if 0' in do_input_reload() into '#if 1', what
prevents the deletion of the reload and generates the following correct code:

(insn 645 364 365 18 bug-187564.i:90 (set (reg:SI 8 %a0)
        (reg:SI 0 %d0 [261])) 25 {*m68k.md:749} (nil)
    (nil))

(insn 365 645 646 18 bug-187564.i:90 (set (reg:SI 8 %a0)
        (plus:SI (mult:SI (reg:SI 1 %d1 [275])
                (const_int 8 [0x8]))
            (reg:SI 8 %a0))) 359 {*m68k.md:6544} (insn_list 363 (nil))
    (nil))

(insn 646 365 366 18 bug-187564.i:90 (set (reg:SI 1 %d1 [277])
        (reg:SI 8 %a0)) 25 {*m68k.md:749} (nil)
    (nil))

(note 366 646 367 18 NOTE_INSN_DELETED)

(insn 367 366 647 18 bug-187564.i:90 (set (reg:SI 8 %a0)
        (plus:SI (mult:SI (reg:SI 1 %d1 [277])
                (const_int 4 [0x4])) 
            (reg:SI 8 %a0))) 359 {*m68k.md:6544} (insn_list 365 (nil))
    (nil))

(insn 647 367 368 18 bug-187564.i:90 (set (reg:SI 1 %d1 [279])
        (reg:SI 8 %a0)) 25 {*m68k.md:749} (nil)
    (nil))

The register renaming pass later on eliminates the reload 646 correctly.

At this point now I have to pass as to what the correct solution is...
How can we tell do_input_reload() correctly that the reload is still needed?


-- 


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


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

* [Bug target/10692] [3.3/3.4/3.5 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (15 preceding siblings ...)
  2004-06-06 17:21 ` zippel at linux-m68k dot org
@ 2004-06-18 23:40 ` mmitchel at gcc dot gnu dot org
  2004-08-19 20:30 ` mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-18 23:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-06-18 23:40 -------
m68k is not a primary platform.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.1                       |3.4.2


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


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

* [Bug target/10692] [3.3/3.4/3.5 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (16 preceding siblings ...)
  2004-06-18 23:40 ` mmitchel at gcc dot gnu dot org
@ 2004-08-19 20:30 ` mmitchel at gcc dot gnu dot org
  2004-10-30 19:31 ` [Bug target/10692] [3.3/3.4/4.0 " mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-19 20:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-19 20:30 -------
Postponed yet again.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.2                       |3.4.3


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


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

* [Bug target/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (17 preceding siblings ...)
  2004-08-19 20:30 ` mmitchel at gcc dot gnu dot org
@ 2004-10-30 19:31 ` mmitchel at gcc dot gnu dot org
  2004-12-01 17:43 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-10-30 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-10-30 19:31 -------
Postponed until GCC 3.4.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.3.3 3.4.0 4.0             |3.3.3 3.4.0 4.0.0
   Target Milestone|3.4.3                       |3.4.4


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


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

* [Bug target/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (18 preceding siblings ...)
  2004-10-30 19:31 ` [Bug target/10692] [3.3/3.4/4.0 " mmitchel at gcc dot gnu dot org
@ 2004-12-01 17:43 ` mmitchel at gcc dot gnu dot org
  2004-12-01 18:20 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-12-01 17:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-12-01 17:43 -------
I'm downgrading the priority here, as M68K is not a primary platform.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3


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


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

* [Bug target/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (19 preceding siblings ...)
  2004-12-01 17:43 ` mmitchel at gcc dot gnu dot org
@ 2004-12-01 18:20 ` pinskia at gcc dot gnu dot org
  2004-12-02  4:54 ` law at redhat dot com
                   ` (5 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-01 18:20 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug target/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (20 preceding siblings ...)
  2004-12-01 18:20 ` pinskia at gcc dot gnu dot org
@ 2004-12-02  4:54 ` law at redhat dot com
  2005-01-06  2:22 ` rth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: law at redhat dot com @ 2004-12-02  4:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From law at redhat dot com  2004-12-02 04:53 -------
I haven't done a ton of analysis on this PR, but from the looks of it,
I would hazard a guess the problem is in the reload inheritance code
inside choose_reload_regs.  Which happens to be code I'm not terribly
familiar with.

You might see if you can get Joern to look at it since he worked heavily
in that code through the years.

-- 


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


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

* [Bug target/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (21 preceding siblings ...)
  2004-12-02  4:54 ` law at redhat dot com
@ 2005-01-06  2:22 ` rth at gcc dot gnu dot org
  2005-01-06  4:09 ` [Bug rtl-optimization/10692] " cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-01-06  2:22 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug rtl-optimization/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (22 preceding siblings ...)
  2005-01-06  2:22 ` rth at gcc dot gnu dot org
@ 2005-01-06  4:09 ` cvs-commit at gcc dot gnu dot org
  2005-01-06  4:11 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  26 siblings, 0 replies; 27+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-06  4:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-06 04:09 -------
Subject: Bug 10692

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2005-01-06 04:09:12

Modified files:
	gcc            : ChangeLog reload1.c 

Log message:
	PR rtl-opt/10692
	* reload1.c (do_input_reload): Restrict the optimization deleteing
	a previous output reload to RELOAD_FOR_INPUT.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7042&r2=2.7043
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/reload1.c.diff?cvsroot=gcc&r1=1.456&r2=1.457



-- 


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


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

* [Bug rtl-optimization/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (23 preceding siblings ...)
  2005-01-06  4:09 ` [Bug rtl-optimization/10692] " cvs-commit at gcc dot gnu dot org
@ 2005-01-06  4:11 ` cvs-commit at gcc dot gnu dot org
  2005-01-06  4:18 ` rth at gcc dot gnu dot org
  2005-01-07 21:36 ` debian-gcc at lists dot debian dot org
  26 siblings, 0 replies; 27+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-06  4:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-06 04:11 -------
Subject: Bug 10692

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	rth@gcc.gnu.org	2005-01-06 04:10:59

Modified files:
	gcc            : ChangeLog reload1.c 

Log message:
	PR rtl-opt/10692
	* reload1.c (do_input_reload): Restrict the optimization deleteing
	a previous output reload to RELOAD_FOR_INPUT.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.761&r2=2.2326.2.762
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/reload1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.419.4.6&r2=1.419.4.7



-- 


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


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

* [Bug rtl-optimization/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (24 preceding siblings ...)
  2005-01-06  4:11 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-06  4:18 ` rth at gcc dot gnu dot org
  2005-01-07 21:36 ` debian-gcc at lists dot debian dot org
  26 siblings, 0 replies; 27+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-01-06  4:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2005-01-06 04:18 -------
I believe it to be fixed.  Reopen if not.
http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00323.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug rtl-optimization/10692] [3.3/3.4/4.0 regression] [m68k] miscompilation of perl with -O2 -fPIC
       [not found] <20030508193600.10692.187564@bugs.debian.org>
                   ` (25 preceding siblings ...)
  2005-01-06  4:18 ` rth at gcc dot gnu dot org
@ 2005-01-07 21:36 ` debian-gcc at lists dot debian dot org
  26 siblings, 0 replies; 27+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2005-01-07 21:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From debian-gcc at lists dot debian dot org  2005-01-07 21:36 -------
[tried to reopen the report, but didn't succeed, and  You tried to change the
Versions this fails on field from 3.3.3 3.4.0 4.0.0 to 3.3.3 3.4.0]

The patch applies to the 3.3 branch as well and fixes the bug. Testsuite
currently running.

Ok for the 3.3 branch as well?

    Matthias


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdr at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-01-07 21:36 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030508193600.10692.187564@bugs.debian.org>
2003-05-25 13:39 ` [Bug target/10692] [3.0/3.2/3.3/3.4 regression] [m68k] miscompilation of perl with -O2 -fPIC pinskia@physics.uc.edu
2003-06-11 22:18 ` [Bug target/10692] [3.3/3.4 " pinskia@physics.uc.edu
2003-07-12  8:37 ` ebotcazou at gcc dot gnu dot org
2003-07-12  9:07 ` doko at cs dot tu-berlin dot de
2003-07-14 21:45 ` mmitchel at gcc dot gnu dot org
2003-07-17 22:17 ` rth at gcc dot gnu dot org
2003-07-17 22:19 ` rth at gcc dot gnu dot org
2003-10-16 17:04 ` mmitchel at gcc dot gnu dot org
2003-12-21 18:56 ` gdr at gcc dot gnu dot org
2004-01-11 21:52 ` schwab at suse dot de
2004-01-11 22:30 ` schwab at suse dot de
2004-01-11 22:34 ` schwab at suse dot de
2004-01-29 12:54 ` [Bug target/10692] [3.3/3.4/3.5 " gdr at gcc dot gnu dot org
2004-02-29 23:48 ` mmitchel at gcc dot gnu dot org
2004-05-29 17:58 ` mmitchel at gcc dot gnu dot org
2004-06-06 17:21 ` zippel at linux-m68k dot org
2004-06-18 23:40 ` mmitchel at gcc dot gnu dot org
2004-08-19 20:30 ` mmitchel at gcc dot gnu dot org
2004-10-30 19:31 ` [Bug target/10692] [3.3/3.4/4.0 " mmitchel at gcc dot gnu dot org
2004-12-01 17:43 ` mmitchel at gcc dot gnu dot org
2004-12-01 18:20 ` pinskia at gcc dot gnu dot org
2004-12-02  4:54 ` law at redhat dot com
2005-01-06  2:22 ` rth at gcc dot gnu dot org
2005-01-06  4:09 ` [Bug rtl-optimization/10692] " cvs-commit at gcc dot gnu dot org
2005-01-06  4:11 ` cvs-commit at gcc dot gnu dot org
2005-01-06  4:18 ` rth at gcc dot gnu dot org
2005-01-07 21:36 ` debian-gcc at lists dot debian 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).