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/fortran/gfortranspec.c | |
parent | 6cbf667385e50fa23e729eebbee0dac150a77b52 (diff) | |
download | gcc-a922df2e7f51822ec2ae107fffdd8395b7cc0547.tar.gz |
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/fortran/gfortranspec.c')
-rw-r--r-- | gcc/fortran/gfortranspec.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c index 413da7b606a..1f67acc1513 100644 --- a/gcc/fortran/gfortranspec.c +++ b/gcc/fortran/gfortranspec.c @@ -244,7 +244,7 @@ append_arg (const char *arg) } if (g77_newargc == newargsize) - fatal ("overflowed output arg list for '%s'", arg); + fatal_error ("overflowed output arg list for '%s'", arg); g77_newargv[g77_newargc++] = arg; } @@ -402,11 +402,11 @@ For more information about these matters, see the file named COPYING\n\n")); if (i + skip < argc) i += skip; else - fatal ("argument to '%s' missing", argv[i]); + fatal_error ("argument to '%s' missing", argv[i]); } if ((n_outfiles != 0) && (n_infiles == 0)) - fatal ("no input files; unwilling to write output files"); + fatal_error ("no input files; unwilling to write output files"); /* If there are no input files, no need for the library. */ if (n_infiles == 0) @@ -428,8 +428,7 @@ For more information about these matters, see the file named COPYING\n\n")); { char *p; - fprintf (stderr, _("Warning: Using -M <directory> is deprecated, " - "use -J instead\n")); + warning (0, "using -M <directory> is deprecated, use -J instead"); if (argv[i][2] == '\0') { if (i+1 < argc) @@ -441,7 +440,7 @@ For more information about these matters, see the file named COPYING\n\n")); i++; } else - fatal ("argument to '%s' missing", argv[i]); + fatal_error ("argument to '%s' missing", argv[i]); } else { |