]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 c9f8572f007fe675b2fb8ebf4176d5c333b45b91..7ebc0756173a9f1fbd134b6966839ed87c35c246 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 e490589f7bfcff0b16dd90c7a917f4bb153ae37a..f5a8b1963ca3fe61f66d9aa0ff632cc37e9759b6 100644 (file)
@@ -1 +1 @@
-20220507
+20220508
index 347db0c3f846eb7011a7b6562b9be43db7da6b85..972c68b0567ab1329adedc43cb50d3113fd064fe 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 b0fef44e35f494afacee373f0bf10103bed50768..b8167c200572cd3105eeada95d7d1660290da791 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 a539a0d8ae547ee7e901bf27b64859c5e30403af..e72925f82d39679af49c2f09e33ada708d4f990e 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 7630ce66e959a52c9086467c3e31d54a051becfd..5d890c18acd02cd49e1ba1892794825c3518da01 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.