aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@redhat.com>2001-10-15 15:10:56 -0700
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2001-10-15 15:10:56 -0700
commitc83303d8a41d46d1ee24fa49347a24bb2f28fe9d (patch)
tree5247ea899e655dc34044821d3c6a0933f95d6937 /gcc/java/lang.c
parent41441dc7ff9ccf73ebe0df1fe3e502f3168c2528 (diff)
downloadgcc-c83303d8a41d46d1ee24fa49347a24bb2f28fe9d.zip
gcc-c83303d8a41d46d1ee24fa49347a24bb2f28fe9d.tar.gz
gcc-c83303d8a41d46d1ee24fa49347a24bb2f28fe9d.tar.bz2
lang.c (langhooks.h): Included.
2001-10-15 Alexandre Petit-Bianco <apbianco@redhat.com> * lang.c (langhooks.h): Included. (LANG_HOOKS_INIT): Redefined. (LANG_HOOKS_INIT_OPTIONS): Likewise. (LANG_HOOKS_DECODE_OPTION): Likewise. (struct lang_hooks lang_hooks): New initialization. ( http://gcc.gnu.org/ml/gcc-patches/2001-10/msg00692.html ) From-SVN: r46270
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r--gcc/java/lang.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 7fa23a9..8187e67 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -34,6 +34,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "java-tree.h"
#include "jcf.h"
#include "toplev.h"
+#include "langhooks.h"
#include "flags.h"
#include "xref.h"
#include "ggc.h"
@@ -195,12 +196,15 @@ static int dependency_tracking = 0;
#define DEPEND_TARGET_SET 4
#define DEPEND_FILE_ALREADY_SET 8
+#undef LANG_HOOKS_INIT
+#define LANG_HOOKS_INIT java_init
+#undef LANG_HOOKS_INIT_OPTIONS
+#define LANG_HOOKS_INIT_OPTIONS java_init_options
+#undef LANG_HOOKS_DECODE_OPTION
+#define LANG_HOOKS_DECODE_OPTION java_decode_option
+
/* Each front end provides its own. */
-struct lang_hooks lang_hooks = {java_init,
- NULL, /* java_finish */
- java_init_options,
- java_decode_option,
- NULL /* post_options */};
+struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
/* Process an option that can accept a `no-' form.
Return 1 if option found, 0 otherwise. */