On Jul 21, 2000, Greg McGary <[EMAIL PROTECTED]> wrote:

> The backward-compatible AC_CHECK_FUNC should also work with BPs as
> per my second suggestion (try once with return type `char' and again
> with return type `char *' if `-fbounded-pointers' is in CFLAGS).

This sounds reasonably reasonable :-), but I wonder if people wouldn't
complain about the additional seldom-used code in the configure
script.  Wouldn't it be easier if you just supplied an alternative
definition of AC_CHECK_FUNC, to be used by people using the bounded
pointers feature to re-generate their `configure' scripts?

My fear is that, as soon as we start to accommodate not-so-common
features in standard autoconf, we may lose our argument against
supporting really weird stuff that shows up every now and then.

Another possibility that comes to mind is to have -fbounded-pointers
generate *also* a naked-pointers version of a function, without the
__BP_ prefix, that turns naked pointers into fat pointers and calls
the __BP_ version, then does the converse on any returned pointers.
This would automatically solve autoconf's problem, because autoconf
would find the functions it's looking for.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to