diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-28 09:54:27 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-28 09:54:27 +0000 |
commit | a17fab44b66a7e14c8bdf8a64541d7b92a56c64d (patch) | |
tree | 63d3a06430e733f004a6edfc743ddcf4e3910991 /gcc/java | |
parent | 200b52101f64d836177b4fa5f22894176122a58c (diff) | |
download | gcc-a17fab44b66a7e14c8bdf8a64541d7b92a56c64d.tar.gz |
2010-09-27 Andrew Haley <aph@redhat.com>
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
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jvgenmain.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index f1a1ee1c0fb..664cd32cc44 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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 diff --git a/gcc/java/jvgenmain.c b/gcc/java/jvgenmain.c index 91fa81ce4d4..a6788029f9e 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); |