From: Eric Botcazou Date: Fri, 19 Mar 2021 08:23:28 +0000 (+0100) Subject: Require linker plugin for another LTO test X-Git-Tag: basepoints/gcc-12~527 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af73a8b2027d9ab64944d7dbbb48e207d7790ce6;p=thirdparty%2Fgcc.git Require linker plugin for another LTO test If it is not present, fat LTO is generated with an additional warning. gcc/testsuite/ * g++.dg/lto/pr89335_0.C: Require the linker plugin. --- diff --git a/gcc/testsuite/g++.dg/lto/pr89335_0.C b/gcc/testsuite/g++.dg/lto/pr89335_0.C index df2d2ba8fb14..95bf4b3b0cbc 100644 --- a/gcc/testsuite/g++.dg/lto/pr89335_0.C +++ b/gcc/testsuite/g++.dg/lto/pr89335_0.C @@ -1,15 +1,20 @@ // { dg-lto-do link } -// { dg-lto-options {{-O2 -flto -Wsuggest-final-methods}} } +// { dg-lto-options { {-O2 -flto -Wsuggest-final-methods}} } // { dg-extra-ld-options "-r -nostdlib -flinker-output=nolto-rel" } +// { dg-require-linker-plugin "" } + class Container { public: virtual ~Container (); }; + class List : public Container // { dg-lto-message "final would enable devirtualization" } { }; + static List cache[256]; + int main (void) { return 0;