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]

[PATCH] MicroBlaze support - 2 of 6 - backend


2010-02-04 Michael Eager <eager@eagercon.com>

  * configure.ac (microblaze*): Don't build libssp.
  * configure: Regenerate.

2010-02-04 Michael Eager <eager@eagercon.com>

  * config.gcc (microblaze*): Add cpu_type.
  (microblaze*-linux*,microblaze*-*-*): Add build.
  * configure.ac (microblaze): Add target.
  * configure: Regenerate.
  * config/microblaze/constraints.md: New.
  * config/microblaze/crti.s: New.
  * config/microblaze/crtn.s: New.
  * config/microblaze/linux.h: New.
  * config/microblaze/microblaze.c: New.
  * config/microblaze/microblaze.h: New.
  * config/microblaze/microblaze.md: New.
  * config/microblaze/microblaze.opt: New.
  * config/microblaze/microblaze-protos.h: New.
  * config/microblaze/predicates.md: New.
  * config/microblaze/t-microblaze: New.

New files under config/microblaze can be found at
http://gcc.gnu.org/viewcvs/branches/microblaze/gcc/config/microblaze/

--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077
diff -urNp --exclude '*.swp' --exclude DEV-PHASE --exclude '\.svn' --exclude CVS gcc-head/configure mb-gcc/configure
--- gcc-head/configure	2010-02-02 08:10:31.000000000 -0800
+++ mb-gcc/configure	2010-02-02 08:30:33.000000000 -0800
@@ -3629,7 +3629,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
     ;;
   microblaze*)
-    noconfigdirs="$noconfigdirs gprof ${libgcj}"
+    noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
     ;;
   mips*-sde-elf*)
     skipdirs="$skipdirs target-libiberty"
diff -urNp --exclude '*.swp' --exclude DEV-PHASE --exclude '\.svn' --exclude CVS gcc-head/configure.ac mb-gcc/configure.ac
--- gcc-head/configure.ac	2010-02-02 08:10:32.000000000 -0800
+++ mb-gcc/configure.ac	2010-02-02 08:30:02.000000000 -0800
@@ -1,6 +1,6 @@
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-#   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
-#   Inc.
+#   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+#   Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -866,7 +866,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
     ;;
   microblaze*)
-    noconfigdirs="$noconfigdirs gprof ${libgcj}"
+    noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
     ;;
   mips*-sde-elf*)
     skipdirs="$skipdirs target-libiberty"
diff -urNp --exclude '*.swp' --exclude DEV-PHASE --exclude '\.svn' --exclude CVS gcc-head/gcc/config.gcc mb-gcc/gcc/config.gcc
--- gcc-head/gcc/config.gcc	2010-02-02 08:10:27.000000000 -0800
+++ mb-gcc/gcc/config.gcc	2010-02-01 12:03:30.000000000 -0800
@@ -321,6 +321,9 @@ m32r*-*-*)
 m68k-*-*)
 	extra_headers=math-68881.h
 	;;
+microblaze*-*-*)
+        cpu_type=microblaze
+        ;;
 mips*-*-*)
 	cpu_type=mips
 	need_64bit_hwint=yes
@@ -1654,6 +1657,15 @@ mep-*-*)
 	fi
 	use_gcc_stdint=wrap
 	;;
+microblaze*-linux*)
+	tm_file="${tm_file} dbxelf.h linux.h microblaze/linux.h"
+	tmake_file="${tmake_file} t-slibgcc-elf-ver t-slibgcc-nolc-override t-linux microblaze/t-microblaze"
+        extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o crtbeginT.o"
+	;;
+microblaze*-*-*)
+        tm_file="${tm_file} dbxelf.h"
+        tmake_file="${tmake_file} microblaze/t-microblaze"
+        ;;
 mips-sgi-irix[56]*)
 	tm_file="elfos.h ${tm_file} mips/iris.h"
 	tmake_file="mips/t-iris mips/t-slibgcc-irix"
diff -urNp --exclude '*.swp' --exclude DEV-PHASE --exclude '\.svn' --exclude CVS gcc-head/gcc/configure mb-gcc/gcc/configure
--- gcc-head/gcc/configure	2010-02-02 08:10:27.000000000 -0800
+++ mb-gcc/gcc/configure	2010-02-02 08:34:23.000000000 -0800
@@ -23939,7 +23939,7 @@ case "$target" in
   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
-  | spu-*-* | fido*-*-* | m32c-*-*)
+  | spu-*-* | fido*-*-* | m32c-*-* | microblaze-*-*)
     insn="nop"
     ;;
   ia64*-*-* | s390*-*-*)
diff -urNp --exclude '*.swp' --exclude DEV-PHASE --exclude '\.svn' --exclude CVS gcc-head/gcc/configure.ac mb-gcc/gcc/configure.ac
--- gcc-head/gcc/configure.ac	2010-02-02 08:10:27.000000000 -0800
+++ mb-gcc/gcc/configure.ac	2010-02-02 08:34:07.000000000 -0800
@@ -2,7 +2,7 @@
 # Process this file with autoconf to generate a configuration script.
 
 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-# 2007, 2008, 2009 Free Software Foundation, Inc.
+# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
 #This file is part of GCC.
 
@@ -3482,7 +3482,7 @@ case "$target" in
   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
-  | spu-*-* | fido*-*-* | m32c-*-*)
+  | spu-*-* | fido*-*-* | m32c-*-* | microblaze-*-*)
     insn="nop"
     ;;
   ia64*-*-* | s390*-*-*)

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