Blame SOURCES/gcc44-rh967003.patch
|
|
f28b6a |
--- gcc/tree-ssa-ccp.c.jj 2013-07-10 14:23:48.649363309 +1000
|
|
|
f28b6a |
+++ gcc/tree-ssa-ccp.c 2013-07-10 14:25:46.767447105 +1000
|
|
|
f28b6a |
@@ -2877,6 +2877,12 @@ fold_stmt (gimple_stmt_iterator *gsi)
|
|
|
f28b6a |
/* Fold the individual operands.
|
|
|
f28b6a |
For example, fold instances of *&VAR into VAR, etc. */
|
|
|
f28b6a |
res = walk_gimple_op (stmt, fold_stmt_r, &wi;;
|
|
|
f28b6a |
+ if (res && is_gimple_debug (stmt))
|
|
|
f28b6a |
+ {
|
|
|
f28b6a |
+ gimple_debug_bind_reset_value (stmt);
|
|
|
f28b6a |
+ changed = true;
|
|
|
f28b6a |
+ res = NULL_TREE;
|
|
|
f28b6a |
+ }
|
|
|
f28b6a |
gcc_assert (!res);
|
|
|
f28b6a |
|
|
|
f28b6a |
/* Fold the main computation performed by the statement. */
|
|
|
f28b6a |
@@ -2941,6 +2947,12 @@ fold_stmt_inplace (gimple stmt)
|
|
|
f28b6a |
a call to _builtin_trap. This functionality is currently
|
|
|
f28b6a |
disabled, as noted in a FIXME, and cannot be supported here. */
|
|
|
f28b6a |
res = walk_gimple_op (stmt, fold_stmt_r, &wi;;
|
|
|
f28b6a |
+ if (res && is_gimple_debug (stmt))
|
|
|
f28b6a |
+ {
|
|
|
f28b6a |
+ gimple_debug_bind_reset_value (stmt);
|
|
|
f28b6a |
+ changed = true;
|
|
|
f28b6a |
+ res = NULL_TREE;
|
|
|
f28b6a |
+ }
|
|
|
f28b6a |
gcc_assert (!res);
|
|
|
f28b6a |
|
|
|
f28b6a |
/* Fold the main computation performed by the statement. */
|