This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix avr build
- From: Jerry Quinn <jlquinn at optonline dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 13 Sep 2002 00:24:42 -0400
- Subject: [PATCH] Fix avr build
AVR fails to build with the following error:
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common -DHAVE_CONFIG_H -I. -I. -I/home/jlquinn/gcc/gcc -I/home/jlquinn/gcc/gcc/. -I/home/jlquinn/gcc/gcc/config -I/home/jlquinn/gcc/gcc/../include \
/home/jlquinn/gcc/gcc/config/avr/avr.c -o avr.o
/home/jlquinn/gcc/gcc/config/avr/avr.c:229: `default_assemble_visibility' undeclared here (not in a function)
/home/jlquinn/gcc/gcc/config/avr/avr.c:229: initializer element is not constant
/home/jlquinn/gcc/gcc/config/avr/avr.c:229: (near initialization for `targetm.asm_out.visibility')
make[1]: *** [avr.o] Error 1
make[1]: Leaving directory `/usr/local/src/avrgcc/gcc'
make: *** [all-gcc] Error 2
Why don't the headers have include guards? Does it make that much of a
difference to bootstrap time?
Jerry Quinn
Fri Sep 13 00:24:16 EDT 2002 jlquinn@optonline.net
* avr.c: Move tree.h before output.h.
Index: config/avr/avr.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/avr/avr.c,v
retrieving revision 1.82
diff -u -w -r1.82 avr.c
--- config/avr/avr.c 20 Aug 2002 23:27:00 -0000 1.82
+++ config/avr/avr.c 13 Sep 2002 04:22:51 -0000
@@ -27,11 +27,11 @@
#include "real.h"
#include "insn-config.h"
#include "conditions.h"
+#include "tree.h"
#include "output.h"
#include "insn-attr.h"
#include "flags.h"
#include "reload.h"
-#include "tree.h"
#include "expr.h"
#include "toplev.h"
#include "obstack.h"