public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: aph@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, green@redhat.com,
	nobody@gcc.gnu.org
Subject: Re: optimization/8154: gcj not emitting switch table
Date: Tue, 08 Oct 2002 07:36:00 -0000	[thread overview]
Message-ID: <20021008143639.6432.qmail@sources.redhat.com> (raw)

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


             reply	other threads:[~2002-10-08 14:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08  7:36 aph [this message]
2003-02-11 22:16 Steven Bosscher
2003-02-13 23:26 Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021008143639.6432.qmail@sources.redhat.com \
    --to=aph@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=green@redhat.com \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).