diff options
author | Lewis Hyatt <lhyatt@gmail.com> | 2024-10-28 12:52:23 -0400 |
---|---|---|
committer | Lewis Hyatt <lhyatt@gcc.gnu.org> | 2024-11-23 13:44:37 -0500 |
commit | 9262b6e4e5f65ec3ea49a0ecc4b3ace91cc8b388 (patch) | |
tree | c7290e407ffcb2acca51d08a1d234ca9cace8af0 /gcc | |
parent | c93eb81c9edbf9bec6a12a2125037ec29d1cd4d2 (diff) | |
download | gcc-9262b6e4e5f65ec3ea49a0ecc4b3ace91cc8b388.zip gcc-9262b6e4e5f65ec3ea49a0ecc4b3ace91cc8b388.tar.gz gcc-9262b6e4e5f65ec3ea49a0ecc4b3ace91cc8b388.tar.bz2 |
Support for 64-bit location_t: Frontend parts
The C/C++ frontend code contains a couple instances where a callback
receiving a "location_t" argument is prototyped to take "unsigned int"
instead. This will make a difference once location_t can be configured to a
different type, so adjust that now.
Also remove a comment about -flarge-source-files, which will be removed
shortly.
gcc/c-family/ChangeLog:
* c-indentation.cc (should_warn_for_misleading_indentation): Remove
comment about -flarge-source-files.
* c-lex.cc (cb_ident): Change "unsigned int" argument to type
"location_t".
(cb_def_pragma): Likewise.
(cb_define): Likewise.
(cb_undef): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/c-indentation.cc | 5 | ||||
-rw-r--r-- | gcc/c-family/c-lex.cc | 10 |
2 files changed, 5 insertions, 10 deletions
diff --git a/gcc/c-family/c-indentation.cc b/gcc/c-family/c-indentation.cc index 6f09000..1745ec4 100644 --- a/gcc/c-family/c-indentation.cc +++ b/gcc/c-family/c-indentation.cc @@ -321,11 +321,6 @@ should_warn_for_misleading_indentation (const token_indent_info &guard_tinfo, "%<-Wmisleading-indentation%> is disabled from this point" " onwards, since column-tracking was disabled due to" " the size of the code/headers"); - if (!flag_large_source_files) - inform (guard_loc, - "adding %<-flarge-source-files%> will allow for more" - " column-tracking support, at the expense of compilation" - " time and memory"); } return false; } diff --git a/gcc/c-family/c-lex.cc b/gcc/c-family/c-lex.cc index 32f1970..90ae4ca 100644 --- a/gcc/c-family/c-lex.cc +++ b/gcc/c-family/c-lex.cc @@ -54,10 +54,10 @@ static tree lex_charconst (const cpp_token *); static void update_header_times (const char *); static int dump_one_header (splay_tree_node, void *); static void cb_line_change (cpp_reader *, const cpp_token *, int); -static void cb_ident (cpp_reader *, unsigned int, const cpp_string *); -static void cb_def_pragma (cpp_reader *, unsigned int); -static void cb_define (cpp_reader *, unsigned int, cpp_hashnode *); -static void cb_undef (cpp_reader *, unsigned int, cpp_hashnode *); +static void cb_ident (cpp_reader *, location_t, const cpp_string *); +static void cb_def_pragma (cpp_reader *, location_t); +static void cb_define (cpp_reader *, location_t, cpp_hashnode *); +static void cb_undef (cpp_reader *, location_t, cpp_hashnode *); void init_c_lex (void) @@ -164,7 +164,7 @@ dump_time_statistics (void) static void cb_ident (cpp_reader * ARG_UNUSED (pfile), - unsigned int ARG_UNUSED (line), + location_t ARG_UNUSED (line), const cpp_string * ARG_UNUSED (str)) { if (!flag_no_ident) |