aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/gimple-parser.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-09-19 13:18:51 +0200
committerRichard Biener <rguenther@suse.de>2023-09-19 14:43:13 +0200
commitf25960b03834712f312d46fed9a021df36f89f22 (patch)
treedd19469d57845f5f8e527eabc60ed90dafef1861 /gcc/c/gimple-parser.cc
parentb510b83aad52adf94d52a6ae3a3b332946e947a1 (diff)
downloadgcc-f25960b03834712f312d46fed9a021df36f89f22.zip
gcc-f25960b03834712f312d46fed9a021df36f89f22.tar.gz
gcc-f25960b03834712f312d46fed9a021df36f89f22.tar.bz2
c/111468 - dump unordered compare operators in their GIMPLE form with -gimple
The following adjusts -gimple dumping to dump the unordered compare ops and *h in their GIMPLE form. It also adds parsing for __LTGT which I missed before. PR c/111468 gcc/c/ * gimple-parser.cc (c_parser_gimple_binary_expression): Handle __LTGT. gcc/ * tree-pretty-print.h (op_symbol_code): Add defaulted flags argument. * tree-pretty-print.cc (op_symbol): Likewise. (op_symbol_code): Print TDF_GIMPLE variant if requested. * gimple-pretty-print.cc (dump_binary_rhs): Pass flags to op_symbol_code. (dump_gimple_cond): Likewise. gcc/testsuite/ * gcc.dg/gimplefe-50.c: Amend.
Diffstat (limited to 'gcc/c/gimple-parser.cc')
-rw-r--r--gcc/c/gimple-parser.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c/gimple-parser.cc b/gcc/c/gimple-parser.cc
index 9cf2970..f43c039 100644
--- a/gcc/c/gimple-parser.cc
+++ b/gcc/c/gimple-parser.cc
@@ -1044,6 +1044,11 @@ c_parser_gimple_binary_expression (gimple_parser &parser, tree ret_type)
code = ORDERED_EXPR;
break;
}
+ else if (strcmp (IDENTIFIER_POINTER (id), "__LTGT") == 0)
+ {
+ code = LTGT_EXPR;
+ break;
+ }
}
/* Fallthru. */
default: