]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust for "Make Warray-bounds alias to Warray-bounds= [PR107787]"
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 14 Dec 2022 09:33:24 +0000 (10:33 +0100)
committerThomas Schwinge <thomas_schwinge@mentor.com>
Wed, 14 Dec 2022 16:32:48 +0000 (17:32 +0100)
See GCC upstream commit 7c01d029fca669263b9c2dcb8837c42f7ae3a77f
"Make Warray-bounds alias to Warray-bounds= [PR107787]".

gcc/rust/backend/rust-tree.cc

index fb6ff0f15b34dafef67187aee92a2226c1455aa7..4272ed73070f12aeb263ec6beabe5c4468e3f2c1 100644 (file)
@@ -3625,7 +3625,7 @@ fold_offsetof (tree expr, tree type, enum tree_code ctx)
                     definition thereof.  */
                  if (TREE_CODE (v) == ARRAY_REF
                      || TREE_CODE (v) == COMPONENT_REF)
-                   warning (OPT_Warray_bounds,
+                   warning (OPT_Warray_bounds_,
                             "index %E denotes an offset "
                             "greater than size of %qT",
                             t, TREE_TYPE (TREE_OPERAND (expr, 0)));