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
The following reply was made to PR toolchain/58969; it has been noted by GNATS.
From: =?UTF-8?Q?J=C3=B6rg_Sonnenberger?= <joerg%bec.de@localhost>
To: gnats-bugs%netbsd.org@localhost, toolchain-manager%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc:
Subject: Re: toolchain/58969: use of alloca is warning, not error, with
-std=c11
Date: Tue, 7 Jan 2025 11:17:21 +0100
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