aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorGCC Administrator <gccadmin@gcc.gnu.org>2024-10-16 11:37:33 +0000
committerGCC Administrator <gccadmin@gcc.gnu.org>2024-10-16 11:37:33 +0000
commitd9e02add88d45f9f6d35f0caaefe9f0c1907a510 (patch)
tree2ce239ef15c5fe7b9f47bff962fcfaeb5cf52d6e /libcpp
parent62cdddd4e621a8182c58161188009f1e9b256e1b (diff)
downloadgcc-d9e02add88d45f9f6d35f0caaefe9f0c1907a510.tar.gz
gcc-d9e02add88d45f9f6d35f0caaefe9f0c1907a510.tar.bz2
gcc-d9e02add88d45f9f6d35f0caaefe9f0c1907a510.zip
Daily bump.
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog56
1 files changed, 56 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 74124c8f496b..805e199280ba 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,59 @@
+2024-10-16 Jakub Jelinek <jakub@redhat.com>
+
+ * include/cpplib.h (TTYPE_TABLE): Add CPP_EMBED token type.
+ * files.cc (finish_embed): For limit >= 64 and C preprocessing
+ instead of emitting CPP_NUMBER CPP_COMMA separated sequence for the
+ whole embed emit it just for the first and last byte and in between
+ emit a CPP_EMBED token or tokens if too large.
+
+2024-10-15 Jakub Jelinek <jakub@redhat.com>
+
+ * include/cpplib.h (struct cpp_options): Add
+ cpp_warn_trailing_whitespace member.
+ (enum cpp_warning_reason): Add CPP_W_TRAILING_WHITESPACE.
+ * internal.h (struct _cpp_line_note): Document 'W' line note.
+ * lex.cc (_cpp_clean_line): Add 'W' line note for trailing whitespace
+ except for trailing whitespace after backslash. Formatting fix.
+ (_cpp_process_line_notes): Emit -Wtrailing-whitespace diagnostics.
+ Formatting fixes.
+ (lex_raw_string): Clear type on 'W' notes.
+
+2024-10-14 Jason Merrill <jason@redhat.com>
+
+ * lex.cc (cpp_output_token): Omit terminal space from name.
+
+2024-10-14 Lewis Hyatt <lhyatt@gmail.com>
+
+ PR preprocessor/114436
+ * directives.cc (destringize_and_run): If the _Pragma changed the
+ buffer system header state (e.g. because it was "GCC
+ system_header"), propagate that change back to the actual buffer
+ too.
+
+2024-10-14 Lewis Hyatt <lhyatt@gmail.com>
+
+ PR preprocessor/109704
+ * include/cpplib.h (class cpp_auto_suppress_diagnostics): New class.
+ * errors.cc
+ (cpp_auto_suppress_diagnostics::cpp_auto_suppress_diagnostics): New
+ function.
+ (cpp_auto_suppress_diagnostics::~cpp_auto_suppress_diagnostics): New
+ function.
+ * charset.cc (noop_diagnostic_cb): Remove.
+ (cpp_interpret_string_ranges): Refactor diagnostic suppression logic
+ into new class cpp_auto_suppress_diagnostics.
+ (count_source_chars): Likewise.
+ * directives.cc (cpp_pop_definition): Add cpp_hashnode argument.
+ (lex_identifier_from_string): New static helper function.
+ (push_pop_macro_common): Refactor common logic from
+ do_pragma_push_macro and do_pragma_pop_macro; use
+ lex_identifier_from_string instead of _cpp_lex_identifier.
+ (do_pragma_push_macro): Reimplement using push_pop_macro_common.
+ (do_pragma_pop_macro): Likewise.
+ * internal.h (_cpp_lex_identifier): Remove.
+ * lex.cc (lex_identifier_intern): Remove.
+ (_cpp_lex_identifier): Remove.
+
2024-10-12 Jakub Jelinek <jakub@redhat.com>
* include/cpplib.h (ATTRIBUTE_CPP_PPDIAG): Define.