summaryrefslogtreecommitdiff
path: root/gcc/gcc.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-05-28 18:28:57 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2010-05-28 18:28:57 +0100
commit2dec80c756fb7a85f1c6f236386e230d19ccbe26 (patch)
treed1333acc1907350475741ab7bf571e884e00c3e4 /gcc/gcc.h
parent7325b1b3abddcaab7ea30a48cd8ceb99ccdabc2e (diff)
downloadgcc-2dec80c756fb7a85f1c6f236386e230d19ccbe26.tar.gz
re PR driver/15303 (When gcc sees an unrecognized option, the exit status indicates success)
PR driver/15303 * gcc.c (inform, warning, inform): New functions. (fatal_ice): Rename to internal_error; change cmsgid parameter to gmsgid. All callers changed. (notice): Rename to fnotice; add parameter fp. All callers changed. (fatal_error): Rename to fatal_signal. All users changed. (fatal): Rename to fatal_error; change cmsgid parameter to gmsgid. All callers changed. (process_command): Use warning instead of error for warnings. (end_going_arg): Don't use _() around argument of error. (do_spec_1): Use inform for message from %n specs. Use warning instead of error for warnings. (main): Use inform for comparison messages. Use warning for message about unused linker input. (error): Increment error_count. Print "error: ". * gcc.h (fatal): Change to fatal_error. (warning): Declare. * config/darwin-driver.c (darwin_default_min_version): Use warning instead of fprintf for warnings. * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal. cp: * g++spec.c (lang_specific_driver): Use fatal_error instead of fatal. fortran: * gfortranspec.c (append_arg, lang_specific_driver): Use fatal_error instead of fatal. Use warning instead of fprintf for warnings. java: * jvspec.c (lang_specific_driver): Use fatal_error instead of fatal. Use warning instead of error for warnings. From-SVN: r159986
Diffstat (limited to 'gcc/gcc.h')
-rw-r--r--gcc/gcc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gcc.h b/gcc/gcc.h
index 3f80346dbc5..a28567454da 100644
--- a/gcc/gcc.h
+++ b/gcc/gcc.h
@@ -59,8 +59,10 @@ struct spec_function
/* These are exported by gcc.c. */
extern int do_spec (const char *);
extern void record_temp_file (const char *, int, int);
-extern void fatal (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
+extern void fatal_error (const char *, ...)
+ ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
extern void error (const char *, ...) ATTRIBUTE_PRINTF_1;
+extern void warning (int, const char *, ...) ATTRIBUTE_PRINTF_2;
extern void pfatal_with_name (const char *) ATTRIBUTE_NORETURN;
extern void set_input (const char *);