openbsd-ports/lang/gcc/4.2/patches/patch-gcc_cp_call_c
espie ceaa955aca new gcc snapshot, this one compiles again on i386 !
NOTE: this needs current -src, in particular current includes
for libgfortran to build correctly (semantics change in __extern inline
that lead to duplicate isalnum symbols otherwise).
2007-03-17 21:58:45 +00:00

22 lines
808 B
Plaintext

$OpenBSD: patch-gcc_cp_call_c,v 1.3 2007/03/17 21:58:46 espie Exp $
--- gcc/cp/call.c.orig Fri Mar 9 17:16:35 2007
+++ gcc/cp/call.c Mon Mar 12 11:37:53 2007
@@ -5326,7 +5326,7 @@ name_as_c_string (tree name, tree type,
|| 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;
}
@@ -5336,7 +5336,7 @@ name_as_c_string (tree name, tree type,
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;
}