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]

[SH] revert libgloss use for sh-*-*elf


Hi Kaz,

I'd like to revert a part of the patch introduced by r150314, as yu noticed it introduced a problem with sh-superh-elf for which libgloss is expected to be present and sh-*-elf that doesn't expect it, but tries to link it.

This patch resplits sh-superh-elf out of the case, which seems cleaner to me that having a subcase.

The part in configure[.ac] that built libgloss if when present in the UB is still fine.

tested with sh-superh-elf and sh-unknown-elf

Regards,

-c

2009-08-01  Christian Bruel  <christian.bruel@st.com>
       Revert:
       2009-07-31  Christian Bruel  <christian.bruel@st.com>
       * gcc/config.gcc (sh*-*-elf): test with_libgloss.
Index: config.gcc
===================================================================
--- config.gcc	(revision 151259)
+++ config.gcc	(working copy)
@@ -2117,17 +2117,14 @@
 	sh*-*-linux*)	tmake_file="${tmake_file} sh/t-linux"
 			tm_file="${tm_file} linux.h glibc-stdint.h sh/linux.h" ;;
 	sh*-*-netbsd*)	tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" ;;
-	sh*-*-elf)	if test x$with_libgloss != xno; then
-				with_libgloss=yes
-				tm_file="${tm_file} sh/newlib.h"
-			fi
+	sh*-superh-elf)	if test x$with_libgloss != xno; then
+ 			   with_libgloss=yes
+			   tm_file="${tm_file} sh/newlib.h"
+		        fi
 			tm_file="${tm_file} sh/embed-elf.h"
-			case ${target} in
-			sh*-superh-elf)	tm_file="${tm_file} sh/superh.h"
-					tmake_file="${tmake_file} sh/t-superh"
-					extra_options="${extra_options} sh/superh.opt" ;;
-			esac
-			;;
+			tm_file="${tm_file} sh/superh.h"
+			tmake_file="${tmake_file} sh/t-superh"
+			extra_options="${extra_options} sh/superh.opt" ;;
 	*)		if test x$with_newlib = xyes \
 			   && test x$with_libgloss = xyes; then
 				tm_file="${tm_file} sh/newlib.h"

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