Fix ada/misc.c
Geoff Keating
geoffk@geoffk.org
Wed Nov 28 14:45:00 GMT 2001
Zack Weinberg <zack@codesourcery.com> writes:
> I've applied this patch as the obviously correct fix for the bootstrap
> failure with Ada enabled. Has survived make bootstrap + make
> gnatlib_and_tools on i386-linux.
>
> As a general rule, one should test the patch that is to be applied, in
> the tree to which one is applying it, not some other combination of
> patches in some other tree.
>
> libiberty provides vprintf, so we can assume it exists, and therefore
> the configure script will shortly stop bothering to check for it.
>
> zw
>
> * misc.c (gnat_expand_constant): Move declaration above
> definition of lang_hooks.
> (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
> (gnat_init): lang_expand_constant no longer exists.
>
> (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
> always have vprintf.
> (gnat_init): Always call set_internal_error_function.
This is OK.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Gcc-patches
mailing list