From: aph Date: Tue, 28 Sep 2010 09:54:27 +0000 (+0000) Subject: 2010-09-27 Andrew Haley X-Git-Tag: upstream/4.9.2~26334 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a17fab44b66a7e14c8bdf8a64541d7b92a56c64d;p=platform%2Fupstream%2Flinaro-gcc.git 2010-09-27 Andrew Haley PR java/45773 * jvgenmain.c (main): Fix arg processing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164679 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index f1a1ee1..664cd32 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2010-09-27 Andrew Haley + + PR java/45773 + * jvgenmain.c (main): Fix arg processing. + 2010-09-22 Joseph Myers * jvspec.c (lang_specific_driver): Handle OPT__help instead of diff --git a/gcc/java/jvgenmain.c b/gcc/java/jvgenmain.c index 91fa81c..a678802 100644 --- a/gcc/java/jvgenmain.c +++ b/gcc/java/jvgenmain.c @@ -123,8 +123,12 @@ main (int argc, char **argv) for (i = 1; i < last_arg; ++i) { const char *p; + + if (strcmp (argv[i], "-D") == 0) + continue; + fprintf (stream, " \""); - for (p = &argv[i][2]; *p; ++p) + for (p = argv[i]; *p; ++p) { if (! ISPRINT (*p)) fprintf (stream, "\\%o", *p);