This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Undeclared variable in langhooks.c
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Feb 2002 14:45:16 +1100
- Subject: Re: Undeclared variable in langhooks.c
On Friday, February 22, 2002, at 01:16 PM, Diego Novillo wrote:
> Aldy,
>
> Were you trying to use the global 'optimize' variable?
yes, this is very odd.
i just noticed that when building a cross compiler. for
some reason my darwin box (and my ppc linux) box compiled
natively just fine without including <flags.h>.
so my bootstrap and tests worked fine. how odd.
your patch is obviously correct. please commit. thanks.
> * langhooks.c: Include "flags.h".
>
>
> Index: langhooks.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/langhooks.c,v
> retrieving revision 1.15
> diff -d -p -d -u -p -r1.15 langhooks.c
> --- langhooks.c 2002/02/22 00:08:59 1.15
> +++ langhooks.c 2002/02/22 02:09:45
> @@ -28,6 +28,7 @@ Boston, MA 02111-1307, USA. */
> #include "rtl.h"
> #include "insn-config.h"
> #include "integrate.h"
> +#include "flags.h"
> #include "langhooks.h"
> #include "langhooks-def.h"
>
>
>
--
Aldy Hernandez E-mail: aldyh@redhat.com
Professional Gypsy Lost in Australia
Red Hat, Inc.