From patchwork Tue Sep 28 09:48:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PR java/45773: Arg processing is broken in jvgenmain Date: Mon, 27 Sep 2010 23:48:26 -0000 From: Andrew Haley X-Patchwork-Id: 65949 Message-Id: <4CA1B9EA.8090908@redhat.com> To: GCJ-patches , GCC Patches Fixed thusly. Andrew. 2010-09-27 Andrew Haley PR java/45773 * jvgenmain.c (main): Fix arg processing. 2Index: jvgenmain.c =================================================================== --- jvgenmain.c (revision 164650) +++ jvgenmain.c (working copy) @@ -123,8 +123,12 @@ 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);