Mercurial > hg > CbC > CbC_gcc
diff gcc/input.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/input.h Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/input.h Thu Feb 13 11:34:05 2020 +0900 @@ -1,6 +1,6 @@ /* Declarations for variables relating to reading the source file. Used by parsers, lexical analyzers, and error message routines. - Copyright (C) 1993-2018 Free Software Foundation, Inc. + Copyright (C) 1993-2020 Free Software Foundation, Inc. This file is part of GCC. @@ -23,21 +23,22 @@ #include "line-map.h" -extern GTY(()) struct line_maps *line_table; -extern GTY(()) struct line_maps *saved_line_table; +extern GTY(()) class line_maps *line_table; +extern GTY(()) class line_maps *saved_line_table; /* A value which will never be used to represent a real location. */ -#define UNKNOWN_LOCATION ((source_location) 0) +#define UNKNOWN_LOCATION ((location_t) 0) /* The location for declarations in "<built-in>" */ -#define BUILTINS_LOCATION ((source_location) 1) +#define BUILTINS_LOCATION ((location_t) 1) /* line-map.c reserves RESERVED_LOCATION_COUNT to the user. Ensure both UNKNOWN_LOCATION and BUILTINS_LOCATION fit into that. */ STATIC_ASSERT (BUILTINS_LOCATION < RESERVED_LOCATION_COUNT); -extern bool is_location_from_builtin_token (source_location); -extern expanded_location expand_location (source_location); +extern bool is_location_from_builtin_token (location_t); +extern expanded_location expand_location (location_t); +extern int location_compute_display_column (expanded_location); /* A class capturing the bounds of a buffer, to allow for run-time bounds-checking in a checked build. */ @@ -86,15 +87,11 @@ extern bool location_missing_trailing_newline (const char *file_path); extern expanded_location -expand_location_to_spelling_point (source_location, +expand_location_to_spelling_point (location_t, enum location_aspect aspect = LOCATION_ASPECT_CARET); -extern source_location expansion_point_location_if_in_system_header (source_location); -extern source_location expansion_point_location (source_location); - -/* Historically GCC used location_t, while cpp used source_location. - This could be removed but it hardly seems worth the effort. */ -typedef source_location location_t; +extern location_t expansion_point_location_if_in_system_header (location_t); +extern location_t expansion_point_location (location_t); extern location_t input_location; @@ -179,8 +176,9 @@ void diagnostics_file_cache_forcibly_evict_file (const char *file_path); -struct GTY(()) string_concat +class GTY(()) string_concat { +public: string_concat (int num, location_t *locs); int m_num;