https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102659

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
If you change the testcase as follows the issue pops up at plain -O2 as well

diff --git a/gcc/testsuite/gcc.dg/torture/pr69760.c
b/gcc/testsuite/gcc.dg/torture/pr69760.c
index 53733c7c6a4..47e01ae59bd 100644
--- a/gcc/testsuite/gcc.dg/torture/pr69760.c
+++ b/gcc/testsuite/gcc.dg/torture/pr69760.c
@@ -1,11 +1,10 @@
 /* PR tree-optimization/69760 */
 /* { dg-do run { target { { *-*-linux* *-*-gnu* *-*-uclinux* } && mmap } } }
*/
-/* { dg-options "-O2" } */

 #include <unistd.h>
 #include <sys/mman.h>

-__attribute__((noinline, noclone)) void
+__attribute__((noinline, noclone)) static void
 test_func (double *a, int L, int m, int n, int N)
 {
   int i, k;

Reply via email to