aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-01-10 09:48:13 +0000
committerIain Sandoe <iain@sandoe.co.uk>2021-03-04 19:35:27 +0000
commit0d737ed2171165ba39ab5647f8a94c588fc9a898 (patch)
treee41df2c42216fa1658dfbbb5920986714336d482 /gcc
parent0ad6de3883a1641f7ec0bd9cf56d41fa5b313dae (diff)
downloadgcc-0d737ed2171165ba39ab5647f8a94c588fc9a898.zip
gcc-0d737ed2171165ba39ab5647f8a94c588fc9a898.tar.gz
gcc-0d737ed2171165ba39ab5647f8a94c588fc9a898.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/lib/prune.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp
index a349c8a..2809f88 100644
--- a/gcc/testsuite/lib/prune.exp
+++ b/gcc/testsuite/lib/prune.exp
@@ -84,6 +84,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]