aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-06-07 15:38:10 +0200
committerMartin Liska <mliska@suse.cz>2021-06-07 15:38:10 +0200
commit6467a4e9a6cceae84be71007d11dfc61b47b43a4 (patch)
treefec0feb43d7f9ce092ad6e9a90f598cde22e1fd4 /gcc/rtl.c
parent7584ede940802ce5f6401bc6122a5550106f5925 (diff)
parent4d3907c222646174ec7e405491435aefc50bf1bb (diff)
downloadgcc-6467a4e9a6cceae84be71007d11dfc61b47b43a4.zip
gcc-6467a4e9a6cceae84be71007d11dfc61b47b43a4.tar.gz
gcc-6467a4e9a6cceae84be71007d11dfc61b47b43a4.tar.bz2
Merge branch 'master' into devel/sphinx
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r--gcc/rtl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index b0ba1ff..aaee882 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -395,8 +395,10 @@ shallow_copy_rtx (const_rtx orig MEM_STAT_DECL)
case SCRATCH:
break;
default:
- /* For all other RTXes clear the used flag on the copy. */
- RTX_FLAG (copy, used) = 0;
+ /* For all other RTXes clear the used flag on the copy.
+ CALL_INSN use "used" flag to indicate it's a fake call. */
+ if (!INSN_P (orig))
+ RTX_FLAG (copy, used) = 0;
break;
}
return copy;