public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Adjust for "Make Warray-bounds alias to Warray-bounds= [PR107787]"
@ 2022-12-15 15:34 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-12-15 15:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fe648fb91c51cb477cf0380105c0bb85796be2df

commit fe648fb91c51cb477cf0380105c0bb85796be2df
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Wed Dec 14 10:33:24 2022 +0100

    Adjust for "Make Warray-bounds alias to Warray-bounds= [PR107787]"
    
    See GCC upstream commit 7c01d029fca669263b9c2dcb8837c42f7ae3a77f
    "Make Warray-bounds alias to Warray-bounds= [PR107787]".

Diff:
---
 gcc/rust/backend/rust-tree.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc
index fb6ff0f15b3..4272ed73070 100644
--- a/gcc/rust/backend/rust-tree.cc
+++ b/gcc/rust/backend/rust-tree.cc
@@ -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)));

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-15 15:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-15 15:34 [gcc/devel/rust/master] Adjust for "Make Warray-bounds alias to Warray-bounds= [PR107787]" Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).