pkgsrc/lang/gcc48/patches/patch-gcc_lto_lto.c
obache 24efdc1fe4 Bump PKGREVISION.
* Fixes regressions, revive parts removed at "Fix build under OpenBSD/amd64 5.5"
* Drop default behaviour changes and local features from OpenBSD ports,
  it break other platforms, at least, NetBSD-6.0/i386.
* Remove needless patches after "Restore monolithic gcc48 and gcc48-libs".
2014-11-28 09:57:32 +00:00

19 lines
444 B
C

$NetBSD: patch-gcc_lto_lto.c,v 1.2 2014/11/28 09:57:32 obache Exp $
--- gcc/lto/lto.c.orig 2013-02-07 18:01:40.000000000 +0000
+++ gcc/lto/lto.c
@@ -3102,6 +3102,14 @@ read_cgraph_and_symbols (unsigned nfiles
all_file_decl_data = NULL;
}
+#ifdef __OpenBSD__
+const char *
+fname_as_string(int pretty_p __attribute__((__unused__)))
+{
+ return NULL;
+}
+#endif
+
/* Materialize all the bodies for all the nodes in the callgraph. */