aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorGCC Administrator <gccadmin@gcc.gnu.org>2024-10-03 00:18:37 +0000
committerGCC Administrator <gccadmin@gcc.gnu.org>2024-10-03 00:18:37 +0000
commit1d09117830f97053ea78a505c31d5ee0558fa4bf (patch)
treed13ea82116872d068560ad47209370d41213339d /libcpp
parent1f619fe25925a5f79b9c33962e7a72e1f9fa4444 (diff)
downloadgcc-1d09117830f97053ea78a505c31d5ee0558fa4bf.zip
gcc-1d09117830f97053ea78a505c31d5ee0558fa4bf.tar.gz
gcc-1d09117830f97053ea78a505c31d5ee0558fa4bf.tar.bz2
Daily bump.
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog23
1 files changed, 23 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index fb91613..c02b92d 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,26 @@
+2024-10-02 Jakub Jelinek <jakub@redhat.com>
+
+ PR preprocessor/96842
+ * include/cpplib.h (struct cpp_options): Add warn_header_guard member.
+ (enum cpp_warning_reason): Add CPP_W_HEADER_GUARD enumerator.
+ * internal.h (struct cpp_reader): Add mi_def_cmacro, mi_loc and
+ mi_def_loc members.
+ (_cpp_defined_macro_p): Constify type pointed by argument type.
+ Formatting fix.
+ * init.cc (cpp_create_reader): Clear
+ CPP_OPTION (pfile, warn_header_guard).
+ * directives.cc (struct if_stack): Add def_loc and mi_def_cmacro
+ members.
+ (DIRECTIVE_TABLE): Add IF_COND flag to define.
+ (do_define): Set ifs->mi_def_cmacro on a define immediately following
+ #ifndef directive for the guard. Clear pfile->mi_valid. Formatting
+ fix.
+ (do_endif): Copy over pfile->mi_def_cmacro and pfile->mi_def_loc
+ if ifs->mi_def_cmacro is set and pfile->mi_cmacro isn't a defined
+ macro.
+ (push_conditional): Clear mi_def_cmacro and mi_def_loc members.
+ * files.cc (_cpp_pop_file_buffer): Emit -Wheader-guard diagnostics.
+
2024-09-13 Jakub Jelinek <jakub@redhat.com>
* files.cc (finish_embed): Initialize toks to tok rather