This is the mail archive of the 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]

pending patch for gcc.c and gcc.h

This patch (submitted 16 Feb 2001 under the Subject
"[patch] compiling multiple Java source files at once")
includes some changes to gcc.c and gcc.h.  Ok to commit?
(Only into the trunk for now.)

2001-02-16  Per Bothner  <>

	* gcc.c (record_temp_file, pfatal_with_name, error):  Make non-static,
	so they can be called from java/jvspec.c.
	* gcc.h (record_temp_file, pfatal_with_name, error):  Declare.

Index: gcc.h
RCS file: /cvs/gcc/gcc/gcc/gcc.h,v
retrieving revision 1.3
diff -u -p -r1.3 gcc.h
--- gcc.h	2000/08/02 20:21:25	1.3
+++ gcc.h	2001/02/16 23:05:10
@@ -25,11 +25,14 @@ Boston, MA 02111-1307, USA.  */
 /* These are exported by gcc.c. */
 extern int do_spec PARAMS ((const char *));
+extern void record_temp_file PARAMS ((const char *, int, int));
 extern void fancy_abort PARAMS ((void)) ATTRIBUTE_NORETURN;
 extern const char *input_filename;
 extern size_t input_filename_length;
 extern void fatal PARAMS ((const char *, ...))
+void error PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
+void pfatal_with_name PARAMS ((const char *)) ATTRIBUTE_NORETURN;
 /* Spec files linked with gcc.c must provide definitions for these. */
Index: gcc.c
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.206
diff -u -p -r1.206 gcc.c
--- gcc.c	2001/02/14 16:37:14	1.206
+++ gcc.c	2001/02/16 23:05:15
@@ -233,7 +233,6 @@ static void add_prefix		PARAMS ((struct 
 					 const char *, int, int, int *));
 static void translate_options	PARAMS ((int *, const char *const **));
 static char *skip_whitespace	PARAMS ((char *));
-static void record_temp_file	PARAMS ((const char *, int, int));
 static void delete_if_ordinary	PARAMS ((const char *));
 static void delete_temp_files	PARAMS ((void));
 static void delete_failure_queue PARAMS ((void));
@@ -251,12 +250,9 @@ static int used_arg		PARAMS ((const char
 static int default_arg		PARAMS ((const char *, int));
 static void set_multilib_dir	PARAMS ((void));
 static void print_multilib_info	PARAMS ((void));
-static void pfatal_with_name	PARAMS ((const char *)) ATTRIBUTE_NORETURN;
 static void perror_with_name	PARAMS ((const char *));
 static void pfatal_pexecute	PARAMS ((const char *, const char *))
-static void error		PARAMS ((const char *, ...))
 static void notice		PARAMS ((const char *, ...))
 static void display_help 	PARAMS ((void));
@@ -1875,7 +1871,7 @@ static struct temp_file *failure_delete_
    FAIL_DELETE nonzero means delete it if a compilation step fails;
    otherwise delete it in any case.  */
-static void
 record_temp_file (filename, always_delete, fail_delete)
      const char *filename;
      int always_delete;
@@ -6006,7 +6002,7 @@ save_string (s, len)
   return result;
-static void
 pfatal_with_name (name)
      const char *name;
@@ -6074,7 +6070,7 @@ fatal VPARAMS ((const char *msgid, ...))
   exit (1);
-static void
 error VPARAMS ((const char *msgid, ...))

	--Per Bothner

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