summaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-07 03:34:28 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-07 03:34:28 +0000
commit50c7fc9985f09469a6ab83e74e56029ded86cff5 (patch)
tree4dc1d6254e96cddffb6b0b0b93145fa144532257 /gcc/toplev.h
parentf6e771aad0d6a9b35f1c355c31233b20028260a7 (diff)
downloadgcc-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/toplev.h')
-rw-r--r--gcc/toplev.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index 4e029c0861f..05fca0103a1 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -133,4 +133,14 @@ extern int sorrycount;
extern const char *progname;
+/* Language-specific hooks. */
+struct lang_hooks
+{
+ /* If non-NULL, called when all command line options have been processed. */
+ void (*post_options) PARAMS ((void));
+};
+
+/* Each front end provides its own. */
+extern struct lang_hooks lang_hooks;
+
#endif /* __GCC_TOPLEV_H */