From: H.J. Lu Date: Mon, 2 Aug 2021 17:01:47 +0000 (-0700) Subject: x86: Also pass -mno-avx to cold-attribute-1.c X-Git-Tag: basepoints/gcc-13~5643 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20a1c9aae0bb5302fb35c2dae29e3e65a3bcdcb8;p=thirdparty%2Fgcc.git x86: Also pass -mno-avx to cold-attribute-1.c Also pass -mno-avx to pr72839.c to avoid copying data with YMM or ZMM registers. * gcc.target/i386/cold-attribute-1.c: Also pass -mno-avx. --- diff --git a/gcc/testsuite/gcc.target/i386/cold-attribute-1.c b/gcc/testsuite/gcc.target/i386/cold-attribute-1.c index 57666ac60b68..658eb3e25bb0 100644 --- a/gcc/testsuite/gcc.target/i386/cold-attribute-1.c +++ b/gcc/testsuite/gcc.target/i386/cold-attribute-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mno-avx" } */ #include static inline __attribute__ ((cold)) void