diff options
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r-- | libcpp/ChangeLog | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 775b000..874a08a 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,97 @@ +2025-08-07 Jakub Jelinek <jakub@redhat.com> + + PR preprocessor/120778 + * include/cpplib.h (struct cpp_options): Add cpp_warn_keyword_macro. + (enum cpp_warning_reason): Add CPP_W_KEYWORD_MACRO enumerator. + (cpp_keyword_p): New inline function. + * directives.cc (do_undef): Support -Wkeyword-macro diagnostics. + * macro.cc (warn_of_redefinition): Ignore NODE_WARN flag on nodes + registered for -Wkeyword-macro. + (_cpp_create_definition): Support -Wkeyword-macro diagnostics. + Formatting fixes. + +2025-08-05 Jakub Jelinek <jakub@redhat.com> + + PR preprocessor/120778 + * macro.cc (paste_tokens): Use %< and %> instead of \" in + diagnostics around %.*s. + +2025-08-04 Jakub Jelinek <jakub@redhat.com> + + PR preprocessor/120778 + * macro.cc (stringify_arg): For C++26 emit a pedarn instead of warning + for \ at the end of stringification. + +2025-08-03 Jakub Jelinek <jakub@redhat.com> + + PR c++/120845 + * lex.cc (cpp_maybe_module_directive): Move eol variable declaration + to the start of the function, initialize to false and only set it to + peek->type == CPP_PRAGMA_EOL in the not_module case. Formatting fix. + +2025-07-30 Jakub Jelinek <jakub@redhat.com> + + PR c++/120778 + * internal.h (struct lexer_state): Add comma_ok member. + * expr.cc (_cpp_parse_expr): Initialize it to 0, increment on + CPP_OPEN_PAREN and CPP_QUERY, decrement on CPP_CLOSE_PAREN + and CPP_COLON. + (num_binary_op): For C++ pedwarn on comma operator if + pfile->state.comma_ok is 0 instead of !c99 or skip_eval. + +2025-07-25 David Malcolm <dmalcolm@redhat.com> + + * charset.cc: Update comment for file rename. + +2025-07-25 David Malcolm <dmalcolm@redhat.com> + + * internal.h: Update comment for diagnostic_t becoming + enum class diagnostics::kind. + +2025-07-25 David Malcolm <dmalcolm@redhat.com> + + * include/cpplib.h: Update for moves to "source-printing". + * include/rich-location.h (class label_effects): Move to... + (class diagnostics::label_effects): ...here. + +2025-07-25 David Malcolm <dmalcolm@redhat.com> + + * include/rich-location.h: Replace diagnostic_path with + diagnostics::paths::path. + +2025-06-17 Jason Merrill <jason@redhat.com> + + * line-map.cc (linemap_location_from_module_p): Add. + * include/line-map.h: Declare it. + +2025-06-11 David Malcolm <dmalcolm@redhat.com> + + PR other/116792 + * include/line-map.h (typedef expanded_location): Convert to... + (struct expanded_location): ...this. + (operator==): New decl, for expanded_location. + (operator!=): Likewise. + * line-map.cc (operator==): New decl, for expanded_location. + +2025-05-07 Jakub Jelinek <jakub@redhat.com> + + PR preprocessor/108900 + PR preprocessor/116047 + PR preprocessor/120061 + * files.cc (_cpp_stack_file): Revert 2025-03-28 change. + * line-map.cc (linemap_add): Use + SOURCE_LINE (from, linemap_included_from (map - 1)) + 1; instead of + SOURCE_LINE (from, from[1].start_location); to compute to_line + for LC_LEAVE. For LC_ENTER included_from computation, look at + map[-2] or even lower if map[-1] has the same start_location as + map[0]. + +2025-04-28 Lewis Hyatt <lhyatt@gmail.com> + + PR c/118838 + * errors.cc (cpp_get_diagnostic_override_loc): New function. + * include/cpplib.h (cpp_get_diagnostic_override_loc): Declare. + 2025-04-24 Jakub Jelinek <jakub@redhat.com> PR c++/110343 |