From d297dc193bfe20930e7d8c895fb00f4b5e0eab99 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 7 Oct 2007 18:39:04 +0000 Subject: merge from ragge's repo: Bugfix for .i files, by Jeremy Reed. --- usr.bin/pcc/cc/cc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.bin/pcc/cc/cc.c b/usr.bin/pcc/cc/cc.c index f931b8b9ee8..a7f26377ed8 100644 --- a/usr.bin/pcc/cc/cc.c +++ b/usr.bin/pcc/cc/cc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cc.c,v 1.1 2007/10/07 17:58:50 otto Exp $ */ +/* $OpenBSD: cc.c,v 1.2 2007/10/07 18:39:03 otto Exp $ */ /* * Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. * @@ -467,7 +467,10 @@ main(int argc, char *argv[]) } for (j = 0; j < xnum; j++) av[na++] = xlist[j]; - av[na++] = tmp4; + if (getsuf(clist[i])=='i') + av[na++] = clist[i]; + else + av[na++] = tmp4; /* created by cpp */ if (pflag || exfail) { cflag++; -- cgit v1.2.3