8227389: Remove unsupported xlc16 compile options on aix - was : RE: AIX xlc16 options langlvl=c99vla / langlvl=noredefmac is not supported

Baesken, Matthias matthias.baesken at sap.com
Mon Jul 8 11:59:53 UTC 2019

Hello,  here is a small webrev  removing  the  2 mentioned options .

When compiling jdk/jdk on AIX (using current xlc16 / xlclang) we run into these warnings :

warning: 1540-5200 The option "langlvl=c99vla" is not supported. :
This option controls variable length arrays / Enables or disables support for C99-type variable length arrays.
warning: 1540-5200 The option "langlvl=noredefmac" is not supported. :
Controls whether a macro can be redefined without a prior #undef or undefine() statement.

see https://www.ibm.com/support/knowledgecenter/SSGH3R_16.1.0/com.ibm.compilers.aix.doc/compiler.pdf

The mentioned options are only available with the legacy xlc (non xlclang).
I propose to remove these options, because xlc16 / xlclang is now the default compiler.

Bug/webrev :



Thanks and best regards, Matthias

I think this is fine for 14.

Cheers, Thomas

On Mon, Jul 8, 2019 at 9:23 AM Baesken, Matthias <matthias.baesken at sap.com<mailto:matthias.baesken at sap.com>> wrote:
Hello,   when building   jdk/jdk  on AIX  (using the current default xlc16)   I get a ton of warnings  :

warning: 1540-5200 The option "langlvl=c99vla" is not supported.
warning: 1540-5200 The option "langlvl=noredefmac" is not supported.

The 2  options seem  to be gone with the current xlc16  / xlclang++  .   I would like to remove them -  any objections ?
(removing them might be bad for older xlc  versions but I think we  probably  cannot compile with older versions  any more  ) .

Best regards, Matthias

More information about the build-dev mailing list