Mercurial > hg > CbC > CbC_gcc
diff gcc/diagnostic.h @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | b7f97abdc517 |
line wrap: on
line diff
--- a/gcc/diagnostic.h Sun Feb 07 18:28:00 2010 +0900 +++ b/gcc/diagnostic.h Fri Feb 12 23:39:51 2010 +0900 @@ -1,5 +1,5 @@ /* Various declarations for language-independent diagnostics subroutines. - Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 + Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Gabriel Dos Reis <gdr@codesourcery.com> @@ -28,7 +28,7 @@ /* Constants used to discriminate diagnostics. */ typedef enum { -#define DEFINE_DIAGNOSTIC_KIND(K, msgid) K, +#define DEFINE_DIAGNOSTIC_KIND(K, msgid) K, #include "diagnostic.def" #undef DEFINE_DIAGNOSTIC_KIND DK_LAST_DIAGNOSTIC_KIND @@ -41,6 +41,7 @@ { text_info message; location_t location; + unsigned int override_column; /* TREE_BLOCK if the diagnostic is to be reported in some inline function inlined into other function, otherwise NULL. */ tree abstract_origin; @@ -69,7 +70,7 @@ /* True if we should display the "warnings are being tread as error" message, usually displayed once per compiler run. */ bool issue_warnings_are_errors_message; - + /* True if it has been requested that warnings be treated as errors. */ bool warning_as_error_requested; @@ -185,6 +186,10 @@ #define report_diagnostic(D) diagnostic_report_diagnostic (global_dc, D) +/* Override the column number to be used for reporting a + diagnostic. */ +#define diagnostic_override_column(DI, COL) (DI)->override_column = (COL) + /* Diagnostic related functions. */ extern void diagnostic_initialize (diagnostic_context *); extern void diagnostic_report_current_module (diagnostic_context *); @@ -208,6 +213,8 @@ const char *, ...) ATTRIBUTE_GCC_DIAG(4,5); #endif extern char *diagnostic_build_prefix (diagnostic_info *); +void default_diagnostic_starter (diagnostic_context *, diagnostic_info *); +void default_diagnostic_finalizer (diagnostic_context *, diagnostic_info *); /* Pure text formatting support functions. */ extern char *file_name_as_prefix (const char *); @@ -221,6 +228,7 @@ extern void print_generic_decl (FILE *, tree, int); extern void debug_c_tree (tree); extern void dump_omp_clauses (pretty_printer *, tree, int, int); +extern void print_call_name (pretty_printer *, tree, int); /* In gimple-pretty-print.c */ extern void debug_generic_expr (tree); @@ -233,4 +241,8 @@ extern void print_gimple_expr (FILE *, gimple, int, int); extern void dump_gimple_stmt (pretty_printer *, gimple, int, int); +/* In toplev.c */ +extern bool default_tree_printer (pretty_printer *, text_info *, const char *, + int, bool, bool, bool); + #endif /* ! GCC_DIAGNOSTIC_H */