lang.c (langhooks.h): Included.
authorAlexandre Petit-Bianco <apbianco@redhat.com>
Mon, 15 Oct 2001 22:10:56 +0000 (15:10 -0700)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Mon, 15 Oct 2001 22:10:56 +0000 (15:10 -0700)
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

gcc/java/ChangeLog
gcc/java/lang.c

index 7ea1bc8c1662a2db4570709234a267e7e1acbb07..dbcccbd11f9d3264bff8c47c1c1d57dd316edade 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2001-10-11  Per Bothner  <per@bothner.com>
 
        * parse.y (patch_synchronized_statement):  Use a TRY_FINALLY_EXPR
@@ -14,7 +22,7 @@
 2001-10-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
 
        * parse.y (patch_cast): Call patch_string on the first operand of
-       the incoming node, update it if necessary. Fixes java/4510.
+       the incoming node, update it if necessary. Fixes PR java/4510.
 
 2001-10-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
@@ -37,7 +45,7 @@
 2001-10-05  Alexandre Petit-Bianco  <apbianco@redhat.com>
 
        * parse.y (register_incomplete_type): Set JDEP_SUPER to be given
-       a NULL enclosing context if appropriate. Fixes java/4466.
+       a NULL enclosing context if appropriate. Fixes PR java/4466.
 
 2001-10-03  Alexandre Petit-Bianco  <apbianco@redhat.com>
 
index 7fa23a910f37133bd3c0f740f12555eca8204a62..8187e672059a19561e8e2cd9d05c85faa5ca9b82 100644 (file)
@@ -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.  */