From a17fab44b66a7e14c8bdf8a64541d7b92a56c64d Mon Sep 17 00:00:00 2001 From: aph Date: Tue, 28 Sep 2010 09:54:27 +0000 Subject: [PATCH] 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 --- gcc/java/ChangeLog | 5 +++++ gcc/java/jvgenmain.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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); -- 2.7.4