Message ID | 20100902214628.GA31817@intel.com |
---|---|
State | New |
Headers | show |
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.
--- 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;