From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id 56A9F3829BEC; Sun, 29 May 2022 19:13:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56A9F3829BEC MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r10-10799] Darwin, testsuite : Prune 'object file not found for object'. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: acd300cfdc434f03f1b08e46bca98b963d43ebc3 X-Git-Newrev: dac09c729042c9d0b406396dd6cbc370a8526380 Message-Id: <20220529191356.56A9F3829BEC@sourceware.org> Date: Sun, 29 May 2022 19:13:56 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2022 19:13:56 -0000 https://gcc.gnu.org/g:dac09c729042c9d0b406396dd6cbc370a8526380 commit r10-10799-gdac09c729042c9d0b406396dd6cbc370a8526380 Author: Iain Sandoe Date: Sun Jan 10 09:48:13 2021 +0000 Darwin, testsuite : Prune 'object file not found for object'. This is not a GCC problem, but a fault in the static linker where, when a source file is used multiple times, with conditional compilation the source file is only referenced by the linker for the first object. Then, when dsymutil tries to find the source file for next object based off that source there is no record for it. gcc/testsuite/ChangeLog: * lib/prune.exp: Prune useless output caused by a linker bug. (cherry picked from commit 0d737ed2171165ba39ab5647f8a94c588fc9a898) Diff: --- gcc/testsuite/lib/prune.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index 83d394a5886..a5d09c78106 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -79,6 +79,9 @@ proc prune_gcc_output { text } { # Ignore harmless warnings from Xcode 4.0. regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact unwind for\[^\n\]*" $text "" text + # Ignore dsymutil warning (tool bug is actually linker) + regsub -all "(^|\n)\[^\n\]*could not find object file symbol for symbol\[^\n\]*" $text "" text + # If dg-enable-nn-line-numbers was provided, then obscure source-margin # line numbers by converting them to "NN" form. set text [maybe-handle-nn-line-numbers $text]