diff options
Diffstat (limited to 'gcc/c/c-fold.c')
-rw-r--r-- | gcc/c/c-fold.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/c/c-fold.c b/gcc/c/c-fold.c index 12460bc..480e34c 100644 --- a/gcc/c/c-fold.c +++ b/gcc/c/c-fold.c @@ -676,3 +676,13 @@ c_fully_fold_internal (tree expr, bool in_init, bool *maybe_const_operands, } return ret; } + +/* Fold X for consideration by one of the warning functions when checking + whether an expression has a constant value. */ + +tree +fold_for_warn (tree x) +{ + /* The C front-end has already folded X appropriately. */ + return x; +} |