This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch committed SH] Fix sh*-*-elf configuration
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 30 Aug 2009 08:51:31 +0900 (JST)
- Subject: [patch committed SH] Fix sh*-*-elf configuration
Hi,
r150314 added superh specific configury stuff to sh*-*-elf
configuration accidentally. This makes sh-unknown-elf compiler
put the superh specific option to the linker which is unknown
with sh-unknown-elf linker, for example. The attached patch is
to fix this. Tested for sh-unknown-elf with the combined tree.
Applied on trunk.
BTW, libgloss.a is missing in the current combined tree build
based with cvs src for default sh-unknown-elf configuration and
tests with sim can be done on build only with --without-libgloss,
though it isn't a compiler ploblem.
Regards,
kaz
--
2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
* config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
--- ORIG/trunk/gcc/config.gcc 2009-08-15 15:37:03.000000000 +0900
+++ trunk/gcc/config.gcc 2009-08-29 20:06:26.000000000 +0900
@@ -2121,9 +2121,13 @@ sh-*-symbianelf* | sh[12346l]*-*-symbian
with_libgloss=yes
tm_file="${tm_file} sh/newlib.h"
fi
- tm_file="${tm_file} sh/embed-elf.h sh/superh.h"
- tmake_file="${tmake_file} sh/t-superh"
- extra_options="${extra_options} sh/superh.opt" ;;
+ 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
+ ;;
*) if test x$with_newlib = xyes \
&& test x$with_libgloss = xyes; then
tm_file="${tm_file} sh/newlib.h"