RFR: JDK-8134157: adlc fails to compile with SS12u4
Kim Barrett
kim.barrett at oracle.com
Tue Aug 25 18:13:11 UTC 2015
On Aug 25, 2015, at 10:27 AM, Erik Joelsson <erik.joelsson at oracle.com> wrote:
>
> Hello,
>
> We are working towards upgrading the officially supported compilers for JDK 9 and on Solaris, the proposed new compiler is Solaris Studio 12 update 4. When attempting to build with that compiler, the hotspot build fails very early with:
>
> "/opt/jprt/jprtadm/erik/jdk9-dev/hotspot/src/share/vm/adlc/adlparse.cpp", line 2331: Error: Could not find source for RegisterForm::addRegClass<RegClass>(const char*).
>
> This can be worked around by adding -template=extdef to the compiler flags. I propose we add this just when compiling adlc and for this particular version of Solaris Studio. See bug for further discussion of the issue.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8134157
> Webrev: http://cr.openjdk.java.net/~erikj/8134157/webrev/
>
> /Erik
I don’t think we should make this change.
I think a better alternative than mixing different -template options would be to change adlc to use the “include model” for template usage, as discussed in comments in the bug report.
Also as discussed in the bug report, I don’t think we fully understand the problem, since there appears to be other code in hotspot that looks very similar and seemingly ought to run into the same problem. If only changing adlc as described doesn’t trip over the same problem with that other code, then I don’t think we actually understand the problem yet, and can’t evaluate proposed solutions.
More information about the build-dev
mailing list