]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
authorphcoder <phcoder@localhost>
Thu, 15 Oct 2009 11:55:06 +0000 (11:55 +0000)
committerphcoder <phcoder@localhost>
Thu, 15 Oct 2009 11:55:06 +0000 (11:55 +0000)
        Revert 2009-06-10  Pavel Roskin  <proski@gnu.org>

* configure.ac: Put checks for __bswapsi2 and __bswapdi2.
* include/grub/powerpc/libgcc.h: Don't use weak attribute for all
exports.
* include/grub/sparc64/libgcc.h: Likewise.  Use
preprocessor conditionals.

ChangeLog
configure.ac
include/grub/powerpc/libgcc.h
include/grub/sparc64/libgcc.h

index e7fc7072804ddd61c27e0d8cc922c5b8cf989113..f92d8da3a9890379d216034d126fcce4412ac5a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+        Revert 2009-06-10  Pavel Roskin  <proski@gnu.org>
+
+       * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
+       * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
+       exports.
+       * include/grub/sparc64/libgcc.h: Likewise.  Use
+       preprocessor conditionals.
+
 2009-10-14  Robert Millan  <rmh.grub@aybabtu.com>
 
        * conf/common.rmk (grub-dumpbios): Remove rule.
index 3e4da66c859703c0791238420f5a9cf3c96577cf..447f13fcc6bbdff39866acbdf5b9f4d659938948 100644 (file)
@@ -417,6 +417,9 @@ fi
 CPPFLAGS="$TARGET_CPPFLAGS"
 LDFLAGS="$TARGET_LDFLAGS"
 
+# Check for target functions.
+AC_CHECK_FUNCS(__bswapsi2 __bswapdi2)
+
 # Defined in aclocal.m4.
 grub_PROG_TARGET_CC
 if test "x$TARGET_APPLE_CC" != x1 ; then
index ea4b073a048eab8e8d44f04fe09c4c90f6576d50..0ff8964b7e4178ab7b92f8bc70449f330614f9e1 100644 (file)
@@ -16,9 +16,9 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-void EXPORT_FUNC (memset) (void) __attribute__ ((weak));
-void EXPORT_FUNC (__ashldi3) (void) __attribute__ ((weak));
-void EXPORT_FUNC (__ashrdi3) (void) __attribute__ ((weak));
-void EXPORT_FUNC (__lshrdi3) (void) __attribute__ ((weak));
-void EXPORT_FUNC (__trampoline_setup) (void) __attribute__ ((weak));
-void EXPORT_FUNC (__ucmpdi2) (void) __attribute__ ((weak));
+void EXPORT_FUNC (memset) (void);
+void EXPORT_FUNC (__ashldi3) (void);
+void EXPORT_FUNC (__ashrdi3) (void);
+void EXPORT_FUNC (__lshrdi3) (void);
+void EXPORT_FUNC (__trampoline_setup) (void);
+void EXPORT_FUNC (__ucmpdi2) (void);
index 5d18c5c819af95e886924f880fafa734f98c8335..4a6b6194dbaeeda1cf08abd912babde265d83e2c 100644 (file)
 
 void EXPORT_FUNC (memset) (void);
 
+#ifdef HAVE___BSWAPSI2
 typedef int SItype __attribute__ ((mode (SI)));
-SItype EXPORT_FUNC (__bswapsi2) (SItype) __attribute__ ((weak));
+SItype EXPORT_FUNC (__bswapsi2) (SItype);
+#endif
 
+#ifdef HAVE___BSWAPDI2
 typedef int DItype __attribute__ ((mode (DI)));
-DItype EXPORT_FUNC (__bswapdi2) (DItype) __attribute__ ((weak));
+DItype EXPORT_FUNC (__bswapdi2) (DItype);
+#endif