From: Jeff Law Date: Thu, 28 Apr 2022 16:03:52 +0000 (-0400) Subject: [committed] Fix more problems with new linker warnings X-Git-Tag: releases/gcc-10.4.0~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4917c54bb77c2dbae308f8885385ca6518f3d396;p=thirdparty%2Fgcc.git [committed] Fix more problems with new linker warnings gcc/testsuite * lib/prune.exp (prune_gcc_output): Prune new linker warning. (cherry picked from commit d993c6dea7c664aa26ee04210c471cfcb4e7d0e0) --- diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index eea4bf383a78..83d394a58866 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -66,6 +66,11 @@ proc prune_gcc_output { text } { regsub -all "(^|\n)\[^\n\]*file path prefix \[^\n\]* never used" $text "" text regsub -all "(^|\n)\[^\n\]*linker input file unused since linking not done" $text "" text + # Ideally the tests would indicate that executable stacks were needed + # to the linker. But the option for that varies and may not even exist + # on some targets. So we're stuck pruning the warning. + regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*requires executable stack\[^\n\]*\n?)+" $text "\\1" text + # Ignore harmless warnings from Xcode 3.2.x. regsub -all "(^|\n)\[^\n\]*ld: warning: can't add line info to anonymous symbol\[^\n\]*" $text "" text regsub -all "(^|\n)\[^\n\]*warning: DWARFDebugInfoEntry::AppendDependants\[^\n\]*AT_\[^\n\]*FORM_ref4\[^\n\]*" $text "" text