From: Richard Stallman Date: Tue, 13 Apr 1993 20:33:27 +0000 (+0000) Subject: Comment change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1aa345d4f691a9a9dce12226983539e98866a84;p=gcc.git Comment change. From-SVN: r4130 --- diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 02d40275a70..a7994aead79 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -1628,6 +1628,9 @@ non_lvalue (x) { if (TREE_CODE (x) == INTEGER_CST && integer_zerop (x)) { + /* Use NOP_EXPR instead of NON_LVALUE_EXPR + so convert_for_assignment won't strip it. + This is so this 0 won't be treated as a null pointer constant. */ result = build1 (NOP_EXPR, TREE_TYPE (x), x); TREE_CONSTANT (result) = TREE_CONSTANT (x); return result;