openbsd-ports/lang/gfortran/patches/patch-gcc_read-rtl_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

13 lines
598 B
Plaintext

$OpenBSD: patch-gcc_read-rtl_c,v 1.1.1.1 2010/10/10 17:39:06 steven Exp $
--- gcc/read-rtl.c.orig Sat Feb 18 23:06:53 2006
+++ gcc/read-rtl.c Mon Jun 14 19:23:04 2010
@@ -784,7 +784,7 @@ join_c_conditions (const char *cond1, const char *cond
if (cond2 == 0 || cond2[0] == 0)
return cond1;
- result = concat ("(", cond1, ") && (", cond2, ")", NULL);
+ result = concat ("(", cond1, ") && (", cond2, ")", (void *)0);
obstack_ptr_grow (&joined_conditions_obstack, result);
obstack_ptr_grow (&joined_conditions_obstack, cond1);
obstack_ptr_grow (&joined_conditions_obstack, cond2);