[RFR] JDK-8156980: Hotspot build doesn't have -std=gnu++98 gcc option

Andrew Hughes gnu.andrew at redhat.com
Sun Jul 10 21:05:15 UTC 2016



----- Original Message -----
> > On Jul 8, 2016, at 2:38 AM, Erik Joelsson <erik.joelsson at oracle.com> wrote:
> > 
> > Hello,
> > 
> > This looks good except for the change in toolchain.m4, which looks like it
> > might actually break cross compilation by overriding the value for
> > compiler version for the build compiler using the target compiler. With
> > this change we basically have:
> > 
> > if cross compilation
> >  TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS([BUILD_], [OPENJDK_BUILD_])
> > else
> >  ...
> > fi
> > TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS([], [OPENJDK_BUILD_])
> > 
> > The problem you are trying to solve is that in the case of not cross
> > compilation, the TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS macro wasn't
> > called with "OPENJDK_BUILD_". Kim's suggested patch was to add the call in
> > the else clause.
> 
> Good catch!  I totally missed that when reviewing.
> 
> 
Yes, good catch! The indenting on the bug report must have confused me.

Fixed version:

http://cr.openjdk.java.net/~andrew/8156980/webrev.06/root/
http://cr.openjdk.java.net/~andrew/8156980/webrev.06/hotspot

HotSpot webrev is unchanged.

Thanks,
-- 
Andrew :)

Senior Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: ed25519/35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04  C5A0 CFDA 0F9B 3596 4222





More information about the build-dev mailing list