diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-08-15 15:10:15 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-08-15 15:10:15 +0000 |
commit | 8e54f6d3bac9f2e2626e4a1496e01a243d91b9d0 (patch) | |
tree | ff48278d43446ffb9145fbbac3289b0d898cacfa /gcc/diagnostic.c | |
parent | 363785f63edd6a56427b6aa3f256ffac9a2d376d (diff) | |
download | gcc-8e54f6d3bac9f2e2626e4a1496e01a243d91b9d0.zip gcc-8e54f6d3bac9f2e2626e4a1496e01a243d91b9d0.tar.gz gcc-8e54f6d3bac9f2e2626e4a1496e01a243d91b9d0.tar.bz2 |
re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color)
2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/44054
gcc/
* diagnostic.c (build_message_string): Make it extern.
* diagnostic.h (build_message_string): Make it extern.
c-family/
* c-format.c: Handle Fortran flags.
fortran/
* gfortran.h: Define GCC_DIAG_STYLE.
(gfc_diagnostics_init,gfc_warning_cmdline): Declare.
* trans-array.c: Include gfortran.h before diagnostic-core.h.
* trans-expr.c: Likewise.
* trans-openmp.c: Likewise.
* trans-const.c: Likewise.
* trans.c: Likewise.
* trans-types.c: Likewise.
* f95-lang.c: Likewise.
* trans-decl.c: Likewise.
* trans-io.c: Likewise.
* trans-intrinsic.c: Likewise.
* error.c: Include diagnostic.h and diagnostic-color.h.
(gfc_diagnostic_build_prefix): New.
(gfc_diagnostic_starter): New.
(gfc_diagnostic_finalizer): New.
(gfc_warning_cmdline): New.
(gfc_diagnostics_init): New.
* gfc-diagnostic.def: New.
* options.c (gfc_init_options): Call gfc_diagnostics_init.
(gfc_post_options): Use gfc_warning_cmdline.
From-SVN: r214024
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 0cc7593..b457e5a 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -41,8 +41,6 @@ along with GCC; see the file COPYING3. If not see #define permissive_error_option(DC) ((DC)->opt_permissive) /* Prototypes. */ -static char *build_message_string (const char *, ...) ATTRIBUTE_PRINTF_1; - static void error_recursion (diagnostic_context *) ATTRIBUTE_NORETURN; static void diagnostic_action_after_output (diagnostic_context *, @@ -59,7 +57,7 @@ diagnostic_context *global_dc = &global_diagnostic_context; /* Return a malloc'd string containing MSG formatted a la printf. The caller is responsible for freeing the memory. */ -static char * +char * build_message_string (const char *msg, ...) { char *str; |