This is the mail archive of the gcc-bugs@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]

Patch for avr-gcc to build


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"
     ;;

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