This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gen-protos fix
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 01 Jun 2003 18:47:55 +0200
- Subject: gen-protos fix
Bootstrapping for powerpc-eabism showed that this patch was wrong.
I'm reverting it.
Andreas
2003-06-01 Andreas Jaeger <aj@suse.de>
* gen-protos.c (main): Revert patch to check for argument.
============================================================
Index: gcc/gen-protos.c
--- gcc/gen-protos.c 1 Jun 2003 15:59:08 -0000 1.21
+++ gcc/gen-protos.c 1 Jun 2003 16:46:56 -0000
@@ -137,9 +137,6 @@ main (int argc, char **argv)
sstring linebuf;
struct fn_decl fn_decl;
- if (argc <= 1)
- fatal ("no input file name");
-
i = strlen (argv[0]);
while (i > 0 && argv[0][i-1] != '/') --i;
progname = &argv[0][i];
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj