From f6f6c37afb171d05df07ad33216d36e7710373a7 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-21  Edgar E. Iglesias <edgar.iglesias@gmail.com>

        * config.gcc (microblaze*-*-elf): Add new target

libgcc/Changelog

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

        * config.host (microblaze*-*-elf): Add new 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 |    4 ++++
 2 files changed, 10 insertions(+)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 7deac33..ebef93f 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1739,6 +1739,12 @@ microblaze*-*-rtems*)
 	tmake_file="${tmake_file} microblaze/t-microblaze"
 	tmake_file="${tmake_file} t-rtems microblaze/t-rtems"
         ;;
+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"
+        ;;
 microblaze*-*-*)
         tm_file="${tm_file} dbxelf.h"
 	c_target_objs="${c_target_objs} microblaze-c.o"
diff --git a/libgcc/config.host b/libgcc/config.host
index ffd047f..f5ece59 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -715,6 +715,10 @@ mcore-*-elf)
 microblaze*-linux*)
         tmake_file="$tmake_file t-slibgcc-nolc-override microblaze/t-microblaze t-fdpbit"
 	;;
+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"
+	;;
 microblaze*-*-*)
         tmake_file="microblaze/t-microblaze t-fdpbit"
 	extra_parts="crtbegin.o crtend.o crti.o crtn.o"
-- 
1.7.9.5

