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

22 lines
839 B
Plaintext

$OpenBSD: patch-gcc_cp_call_c,v 1.1.1.1 2010/10/10 17:39:06 steven Exp $
--- gcc/cp/call.c.orig Sat Jul 7 04:02:37 2007
+++ gcc/cp/call.c Mon Jun 14 19:23:04 2010
@@ -5291,7 +5291,7 @@ name_as_c_string (tree name, tree type, bool *free_p)
|| name == base_dtor_identifier
|| name == deleting_dtor_identifier)
{
- pretty_name = concat ("~", pretty_name, NULL);
+ pretty_name = concat ("~", pretty_name, (void *)0);
/* Remember that we need to free the memory allocated. */
*free_p = true;
}
@@ -5301,7 +5301,7 @@ name_as_c_string (tree name, tree type, bool *free_p)
pretty_name = concat ("operator ",
type_as_string (TREE_TYPE (name),
TFF_PLAIN_IDENTIFIER),
- NULL);
+ (void *)0);
/* Remember that we need to free the memory allocated. */
*free_p = true;
}