diff mbox

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

Message ID 20100902214628.GA31817@intel.com
State New
Headers show

Commit Message

H.J. Lu Sept. 2, 2010, 9:46 p.m. UTC
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 -----

Comments

Andrew Haley Sept. 3, 2010, 10:51 a.m. UTC | #1
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.
diff mbox

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;