diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-28 17:28:57 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-28 17:28:57 +0000 |
commit | a922df2e7f51822ec2ae107fffdd8395b7cc0547 (patch) | |
tree | d1333acc1907350475741ab7bf571e884e00c3e4 /gcc/cppspec.c | |
parent | 6cbf667385e50fa23e729eebbee0dac150a77b52 (diff) |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159986 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppspec.c')
-rw-r--r-- | gcc/cppspec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppspec.c b/gcc/cppspec.c index 344da17a37ed..dfae81ead090 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) |