Re: adsl/pppoe no longer connecting on 5.1

From: Garrett Wollman <wollman_at_lcs.mit.edu>
Date: Thu, 12 Jun 2003 12:17:37 -0400 (EDT)
<<On Thu, 12 Jun 2003 15:38:49 +1000, Tim Robbins <tjr_at_freebsd.org> said:

> Misbehaving in what way? CSTD=c99 causes gcc to use alloca() from
> libc instead of its builtin version. Perhaps alloca() in libc is
> broken -- any bugs in it would have been covered up by gcc until
> now.

alloca() in libc is *fundamentally* broken.  Only the compiler can
know the current state of the stack frame, and that information is not
necessarily available to library functions.  On some architectures
it is not even possible for a library function to adjust its caller's
stack frame, which is why alpha, ia64, and sparc64 don't have an
alloca.S (nor an alloca.c for that matter).

-GAWollman
Received on Thu Jun 12 2003 - 07:17:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC