Blame SOURCES/gdb-ccache-workaround.patch

f9426a
--- a/gdb/testsuite/gdb.base/macscp.exp
f9426a
+++ b/gdb/testsuite/gdb.base/macscp.exp
f9426a
@@ -33,6 +33,14 @@ if [test_compiler_info gcc*] {
f9426a
     lappend options additional_flags=-g3
f9426a
 }
f9426a
 
f9426a
+# Workaround ccache making lineno non-zero for command-line definitions.
f9426a
+if {[find_gcc] == "gcc" && [file executable "/usr/bin/gcc"]} {
f9426a
+    set result [catch "exec which gcc" output]
f9426a
+    if {$result == 0 && [string first "/ccache/" $output] > -1} {
f9426a
+	lappend options "compiler=/usr/bin/gcc"
f9426a
+    }
f9426a
+}
f9426a
+
f9426a
 # Generate the intermediate object file.  This is required by Darwin to
f9426a
 # have access to the .debug_macinfo section.
f9426a
 if  {[gdb_compile "${srcdir}/${subdir}/macscp1.c" "${objfile}" \