aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gcc.c10
-rw-r--r--gcc/gcc.h3
3 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5699d93..2c7893d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2001-02-23 Per Bothner <per@bothner.com>
+
+ * 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.
+
Sat Feb 24 03:32:50 CET 2001 Jan Hubicka <jh@suse.cz>
* i386.c (ix86_frame): New structure.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index f401043..dcda317 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -271,7 +271,6 @@ static void add_prefix PARAMS ((struct path_prefix *, const char *,
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));
@@ -289,12 +288,9 @@ static int used_arg PARAMS ((const char *, int));
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 *))
ATTRIBUTE_NORETURN;
-static void error PARAMS ((const char *, ...))
- ATTRIBUTE_PRINTF_1;
static void notice PARAMS ((const char *, ...))
ATTRIBUTE_PRINTF_1;
static void display_help PARAMS ((void));
@@ -1918,7 +1914,7 @@ static struct temp_file *failure_delete_queue;
FAIL_DELETE nonzero means delete it if a compilation step fails;
otherwise delete it in any case. */
-static void
+void
record_temp_file (filename, always_delete, fail_delete)
const char *filename;
int always_delete;
@@ -6064,7 +6060,7 @@ save_string (s, len)
return result;
}
-static void
+void
pfatal_with_name (name)
const char *name;
{
@@ -6132,7 +6128,7 @@ fatal VPARAMS ((const char *msgid, ...))
exit (1);
}
-static void
+void
error VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
diff --git a/gcc/gcc.h b/gcc/gcc.h
index 9a9beb0..1c782c7 100644
--- a/gcc/gcc.h
+++ b/gcc/gcc.h
@@ -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 *, ...))
ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
+extern void error PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
+extern void pfatal_with_name PARAMS ((const char *)) ATTRIBUTE_NORETURN;
/* Spec files linked with gcc.c must provide definitions for these. */