[jdk8u-dev] RFR: 8342822: jdk8u432-b06 does not compile on AIX

Varada M varadam at openjdk.org
Thu Nov 7 11:43:48 UTC 2024


On Tue, 5 Nov 2024 14:41:36 GMT, Francisco Ferrari Bihurriet <fferrari at openjdk.org> wrote:

>> Hi @jerboaa, Could you please review the code changes.
>> Thanks,
>> Varada
>
> @varada1110: the cause of this build error seems to be that while `jdk8u` uses the C++98 standard, the `long long` overload for `abs` was introduced in C++11:
> 
> 
> long long int abs (long long int n);
> 
> 
> Haven't you found the same problem with `jdk11u`? At least in _Linux x64_ `src/hotspot/share/opto/superword.cpp` is built with `-std=gnu++98`.

Hi @franferrax ,
I couldn't find the use of abs in jdk11u in superword.cpp. For the safer side I have removed the use of abs and added the traditional way of doing the same. I have pushed the new code change and the testing for hotspot/jtreg is successful on aix-ppc didn't found any related failures. 
Thanks,
Varada

-------------

PR Comment: https://git.openjdk.org/jdk8u-dev/pull/600#issuecomment-2462019848


More information about the jdk8u-dev mailing list