aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1995-04-14 00:26:46 +0000
committerDoug Evans <dje@gnu.org>1995-04-14 00:26:46 +0000
commit15d23f2b5d2ed2f8a711935d3148c21405bb41ce (patch)
tree36de7a8ac8a43e4110ab9a69b907083e95db7c00 /gcc/emit-rtl.c
parent6353cbd59dcd174f38f8a8a8b90018d50438f4bc (diff)
downloadgcc-15d23f2b5d2ed2f8a711935d3148c21405bb41ce.zip
gcc-15d23f2b5d2ed2f8a711935d3148c21405bb41ce.tar.gz
gcc-15d23f2b5d2ed2f8a711935d3148c21405bb41ce.tar.bz2
(gen_sequence): If the insn has a non-null CALL_INSN_FUNCTION_USAGE field...
(gen_sequence): If the insn has a non-null CALL_INSN_FUNCTION_USAGE field, output it as a sequence so the latter isn't discarded. From-SVN: r9378
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 48c61dd..d553e89 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -3043,7 +3043,9 @@ gen_sequence ()
if (len == 1
&& (GET_CODE (first_insn) == INSN
|| GET_CODE (first_insn) == JUMP_INSN
- || GET_CODE (first_insn) == CALL_INSN))
+ /* Don't discard the call usage field. */
+ || (GET_CODE (first_insn) == CALL_INSN
+ && CALL_INSN_FUNCTION_USAGE (first_insn) == NULL_RTX)))
return PATTERN (first_insn);
/* Put them in a vector. See if we already have a SEQUENCE of the