aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2021-05-11 14:25:55 +0000
committerJoseph Myers <joseph@codesourcery.com>2021-05-11 14:25:55 +0000
commit5ea40269a77a3754dd0f610f7c09b1a372e3c7f7 (patch)
treecc0b1ef3b1f4f4a03447c7cca3b8cdec6ffd7bee /gcc/expr.c
parent010d4a5047166037b316ed22331f3d99742f1f1d (diff)
downloadgcc-5ea40269a77a3754dd0f610f7c09b1a372e3c7f7.zip
gcc-5ea40269a77a3754dd0f610f7c09b1a372e3c7f7.tar.gz
gcc-5ea40269a77a3754dd0f610f7c09b1a372e3c7f7.tar.bz2
preprocessor: Enable digit separators for C2X
C2X adds digit separators, as in C++. Enable them accordingly in libcpp and c-lex.c. Some basic tests are added that digit separators behave as expected for C2X and are properly disabled for C11; further test coverage is included in the existing g++.dg/cpp1y/digit-sep*.C tests. Bootstrapped with no regressions for x86_64-pc-linux-gnu. gcc/c-family/ * c-lex.c (interpret_float): Handle digit separators for C2X. libcpp/ * init.c (lang_defaults): Enable digit separators for GNUC2X and STDC2X. gcc/testsuite/ * gcc.dg/c11-digit-separators-1.c, gcc.dg/c2x-digit-separators-1.c, gcc.dg/c2x-digit-separators-2.c: New tests.
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions