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: 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.


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