This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]