diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-06-11 22:21:10 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-11 22:21:10 +0000 |
commit | 7fb26bb00173af1f41d3df4b5a7a43be9e3f12db (patch) | |
tree | 2af8d6bf007345fd5e6e0ba2072ebff79f20b89c /gcc/langhooks-def.h | |
parent | 24386c5ec6a6f91d94bb14a65f5ec8a5c84235bc (diff) | |
download | gcc-7fb26bb00173af1f41d3df4b5a7a43be9e3f12db.tar.gz |
hooks.c (hook_int_size_t_constcharptr_int_0): New.
* hooks.c (hook_int_size_t_constcharptr_int_0): New.
* hooks.h (hook_int_size_t_constcharptr_int_0): New.
* langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
(LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
* langhooks.c (lhd_decode_option): Remove.
* langhooks.h (struct lang_hooks): Remove decode_option.
* opts.c (handle_option): No longer use decode_option.
java:
* Make-lang.in: Handle mostlyclean.
treelang:
* Make-lang.in: Update for option handling.
* lang.opt: New.
* tree1.c: Include opts.h and t-options.h.
(treelang_decode_option): Remove.
(treelang_handle_option): New.
* treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
(LANG_HOOKS_HANDLE_OPTION): Override.
* treetree.h (treelang_decode_option): Remove.
(treelang_handle_option): New.
From-SVN: r67799
Diffstat (limited to 'gcc/langhooks-def.h')
-rw-r--r-- | gcc/langhooks-def.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/langhooks-def.h b/gcc/langhooks-def.h index 8e6f8424c8a..a7f0abcd39f 100644 --- a/gcc/langhooks-def.h +++ b/gcc/langhooks-def.h @@ -35,9 +35,7 @@ extern HOST_WIDE_INT hook_get_alias_set_0 PARAMS ((tree)); The macros in this file should NOT be surrounded by a #ifdef...#endif pair, since this file declares the defaults. Each front end overrides any hooks it wishes to, in the file containing - its struct lang_hooks, AFTER including this file. - - Prefix all default hooks with "lhd_". */ + its struct lang_hooks, AFTER including this file. */ /* See langhooks.h for the definition and documentation of each hook. */ @@ -45,7 +43,6 @@ extern void lhd_do_nothing PARAMS ((void)); extern void lhd_do_nothing_t PARAMS ((tree)); extern void lhd_do_nothing_i PARAMS ((int)); extern void lhd_do_nothing_f PARAMS ((struct function *)); -extern int lhd_decode_option PARAMS ((int, char **)); extern bool lhd_post_options PARAMS ((const char **)); extern HOST_WIDE_INT lhd_get_alias_set PARAMS ((tree)); extern tree lhd_return_tree PARAMS ((tree)); @@ -94,8 +91,7 @@ void write_global_declarations PARAMS ((void)); #define LANG_HOOKS_PARSE_FILE lhd_do_nothing_i #define LANG_HOOKS_CLEAR_BINDING_STACK lhd_clear_binding_stack #define LANG_HOOKS_INIT_OPTIONS hook_int_void_0 -#define LANG_HOOKS_DECODE_OPTION lhd_decode_option -#define LANG_HOOKS_HANDLE_OPTION NULL +#define LANG_HOOKS_HANDLE_OPTION hook_int_size_t_constharptr_int_0 #define LANG_HOOKS_POST_OPTIONS lhd_post_options #define LANG_HOOKS_GET_ALIAS_SET lhd_get_alias_set #define LANG_HOOKS_EXPAND_CONSTANT lhd_return_tree @@ -246,7 +242,6 @@ int lhd_tree_dump_type_quals PARAMS ((tree)); LANG_HOOKS_IDENTIFIER_SIZE, \ LANG_HOOKS_TREE_SIZE, \ LANG_HOOKS_INIT_OPTIONS, \ - LANG_HOOKS_DECODE_OPTION, \ LANG_HOOKS_HANDLE_OPTION, \ LANG_HOOKS_POST_OPTIONS, \ LANG_HOOKS_INIT, \ |