NetBSD-Bugs archive

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

Re: toolchain/58969: use of alloca is warning, not error, with -std=c11



On 1/7/25 7:10 AM, campbell+netbsd%mumble.net@localhost wrote:
While experimenting with switching the build to -std=c11 (https://mail-index.netbsd.org/tech-kern/2025/01/05/msg029919.html), I saw warnings fly by like this:

/home/riastradh/netbsd/current/obj.riscv/tooldir/bin/../lib/gcc/riscv64--netbsd/12.4.0/../../../../riscv64--netbsd/bin/ld: /home/riastradh/netbsd/current/src/../obj.riscv/destdir.riscv/lib/libc.so: warning: Warning: reference to the libc supplied alloca(3); this most likely will not work. Please use the compiler provided version of alloca(3), by supplying the appropriate compiler flags (e.g. -std=gnu99).

AFAICT there are bugs around per-symbol linker warnings in GNU ld where the warning is shown for dynamic libraries without anything in the current object files ever using them.

Joerg


Home | Main Index | Thread Index | Old Index