Committed:
commit 4a9c76b78cd4a3bc8107efe23a3bd7de205eb901
Author: Jerry DeLisle <[email protected]>
Date: Mon Mar 2 20:02:58 2026 -0800
Fortran: Fix failures on windows and hpux systems [PR124330]
Co-authored-by: John David Anglin <[email protected]>
PR fortran/124330
libgfortran/ChangeLog:
* caf/shmem/shared_memory.c: Fix filenames for WIN32
includes.
(shared_memory_set_env): Use putenv() for HPUX and as
a fallback where setenv () is not available.
(NAME_MAX): Replace with SHM_NAME_MAX.
(SHM_NAME_MAX): Use this to avoid duplicating NAME_MAX
used elsewhere.
* caf/shmem/supervisor.c (get_image_num_from_envvar): Add
a fallback for HPUX. Add additional comment to explain why
the number of cores is used in lieu of GFORTRAN_NUM_IMAGES.
On 2/28/26 6:36 PM, Jerry D wrote:
On 2/28/26 5:55 PM, Andrew Pinski wrote:
On Sat, Feb 28, 2026 at 5:51 PM Jerry D <[email protected]> wrote:
Attached patch is to fix the subject PR. I am not set up to do cross compiling
so could not test that aspect.
Used autoconf 2.69 for that issue as well.
Regression tested on x86_64-linux.
OK for trunk?
Ok.
Committed:
commit r16-7829-ge13b14030a300b3c94895e2c1d922c70ba3a271f
Author: Jerry DeLisle <[email protected]>
Date: Sat Feb 28 17:30:41 2026 -0800
Fortran: Fix libfortran cannot be cross compiled [PR124286]
Remove unneeded check for a sane CLZL and regenerate using
the correct version of autoconf.
PR fortran/124286
libgfortran/ChangeLog:
* acinclude.m4: Remove LIBGFOR_CHECK_SANE_BUILTIN_CLZL.
* caf/shmem/allocator.c (next_power_of_two): Use known sane
builtin.
* configure: Regenerate.
* configure.ac: Remove use of LIBGFOR_CHECK_SANE_BUILTIN_CLZL.
Regards,
Jerry
Author: Jerry DeLisle <[email protected]>
Date: Sat Feb 28 17:30:41 2026 -0800
Fortran: Fix libfortran cannot be cross compiled [PR124286]
Remove unneeded check for a sane CLZL and regenerate using
the correct version of autoconf.
PR fortran/124286
libgfortran/ChangeLog:
* acinclude.m4: Remove LIBGFOR_CHECK_SANE_BUILTIN_CLZL.
* caf/shmem/allocator.c (next_power_of_two): Use known sane
builtin.
* configure: Regenerate.
* configure.ac: Remove use of LIBGFOR_CHECK_SANE_BUILTIN_CLZL.