Blame SOURCES/gdb-ccache-workaround.patch

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