]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Enable disabled g++.dg/vect/param-max-aliased-pr26197.cc
authorRichard Biener <rguenther@suse.de>
Wed, 11 Feb 2026 09:23:15 +0000 (10:23 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 11 Feb 2026 09:43:50 +0000 (10:43 +0100)
The glob in g++.dg/vect/vect.exp was not catching the file and
the special option that was intended to be used no longer exists.
I've simplified the situation by renaming the test and fixing it
for the obvious out-of-bound access that is diagnosed.  The test
likely doesn't test anything anymore, but probably better than
simply removing it.

* g++.dg/vect/vect.exp: Remove param-max-aliased-* handling.
* g++.dg/vect/param-max-aliased-pr26197.cc: Rename to ...
* g++.dg/vect/pr26197.cc: ... this and fixup array overflow.

gcc/testsuite/g++.dg/vect/pr26197.cc [moved from gcc/testsuite/g++.dg/vect/param-max-aliased-pr26197.cc with 94% similarity]
gcc/testsuite/g++.dg/vect/vect.exp

similarity index 94%
rename from gcc/testsuite/g++.dg/vect/param-max-aliased-pr26197.cc
rename to gcc/testsuite/g++.dg/vect/pr26197.cc
index ddceba284a85d6166eba18cf98838da574ec3d1f..9a2bef4294582e5f8a3e0ac69b3c7f8d4b00b748 100644 (file)
@@ -3,7 +3,7 @@
 void g(const void*);
 struct B
 {
-  int* x[2];
+  int* x[4];
   int *p;
   B()
   {
index a153d8f20a11666324637907ff334ae397358b26..ebb7829a35cdc7903e59c0336e602c1eb7d6d792 100644 (file)
@@ -72,12 +72,6 @@ et-dg-runtest g++-dg-runtest [lsort [glob -nocomplain \
 global SAVED_DEFAULT_VECTCFLAGS
 set SAVED_DEFAULT_VECTCFLAGS $DEFAULT_VECTCFLAGS
     
-# --param max-aliased-vops=0
-set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
-lappend DEFAULT_VECTCFLAGS "--param max-aliased-vops=0"
-et-dg-runtest g++-dg-runtest [lsort [glob -nocomplain \
-       $srcdir/$subdir/param-max-aliased*.\[cS\]]] "" $DEFAULT_VECTCFLAGS
-
 # Clean up.
 set dg-do-what-default ${save-dg-do-what-default}