openbsd-ports/lang/gfortran/patches/patch-gcc_tree-complex_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
605 B
Plaintext

$OpenBSD: patch-gcc_tree-complex_c,v 1.1.1.1 2010/10/10 17:39:06 steven Exp $
--- gcc/tree-complex.c.orig Mon Jun 19 16:33:46 2006
+++ gcc/tree-complex.c Mon Jun 14 19:23:04 2010
@@ -397,7 +397,7 @@ create_one_component_var (tree type, tree orig, const
const char *name = IDENTIFIER_POINTER (DECL_NAME (orig));
tree inner_type;
- DECL_NAME (r) = get_identifier (ACONCAT ((name, suffix, NULL)));
+ DECL_NAME (r) = get_identifier (ACONCAT ((name, suffix, (char *)0)));
inner_type = TREE_TYPE (TREE_TYPE (orig));
SET_DECL_DEBUG_EXPR (r, build1 (code, type, orig));