config.host (mips64*-*-linux*, [...]): Add t-slibgcc-libgcc to tmake_file.
authorChung-Lin Tang <cltang@codesourcery.com>
Sun, 5 Feb 2012 15:03:15 +0000 (15:03 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 5 Feb 2012 15:03:15 +0000 (15:03 +0000)
libgcc/
2012-02-05  Chung-Lin Tang  <cltang@codesourcery.com>

* config.host (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
Add t-slibgcc-libgcc to tmake_file.
* config/mips/libgcc-mips16.ver: Revert previous patch.
* config/mips/mips16.S (__mips16_rdhwr): Hide.

From-SVN: r183912

libgcc/ChangeLog
libgcc/config.host
libgcc/config/mips/libgcc-mips16.ver
libgcc/config/mips/mips16.S

index abd2a7fe6b1829a9d5d22a5f43a06599f835732d..bcdf530343fcc3b5f400130ef60d7ef3db34d076 100644 (file)
@@ -1,3 +1,10 @@
+2012-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
+
+       * config.host (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
+       Add t-slibgcc-libgcc to tmake_file.
+       * config/mips/libgcc-mips16.ver: Revert previous patch.
+       * config/mips/mips16.S (__mips16_rdhwr): Hide.
+
 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
            Jayant R Sonar <jayant.sonar@kpitcummins.com>
 
index 14443c10699b17d7555bb60bb4e98da83f54ecfc..da845b91743c30c8c2bc3f00f33ea6a6b389b567 100644 (file)
@@ -746,12 +746,12 @@ mips*-*-netbsd*)                  # NetBSD/mips, either endian.
        ;;
 mips64*-*-linux* | mipsisa64*-*-linux*)
        extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="${tmake_file} t-crtfm mips/t-mips16 mips/t-tpbit"
+       tmake_file="${tmake_file} t-crtfm mips/t-mips16 mips/t-tpbit t-slibgcc-libgcc"
        md_unwind_header=mips/linux-unwind.h
        ;;
 mips*-*-linux*)                                # Linux MIPS, either endian.
        extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="${tmake_file} t-crtfm mips/t-mips16"
+       tmake_file="${tmake_file} t-crtfm mips/t-mips16 t-slibgcc-libgcc"
        md_unwind_header=mips/linux-unwind.h
        ;;
 mips*-*-openbsd*)
index a92574478526242bd7cbe324a1e2150d9978cc0a..ddb23e7e750e7b432e81465b81385c16ae975383 100644 (file)
@@ -84,7 +84,3 @@ GCC_4.4.0 {
   __mips16_call_stub_dc_9
   __mips16_call_stub_dc_10
 }
-
-GCC_4.7.0 {
-  __mips16_rdhwr
-}
index a087508d4a64486d7c76789ef09f55f670bd172d..c82a55da6aa67629559908626b69d879fc7d7fa2 100644 (file)
@@ -712,6 +712,9 @@ CALL_STUB_RET (__mips16_call_stub_dc_10, 10, DC)
 
 #ifdef L_m16rdhwr
 STARTFN (__mips16_rdhwr)
+       /* Forced always hidden, because the PLT resolver function would
+          not preserve all necessary registers.  */
+       .hidden __mips16_rdhwr
        .set    push
        .set    mips32r2
        .set    noreorder