public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10799] Darwin, testsuite : Prune 'object file not found for object'.
@ 2022-05-29 19:13 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2022-05-29 19:13 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:dac09c729042c9d0b406396dd6cbc370a8526380

commit r10-10799-gdac09c729042c9d0b406396dd6cbc370a8526380
Author: Iain Sandoe <iain@sandoe.co.uk>
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]


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-29 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-29 19:13 [gcc r10-10799] Darwin, testsuite : Prune 'object file not found for object' Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).