OSDN Git Service

libgcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Aug 2011 17:21:48 +0000 (17:21 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Aug 2011 17:21:48 +0000 (17:21 +0000)
PR target/50090
* config/arm/bpabi-lib.h (RENAME_LIBRARY_SET): Delete.
(RENAME_LIBRARY): Use a C-level alias instead of an assembly one.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@178043 138bc75d-0d04-0410-961f-82ee72b054a4

libgcc/ChangeLog
libgcc/config/arm/bpabi-lib.h

index a976693..dda375d 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-24  Richard Sandiford  <richard.sandiford@linaro.org>
+
+       PR target/50090
+       * config/arm/bpabi-lib.h (RENAME_LIBRARY_SET): Delete.
+       (RENAME_LIBRARY): Use a C-level alias instead of an assembly one.
+
 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/64/sfp-machine.h (ASM_INVALID): New define.
index 49a28c3..fc0e595 100644 (file)
    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#if defined (__thumb__)
-#define RENAME_LIBRARY_SET ".thumb_set"
-#else
-#define RENAME_LIBRARY_SET ".set"
-#endif
-
 /* Make __aeabi_AEABI_NAME an alias for __GCC_NAME.  */
 #define RENAME_LIBRARY(GCC_NAME, AEABI_NAME)           \
-  __asm__ (".globl\t__aeabi_" #AEABI_NAME "\n"         \
-          RENAME_LIBRARY_SET "\t__aeabi_" #AEABI_NAME  \
-            ", __" #GCC_NAME "\n");
+  typeof (__##GCC_NAME) __aeabi_##AEABI_NAME \
+    __attribute__((alias ("__" #GCC_NAME)));
 
 /* Give some libgcc functions an additional __aeabi name.  */
 #ifdef L_muldi3