aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppspec.c
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/cppspec.c
parent7325b1b3abddcaab7ea30a48cd8ceb99ccdabc2e (diff)
downloadgcc-2dec80c756fb7a85f1c6f236386e230d19ccbe26.zip
gcc-2dec80c756fb7a85f1c6f236386e230d19ccbe26.tar.gz
gcc-2dec80c756fb7a85f1c6f236386e230d19ccbe26.tar.bz2
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/cppspec.c')
-rw-r--r--gcc/cppspec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppspec.c b/gcc/cppspec.c
index 344da17..dfae81e 100644
--- a/gcc/cppspec.c
+++ b/gcc/cppspec.c
@@ -1,5 +1,5 @@
/* Specific flags and argument handling of the C preprocessor.
- Copyright (C) 1999, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2007, 2010 Free Software Foundation, Inc.
This file is part of GCC.
@@ -103,8 +103,8 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
need_E = 0;
else if (argv[i][1] == 'S' || argv[i][1] == 'c')
{
- fatal ("\"%s\" is not a valid option to the preprocessor",
- argv[i]);
+ fatal_error ("\"%s\" is not a valid option to the "
+ "preprocessor", argv[i]);
return;
}
else if (argv[i][1] == 'x')
@@ -125,7 +125,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
seen_input++;
if (seen_input == 3)
{
- fatal ("too many input files");
+ fatal_error ("too many input files");
return;
}
else if (seen_input == 2)