From patchwork Thu Sep 2 21:46:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 63562 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 1844CB718B for ; Fri, 3 Sep 2010 07:46:38 +1000 (EST) Received: (qmail 13065 invoked by alias); 2 Sep 2010 21:46:35 -0000 Received: (qmail 13056 invoked by uid 22791); 2 Sep 2010 21:46:35 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga14.intel.com (HELO mga14.intel.com) (143.182.124.37) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Sep 2010 21:46:30 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 02 Sep 2010 14:46:29 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by azsmga001.ch.intel.com with ESMTP; 02 Sep 2010 14:46:28 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 95CA522683; Thu, 2 Sep 2010 14:46:28 -0700 (PDT) Date: Thu, 2 Sep 2010 14:46:28 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: PATCH: PR java/45504: [4.6 Regression] Failed to bootstrap Message-ID: <20100902214628.GA31817@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) 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 gcj used to pass -DXXX=XXX to jvgenmain. Now it passes "-D XXX=XXX" to jvgenmain. This patch checks it. OK for trunk? Thanks. H.J. --- 2010-09-02 H.J. Lu PR java/45504 * jvgenmain.c (main): Check "-D XXX=YYY". ----- End forwarded message ----- --- gcc/java/jvgenmain.c.foo 2010-06-02 10:19:00.000000000 -0700 +++ gcc/java/jvgenmain.c 2010-09-02 14:39:37.000000000 -0700 @@ -78,7 +78,9 @@ main (int argc, char **argv) { if (! strncmp (argv[i], "-D", 2)) { - /* Handled later. */ + /* Handled later. Check "-D XXX=YYY". */ + if (argv[i][2] == '\0') + i++; } else break;