Re: RFR: JDK-8329257: AIX: Switch HOTSPOT_TOOLCHAIN_TYPE from xlc to gcc [v2]

2024-04-02 Thread Joachim Kern
On Tue, 2 Apr 2024 14:48:49 GMT, Martin Doerr  wrote:

>> My question is, do we need this block, because now already configure warns 
>> about an outdated compiler, or is a warning to weak and we want to force 
>> this error here?
>
> I think that building with xlc 16 is no longer possible because the old build 
> pipeline is no longer supported and that is already caught by configure. So, 
> can we even reach here with older xlc compilers?
> If not, this code can get removed.

Yes, of course you are right. All the compile statements will fail with xlc 16 
or older. I will remove it.

-

PR Review Comment: https://git.openjdk.org/jdk/pull/18536#discussion_r1548134431


Re: RFR: JDK-8329257: AIX: Switch HOTSPOT_TOOLCHAIN_TYPE from xlc to gcc [v2]

2024-04-02 Thread Martin Doerr
On Tue, 2 Apr 2024 11:22:54 GMT, Joachim Kern  wrote:

>> I'd prefer having less AIX specific parts in this file. Can this be moved 
>> somewhere else? Or maybe combine it with the AIX code above?
>
> My question is, do we need this block, because now already configure warns 
> about an outdated compiler, or is a warning to weak and we want to force this 
> error here?

I think that building with xlc 16 is no longer possible because the old build 
pipeline is no longer supported and that is already caught by configure. So, 
can we even reach here with older xlc compilers?
If not, this code can get removed.

-

PR Review Comment: https://git.openjdk.org/jdk/pull/18536#discussion_r1548043503


Re: RFR: JDK-8329257: AIX: Switch HOTSPOT_TOOLCHAIN_TYPE from xlc to gcc [v2]

2024-04-02 Thread Joachim Kern
> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building 
> the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect 
> clang by another name, and it uses the clang toolchain in the JDK build. Thus 
> the old xlc toolchain was removed by 
> [JDK-8327701](https://bugs.openjdk.org/browse/JDK-8327701).
> Now we also switch the HOTSPOT_TOOLCHAIN_TYPE from xlc to gcc, removing the 
> last xlc rudiment.
> This means merging the AIX specific content of 
> utilities/globalDefinitions_xlc.hpp and utilities/compilerWarnings_xlc.hpp 
> into the corresponding gcc files on the on side and removing the 
> defined(TARGET_COMPILER_xlc) blocks in the code, because the 
> defined(TARGET_COMPILER_gcc) blocks work out of the box for the new AIX 
> compiler.
> The rest of the changes are needed because of using 
> utilities/compilerWarnings_gcc.hpp the compiler is much more nagging about 
> ill formatted printf

Joachim Kern has updated the pull request incrementally with one additional 
commit since the last revision:

  Followed the proposals

-

Changes:
  - all: https://git.openjdk.org/jdk/pull/18536/files
  - new: https://git.openjdk.org/jdk/pull/18536/files/61fd0ff2..689b353d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18536&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18536&range=00-01

  Stats: 35 lines in 9 files changed: 0 ins; 4 del; 31 mod
  Patch: https://git.openjdk.org/jdk/pull/18536.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18536/head:pull/18536

PR: https://git.openjdk.org/jdk/pull/18536