summaryrefslogtreecommitdiff
path: root/lang/gcc48/patches/patch-gcc_lto_lto.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc48/patches/patch-gcc_lto_lto.c')
-rw-r--r--lang/gcc48/patches/patch-gcc_lto_lto.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/gcc48/patches/patch-gcc_lto_lto.c b/lang/gcc48/patches/patch-gcc_lto_lto.c
new file mode 100644
index 00000000000..c0532730c4f
--- /dev/null
+++ b/lang/gcc48/patches/patch-gcc_lto_lto.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-gcc_lto_lto.c,v 1.1 2014/05/31 13:06:25 ryoon Exp $
+
+--- gcc/lto/lto.c.orig 2013-02-07 18:01:40.000000000 +0000
++++ gcc/lto/lto.c
+@@ -3102,6 +3102,12 @@ read_cgraph_and_symbols (unsigned nfiles
+ all_file_decl_data = NULL;
+ }
+
++const char *
++fname_as_string(int pretty_p __attribute__((__unused__)))
++{
++ return NULL;
++}
++
+
+ /* Materialize all the bodies for all the nodes in the callgraph. */
+