openbsd-ports/lang/gcc/4.2/patches/patch-gcc_cp_call_c
espie ced95bccdd move to gcc 4.2.4, with a lot of work from kurt@ as well.
Doesn't build on alpha yet, but should be on the way...
2009-04-16 18:36:48 +00:00

22 lines
834 B
Plaintext

$OpenBSD: patch-gcc_cp_call_c,v 1.6 2009/04/16 18:36:48 espie Exp $
--- gcc/cp/call.c.orig Mon Jan 28 17:18:56 2008
+++ gcc/cp/call.c Tue Apr 7 19:38:59 2009
@@ -5318,7 +5318,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;
}
@@ -5328,7 +5328,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;
}