From 8525326ebe2e68e37ec6042493e1869b1131d300 Mon Sep 17 00:00:00 2001 From: hp Date: Mon, 22 Feb 2010 00:37:30 +0000 Subject: [PATCH] Migrate from broken pre-libgcc legacy support to libgcc-centric rules. * config/mmix/t-mmix: New file. * config.host (extra_parts, tmake_file): Set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156946 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgcc/ChangeLog | 6 ++++++ libgcc/config.host | 2 ++ libgcc/config/mmix/t-mmix | 14 ++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 libgcc/config/mmix/t-mmix diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 7b992a8808c..90b978211f1 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2010-02-22 Hans-Peter Nilsson + + Migrate from broken pre-libgcc legacy support to libgcc-centric rules. + * config/mmix/t-mmix: New file. + * config.host (extra_parts, tmake_file): Set. + 2010-02-02 Jack Howarth PR java/41991 diff --git a/libgcc/config.host b/libgcc/config.host index 5c3bfa69996..706d01a8703 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -432,6 +432,8 @@ mips-wrs-vxworks) mipstx39-*-elf* | mipstx39el-*-elf*) ;; mmix-knuth-mmixware) + extra_parts="crti.o crtn.o crtbegin.o crtend.o" + tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}" ;; mn10300-*-*) ;; diff --git a/libgcc/config/mmix/t-mmix b/libgcc/config/mmix/t-mmix new file mode 100644 index 00000000000..9d66737e256 --- /dev/null +++ b/libgcc/config/mmix/t-mmix @@ -0,0 +1,14 @@ +# Don't use global registers in libraries. +# FIXME: Not applied at "root" level, so disabled at the moment to stop +# incorrect comparisons with -mabi=gnu. +#MULTILIB_EXTRA_OPTS = mno-base-addresses + +$(T)crti.o: $(gcc_srcdir)/config/mmix/crti.asm $(GCC_PASSES) + $(crt_compile) $(INCLUDES) \ + $(CRTSTUFF_T_CFLAGS) -c -x assembler-with-cpp \ + $(gcc_srcdir)/config/mmix/crti.asm + +$(T)crtn.o: $(gcc_srcdir)/config/mmix/crtn.asm $(GCC_PASSES) + $(crt_compile) $(INCLUDES) \ + $(CRTSTUFF_T_CFLAGS) -c -x assembler-with-cpp \ + $(gcc_srcdir)/config/mmix/crtn.asm -- 2.11.0