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/langhooks.c | |
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/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index ea0df904848..aa6422a325c 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -29,6 +29,20 @@ Boston, MA 02111-1307, USA. */ #include "integrate.h" #include "langhooks.h" +/* Do nothing; in many cases the default hook. */ +void +lang_hook_default_do_nothing () +{ +} + +/* Do nothing; the default hook to decode an option. */ +int +lang_hook_default_decode_option (argc, argv) + int argc ATTRIBUTE_UNUSED; + char **argv ATTRIBUTE_UNUSED; +{ + return 0; +} /* lang_hooks.tree_inlining.walk_subtrees is called by walk_tree() after handling common cases, but before walking code-specific |