diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-18 10:42:48 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-18 10:42:48 +0000 |
commit | ce6d059cdbc1d0a7a244cb7ddd058edb0503e6ca (patch) | |
tree | 0da94db984ee09ac7a3462146c30bca3f5352b87 /gcc/cfgexpand.c | |
parent | 924d51fda6e2238e63e3198e660f04782d753dbd (diff) | |
download | gcc-ce6d059cdbc1d0a7a244cb7ddd058edb0503e6ca.tar.gz |
PR debug/47780
* cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
avoid invalid rtx sharing.
* gcc.target/i386/pr47780.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170270 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 897d0f9f2b3..ee51ba9f9c0 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -3104,7 +3104,7 @@ expand_debug_expr (tree exp) gcc_assert (part >= 0 && (unsigned)part < SA.map->num_partitions); - op0 = SA.partition_to_pseudo[part]; + op0 = copy_rtx (SA.partition_to_pseudo[part]); } goto adjust_mode; } |