* java-tree.h: Constify current_encoding.
* lang.c: Constify current_encoding.
2000-10-10 Jeff Sturm <jeff.sturm@appnet.com>
* jvgenmain.c (class_mangling_suffix): Omit `.'.
(main): Use `$' when NO_DOLLAR_IN_LABEL is not set, otherwise `.'.
2000-10-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
* expr.c (java_lang_expand_expr): Reinstall 1999-08-14 Anthony's
patch. Fixes gcj/340.
(http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00374.html)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36864
138bc75d-0d04-0410-961f-
82ee72b054a4
* gjavah.c (add_class_decl): Don't special-case inner classes.
(add_namelet): Likewise.
+2000-10-11 Rodney Brown <RodneyBrown@mynd.com>
+
+ * java-tree.h: Constify current_encoding.
+ * lang.c: Constify current_encoding.
+
+2000-10-10 Jeff Sturm <jeff.sturm@appnet.com>
+
+ * jvgenmain.c (class_mangling_suffix): Omit `.'.
+ (main): Use `$' when NO_DOLLAR_IN_LABEL is not set, otherwise `.'.
+
+2000-10-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * expr.c (java_lang_expand_expr): Reinstall 1999-08-14 Anthony's
+ patch. Fixes gcj/340.
+
2000-10-10 Tom Tromey <tromey@cygnus.com>
* lex.c (java_new_lexer): Initialize out_first and out_last
DECL_INITIAL (init_decl) = value;
DECL_IGNORED_P (init_decl) = 1;
TREE_READONLY (init_decl) = 1;
+ TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1;
make_decl_rtl (init_decl, NULL, 1);
init = build1 (ADDR_EXPR, TREE_TYPE (exp), init_decl);
r = expand_expr (init, target, tmode, modifier);
extern int flag_hash_synchronization;
/* Encoding used for source files. */
-extern char *current_encoding;
+extern const char *current_encoding;
/* The Java .class file that provides main_class; the main input file. */
extern struct JCF *current_jcf;
const char main_method_prefix[] = "main__";
const char main_method_suffix[] = "Pt6JArray1ZPQ34java4lang6String";
-const char class_mangling_suffix[] = ".class$";
+const char class_mangling_suffix[] = "class$";
struct obstack name_obstack;
}
fprintf (stream, " 0\n};\n\n");
- fprintf (stream, "extern int class __attribute__ ((alias (\"_%s%s\")));\n",
+#ifndef NO_DOLLAR_IN_LABEL
+ fprintf (stream, "extern int class __attribute__ ((alias (\"_%s$%s\")));\n",
mangled_classname, class_mangling_suffix);
+#else
+ fprintf (stream, "extern int class __attribute__ ((alias (\"_%s.%s\")));\n",
+ mangled_classname, class_mangling_suffix);
+#endif
fprintf (stream, "int main (int argc, const char **argv)\n");
fprintf (stream, "{\n");
fprintf (stream, " _Jv_Compiler_Properties = props;\n");
int flag_jni = 0;
/* The encoding of the source file. */
-char *current_encoding = NULL;
+const char *current_encoding = NULL;
/* When non zero, report the now deprecated empty statements. */
int flag_extraneous_semicolon;