Message ID | 545C9D80.9070007@arm.com |
---|---|
State | New |
Headers | show |
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index efcefa7..006fb70 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -14318,6 +14318,10 @@ fold (tree expr) if (kind == tcc_constant) return t; + /* Return right away if a TREE_CLOBBER node. */ + if (TREE_CLOBBER_P (t)) + return t; + /* CALL_EXPR-like objects with variable numbers of operands are treated specially. */ if (kind == tcc_vl_exp)