From b1aa345d4f691a9a9dce12226983539e98866a84 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 13 Apr 1993 20:33:27 +0000 Subject: [PATCH] Comment change. From-SVN: r4130 --- gcc/fold-const.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 02d4027..a7994ae 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; -- 2.7.4