openbsd-ports/lang/gcc/4.0/patches/patch-gcc_gensupport_c
espie 18925bc515 basic ports for gcc 3.4 and gcc 4.0, restructured.
this should more or less compile and run tests on i386, but is not
guaranteed to do anything more yet...
2004-09-23 22:13:31 +00:00

40 lines
1.5 KiB
Plaintext

$OpenBSD: patch-gcc_gensupport_c,v 1.1.1.1 2004/09/23 22:13:31 espie Exp $
--- gcc/gensupport.c.orig Tue Sep 14 08:37:56 2004
+++ gcc/gensupport.c Tue Sep 14 08:38:31 2004
@@ -215,7 +215,7 @@ process_include (rtx desc, int lineno)
{
static const char sep[2] = { DIR_SEPARATOR, '\0' };
- pathname = concat (stackp->fname, sep, filename, NULL);
+ pathname = concat (stackp->fname, sep, filename, (void *)0);
input_file = fopen (pathname, "r");
if (input_file != NULL)
goto success;
@@ -224,7 +224,7 @@ process_include (rtx desc, int lineno)
}
if (base_dir)
- pathname = concat (base_dir, filename, NULL);
+ pathname = concat (base_dir, filename, (void *)0);
else
pathname = xstrdup (filename);
input_file = fopen (pathname, "r");
@@ -310,7 +310,7 @@ process_rtx (rtx desc, int lineno)
insn condition to create the new split condition. */
split_cond = XSTR (desc, 4);
if (split_cond[0] == '&' && split_cond[1] == '&')
- split_cond = concat (XSTR (desc, 2), split_cond, NULL);
+ split_cond = concat (XSTR (desc, 2), split_cond, (void *)0);
XSTR (split, 1) = split_cond;
XVEC (split, 2) = XVEC (desc, 5);
XSTR (split, 3) = XSTR (desc, 6);
@@ -665,7 +665,7 @@ alter_test_for_insn (struct queue_elem *
if (!insn_test || *insn_test == '\0')
return ce_test;
- return concat ("(", ce_test, ") && (", insn_test, ")", NULL);
+ return concat ("(", ce_test, ") && (", insn_test, ")", (void *)0);
}
/* Adjust all of the operand numbers in SRC to match the shift they'll