diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-02-18 11:42:48 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-02-18 11:42:48 +0100 |
commit | abfea58d53f78e426da355c0618a868056e30592 (patch) | |
tree | 0da94db984ee09ac7a3462146c30bca3f5352b87 /gcc/cfgexpand.c | |
parent | 6e2062b00f9270676ded3f8bfe16273843f449d6 (diff) | |
download | gcc-abfea58d53f78e426da355c0618a868056e30592.zip gcc-abfea58d53f78e426da355c0618a868056e30592.tar.gz gcc-abfea58d53f78e426da355c0618a868056e30592.tar.bz2 |
re PR debug/47780 (-fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all)
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.
From-SVN: r170270
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 897d0f9f..ee51ba9 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; } |