RE: [PATCH] libgcobol: Check for struct tm tm_zone

2025-04-18 Thread Robert Dubner
> -Original Message- > From: Rainer Orth > Sent: Friday, April 18, 2025 07:50 > To: Andreas Schwab > Cc: gcc-patches@gcc.gnu.org; Robert Dubner ; James K. > Lowden ; Jakub Jelinek > Subject: Re: [PATCH] libgcobol: Check for struct tm tm_zone > > Rainer Orth

Re: [PATCH] libgcobol: Check for struct tm tm_zone

2025-04-18 Thread Rainer Orth
Rainer Orth writes: > Hi Andreas, > >> On Apr 11 2025, Rainer Orth wrote: >> >>> This patch uses Autoconf's AC_STRUCT_TIMEZONE to determine its presence >>> and guard the use accordingly. >> >> You cannot use AC_STRUCT_TIMEZONE because it requires a link test (which >> is forbidden in a target mo

Re: [PATCH] libgcobol: Check for struct tm tm_zone

2025-04-11 Thread Rainer Orth
Hi Andreas, > On Apr 11 2025, Rainer Orth wrote: > >> This patch uses Autoconf's AC_STRUCT_TIMEZONE to determine its presence >> and guard the use accordingly. > > You cannot use AC_STRUCT_TIMEZONE because it requires a link test (which > is forbidden in a target module, see PR119550). drats. Mu

Re: [PATCH] libgcobol: Check for struct tm tm_zone

2025-04-11 Thread Andreas Schwab
On Apr 11 2025, Rainer Orth wrote: > This patch uses Autoconf's AC_STRUCT_TIMEZONE to determine its presence > and guard the use accordingly. You cannot use AC_STRUCT_TIMEZONE because it requires a link test (which is forbidden in a target module, see PR119550). -- Andreas Schwab, sch...@linux-

[PATCH] libgcobol: Check for struct tm tm_zone

2025-04-11 Thread Rainer Orth
intrinsic.cc doesn't compile on Solaris: /vol/gcc/src/hg/master/cobol/libgcobol/intrinsic.cc: In function ‘void __gg__formatted_current_date(cblc_field_t*, cblc_field_t*, std::size_t, std::size_t)’: /vol/gcc/src/hg/master/cobol/libgcobol/intrinsic.cc:1480:6: error: ‘struct std::tm’ has no membe