public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/8154: gcj not emitting switch table
@ 2002-10-08 7:36 aph
0 siblings, 0 replies; 3+ messages in thread
From: aph @ 2002-10-08 7:36 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, green, nobody
Synopsis: gcj not emitting switch table
State-Changed-From-To: open->analyzed
State-Changed-By: aph
State-Changed-When: Tue Oct 8 07:36:37 2002
State-Changed-Why:
Looks like try_optimize_cfg is making a mess of this -- we end up with
(insn 53 84 54 1 0x400d0fd0 (set (reg/f:SI 80)
(label_ref:SI 57)) 38 {*movsi_1} (nil)
(insn_list:REG_LABEL 57 (expr_list:REG_EQUAL (label_ref:SI 57)
(nil))))
(insn 54 53 55 1 0x400d0fd0 (set (reg:SI 81)
(mem/u:SI (plus:SI (mult:SI (reg:SI 78)
(const_int 4 [0x4]))
(reg/f:SI 80)) [0 S4 A8])) 38 {*movsi_1} (nil)
(nil))
(jump_insn 55 54 56 1 0x400d0fd0 (parallel [
(set (pc)
(reg:SI 81))
(use (label_ref 57))
]) 370 {*tablejump_1} (nil)
(nil))
;; End of basic block 1, registers live:
(nil)
(barrier 56 55 57)
;; Insn is not within a basic block
(code_label 57 56 58 10 "" [2 uses])
;; Insn is not within a basic block
(jump_insn 58 57 59 (nil) (addr_vec:SI [
(label_ref:SI 19)
(label_ref:SI 23)
(label_ref:SI 27)
(label_ref:SI 31)
(label_ref:SI 35)
(label_ref:SI 39)
(label_ref:SI 43)
]) -1 (nil)
(nil))
turning into
(insn 53 84 54 1 0x400d0fd0 (set (reg/f:SI 80)
(label_ref:SI 57)) 38 {*movsi_1} (nil)
(insn_list:REG_LABEL 57 (expr_list:REG_EQUAL (label_ref:SI 57)
(nil))))
(insn 54 53 45 1 0x400d0fd0 (set (reg:SI 81)
(mem/u:SI (plus:SI (mult:SI (reg:SI 78)
(const_int 4 [0x4]))
(reg/f:SI 80)) [0 S4 A8])) 38 {*movsi_1} (insn_list 53 (nil))
(expr_list:REG_DEAD (reg:SI 78)
(expr_list:REG_DEAD (reg/f:SI 80)
(expr_list:REG_UNUSED (reg:SI 81)
(nil)))))
(insn 45 54 60 1 0x400d0a50 (set (reg/v/f:SI 60)
(mem/u:SI (const:SI (plus:SI (symbol_ref:SI ("_CD_linkbug"))
(const_int 32 [0x20]))) [0 S4 A32])) 38 {*movsi_1} (nil)
(nil))
;; End of basic block 1, registers live:
6 [bp] 7 [sp] 16 [] 20 [frame] 59 60
Yes, the jump_insn 55 has disappeared altogether.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8154
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: optimization/8154: gcj not emitting switch table
@ 2003-02-13 23:26 Tom Tromey
0 siblings, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2003-02-13 23:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/8154; it has been noted by GNATS.
From: Tom Tromey <tromey@redhat.com>
To: Steven Bosscher <s.bosscher@student.tudelft.nl>
Cc: GNATS Filer <gcc-gnats@gcc.gnu.org>
Subject: Re: optimization/8154: gcj not emitting switch table
Date: 13 Feb 2003 16:06:41 -0700
>>>>> "Steven" == Steven Bosscher <s.bosscher@student.tudelft.nl> writes:
Steven> This looks like another duplicate of c/7887, but since this
Steven> one appears to be triggered without -fpic, it could also be
Steven> linked somehow to 8502. I never compile/use java, but maybe a
Steven> java hacker can use this information?
I tried the c/7887 fix with the test case in 8154.
It still fails. So apparently we have a different bug here :-(
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: optimization/8154: gcj not emitting switch table
@ 2003-02-11 22:16 Steven Bosscher
0 siblings, 0 replies; 3+ messages in thread
From: Steven Bosscher @ 2003-02-11 22:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/8154; it has been noted by GNATS.
From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: java-prs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org,
green@redhat.com
Cc:
Subject: Re: optimization/8154: gcj not emitting switch table
Date: 11 Feb 2003 23:12:10 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8154
This looks like another duplicate of c/7887, but since this one appears
to be triggered without -fpic, it could also be linked somehow to 8502.
I never compile/use java, but maybe a java hacker can use this
information?
Greetz
Steven
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-13 23:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-08 7:36 optimization/8154: gcj not emitting switch table aph
2003-02-11 22:16 Steven Bosscher
2003-02-13 23:26 Tom Tromey
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).