From patchwork Tue Sep 28 09:48:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Haley X-Patchwork-Id: 65949 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 3F226B70D6 for ; Tue, 28 Sep 2010 19:48:38 +1000 (EST) Received: (qmail 25082 invoked by alias); 28 Sep 2010 09:48:34 -0000 Received: (qmail 25068 invoked by uid 22791); 28 Sep 2010 09:48:34 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, TW_JV, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Sep 2010 09:48:29 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o8S9mSEf027932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 Sep 2010 05:48:28 -0400 Received: from zebedee.pink ([10.3.113.3]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o8S9mQfp013968; Tue, 28 Sep 2010 05:48:27 -0400 Message-ID: <4CA1B9EA.8090908@redhat.com> Date: Tue, 28 Sep 2010 10:48:26 +0100 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: GCJ-patches , GCC Patches Subject: PR java/45773: Arg processing is broken in jvgenmain X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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);