This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Patch for avr-gcc to build
- To: avr at fov dot uni-mb dot si, gcc-bugs at gcc dot gnu dot org
- Subject: Patch for avr-gcc to build
- From: Marek Michalkiewicz <marekm at t19 dot ds dot pwr dot wroc dot pl>
- Date: Wed, 19 Apr 2000 15:36:51 +0200 (CEST)
- CC: denisc at overta dot ru
- Reply-To: marekm at linux dot org dot pl
Hi,
the patch below is necessary for the current gcc CVS tree to build
(and not try to build target-libiberty, which fails) for the avr
target (previous snapshot I tried was 20000403 and it was fine).
I'm sending this as Denis is very busy now, I hope he doesn't mind.
(as you can see, the changes are trivial, but I'm not a real gcc
hacker, so please correct if anything is wrong...)
Thanks,
Marek
--- avr.c.orig Tue Mar 21 07:45:57 2000
+++ egcs/gcc/config/avr/avr.c Wed Apr 19 13:01:35 2000
@@ -20,8 +20,7 @@
Boston, MA 02111-1307, USA. */
#include "config.h"
-#include <stdio.h>
-#include <string.h>
+#include "system.h"
#include "rtl.h"
#include "regs.h"
#include "hard-reg-set.h"
--- configure.in.orig Fri Apr 7 14:02:36 2000
+++ egcs/configure.in Wed Apr 19 13:40:21 2000
@@ -630,6 +630,9 @@
target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon"
fi
;;
+ avr-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty"
+ ;;
c4x-*-*)
noconfigdirs="$noconfigdirs target-libg++ ${libstdcxx_version} target-librx target-libgloss"
;;