On 2025-04-02 3:19 p.m., Jonathan Wakely wrote:
> On Wed, 2 Apr 2025 at 20:15, John David Anglin <d...@parisc-linux.org> wrote:
>>
>> Committed to trunk.  Tested on hppa64-hp-hpux11.11.
>>
>> Dave
>> ___
>>
>> hpux: Only use long long when __cplusplus >= 201103L
>>
>> Fixes some test failures.
>>
>> 2025-04-02  John David Anglin  <dang...@gcc.gnu.org>
>>
>> libstdc++-v3/ChangeLog:
>>         * config/os/hpux/os_defines.h: Only use long long when
>>         __cplusplus >= 201103L.
> 
> This isn't what the patch does though. It disables the declarations of
> strtoll for C++98, but it leaves the unconditional:

The declarations were causing some g++ tests to fail.

> #define _GLIBCXX_USE_LONG_LONG 1
> 
> Is that intentional?

I think so based on the comment below.  But maybe it could be changed as well.  
Stage1 seems
to use -std=c++14.

> 
>>
>> diff --git a/libstdc++-v3/config/os/hpux/os_defines.h 
>> b/libstdc++-v3/config/os/hpux/os_defines.h
>> index 30bd4c7ba14..d3a6c5ab142 100644
>> --- a/libstdc++-v3/config/os/hpux/os_defines.h
>> +++ b/libstdc++-v3/config/os/hpux/os_defines.h
>> @@ -57,7 +57,7 @@
>>     We also force _GLIBCXX_USE_LONG_LONG here so that we don't have
>>     to bastardize configure to deal with this sillyness.  */
>>
>> -#ifdef __cplusplus
>> +#if __cplusplus >= 201103L
>>  namespace std
>>  {
>>    extern "C"
> 

Dave
-- 
John David Anglin  jda.par...@gmail.com

Reply via email to