Skip to content

Commit

Permalink
* jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set
Browse files Browse the repository at this point in the history
	in generated `main'.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30132 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
tromey committed Oct 22, 1999
1 parent 5391d56 commit cb4952e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/java/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1999-10-21 Tom Tromey <tromey@cygnus.com>

* jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set
in generated `main'.

Thu Oct 21 01:27:31 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>

* parse.y (resolve_qualified_expression_name): Handle MODIFY_EXPR.
Expand Down
4 changes: 3 additions & 1 deletion gcc/java/jvgenmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ main (int argc, const char **argv)

/* At this point every element of ARGV from 1 to LAST_ARG is a `-D'
option. Process them appropriately. */
fprintf (stream, "const char *_Jv_Compiler_Properties[] =\n{\n");
fprintf (stream, "extern const char **_Jv_Compiler_Properties;\n");
fprintf (stream, "static const char *props[] =\n{\n");
for (i = 1; i < last_arg; ++i)
{
const char *p;
Expand All @@ -156,6 +157,7 @@ main (int argc, const char **argv)
class_mangling_prefix, mangled_classname);
fprintf (stream, "int main (int argc, const char **argv)\n");
fprintf (stream, "{\n");
fprintf (stream, " _Jv_Compiler_Properties = props;\n");
fprintf (stream, " JvRunMain (&%s%s, argc, argv);\n",
class_mangling_prefix, mangled_classname);
fprintf (stream, "}\n");
Expand Down

0 comments on commit cb4952e

Please sign in to comment.