Index: gcc/go/go-lang.cc
--- gcc/go/go-lang.cc.orig
+++ gcc/go/go-lang.cc
@@ -611,6 +611,12 @@ go_localize_identifier (const char *ident)
   return identifier_to_locale (ident);
 }
 
+extern "C" const char *
+fname_as_string(int pretty_p __attribute__((__unused__)))
+{
+	return NULL;
+}
+
 #undef LANG_HOOKS_NAME
 #undef LANG_HOOKS_INIT
 #undef LANG_HOOKS_OPTION_LANG_MASK
