OSDN Git Service

* config.gcc (m32r-elf): Revert previous delta.
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jun 2003 09:12:02 +0000 (09:12 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jun 2003 09:12:02 +0000 (09:12 +0000)
* config/m32r/t-m32r (crtinit.o): Fix rule to work with multilibs.
  Remove m32rx specific version.
  (crtfini.o): Likewise.
  (EXTRA_MULTILIB_PARTS): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67483 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config.gcc
gcc/config/m32r/t-m32r

index b639d17..30e69fb 100644 (file)
@@ -1,3 +1,11 @@
+2003-06-05  Nick Clifton  <nickc@redhat.com>
+
+       * config.gcc (m32r-elf): Revert previous delta.
+        * config/m32r/t-m32r (crtinit.o): Fix rule to work with
+        multilibs.  Remove m32rx specific version.
+        (crtfini.o): Likewise.
+        (EXTRA_MULTILIB_PARTS): Define.
+        
 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * doc/md.texi (Machine Constraints): Correct the meaning of
index 98a44cd..c681f11 100644 (file)
@@ -1273,7 +1273,7 @@ ip2k-*-elf)
        ;;
 m32r-*-elf*)
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
-       extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
+       extra_parts="crtinit.o crtfini.o"
        ;;
 # m68hc11 and m68hc12 share the same machine description.
 m68hc11-*-*|m6811-*-*)
index e7d56af..f8cff4a 100644 (file)
@@ -26,31 +26,22 @@ CRTSTUFF_T_CFLAGS =
 
 # .init/.fini section routines
 
-crtinit.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
-       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
-         -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
-         -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -o crtinit.o
-
-crtfini.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
-       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
-         -DCRT_FINI -finhibit-size-directive -fno-inline-functions \
-         -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -o crtfini.o
-
+$(T)crtinit.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) \
+       $(CRTSTUFF_T_CFLAGS) $(INCLUDES) -DCRT_INIT \
+       -finhibit-size-directive -fno-inline-functions -g0 \
+       -mmodel=medium -c $(srcdir)/config/m32r/initfini.c \
+       -o $(T)crtinit.o 
+
+$(T)crtfini.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) \
+       $(CRTSTUFF_T_CFLAGS) $(INCLUDES) -DCRT_FINI \
+       -finhibit-size-directive -fno-inline-functions -g0 \
+       -mmodel=medium -c $(srcdir)/config/m32r/initfini.c \
+       -o $(T)crtfini.o 
 m32rx:
        mkdir $@
 
-m32rx/crtinit.o: m32rx $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
-       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
-       -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
-       -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -m32rx \
-       -o m32rx/crtinit.o
-
-m32rx/crtfini.o: m32rx $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
-       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
-       -DCRT_FINI -finhibit-size-directive -fno-inline-functions \
-       -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -m32rx \
-       -o m32rx/crtfini.o
-
 # -mmodel={small,medium} requires separate libraries.
 # We don't build libraries for the large model, instead we use the medium
 # libraries.  The only difference is that the large model can handle jumps
@@ -65,5 +56,7 @@ MULTILIB_MATCHES = mmodel?medium=mmodel?large
 # This is important for objects referenced in system header files.
 MULTILIB_EXTRA_OPTS = msdata=sdata
 
+EXTRA_MULTILIB_PARTS = crtinit.o crtfini.o
+
 LIBGCC = stmp-multilib
 INSTALL_LIBGCC = install-multilib