openbsd-ports/lang/llvm-gcc4/patches/patch-gcc_cp_call_c
jeremy 8590263c00 Use llvm 2.8 version. Enable build on amd64 since it works now.
Bring library versioning under control and bump the major versions.
Mark as SHARED_ONLY. Remove TODO file as it is no longer needed.

OK @sthen
2011-01-13 00:18:18 +00:00

22 lines
835 B
Plaintext

$OpenBSD: patch-gcc_cp_call_c,v 1.2 2011/01/13 00:18:18 jeremy Exp $
--- gcc/cp/call.c.orig Fri Aug 6 11:31:05 2010
+++ gcc/cp/call.c Mon Jan 10 12:49:16 2011
@@ -5418,7 +5418,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;
}
@@ -5428,7 +5428,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;
}