diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-21 21:03:48 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-21 21:03:48 +0000 |
commit | 7cd99a60e62a06c22ad0ab60db1068a73a3d2c2d (patch) | |
tree | 077954c4a4f3e25d4a7bfbc4efdc3428750adc5c /gcc/toplev.h | |
parent | af32b0503e3da9788e8a904dc44b590514b5fd28 (diff) | |
download | gcc-7cd99a60e62a06c22ad0ab60db1068a73a3d2c2d.tar.gz |
* langhooks.c (lang_hook_default_do_nothing,
lang_hook_default_decode_option): New defaults.
* langhooks.h: Make hooks unconditional and non-NULL.
* toplev.c (compile_file, toplev_main): Update.
* toplev.h: Update comments.
* objc/objc-act.c (lang_hooks): Update to new paradigm.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46396 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r-- | gcc/toplev.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h index 61a277c3766..4203207f096 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -138,7 +138,7 @@ struct lang_hooks_for_tree_inlining int (*anon_aggr_type_p) PARAMS ((union tree_node *)); }; -/* Language-specific hooks. Can be NULL unless otherwise specified. */ +/* Language-specific hooks. See langhooks.h for defaults. */ struct lang_hooks { @@ -158,9 +158,7 @@ struct lang_hooks option. If this function returns a negative number, then its absolute value is the number of command-line arguments used, but, in addition, no language-independent option processing should be - done for this option. - - This hook cannot be NULL. */ + done for this option. */ int (*decode_option) PARAMS ((int, char **)); /* Called when all command line options have been processed. */ |