Blame SOURCES/gdb-ccache-workaround.patch

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