From f3f6029db2e5f960c10062d8c8c74d766fcad6d2 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 31 Oct 2018 15:26:28 +0000 Subject: [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 --- gcc/fortran/cpp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/fortran/cpp.c') diff --git a/gcc/fortran/cpp.c b/gcc/fortran/cpp.c index 3091eeb..a28421f 100644 --- a/gcc/fortran/cpp.c +++ b/gcc/fortran/cpp.c @@ -579,8 +579,7 @@ gfc_cpp_init (void) { /* Make sure all of the builtins about to be declared have BUILTINS_LOCATION has their source_location. */ - source_location builtins_loc = BUILTINS_LOCATION; - cpp_force_token_locations (cpp_in, &builtins_loc); + cpp_force_token_locations (cpp_in, BUILTINS_LOCATION); cpp_define_builtins (cpp_in); -- cgit v1.1