This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix ada/misc.c



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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]