1 /* Support for fully folding sub-trees of an expression for C compiler.
2 Copyright (C) 1992-2018 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
22 #include "coretypes.h"
30 static tree
c_fully_fold_internal (tree expr
, bool, bool *, bool *, bool,
33 /* If DISABLE is true, stop issuing warnings. This is used when
34 parsing code that we know will not be executed. This function may
35 be called multiple times, and works as a stack. */
38 c_disable_warnings (bool disable
)
42 ++c_inhibit_evaluation_warnings
;
43 fold_defer_overflow_warnings ();
47 /* If ENABLE is true, reenable issuing warnings. */
50 c_enable_warnings (bool enable
)
54 --c_inhibit_evaluation_warnings
;
55 fold_undefer_and_ignore_overflow_warnings ();
59 /* Try to fold ARRAY_REF ary[index] if possible and not handled by
60 normal fold, return NULL_TREE otherwise. */
63 c_fold_array_ref (tree type
, tree ary
, tree index
)
65 if (TREE_CODE (ary
) != STRING_CST
66 || TREE_CODE (index
) != INTEGER_CST
67 || TREE_OVERFLOW (index
)
68 || TREE_CODE (TREE_TYPE (ary
)) != ARRAY_TYPE
69 || !tree_fits_uhwi_p (index
))
72 tree elem_type
= TREE_TYPE (TREE_TYPE (ary
));
73 unsigned elem_nchars
= (TYPE_PRECISION (elem_type
)
74 / TYPE_PRECISION (char_type_node
));
75 unsigned len
= (unsigned) TREE_STRING_LENGTH (ary
) / elem_nchars
;
76 tree nelts
= array_type_nelts (TREE_TYPE (ary
));
77 bool dummy1
= true, dummy2
= true;
78 nelts
= c_fully_fold_internal (nelts
, true, &dummy1
, &dummy2
, false, false);
79 unsigned HOST_WIDE_INT i
= tree_to_uhwi (index
);
80 if (!tree_int_cst_le (index
, nelts
)
82 || i
+ elem_nchars
> len
)
86 return build_int_cst (type
, TREE_STRING_POINTER (ary
)[i
]);
88 const unsigned char *ptr
89 = ((const unsigned char *)TREE_STRING_POINTER (ary
) + i
* elem_nchars
);
90 return native_interpret_expr (type
, ptr
, elem_nchars
);
93 /* Fully fold EXPR, an expression that was not folded (beyond integer
94 constant expressions and null pointer constants) when being built
95 up. If IN_INIT, this is in a static initializer and certain
96 changes are made to the folding done. Clear *MAYBE_CONST if
97 MAYBE_CONST is not NULL and EXPR is definitely not a constant
98 expression because it contains an evaluated operator (in C99) or an
99 operator outside of sizeof returning an integer constant (in C90)
100 not permitted in constant expressions, or because it contains an
101 evaluated arithmetic overflow. (*MAYBE_CONST should typically be
102 set to true by callers before calling this function.) Return the
103 folded expression. Function arguments have already been folded
104 before calling this function, as have the contents of SAVE_EXPR,
105 TARGET_EXPR, BIND_EXPR, VA_ARG_EXPR, OBJ_TYPE_REF and
106 C_MAYBE_CONST_EXPR. LVAL is true if it should be treated as an
110 c_fully_fold (tree expr
, bool in_init
, bool *maybe_const
, bool lval
)
113 tree eptype
= NULL_TREE
;
115 bool maybe_const_itself
= true;
116 location_t loc
= EXPR_LOCATION (expr
);
119 maybe_const
= &dummy
;
120 if (TREE_CODE (expr
) == EXCESS_PRECISION_EXPR
)
122 eptype
= TREE_TYPE (expr
);
123 expr
= TREE_OPERAND (expr
, 0);
125 ret
= c_fully_fold_internal (expr
, in_init
, maybe_const
,
126 &maybe_const_itself
, false, lval
);
128 ret
= fold_convert_loc (loc
, eptype
, ret
);
129 *maybe_const
&= maybe_const_itself
;
133 /* Internal helper for c_fully_fold. EXPR and IN_INIT are as for
134 c_fully_fold. *MAYBE_CONST_OPERANDS is cleared because of operands
135 not permitted, while *MAYBE_CONST_ITSELF is cleared because of
136 arithmetic overflow (for C90, *MAYBE_CONST_OPERANDS is carried from
137 both evaluated and unevaluated subexpressions while
138 *MAYBE_CONST_ITSELF is carried from only evaluated
139 subexpressions). FOR_INT_CONST indicates if EXPR is an expression
140 with integer constant operands, and if any of the operands doesn't
141 get folded to an integer constant, don't fold the expression itself.
142 LVAL indicates folding of lvalue, where we can't replace it with
146 c_fully_fold_internal (tree expr
, bool in_init
, bool *maybe_const_operands
,
147 bool *maybe_const_itself
, bool for_int_const
, bool lval
)
150 enum tree_code code
= TREE_CODE (expr
);
151 enum tree_code_class kind
= TREE_CODE_CLASS (code
);
152 location_t loc
= EXPR_LOCATION (expr
);
153 tree op0
, op1
, op2
, op3
;
154 tree orig_op0
, orig_op1
, orig_op2
;
155 bool op0_const
= true, op1_const
= true, op2_const
= true;
156 bool op0_const_self
= true, op1_const_self
= true, op2_const_self
= true;
157 bool nowarning
= TREE_NO_WARNING (expr
);
159 bool op0_lval
= false;
160 source_range old_range
;
162 /* Constants, declarations, statements, errors, and anything else not
163 counted as an expression cannot usefully be folded further at this
165 if (!IS_EXPR_CODE_CLASS (kind
) || kind
== tcc_statement
)
167 /* Except for variables which we can optimize to its initializer. */
168 if (VAR_P (expr
) && !lval
&& (optimize
|| in_init
))
171 ret
= decl_constant_value_1 (expr
, true);
174 ret
= decl_constant_value (expr
);
176 && (TYPE_MODE (TREE_TYPE (ret
)) == BLKmode
177 || TREE_CODE (TREE_TYPE (ret
)) == ARRAY_TYPE
))
180 /* Avoid unwanted tree sharing between the initializer and current
181 function's body where the tree can be modified e.g. by the
183 if (ret
!= expr
&& TREE_STATIC (expr
))
184 ret
= unshare_expr (ret
);
190 if (IS_EXPR_CODE_CLASS (kind
))
191 old_range
= EXPR_LOCATION_RANGE (expr
);
193 /* Operands of variable-length expressions (function calls) have
194 already been folded, as have __builtin_* function calls, and such
195 expressions cannot occur in constant expressions. */
196 if (kind
== tcc_vl_exp
)
198 *maybe_const_operands
= false;
203 if (code
== C_MAYBE_CONST_EXPR
)
205 tree pre
= C_MAYBE_CONST_EXPR_PRE (expr
);
206 tree inner
= C_MAYBE_CONST_EXPR_EXPR (expr
);
207 if (C_MAYBE_CONST_EXPR_NON_CONST (expr
))
208 *maybe_const_operands
= false;
209 if (C_MAYBE_CONST_EXPR_INT_OPERANDS (expr
))
211 *maybe_const_itself
= false;
212 inner
= c_fully_fold_internal (inner
, in_init
, maybe_const_operands
,
213 maybe_const_itself
, true, lval
);
216 ret
= build2 (COMPOUND_EXPR
, TREE_TYPE (expr
), pre
, inner
);
222 /* Assignment, increment, decrement, function call and comma
223 operators, and statement expressions, cannot occur in constant
224 expressions if evaluated / outside of sizeof. (Function calls
225 were handled above, though VA_ARG_EXPR is treated like a function
226 call here, and statement expressions are handled through
227 C_MAYBE_CONST_EXPR to avoid folding inside them.) */
231 case PREDECREMENT_EXPR
:
232 case PREINCREMENT_EXPR
:
233 case POSTDECREMENT_EXPR
:
234 case POSTINCREMENT_EXPR
:
236 *maybe_const_operands
= false;
243 *maybe_const_operands
= false;
251 /* Fold individual tree codes as appropriate. */
254 case COMPOUND_LITERAL_EXPR
:
255 /* Any non-constancy will have been marked in a containing
256 C_MAYBE_CONST_EXPR; there is no more folding to do here. */
260 orig_op0
= op0
= TREE_OPERAND (expr
, 0);
261 op1
= TREE_OPERAND (expr
, 1);
262 op2
= TREE_OPERAND (expr
, 2);
263 op0
= c_fully_fold_internal (op0
, in_init
, maybe_const_operands
,
264 maybe_const_itself
, for_int_const
, lval
);
265 STRIP_TYPE_NOPS (op0
);
267 ret
= build3 (COMPONENT_REF
, TREE_TYPE (expr
), op0
, op1
, op2
);
270 TREE_READONLY (ret
) = TREE_READONLY (expr
);
271 TREE_THIS_VOLATILE (ret
) = TREE_THIS_VOLATILE (expr
);
278 orig_op0
= op0
= TREE_OPERAND (expr
, 0);
279 orig_op1
= op1
= TREE_OPERAND (expr
, 1);
280 op2
= TREE_OPERAND (expr
, 2);
281 op3
= TREE_OPERAND (expr
, 3);
282 op0
= c_fully_fold_internal (op0
, in_init
, maybe_const_operands
,
283 maybe_const_itself
, for_int_const
, lval
);
284 STRIP_TYPE_NOPS (op0
);
285 op1
= c_fully_fold_internal (op1
, in_init
, maybe_const_operands
,
286 maybe_const_itself
, for_int_const
, false);
287 STRIP_TYPE_NOPS (op1
);
288 /* Fold "foo"[2] in initializers. */
289 if (!lval
&& in_init
)
291 ret
= c_fold_array_ref (TREE_TYPE (expr
), op0
, op1
);
296 if (op0
!= orig_op0
|| op1
!= orig_op1
)
297 ret
= build4 (ARRAY_REF
, TREE_TYPE (expr
), op0
, op1
, op2
, op3
);
300 TREE_READONLY (ret
) = TREE_READONLY (expr
);
301 TREE_SIDE_EFFECTS (ret
) = TREE_SIDE_EFFECTS (expr
);
302 TREE_THIS_VOLATILE (ret
) = TREE_THIS_VOLATILE (expr
);
309 case PREDECREMENT_EXPR
:
310 case PREINCREMENT_EXPR
:
311 case POSTDECREMENT_EXPR
:
312 case POSTINCREMENT_EXPR
:
319 case POINTER_PLUS_EXPR
:
320 case POINTER_DIFF_EXPR
:
349 /* Binary operations evaluating both arguments (increment and
350 decrement are binary internally in GCC). */
351 orig_op0
= op0
= TREE_OPERAND (expr
, 0);
352 orig_op1
= op1
= TREE_OPERAND (expr
, 1);
353 op0
= c_fully_fold_internal (op0
, in_init
, maybe_const_operands
,
354 maybe_const_itself
, for_int_const
,
356 STRIP_TYPE_NOPS (op0
);
357 /* The RHS of a MODIFY_EXPR was fully folded when building that
358 expression for the sake of conversion warnings. */
359 if (code
!= MODIFY_EXPR
)
360 op1
= c_fully_fold_internal (op1
, in_init
, maybe_const_operands
,
361 maybe_const_itself
, for_int_const
, false);
362 STRIP_TYPE_NOPS (op1
);
364 if (for_int_const
&& (TREE_CODE (op0
) != INTEGER_CST
365 || TREE_CODE (op1
) != INTEGER_CST
))
368 if (op0
!= orig_op0
|| op1
!= orig_op1
|| in_init
)
370 ? fold_build2_initializer_loc (loc
, code
, TREE_TYPE (expr
), op0
, op1
)
371 : fold_build2_loc (loc
, code
, TREE_TYPE (expr
), op0
, op1
);
374 if (TREE_OVERFLOW_P (ret
)
375 && !TREE_OVERFLOW_P (op0
)
376 && !TREE_OVERFLOW_P (op1
))
377 overflow_warning (EXPR_LOC_OR_LOC (expr
, input_location
), ret
, expr
);
378 if (code
== LSHIFT_EXPR
379 && TREE_CODE (orig_op0
) != INTEGER_CST
380 && TREE_CODE (TREE_TYPE (orig_op0
)) == INTEGER_TYPE
381 && TREE_CODE (op0
) == INTEGER_CST
382 && c_inhibit_evaluation_warnings
== 0
383 && tree_int_cst_sgn (op0
) < 0)
384 warning_at (loc
, OPT_Wshift_negative_value
,
385 "left shift of negative value");
386 if ((code
== LSHIFT_EXPR
|| code
== RSHIFT_EXPR
)
387 && TREE_CODE (orig_op1
) != INTEGER_CST
388 && TREE_CODE (op1
) == INTEGER_CST
389 && TREE_CODE (TREE_TYPE (orig_op1
)) == INTEGER_TYPE
390 && c_inhibit_evaluation_warnings
== 0)
392 if (tree_int_cst_sgn (op1
) < 0)
393 warning_at (loc
, OPT_Wshift_count_negative
,
395 ? G_("left shift count is negative")
396 : G_("right shift count is negative")));
397 else if ((TREE_CODE (TREE_TYPE (orig_op0
)) == INTEGER_TYPE
398 || TREE_CODE (TREE_TYPE (orig_op0
)) == FIXED_POINT_TYPE
)
399 && compare_tree_int (op1
,
400 TYPE_PRECISION (TREE_TYPE (orig_op0
)))
402 warning_at (loc
, OPT_Wshift_count_overflow
,
404 ? G_("left shift count >= width of type")
405 : G_("right shift count >= width of type")));
406 else if (TREE_CODE (TREE_TYPE (orig_op0
)) == VECTOR_TYPE
407 && compare_tree_int (op1
,
408 TYPE_PRECISION (TREE_TYPE (TREE_TYPE (orig_op0
))))
410 warning_at (loc
, OPT_Wshift_count_overflow
,
412 ? G_("left shift count >= width of vector element")
413 : G_("right shift count >= width of vector element"));
415 if (code
== LSHIFT_EXPR
416 /* If either OP0 has been folded to INTEGER_CST... */
417 && ((TREE_CODE (orig_op0
) != INTEGER_CST
418 && TREE_CODE (TREE_TYPE (orig_op0
)) == INTEGER_TYPE
419 && TREE_CODE (op0
) == INTEGER_CST
)
420 /* ...or if OP1 has been folded to INTEGER_CST... */
421 || (TREE_CODE (orig_op1
) != INTEGER_CST
422 && TREE_CODE (TREE_TYPE (orig_op1
)) == INTEGER_TYPE
423 && TREE_CODE (op1
) == INTEGER_CST
))
424 && c_inhibit_evaluation_warnings
== 0)
425 /* ...then maybe we can detect an overflow. */
426 maybe_warn_shift_overflow (loc
, op0
, op1
);
427 if ((code
== TRUNC_DIV_EXPR
428 || code
== CEIL_DIV_EXPR
429 || code
== FLOOR_DIV_EXPR
430 || code
== EXACT_DIV_EXPR
431 || code
== TRUNC_MOD_EXPR
)
432 && TREE_CODE (orig_op1
) != INTEGER_CST
433 && TREE_CODE (op1
) == INTEGER_CST
434 && (TREE_CODE (TREE_TYPE (orig_op0
)) == INTEGER_TYPE
435 || TREE_CODE (TREE_TYPE (orig_op0
)) == FIXED_POINT_TYPE
)
436 && TREE_CODE (TREE_TYPE (orig_op1
)) == INTEGER_TYPE
)
437 warn_for_div_by_zero (loc
, op1
);
445 case VIEW_CONVERT_EXPR
:
452 case ADDR_SPACE_CONVERT_EXPR
:
453 case NON_LVALUE_EXPR
:
459 /* Unary operations. */
460 orig_op0
= op0
= TREE_OPERAND (expr
, 0);
461 op0
= c_fully_fold_internal (op0
, in_init
, maybe_const_operands
,
462 maybe_const_itself
, for_int_const
,
464 STRIP_TYPE_NOPS (op0
);
466 if (for_int_const
&& TREE_CODE (op0
) != INTEGER_CST
)
469 /* ??? Cope with user tricks that amount to offsetof. The middle-end is
470 not prepared to deal with them if they occur in initializers. */
473 && (op1
= get_base_address (op0
)) != NULL_TREE
474 && INDIRECT_REF_P (op1
)
475 && TREE_CONSTANT (TREE_OPERAND (op1
, 0)))
476 ret
= fold_convert_loc (loc
, TREE_TYPE (expr
), fold_offsetof_1 (op0
));
477 else if (op0
!= orig_op0
|| in_init
)
479 ? fold_build1_initializer_loc (loc
, code
, TREE_TYPE (expr
), op0
)
480 : fold_build1_loc (loc
, code
, TREE_TYPE (expr
), op0
);
483 if (code
== INDIRECT_REF
485 && INDIRECT_REF_P (ret
))
487 TREE_READONLY (ret
) = TREE_READONLY (expr
);
488 TREE_SIDE_EFFECTS (ret
) = TREE_SIDE_EFFECTS (expr
);
489 TREE_THIS_VOLATILE (ret
) = TREE_THIS_VOLATILE (expr
);
496 /* Don't warn about explicit conversions. We will already
497 have warned about suspect implicit conversions. */
501 if (TREE_OVERFLOW_P (ret
) && !TREE_OVERFLOW_P (op0
))
502 overflow_warning (EXPR_LOCATION (expr
), ret
, op0
);
507 case TRUTH_ANDIF_EXPR
:
508 case TRUTH_ORIF_EXPR
:
509 /* Binary operations not necessarily evaluating both
511 orig_op0
= op0
= TREE_OPERAND (expr
, 0);
512 orig_op1
= op1
= TREE_OPERAND (expr
, 1);
513 op0
= c_fully_fold_internal (op0
, in_init
, &op0_const
, &op0_const_self
,
514 for_int_const
, false);
515 STRIP_TYPE_NOPS (op0
);
517 unused_p
= (op0
== (code
== TRUTH_ANDIF_EXPR
518 ? truthvalue_false_node
519 : truthvalue_true_node
));
520 c_disable_warnings (unused_p
);
521 op1
= c_fully_fold_internal (op1
, in_init
, &op1_const
, &op1_const_self
,
522 for_int_const
, false);
523 STRIP_TYPE_NOPS (op1
);
524 c_enable_warnings (unused_p
);
527 && (TREE_CODE (op0
) != INTEGER_CST
528 /* Require OP1 be an INTEGER_CST only if it's evaluated. */
529 || (!unused_p
&& TREE_CODE (op1
) != INTEGER_CST
)))
532 if (op0
!= orig_op0
|| op1
!= orig_op1
|| in_init
)
534 ? fold_build2_initializer_loc (loc
, code
, TREE_TYPE (expr
), op0
, op1
)
535 : fold_build2_loc (loc
, code
, TREE_TYPE (expr
), op0
, op1
);
538 *maybe_const_operands
&= op0_const
;
539 *maybe_const_itself
&= op0_const_self
;
543 && (code
== TRUTH_ANDIF_EXPR
544 ? op0
== truthvalue_false_node
545 : op0
== truthvalue_true_node
)))
546 *maybe_const_operands
&= op1_const
;
549 && (code
== TRUTH_ANDIF_EXPR
550 ? op0
== truthvalue_false_node
551 : op0
== truthvalue_true_node
)))
552 *maybe_const_itself
&= op1_const_self
;
556 orig_op0
= op0
= TREE_OPERAND (expr
, 0);
557 orig_op1
= op1
= TREE_OPERAND (expr
, 1);
558 orig_op2
= op2
= TREE_OPERAND (expr
, 2);
559 op0
= c_fully_fold_internal (op0
, in_init
, &op0_const
, &op0_const_self
,
560 for_int_const
, false);
562 STRIP_TYPE_NOPS (op0
);
563 c_disable_warnings (op0
== truthvalue_false_node
);
564 op1
= c_fully_fold_internal (op1
, in_init
, &op1_const
, &op1_const_self
,
565 for_int_const
, false);
566 STRIP_TYPE_NOPS (op1
);
567 c_enable_warnings (op0
== truthvalue_false_node
);
569 c_disable_warnings (op0
== truthvalue_true_node
);
570 op2
= c_fully_fold_internal (op2
, in_init
, &op2_const
, &op2_const_self
,
571 for_int_const
, false);
572 STRIP_TYPE_NOPS (op2
);
573 c_enable_warnings (op0
== truthvalue_true_node
);
576 && (TREE_CODE (op0
) != INTEGER_CST
577 /* Only the evaluated operand must be an INTEGER_CST. */
578 || (op0
== truthvalue_true_node
579 ? TREE_CODE (op1
) != INTEGER_CST
580 : TREE_CODE (op2
) != INTEGER_CST
)))
583 if (op0
!= orig_op0
|| op1
!= orig_op1
|| op2
!= orig_op2
)
584 ret
= fold_build3_loc (loc
, code
, TREE_TYPE (expr
), op0
, op1
, op2
);
587 *maybe_const_operands
&= op0_const
;
588 *maybe_const_itself
&= op0_const_self
;
592 && op0
== truthvalue_false_node
))
593 *maybe_const_operands
&= op1_const
;
596 && op0
== truthvalue_false_node
))
597 *maybe_const_itself
&= op1_const_self
;
601 && op0
== truthvalue_true_node
))
602 *maybe_const_operands
&= op2_const
;
605 && op0
== truthvalue_true_node
))
606 *maybe_const_itself
&= op2_const_self
;
610 orig_op0
= op0
= TREE_OPERAND (expr
, 0);
611 orig_op1
= op1
= TREE_OPERAND (expr
, 1);
612 orig_op2
= op2
= TREE_OPERAND (expr
, 2);
613 op0
= c_fully_fold_internal (op0
, in_init
, maybe_const_operands
,
614 maybe_const_itself
, for_int_const
, false);
615 STRIP_TYPE_NOPS (op0
);
616 op1
= c_fully_fold_internal (op1
, in_init
, maybe_const_operands
,
617 maybe_const_itself
, for_int_const
, false);
618 STRIP_TYPE_NOPS (op1
);
619 op2
= c_fully_fold_internal (op2
, in_init
, maybe_const_operands
,
620 maybe_const_itself
, for_int_const
, false);
621 STRIP_TYPE_NOPS (op2
);
623 if (op0
!= orig_op0
|| op1
!= orig_op1
|| op2
!= orig_op2
)
624 ret
= fold_build3_loc (loc
, code
, TREE_TYPE (expr
), op0
, op1
, op2
);
629 case EXCESS_PRECISION_EXPR
:
630 /* Each case where an operand with excess precision may be
631 encountered must remove the EXCESS_PRECISION_EXPR around
632 inner operands and possibly put one around the whole
633 expression or possibly convert to the semantic type (which
634 c_fully_fold does); we cannot tell at this stage which is
635 appropriate in any particular case. */
639 /* Make sure to fold the contents of a SAVE_EXPR exactly once. */
640 op0
= TREE_OPERAND (expr
, 0);
641 if (!SAVE_EXPR_FOLDED_P (expr
))
643 op0
= c_fully_fold_internal (op0
, in_init
, maybe_const_operands
,
644 maybe_const_itself
, for_int_const
,
646 TREE_OPERAND (expr
, 0) = op0
;
647 SAVE_EXPR_FOLDED_P (expr
) = true;
649 /* Return the SAVE_EXPR operand if it is invariant. */
650 if (tree_invariant_p (op0
))
655 /* Various codes may appear through folding built-in functions
656 and their arguments. */
661 /* Some folding may introduce NON_LVALUE_EXPRs; all lvalue checks
662 have been done by this point, so remove them again. */
663 nowarning
|= TREE_NO_WARNING (ret
);
664 STRIP_TYPE_NOPS (ret
);
665 if (nowarning
&& !TREE_NO_WARNING (ret
))
667 if (!CAN_HAVE_LOCATION_P (ret
))
668 ret
= build1 (NOP_EXPR
, TREE_TYPE (ret
), ret
);
669 TREE_NO_WARNING (ret
) = 1;
673 protected_set_expr_location (ret
, loc
);
674 if (IS_EXPR_CODE_CLASS (kind
))
675 set_source_range (ret
, old_range
.m_start
, old_range
.m_finish
);
680 /* Fold X for consideration by one of the warning functions when checking
681 whether an expression has a constant value. */
684 fold_for_warn (tree x
)
686 /* The C front-end has already folded X appropriately. */