From: Marek Polacek Date: Tue, 7 Oct 2014 12:29:15 +0000 (+0000) Subject: * jvgenmain.c (main): Provide declarations for JvRunMain{,Name}. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59b41b69be366ec2379b1d389d41c2de8f088590;p=gcc.git * jvgenmain.c (main): Provide declarations for JvRunMain{,Name}. From-SVN: r215969 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index d12b664d38a..1940e00ecce 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2014-10-07 Marek Polacek + + * jvgenmain.c (main): Provide declarations for JvRunMain{,Name}. + 2014-07-08 Mark Wielaard * builtins.c (putVolatile_builtin): Use build_qualified_type diff --git a/gcc/java/jvgenmain.c b/gcc/java/jvgenmain.c index 5b14258af06..82e468d30d2 100644 --- a/gcc/java/jvgenmain.c +++ b/gcc/java/jvgenmain.c @@ -127,6 +127,10 @@ main (int argc, char **argv) /* At this point every element of ARGV from 1 to LAST_ARG is a `-D' option. Process them appropriately. */ fprintf (stream, "extern const char **_Jv_Compiler_Properties;\n"); + if (indirect) + fprintf (stream, "extern void JvRunMainName ();\n"); + else + fprintf (stream, "extern void JvRunMain ();\n"); fprintf (stream, "static const char *props[] =\n{\n"); for (i = 1; i < last_arg; ++i) {