aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include/cpplib.h
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-11-01 17:46:37 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2022-11-01 17:46:37 +0100
commit762066ae83e0b863f647cb7a04e745fa334c22ef (patch)
treec40d3716dd47e65d8ac1aeab28f6fed8dd497c35 /libcpp/include/cpplib.h
parent2d1c287af3a074d40e84234be9feca904af627d5 (diff)
parente7310e24b1c0ca67b1bb507c1330b2bf39e59e32 (diff)
downloadgcc-762066ae83e0b863f647cb7a04e745fa334c22ef.zip
gcc-762066ae83e0b863f647cb7a04e745fa334c22ef.tar.gz
gcc-762066ae83e0b863f647cb7a04e745fa334c22ef.tar.bz2
Merge remote-tracking branch 'mainline/trunk' into ibuclaw/merge_trunk
Diffstat (limited to 'libcpp/include/cpplib.h')
-rw-r--r--libcpp/include/cpplib.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index 2db1e9c..1d34c00 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -179,7 +179,11 @@ enum c_lang {CLK_GNUC89 = 0, CLK_GNUC99, CLK_GNUC11, CLK_GNUC17, CLK_GNUC2X,
/* Payload of a NUMBER, STRING, CHAR or COMMENT token. */
struct GTY(()) cpp_string {
unsigned int len;
- const unsigned char *text;
+
+ /* TEXT is always null terminated (terminator not included in len); but this
+ GTY markup arranges that PCH streaming works properly even if there is a
+ null byte in the middle of the string. */
+ const unsigned char * GTY((string_length ("1 + %h.len"))) text;
};
/* Flags for the cpp_token structure. */
@@ -496,6 +500,10 @@ struct cpp_options
in C11. */
unsigned char c11_identifiers;
+ /* Nonzero means extended identifiers allow the characters specified
+ by Unicode XID_Start and XID_Continue properties. */
+ unsigned char xid_identifiers;
+
/* Nonzero for C++ 2014 Standard binary constants. */
unsigned char binary_constants;
@@ -1275,6 +1283,7 @@ struct cpp_num
#define CPP_N_USERDEF 0x1000000 /* C++11 user-defined literal. */
#define CPP_N_SIZE_T 0x2000000 /* C++23 size_t literal. */
+#define CPP_N_BFLOAT16 0x4000000 /* std::bfloat16_t type. */
#define CPP_N_WIDTH_FLOATN_NX 0xF0000000 /* _FloatN / _FloatNx value
of N, divided by 16. */