diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-07 03:34:28 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-07 03:34:28 +0000 |
commit | 50c7fc9985f09469a6ab83e74e56029ded86cff5 (patch) | |
tree | 4dc1d6254e96cddffb6b0b0b93145fa144532257 /gcc/c-lang.c | |
parent | f6e771aad0d6a9b35f1c355c31233b20028260a7 (diff) | |
download | gcc-50c7fc9985f09469a6ab83e74e56029ded86cff5.tar.gz |
* toplev.c (main): Call the front-end specific post_options
hook if one is given.
* toplev.h (struct_lang_hooks, lang_hooks): New.
* c-lang.c (c_post_options, lang_hooks): Implement lang_hooks
for the C front end.
* cp/decl2.c (cxx_post_options, lang_hooks): Implement
lang_hooks for the C++ front end.
* objc/objc-act.c (objc_post_options, lang_hooks): Implement
lang_hooks for the ObjC front end.
* f/com.c (lang_hooks): Hooks for the Fortran front end.
* java/lang.c (lang_hooks): Hooks for the Java front end.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38757 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r-- | gcc/c-lang.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c index b96895d4c87..52f6015a49f 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -38,10 +38,19 @@ Boston, MA 02111-1307, USA. */ static int c_tree_printer PARAMS ((output_buffer *)); static int c_missing_noreturn_ok_p PARAMS ((tree)); +static void c_post_options PARAMS ((void)); + +/* Each front end provides its own. */ +struct lang_hooks lang_hooks = {c_post_options}; + +/* Post-switch processing. */ +static void +c_post_options () +{ +} /* Each of the functions defined here is an alternative to a function in objc-actions.c. */ - int lang_decode_option (argc, argv) int argc; |