diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-12-07 20:10:33 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-12-07 20:10:33 +0000 |
commit | 2e941a6a8a2e40738a2ef58126f610cbe104e543 (patch) | |
tree | cbc27698e01f4dbdc3e2030e3ef821931cf1c497 /gnu/usr.bin | |
parent | 2ed5ae6ae17cb6c1839f2456b6867557cb5eae64 (diff) |
Handles -I without filename correctly.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/gas/as.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/usr.bin/gas/as.c b/gnu/usr.bin/gas/as.c index d120b986a36..7424d0d6a25 100644 --- a/gnu/usr.bin/gas/as.c +++ b/gnu/usr.bin/gas/as.c @@ -1,4 +1,4 @@ -/* $OpenBSD: as.c,v 1.2 1996/04/23 00:15:50 niklas Exp $ */ +/* $OpenBSD: as.c,v 1.3 1999/12/07 20:10:32 espie Exp $ */ /* as.c - GAS main program. Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc. @@ -34,7 +34,7 @@ * */ #ifndef lint -static char rcsid[] = "$OpenBSD: as.c,v 1.2 1996/04/23 00:15:50 niklas Exp $"; +static char rcsid[] = "$OpenBSD: as.c,v 1.3 1999/12/07 20:10:32 espie Exp $"; #endif #include <stdio.h> @@ -220,10 +220,12 @@ char **argv; * work_argv = NULL; work_argc--; temp = * ++ work_argv; + } + if (temp) { + add_include_dir (temp); + arg = ""; /* Finished with this arg. */ } else as_warn("%s: I expected a filename after -I", myname); - add_include_dir (temp); - arg = ""; /* Finished with this arg. */ break; } |