Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/external/gpl3/gcc/dist/gcc/config



Module Name:    src
Committed By:   mrg
Date:           Sun Jan 18 12:53:28 UTC 2026

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/alpha: alpha.cc
        src/external/gpl3/gcc/dist/gcc/config/arm: arm-builtins.cc
        src/external/gpl3/gcc/dist/gcc/config/ia64: ia64.cc
        src/external/gpl3/gcc/dist/gcc/config/m68k: netbsd-elf.h
        src/external/gpl3/gcc/dist/gcc/config/mips: mips.cc
        src/external/gpl3/gcc/dist/gcc/config/pa: pa.cc
        src/external/gpl3/gcc/dist/gcc/config/riscv: riscv-builtins.cc
        src/external/gpl3/gcc/dist/gcc/config/sh: sh.cc
        src/external/gpl3/gcc/dist/gcc/config/sparc: sparc.cc

Log Message:
fix a long standing problem with cabs*() fixes up on netbsd

netbsd has the cabs(3), cabsf(3), and cabsl(3) functions renamed with
__c99_ prefixes on them, and may not all be present with the old names.

there's code in netbsd.cc to fix up these names, but it's only invoked
by a some of our target CPUs -- x86, vax, and arm64, but the rest fail.

the problem is that config/netbsd.h defines SUBTARGET_INIT_BUILTINS to
a function that does this fix up, but this define it only consumed inside
the TARGET_INIT_BUILTINS's macro function if defined.  looks like due to
the supported users of SUBTARGET_INIT_BUILTINS currently, it was added
for darwin support, and nothing else.

add calls to SUBTARGET_INIT_BUILTINS if defined to each of the alpha, arm,
ia64, m68k, mips, pa, riscv, sh, and sparc ports.

tested on sparc64 (where "cabsl" is missing entirely), mips64, and amd64.

this goes all the back to at leastnetbsd-9 (GCC 7), netbsd-10 (GCC 10),
and netbsd-11 (GCC 12).

XXX: pullup-*
XXX: copy into gcc.old, too (still haven't switched alpha, sh3 or m68k.)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 \
    src/external/gpl3/gcc/dist/gcc/config/alpha/alpha.cc
cvs rdiff -u -r1.1.1.3 -r1.2 \
    src/external/gpl3/gcc/dist/gcc/config/arm/arm-builtins.cc
cvs rdiff -u -r1.1.1.2 -r1.2 \
    src/external/gpl3/gcc/dist/gcc/config/ia64/ia64.cc
cvs rdiff -u -r1.20 -r1.21 \
    src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/config/mips/mips.cc
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/dist/gcc/config/pa/pa.cc
cvs rdiff -u -r1.1.1.2 -r1.2 \
    src/external/gpl3/gcc/dist/gcc/config/riscv/riscv-builtins.cc
cvs rdiff -u -r1.1.1.4 -r1.2 src/external/gpl3/gcc/dist/gcc/config/sh/sh.cc
cvs rdiff -u -r1.1.1.2 -r1.2 \
    src/external/gpl3/gcc/dist/gcc/config/sparc/sparc.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index