diff options
author | Nathan Sidwell <nathan@acm.org> | 2018-10-31 15:26:28 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2018-10-31 15:26:28 +0000 |
commit | f3f6029db2e5f960c10062d8c8c74d766fcad6d2 (patch) | |
tree | 65fe76f5ca430fb5055b03a24045e1d61e3668be /libcpp/init.c | |
parent | 82a14443dbad05cdf1bd09c7ebc98c406c81e384 (diff) | |
download | gcc-f3f6029db2e5f960c10062d8c8c74d766fcad6d2.zip gcc-f3f6029db2e5f960c10062d8c8c74d766fcad6d2.tar.gz gcc-f3f6029db2e5f960c10062d8c8c74d766fcad6d2.tar.bz2 |
[6/6] Preprocessor forced macro location
https://gcc.gnu.org/ml/gcc-patches/2018-10/msg02044.html
libcpp/
* internal.h (struct cpp_reader): Rename forced_token_location_p
to forced_token_location and drop its pointerness.
* include/cpplib.h (cpp_force_token_locations): Take location, not
pointer to one.
* init.c (cpp_create_reader): Adjust.
* lex.c (cpp_read_main_file):
gcc/c-family/
* c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
gcc/fortran/
* cpp.c (gfc_cpp_init): Adjust cpp_force_token_locations call.
From-SVN: r265692
Diffstat (limited to 'libcpp/init.c')
-rw-r--r-- | libcpp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/init.c b/libcpp/init.c index 9b7490b..43c07fc 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -264,7 +264,7 @@ cpp_create_reader (enum c_lang lang, cpp_hash_table *table, pfile->pushed_macros = 0; /* Do not force token locations by default. */ - pfile->forced_token_location_p = NULL; + pfile->forced_token_location = 0; /* Initialize source_date_epoch to -2 (not yet set). */ pfile->source_date_epoch = (time_t) -2; |