diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-03 22:14:27 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-03 22:14:27 +0000 |
commit | 990be1d528036444e6dae4a5ac44df5d3dbb5f85 (patch) | |
tree | 92d89711cd4808e7bf5f6c579a5ab2b40b395373 | |
parent | 894511a5a2611f17b1254a4b5a146e5506556866 (diff) | |
download | gcc-990be1d528036444e6dae4a5ac44df5d3dbb5f85.tar.gz |
* ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126281 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ifcvt.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0267508f20d..371fb6a12bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-07-03 Jan Hubicka <jh@suse.cz> + + * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing. + 2007-07-03 Eric Christopher <echristo@apple.com> * doc/cppopts.texi: Add conflicting option note to -dM. diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index dd7764b921f..8a346bb5f4e 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -3311,8 +3311,8 @@ find_cond_trap (basic_block test_bb, edge then_edge, edge else_edge) } /* Attempt to generate the conditional trap. */ - seq = gen_cond_trap (code, XEXP (cond, 0), - XEXP (cond, 1), + seq = gen_cond_trap (code, copy_rtx (XEXP (cond, 0)), + copy_rtx (XEXP (cond, 1)), TRAP_CODE (PATTERN (trap))); if (seq == NULL) return FALSE; |