On Fri, Oct 25, 2024 at 3:08 PM Sam James <s...@gentoo.org> wrote: > > This only started being used recently in r15-4682-g03ff420aa0a916 and > pinskia pointed out we may as well make it a proper torture test > instead as it's a single file LTO test. > > gcc/testsuite/ChangeLog: > PR lto/62026 > > * g++.dg/lto/pr62026_0.C: Move to... > * g++.dg/torture/pr62026.C: ...here. > --- > gcc/testsuite/g++.dg/{lto/pr62026_0.C => torture/pr62026.C} | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > rename gcc/testsuite/g++.dg/{lto/pr62026_0.C => torture/pr62026.C} (75%) > > diff --git a/gcc/testsuite/g++.dg/lto/pr62026_0.C > b/gcc/testsuite/g++.dg/torture/pr62026.C > similarity index 75% > rename from gcc/testsuite/g++.dg/lto/pr62026_0.C > rename to gcc/testsuite/g++.dg/torture/pr62026.C > index d6445ee9b4d..4a6a219b520 100644 > --- a/gcc/testsuite/g++.dg/lto/pr62026_0.C > +++ b/gcc/testsuite/g++.dg/torture/pr62026.C > @@ -1,5 +1,5 @@ > -// { dg-lto-do link } > -// { dg-lto-options {{-flto -O3 -r -Wno-return-type}} } > +// { dg-do link } > +// { dg-additional-options "-O3 -r -Wno-return-type" }
Do you need -O3 to the bug? Since the torture options add the -On for you though for -flto it only tests -O2. Thanks, Andrew > class C; > class F { > virtual C m_fn1(); > -- > 2.47.0 >