re PR java/45773 (gcj fails to compile java)

2010-09-27  Andrew Haley  <aph@redhat.com>

        PR java/45773
        * jvgenmain.c (main): Fix arg processing.

From-SVN: r164679
This commit is contained in:
Andrew Haley 2010-09-28 09:54:27 +00:00 committed by Andrew Haley
parent 247df3b6d9
commit 06f1db4b1c
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-09-27 Andrew Haley <aph@redhat.com>
PR java/45773
* jvgenmain.c (main): Fix arg processing.
2010-09-22 Joseph Myers <joseph@codesourcery.com>
* jvspec.c (lang_specific_driver): Handle OPT__help instead of

View File

@ -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);