gcc:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jul 2011 17:33:38 +0000 (17:33 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jul 2011 17:33:38 +0000 (17:33 +0000)
* config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
* config/alpha/t-crtfm: Remove.
* config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
* config/i386/t-crtfm: Remove.
* config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
* config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
* config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
* config/sparc/t-crtfm: Remove.

* config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
(alpha*-*-freebsd*): Likewise.
(i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
(x86_64-*-darwin*): Likewise.
(i[34567]86-*-linux*): Likewise.
(x86_64-*-linux*): Likewise.
(x86_64-*-mingw*): Likewise.
(ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
(ia64*-*-freebsd*): Likewise.
(ia64*-*-linux*): Likewise.
(mips64*-*-linux*): Likewise.
(mips*-*-linux*): Likewise.
(sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
(sparc64-*-linux*): Likewise.
(sparc64-*-freebsd*): Likewise.

libgcc:
* config/alpha/crtfastmath.c: New file.
* config/i386/crtfastmath.c: New file.
* config/ia64/crtfastmath.c: New file.
* config/mips/crtfastmath.c: New file.
* config/sparc/crtfastmath.c: New file.

* config/t-crtfm (crtfastmath.o): Use $(srcdir) to refer to
crtfastmath.c.
Add -frandom-seed=gcc-crtfastmath.
* config/alpha/t-crtfm: Remove.
* config/i386/t-crtfm: Use $(srcdir) to refer to crtfastmath.c.
* config/ia64/t-ia64 (crtfastmath.o): Remove.

* config.host (alpha*-*-linux*): Replace alpha/t-crtfm by t-crtfm.
(alpha*-dec-osf5.1*): Likewise.
(alpha*-*-freebsd*): Add t-crtfm to tmake_file.
Add crtfastmath.o to extra_parts.
(i[34567]86-*-darwin*): Add i386/t-crtfm to tmake_file.
Add crtfastmath.o to extra_parts.
(x86_64-*-darwin*): Likewise.
(x86_64-*-mingw*): Likewise.
(ia64*-*-elf*): Add t-crtfm to tmake_file.
(ia64*-*-freebsd*): Likewise.
(ia64*-*-linux*): Likewise.
(sparc64-*-freebsd*): Add t-crtfm to tmake_file.
Add crtfastmath.o to extra_parts.

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

16 files changed:
gcc/ChangeLog
gcc/config.gcc
gcc/config/alpha/t-crtfm [deleted file]
gcc/config/i386/t-crtfm [deleted file]
gcc/config/sparc/t-crtfm [deleted file]
libgcc/ChangeLog
libgcc/config.host
libgcc/config/alpha/crtfastmath.c [moved from gcc/config/alpha/crtfastmath.c with 100% similarity]
libgcc/config/alpha/t-crtfm [deleted file]
libgcc/config/i386/crtfastmath.c [moved from gcc/config/i386/crtfastmath.c with 100% similarity]
libgcc/config/i386/t-crtfm
libgcc/config/ia64/crtfastmath.c [moved from gcc/config/ia64/crtfastmath.c with 100% similarity]
libgcc/config/ia64/t-ia64
libgcc/config/mips/crtfastmath.c [moved from gcc/config/mips/crtfastmath.c with 100% similarity]
libgcc/config/sparc/crtfastmath.c [moved from gcc/config/sparc/crtfastmath.c with 100% similarity]
libgcc/config/t-crtfm

index 5222584..8f83ff3 100644 (file)
@@ -1,5 +1,32 @@
 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
+       * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
+       * config/alpha/t-crtfm: Remove.
+       * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
+       * config/i386/t-crtfm: Remove.
+       * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
+       * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
+       * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
+       * config/sparc/t-crtfm: Remove.
+
+       * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
+       (alpha*-*-freebsd*): Likewise.
+       (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
+       (x86_64-*-darwin*): Likewise.
+       (i[34567]86-*-linux*): Likewise.
+       (x86_64-*-linux*): Likewise.
+       (x86_64-*-mingw*): Likewise.
+       (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
+       (ia64*-*-freebsd*): Likewise.
+       (ia64*-*-linux*): Likewise.
+       (mips64*-*-linux*): Likewise.
+       (mips*-*-linux*): Likewise.
+       (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
+       (sparc64-*-linux*): Likewise.
+       (sparc64-*-freebsd*): Likewise.
+
+2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
        * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
        * config/darwin-crt3.c: Move to ../libgcc/config.
        * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
index decd6ab..77424f2 100644 (file)
@@ -756,13 +756,13 @@ alpha*-*-linux*)
        tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h"
        extra_options="${extra_options} alpha/elf.opt"
        target_cpu_default="MASK_GAS"
-       tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee alpha/t-linux"
+       tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee alpha/t-linux"
        ;;
 alpha*-*-freebsd*)
        tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
        extra_options="${extra_options} alpha/elf.opt"
        target_cpu_default="MASK_GAS"
-       tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
+       tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
        ;;
 alpha*-*-netbsd*)
@@ -1208,12 +1208,12 @@ i[34567]86-*-darwin*)
        need_64bit_isa=yes
        # Baseline choice for a machine that allows m64 support.
        with_cpu=${with_cpu:-core2}
-       tmake_file="${tmake_file} t-slibgcc-dummy i386/t-crtpc i386/t-crtfm"
+       tmake_file="${tmake_file} t-slibgcc-dummy i386/t-crtpc"
        libgcc_tm_file="$libgcc_tm_file i386/darwin-lib.h"
        ;;
 x86_64-*-darwin*)
        with_cpu=${with_cpu:-core2}
-       tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-dummy i386/t-crtpc i386/t-crtfm"
+       tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-dummy i386/t-crtpc"
        tm_file="${tm_file} ${cpu_type}/darwin64.h"
        libgcc_tm_file="$libgcc_tm_file i386/darwin-lib.h"
        ;;
@@ -1311,7 +1311,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i
        i[34567]86-*-kopensolaris*-gnu) tm_file="${tm_file} i386/gnu-user.h kopensolaris-gnu.h i386/kopensolaris-gnu.h" ;;
        i[34567]86-*-gnu*) tm_file="$tm_file i386/gnu-user.h gnu.h i386/gnu.h";;
        esac
-       tmake_file="${tmake_file} i386/t-crtstuff i386/t-crtpc i386/t-crtfm"
+       tmake_file="${tmake_file} i386/t-crtstuff i386/t-crtpc"
        ;;
 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h \
@@ -1323,7 +1323,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
        x86_64-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h" ;;
        x86_64-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h" ;;
        esac
-       tmake_file="${tmake_file} i386/t-linux64 i386/t-crtstuff i386/t-crtpc i386/t-crtfm"
+       tmake_file="${tmake_file} i386/t-linux64 i386/t-crtstuff i386/t-crtpc"
        x86_multilibs="${with_multilib_list}"
        if test "$x86_multilibs" = "default"; then
                x86_multilibs="m64,m32"
@@ -1559,13 +1559,6 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
            ;;
        esac
        case ${target} in
-               x86_64-*-mingw*)
-                       tmake_file="${tmake_file} i386/t-crtfm"
-                       ;;
-               *)
-                       ;;
-       esac
-       case ${target} in
                *mingw32crt*)
                        tm_file="${tm_file} i386/crtdll.h"
                        ;;
@@ -1598,13 +1591,13 @@ ia64*-*-elf*)
        then
                target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
        fi
-       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
+       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
        ;;
 ia64*-*-freebsd*)
        tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
        target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
        tmake_file="${tmake_file} ia64/t-ia64"
-       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
+       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
        ;;
 ia64*-*-linux*)
        tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h"
@@ -1613,7 +1606,7 @@ ia64*-*-linux*)
                tmake_file="${tmake_file} t-libunwind-elf ia64/t-glibc-libunwind"
        fi
        target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
-       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
+       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
        ;;
 ia64*-*-hpux*)
        tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/hpux.h"
@@ -1853,7 +1846,6 @@ mips64*-*-linux* | mipsisa64*-*-linux*)
                        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
                        ;;
        esac
-       extra_parts="$extra_parts crtfastmath.o"
        gnu_ld=yes
        gas=yes
        test x$with_llsc != x || with_llsc=yes
@@ -1873,7 +1865,6 @@ mips*-*-linux*)                           # Linux MIPS, either endian.
         mipsisa32*)
                tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
         esac
-       extra_parts="$extra_parts crtfastmath.o"
        test x$with_llsc != x || with_llsc=yes
        ;;
 mips*-*-openbsd*)
@@ -2499,7 +2490,6 @@ sparc-*-linux*)
        else
                tm_file="${tm_file} sparc/linux.h"
        fi
-       tmake_file="${tmake_file} sparc/t-crtfm"
        ;;
 sparc-*-netbsdelf*)
        tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
@@ -2534,12 +2524,11 @@ sparc64-*-rtems*)
 sparc64-*-linux*)
        tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/linux64.h"
        extra_options="${extra_options} sparc/long-double-switch.opt"
-       tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64 sparc/t-crtfm"
+       tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64"
        ;;
 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
        tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
        extra_options="${extra_options} sparc/long-double-switch.opt"
-       tmake_file="${tmake_file} sparc/t-crtfm"
        case "x$with_cpu" in
                xultrasparc) ;;
                x) with_cpu=ultrasparc ;;
diff --git a/gcc/config/alpha/t-crtfm b/gcc/config/alpha/t-crtfm
deleted file mode 100644 (file)
index b410383..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-EXTRA_PARTS += crtfastmath.o
-
-$(T)crtfastmath.o: $(srcdir)/config/alpha/crtfastmath.c $(GCC_PASSES)
-       $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -frandom-seed=gcc-crtfastmath -c \
-               -o $(T)crtfastmath.o $(srcdir)/config/alpha/crtfastmath.c
diff --git a/gcc/config/i386/t-crtfm b/gcc/config/i386/t-crtfm
deleted file mode 100644 (file)
index 4fa27e9..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-EXTRA_PARTS += crtfastmath.o
-
-$(T)crtfastmath.o: $(srcdir)/config/i386/crtfastmath.c \
-  $(srcdir)/config/i386/cpuid.h $(GCC_PASSES)
-       $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(MULTILIB_CFLAGS) \
-               -msse -minline-all-stringops -c \
-               $(srcdir)/config/i386/crtfastmath.c \
-               -o $(T)crtfastmath$(objext)
diff --git a/gcc/config/sparc/t-crtfm b/gcc/config/sparc/t-crtfm
deleted file mode 100644 (file)
index e0adb97..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-EXTRA_PARTS += crtfastmath.o
-
-$(T)crtfastmath.o: $(srcdir)/config/sparc/crtfastmath.c $(GCC_PASSES)
-       $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) $(LIBGCC2_CFLAGS) -c -o $(T)crtfastmath.o $(srcdir)/config/sparc/crtfastmath.c
index bfbf105..401287c 100644 (file)
@@ -1,5 +1,34 @@
 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
+       * config/alpha/crtfastmath.c: New file.
+       * config/i386/crtfastmath.c: New file.
+       * config/ia64/crtfastmath.c: New file.
+       * config/mips/crtfastmath.c: New file.
+       * config/sparc/crtfastmath.c: New file.
+
+       * config/t-crtfm (crtfastmath.o): Use $(srcdir) to refer to
+       crtfastmath.c.
+       Add -frandom-seed=gcc-crtfastmath.
+       * config/alpha/t-crtfm: Remove.
+       * config/i386/t-crtfm: Use $(srcdir) to refer to crtfastmath.c.
+       * config/ia64/t-ia64 (crtfastmath.o): Remove.
+
+       * config.host (alpha*-*-linux*): Replace alpha/t-crtfm by t-crtfm.
+       (alpha*-dec-osf5.1*): Likewise.
+       (alpha*-*-freebsd*): Add t-crtfm to tmake_file.
+       Add crtfastmath.o to extra_parts.
+       (i[34567]86-*-darwin*): Add i386/t-crtfm to tmake_file.
+       Add crtfastmath.o to extra_parts.
+       (x86_64-*-darwin*): Likewise.
+       (x86_64-*-mingw*): Likewise.
+       (ia64*-*-elf*): Add t-crtfm to tmake_file.
+       (ia64*-*-freebsd*): Likewise.
+       (ia64*-*-linux*): Likewise.
+       (sparc64-*-freebsd*): Add t-crtfm to tmake_file.
+       Add crtfastmath.o to extra_parts.
+
+2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
        * config/darwin-crt3.o: New file.
        * config/rs6000/darwin-crt2.c: New file.
        * config/t-darwin: New file.
index 56ce998..fba7ecd 100644 (file)
@@ -224,18 +224,20 @@ esac
 
 case ${host} in
 alpha*-*-linux*)
-       tmake_file="${tmake_file} alpha/t-crtfm"
+       tmake_file="${tmake_file} t-crtfm"
        extra_parts="$extra_parts crtfastmath.o"
        md_unwind_header=alpha/linux-unwind.h
        ;;
 alpha*-*-freebsd*)
+       tmake_file="${tmake_file} t-crtfm"
+       extra_parts="$extra_parts crtfastmath.o"
        ;;
 alpha*-*-netbsd*)
        ;;
 alpha*-*-openbsd*)
        ;;
 alpha*-dec-osf5.1*)
-       tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee alpha/t-crtfm t-slibgcc alpha/t-slibgcc-osf"
+       tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm t-slibgcc alpha/t-slibgcc-osf"
        case ${target_thread_file} in
          posix)
            tmake_file="${tmake_file} alpha/t-osf-pthread"
@@ -323,9 +325,12 @@ hppa[12]*-*-hpux11*)
        md_unwind_header=pa/hpux-unwind.h
        ;;
 i[34567]86-*-darwin*)
+       tmake_file="$tmake_file i386/t-crtfm"
+       extra_parts="$extra_parts crtfastmath.o"
        ;;
 x86_64-*-darwin*)
-       tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
+       tmake_file="t-darwin ${cpu_type}/t-darwin64 i386/t-crtfm t-slibgcc-darwin"
+       extra_parts="$extra_parts crtfastmath.o"
        ;;
 i[34567]86-*-elf*)
        ;;
@@ -398,21 +403,22 @@ i[34567]86-*-mingw*)
        md_unwind_header=i386/w32-unwind.h
        ;;
 x86_64-*-mingw*)
-       tmake_file=t-dfprules
+       tmake_file="t-dfprules i386/t-crtfm"
+       extra_parts="$extra_parts crtfastmath.o"
        ;;
 i[34567]86-*-interix3*)
        ;;
 ia64*-*-elf*)
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
-       tmake_file="ia64/t-ia64"
+       tmake_file="ia64/t-ia64 t-crtfm"
        ;;
 ia64*-*-freebsd*)
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
-       tmake_file="ia64/t-ia64"
+       tmake_file="ia64/t-ia64 t-crtfm"
        ;;
 ia64*-*-linux*)
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
-       tmake_file="ia64/t-ia64 t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat"
+       tmake_file="ia64/t-ia64 t-crtfm t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat"
        md_unwind_header=ia64/linux-unwind.h
        ;;
 ia64*-*-hpux*)
@@ -644,6 +650,8 @@ sparc64-*-elf*)
 sparc-wrs-vxworks)
        ;;
 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
+       tmake_file="$tmake_file t-crtfm"
+       extra_parts=crtfastmath.o
        ;;
 sparc64-*-linux*)              # 64-bit SPARC's running GNU/Linux
        extra_parts="$extra_parts crtfastmath.o"
diff --git a/libgcc/config/alpha/t-crtfm b/libgcc/config/alpha/t-crtfm
deleted file mode 100644 (file)
index 5060c15..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# FIXME drow/20061228 - I have preserved this -frandom-seed option
-# while migrating this rule from the GCC directory, but I do not
-# know why it is necessary if no other crt file uses it.
-crtfastmath.o: $(gcc_srcdir)/config/alpha/crtfastmath.c
-       $(gcc_compile) -frandom-seed=gcc-crtfastmath -c $<
index f71f99a..46ce70b 100644 (file)
@@ -1,4 +1,4 @@
 # This is an endfile, Use -minline-all-stringops to ensure
 # that __builtin_memset doesn't refer to the lib function memset().
-crtfastmath.o: $(gcc_srcdir)/config/i386/crtfastmath.c
+crtfastmath.o: $(srcdir)/config/i386/crtfastmath.c
        $(gcc_compile) -msse -minline-all-stringops -c $<
index d9c7566..3ec5fc5 100644 (file)
@@ -13,6 +13,3 @@ crtbeginS.o: $(gcc_srcdir)/config/ia64/crtbegin.asm
 crtendS.o: $(gcc_srcdir)/config/ia64/crtend.asm
        $(CC) $(compile_deps) -I. -I$(gcc_objdir) -c -x assembler-with-cpp \
                -o $@ -DSHARED $(gcc_srcdir)/config/ia64/crtend.asm
-
-crtfastmath.o: $(gcc_srcdir)/config/ia64/crtfastmath.c
-       $(gcc_compile) -c $(gcc_srcdir)/config/ia64/crtfastmath.c
index 6b9d84c..1d3b8ec 100644 (file)
@@ -1,2 +1,5 @@
-crtfastmath.o: $(gcc_srcdir)/config/$(cpu_type)/crtfastmath.c
-       $(gcc_compile) -c $<
+# -frandom-seed is necessary to avoid bootstrap comparison failures due to
+# changing mangled names of the constructor on Tru64 Unix, but harmless
+# otherwise.
+crtfastmath.o: $(srcdir)/config/$(cpu_type)/crtfastmath.c
+       $(gcc_compile) -frandom-seed=gcc-crtfastmath -c $<