aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-06-04 15:51:31 +0200
committerJakub Jelinek <jakub@redhat.com>2024-06-04 15:51:31 +0200
commit7be37a9bd40862e6a4686105cacf22d393258848 (patch)
treeab51cb380299c9dd7b2a2479f4f754d8f488de87 /gcc
parentb82a816000791e7a286c7836b3a473ec0e2a577b (diff)
downloadgcc-7be37a9bd40862e6a4686105cacf22d393258848.zip
gcc-7be37a9bd40862e6a4686105cacf22d393258848.tar.gz
gcc-7be37a9bd40862e6a4686105cacf22d393258848.tar.bz2
fold-const, gimple-fold: Some formatting cleanups
While looking into PR115337, I've spotted some badly formatted code, which the following patch fixes. 2024-06-04 Jakub Jelinek <jakub@redhat.com> * fold-const.cc (tree_call_nonnegative_warnv_p): Formatting fixes. (tree_invalid_nonnegative_warnv_p): Likewise. * gimple-fold.cc (gimple_call_nonnegative_warnv_p): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fold-const.cc8
-rw-r--r--gcc/gimple-fold.cc8
2 files changed, 8 insertions, 8 deletions
diff --git a/gcc/fold-const.cc b/gcc/fold-const.cc
index 65ce03d..048c654 100644
--- a/gcc/fold-const.cc
+++ b/gcc/fold-const.cc
@@ -15331,8 +15331,8 @@ tree_call_nonnegative_warnv_p (tree type, combined_fn fn, tree arg0, tree arg1,
non-negative if both operands are non-negative. In the presence
of qNaNs, we're non-negative if either operand is non-negative
and can't be a qNaN, or if both operands are non-negative. */
- if (tree_expr_maybe_signaling_nan_p (arg0) ||
- tree_expr_maybe_signaling_nan_p (arg1))
+ if (tree_expr_maybe_signaling_nan_p (arg0)
+ || tree_expr_maybe_signaling_nan_p (arg1))
return RECURSE (arg0) && RECURSE (arg1);
return RECURSE (arg0) ? (!tree_expr_maybe_nan_p (arg0)
|| RECURSE (arg1))
@@ -15431,8 +15431,8 @@ tree_invalid_nonnegative_warnv_p (tree t, bool *strict_overflow_p, int depth)
case CALL_EXPR:
{
- tree arg0 = call_expr_nargs (t) > 0 ? CALL_EXPR_ARG (t, 0) : NULL_TREE;
- tree arg1 = call_expr_nargs (t) > 1 ? CALL_EXPR_ARG (t, 1) : NULL_TREE;
+ tree arg0 = call_expr_nargs (t) > 0 ? CALL_EXPR_ARG (t, 0) : NULL_TREE;
+ tree arg1 = call_expr_nargs (t) > 1 ? CALL_EXPR_ARG (t, 1) : NULL_TREE;
return tree_call_nonnegative_warnv_p (TREE_TYPE (t),
get_call_combined_fn (t),
diff --git a/gcc/gimple-fold.cc b/gcc/gimple-fold.cc
index c33583c..7c534d5 100644
--- a/gcc/gimple-fold.cc
+++ b/gcc/gimple-fold.cc
@@ -9334,10 +9334,10 @@ static bool
gimple_call_nonnegative_warnv_p (gimple *stmt, bool *strict_overflow_p,
int depth)
{
- tree arg0 = gimple_call_num_args (stmt) > 0 ?
- gimple_call_arg (stmt, 0) : NULL_TREE;
- tree arg1 = gimple_call_num_args (stmt) > 1 ?
- gimple_call_arg (stmt, 1) : NULL_TREE;
+ tree arg0
+ = gimple_call_num_args (stmt) > 0 ? gimple_call_arg (stmt, 0) : NULL_TREE;
+ tree arg1
+ = gimple_call_num_args (stmt) > 1 ? gimple_call_arg (stmt, 1) : NULL_TREE;
tree lhs = gimple_call_lhs (stmt);
return (lhs
&& tree_call_nonnegative_warnv_p (TREE_TYPE (lhs),