Daily bump.
authorGCC Administrator <gccadmin@gcc.gnu.org>
Sun, 8 May 2022 00:16:20 +0000 (00:16 +0000)
committerGCC Administrator <gccadmin@gcc.gnu.org>
Sun, 8 May 2022 00:16:20 +0000 (00:16 +0000)
gcc/ChangeLog
gcc/DATESTAMP
gcc/c-family/ChangeLog
gcc/c/ChangeLog
gcc/cp/ChangeLog
gcc/testsuite/ChangeLog

index c9f8572..7ebc075 100644 (file)
@@ -1,3 +1,9 @@
+2022-05-07  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/101833
+       PR c++/47634
+       * tree-core.h (struct attribute_spec): Update comment for HANDLER.
+
 2022-05-06  Jason Merrill  <jason@redhat.com>
 
        * diagnostic-color.cc: Add fnname and targs color entries.
index e490589..f5a8b19 100644 (file)
@@ -1 +1 @@
-20220507
+20220508
index 347db0c..972c68b 100644 (file)
@@ -1,3 +1,24 @@
+2022-05-07  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/101833
+       PR c++/47634
+       * c-attribs.cc (positional_argument): Pass POS by reference.  Deal
+       with FN being either a function declaration or function type.  Use
+       maybe_adjust_arg_pos_for_attribute.
+       * c-common.cc (check_function_arguments): Maybe pass FNDECL down to
+       check_function_format.
+       * c-common.h (maybe_adjust_arg_pos_for_attribute): Declare.
+       (positional_argument): Adjust.
+       * c-format.cc (get_constant): Rename to ...
+       (validate_constant): ... this.  Take EXPR by reference.  Return bool
+       instead of tree.
+       (handle_format_arg_attribute): Don't overwrite FORMAT_NUM_EXPR by the
+       return value of validate_constant.
+       (decode_format_attr): Don't overwrite FORMAT_NUM_EXPR and
+       FIRST_ARG_NUM_EXPR by the return value of validate_constant.
+       (check_function_format): Adjust a parameter name.
+       (handle_format_attribute): Maybe pass FNDECL down to decode_format_attr.
+
 2022-05-04  Marek Polacek  <polacek@redhat.com>
 
        * c-warn.cc (warnings_for_convert_and_check): Convert constants of type
index b0fef44..b8167c2 100644 (file)
@@ -1,3 +1,9 @@
+2022-05-07  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/101833
+       PR c++/47634
+       * c-objc-common.cc (maybe_adjust_arg_pos_for_attribute): New.
+
 2022-04-08  Jakub Jelinek  <jakub@redhat.com>
 
        PR c/105149
index a539a0d..e72925f 100644 (file)
@@ -1,3 +1,9 @@
+2022-05-07  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/101833
+       PR c++/47634
+       * tree.cc (maybe_adjust_arg_pos_for_attribute): New.
+
 2022-05-06  Jason Merrill  <jason@redhat.com>
 
        * error.cc (decl_to_string): Add show_color parameter.
index 7630ce6..5d890c1 100644 (file)
@@ -1,3 +1,12 @@
+2022-05-07  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/101833
+       PR c++/47634
+       * g++.dg/ext/attr-format-arg1.C: New test.
+       * g++.dg/ext/attr-format1.C: New test.
+       * g++.dg/ext/attr-format2.C: New test.
+       * g++.dg/ext/attr-format3.C: New test.
+
 2022-05-06  Jason Merrill  <jason@redhat.com>
 
        * g++.dg/diagnostic/function-color1.C: New test.