Patchwork PATCH: PR java/45504: [4.6 Regression] Failed to bootstrap

login
register
mail settings
Submitter H.J. Lu
Date Sept. 2, 2010, 9:46 p.m.
Message ID <20100902214628.GA31817@intel.com>
Download mbox | patch
Permalink /patch/63562/
State New
Headers show

Comments

H.J. Lu - Sept. 2, 2010, 9:46 p.m.
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  <hongjiu.lu@intel.com>

	PR java/45504
	* jvgenmain.c (main): Check "-D XXX=YYY".


----- End forwarded message -----
Andrew Haley - Sept. 3, 2010, 10:51 a.m.
On 09/02/2010 10:46 PM, H.J. Lu wrote:
> 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  <hongjiu.lu@intel.com>
> 
> 	PR java/45504
> 	* jvgenmain.c (main): Check "-D XXX=YYY".
> 

OK.

Andrew.

Patch

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