diff options
author | Richard Henderson <rth@cygnus.com> | 1999-02-25 15:45:42 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-02-25 15:45:42 -0800 |
commit | e881bb1b1b60bca2b51088b8c6946feb96b0047f (patch) | |
tree | 5f11cf1c6b61122849435f2ab564e45e67595e64 /gcc/emit-rtl.c | |
parent | 001e880a269a8b586ee074918b6707edb190ea7c (diff) | |
download | gcc-e881bb1b1b60bca2b51088b8c6946feb96b0047f.zip gcc-e881bb1b1b60bca2b51088b8c6946feb96b0047f.tar.gz gcc-e881bb1b1b60bca2b51088b8c6946feb96b0047f.tar.bz2 |
Flow rewrite to use basic block structures and edge lists.
From-SVN: r25450
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index a761c45..c7ff596 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2710,7 +2710,7 @@ emit_call_insn_before (pattern, before) } /* Make an insn of code BARRIER - and output it before the insn AFTER. */ + and output it before the insn BEFORE. */ rtx emit_barrier_before (before) @@ -2724,6 +2724,23 @@ emit_barrier_before (before) return insn; } +/* Emit the label LABEL before the insn BEFORE. */ + +rtx +emit_label_before (label, before) + rtx label, before; +{ + /* This can be called twice for the same label as a result of the + confusion that follows a syntax error! So make it harmless. */ + if (INSN_UID (label) == 0) + { + INSN_UID (label) = cur_insn_uid++; + add_insn_before (label, before); + } + + return label; +} + /* Emit a note of subtype SUBTYPE before the insn BEFORE. */ rtx |