From 2c5d0dd2c6b9d724f42b52f5d867ed4d23f357b6 Mon Sep 17 00:00:00 2001
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Date: Sat, 13 Aug 2011 09:16:55 +0200
Subject: [PATCH] Add microblaze*-*-elf target

gcc/Changelog

2013-01-25  Edgar E. Iglesias <edgar.iglesias@gmail.com>

        * config.gcc (microblaze*-*-elf): Update existing target

libgcc/Changelog

2013-01-25  Edgar E. Iglesias <edgar.iglesias@gmail.com>

        * config.host (microblaze*-*-elf): Update existing target

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
---
 gcc/config.gcc     |    6 +++---
 libgcc/config.host |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 7deac33..54f49b2 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1739,11 +1739,11 @@ microblaze*-*-rtems*)
 	tmake_file="${tmake_file} microblaze/t-microblaze"
 	tmake_file="${tmake_file} t-rtems microblaze/t-rtems"
         ;;
-microblaze*-*-*)
-        tm_file="${tm_file} dbxelf.h"
+microblaze*-*-elf)
+	tm_file="${tm_file} dbxelf.h newlib-stdint.h"
 	c_target_objs="${c_target_objs} microblaze-c.o"
 	cxx_target_objs="${cxx_target_objs} microblaze-c.o"
-        tmake_file="${tmake_file} microblaze/t-microblaze"
+	tmake_file="${tmake_file} microblaze/t-microblaze"
         ;;
 mips*-*-netbsd*)			# NetBSD/mips, either endian.
 	target_cpu_default="MASK_ABICALLS"
diff --git a/libgcc/config.host b/libgcc/config.host
index ffd047f..ec25eb3 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -715,9 +715,9 @@ mcore-*-elf)
 microblaze*-linux*)
         tmake_file="$tmake_file t-slibgcc-nolc-override microblaze/t-microblaze t-fdpbit"
 	;;
-microblaze*-*-*)
-        tmake_file="microblaze/t-microblaze t-fdpbit"
-	extra_parts="crtbegin.o crtend.o crti.o crtn.o"
+microblaze*-*-elf)
+	tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
+	extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
 	;;
 mips*-*-netbsd*)			# NetBSD/mips, either endian.
 	;;
-- 
1.7.9.5

