openbsd-ports/lang/gfortran/patches/patch-gcc_tree_c
steven 6f0b523996 import separate port of gfortran 4.2.1, in sync with the base compiler.
meant to be used on archs that have gcc4 in base, this doesn't require a
full gcc build from ports, and provides libgfortran as a subpackage.

idea from espie some months ago.
2010-10-10 17:39:06 +00:00

18 lines
806 B
Plaintext

$OpenBSD: patch-gcc_tree_c,v 1.1.1.1 2010/10/10 17:39:06 steven Exp $
--- gcc/tree.c.orig Tue May 1 21:23:47 2007
+++ gcc/tree.c Mon Jun 14 19:23:04 2010
@@ -6803,11 +6803,11 @@ build_common_builtin_nodes (void)
*q = TOLOWER (*p);
*q = '\0';
- built_in_names[mcode] = concat ("__mul", mode_name_buf, "3", NULL);
+ built_in_names[mcode] = concat ("__mul", mode_name_buf, "3", (void *)0);
local_define_builtin (built_in_names[mcode], ftype, mcode,
built_in_names[mcode], ECF_CONST | ECF_NOTHROW);
- built_in_names[dcode] = concat ("__div", mode_name_buf, "3", NULL);
+ built_in_names[dcode] = concat ("__div", mode_name_buf, "3", (void *)0);
local_define_builtin (built_in_names[dcode], ftype, dcode,
built_in_names[dcode], ECF_CONST | ECF_NOTHROW);
}