diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2003-07-10 11:38:18 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2003-07-10 11:38:18 +0000 |
commit | bcda12f4f4110d1376d822112c9c00d6287471a6 (patch) | |
tree | 384851f1df2b0ff1a6f75866077508884ffa365a /gcc/toplev.h | |
parent | 3dbb446ebd77a551c63b958faca007983ee33231 (diff) | |
download | gcc-bcda12f4f4110d1376d822112c9c00d6287471a6.tar.gz |
ggc.h, [...]: Use `rtx' instead of `struct rtx_def *'...
2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
* ggc.h, integrate.h, langhooks.h, real.h, toplev.h:
Use `rtx' instead of `struct rtx_def *', `rtvec' instead of
`struct rtvec_dev *' and `tree' instead of `union tree_node *'
in function prototypes.
* varray.h (const_equiv_data): Likewise for fields.
(varray_data_tag): Likewise.
* output.h: Likewise, and don't forward declare union tree_node.
* emit_rtl.c (const_int_htab_hash): Cast to `rtx' instead of
`struct rtxvec *'.
* print-tree.c (print_node): Likewise.
* reload1.c: Don't redeclare current_function_decl, tree.h is
included in this file.
From-SVN: r69183
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r-- | gcc/toplev.h | 70 |
1 files changed, 29 insertions, 41 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h index e9c7e0dec55..a36f9eb1670 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -26,19 +26,13 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define skip_leading_substring(whole, part) \ (strncmp (whole, part, strlen (part)) ? NULL : whole + strlen (part)) -extern int toplev_main (unsigned int, const char **); -extern int read_integral_parameter (const char *, const char *, - const int); -extern void strip_off_ending (char *, int); -extern const char *trim_filename (const char *); -extern void _fatal_insn_not_found (struct rtx_def *, - const char *, int, - const char *) +extern int toplev_main (unsigned int, const char **); +extern int read_integral_parameter (const char *, const char *, const int); +extern void strip_off_ending (char *, int); +extern const char *trim_filename (const char *); +extern void _fatal_insn_not_found (rtx, const char *, int, const char *) ATTRIBUTE_NORETURN; -extern void _fatal_insn (const char *, - struct rtx_def *, - const char *, int, - const char *) +extern void _fatal_insn (const char *, rtx, const char *, int, const char *) ATTRIBUTE_NORETURN; #define fatal_insn(msgid, insn) \ @@ -59,35 +53,29 @@ extern void _fatal_insn (const char *, #else #define ATTRIBUTE_GCC_DIAG(m, n) ATTRIBUTE_NONNULL(m) #endif -extern void internal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2) +extern void internal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2) ATTRIBUTE_NORETURN; -extern void warning (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); -extern void error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); -extern void fatal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2) +extern void warning (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); +extern void error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); +extern void fatal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2) ATTRIBUTE_NORETURN; -extern void pedwarn (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); -extern void sorry (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); -extern void inform (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); - -extern void rest_of_decl_compilation (union tree_node *, - const char *, int, int); -extern void rest_of_type_compilation (union tree_node *, int); -extern void rest_of_compilation (union tree_node *); - -extern void pedwarn_with_decl (union tree_node *, - const char *, ...); -extern void warning_with_decl (union tree_node *, - const char *, ...); -extern void error_with_decl (union tree_node *, - const char *, ...); - -extern void announce_function (union tree_node *); - -extern void error_for_asm (struct rtx_def *, - const char *, ...) ATTRIBUTE_GCC_DIAG(2,3); -extern void warning_for_asm (struct rtx_def *, - const char *, ...) ATTRIBUTE_GCC_DIAG(2,3); -extern void warn_deprecated_use (union tree_node *); +extern void pedwarn (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); +extern void sorry (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); +extern void inform (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); + +extern void rest_of_decl_compilation (tree, const char *, int, int); +extern void rest_of_type_compilation (tree, int); +extern void rest_of_compilation (tree); + +extern void pedwarn_with_decl (tree, const char *, ...); +extern void warning_with_decl (tree, const char *, ...); +extern void error_with_decl (tree, const char *, ...); + +extern void announce_function (tree); + +extern void error_for_asm (rtx, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3); +extern void warning_for_asm (rtx, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3); +extern void warn_deprecated_use (tree); #ifdef BUFSIZ extern void output_quoted_string (FILE *, const char *); @@ -101,8 +89,8 @@ extern void fnotice (FILE *, const char *, ...) ATTRIBUTE_PRINTF_2; #endif -extern int wrapup_global_declarations (union tree_node **, int); -extern void check_global_declarations (union tree_node **, int); +extern int wrapup_global_declarations (tree *, int); +extern void check_global_declarations (tree *, int); /* A unique local time stamp, might be zero if none is available. */ extern unsigned local_tick; |