diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-17 15:05:40 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-17 15:05:40 +0000 |
commit | 5bc0532c3a91d4567a643b843e4495fe66b90b02 (patch) | |
tree | 155772cc8c9dfba7d51689c5129d65d956938cb2 /gcc/gensupport.c | |
parent | 1b672f866350e3a85e6b96f83fb702a267fd8837 (diff) | |
download | gcc-5bc0532c3a91d4567a643b843e4495fe66b90b02.tar.gz |
* gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
patterns from predicated pattern.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c index f0b5613e050..3a96af832e9 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -780,6 +780,7 @@ process_one_cond_exec (struct queue_elem *ce_elem) { int alternatives, max_operand; rtx pred, insn, pattern, split; + char *new_name; int i; if (! is_predicable (insn_elem)) @@ -806,7 +807,9 @@ process_one_cond_exec (struct queue_elem *ce_elem) /* Construct a new pattern for the new insn. */ insn = copy_rtx (insn_elem->data); - XSTR (insn, 0) = ""; + new_name = XNEWVAR (char, strlen XSTR (insn_elem->data, 0) + 4); + sprintf (new_name, "*p %s", XSTR (insn_elem->data, 0)); + XSTR (insn, 0) = new_name; pattern = rtx_alloc (COND_EXEC); XEXP (pattern, 0) = pred; if (XVECLEN (insn, 1) == 1) |