diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-10-07 18:39:04 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-10-07 18:39:04 +0000 |
commit | d297dc193bfe20930e7d8c895fb00f4b5e0eab99 (patch) | |
tree | 6d42595b8345bd66929ed209ee1e576fd1750407 | |
parent | 83b25a5ec24c5c9849d0ac4658be9aa01d91b055 (diff) |
merge from ragge's repo:
Bugfix for .i files, by Jeremy Reed.
-rw-r--r-- | usr.bin/pcc/cc/cc.c | 7 |
1 files 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++; |