mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-28 08:38:53 +00:00
127 lines
5.4 KiB
Diff
127 lines
5.4 KiB
Diff
|
If I'm really lucky, this fixes the following error building with gcc-4.0.0:
|
||
|
|
||
|
../sysdeps/ieee754/dbl-64/s_isinf.c:29: error: 'isinf' aliased to undefined symbol '__isinf'
|
||
|
make[2]: *** [/home/dank/queue/jobdir.fast/crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0.0-20050410-glibc-2.3.4/build-glibc/math/s_isinf.os] Error 1
|
||
|
make[1]: *** [math/subdir_lib] Error 2
|
||
|
make: *** [lib] Error 2
|
||
|
|
||
|
---
|
||
|
|
||
|
|
||
|
Revision 1.71, Thu Mar 17 21:06:27 2005 UTC (3 weeks, 5 days ago) by roland
|
||
|
Branch: MAIN
|
||
|
CVS Tags: fedora-glibc-20050405T2114, fedora-glibc-20050401T1444, fedora-glibc-20050324T0715, fedora-glibc-20050319T1907, HEAD
|
||
|
Changes since 1.70: +11 -66 lines
|
||
|
Diff to previous 1.70 (colored)
|
||
|
|
||
|
2005-03-16 Richard Henderson <rth@redhat.com>
|
||
|
|
||
|
* include/libc-symbols.h (__hidden_proto): Remove bogus declaration
|
||
|
of internal.
|
||
|
(__hidden_def1, __hidden_dot_def1): Remove.
|
||
|
(__hidden_def2, __hidden_def3): Remove.
|
||
|
(__hidden_ver1): New.
|
||
|
(hidden_ver, hidden_def, hidden_weak): Use it.
|
||
|
(hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
|
||
|
version of the macro.
|
||
|
|
||
|
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/include/libc-symbols.h.diff?r1=1.70&r2=1.71&cvsroot=glibc
|
||
|
|
||
|
===================================================================
|
||
|
RCS file: /cvs/glibc/libc/include/libc-symbols.h,v
|
||
|
retrieving revision 1.70
|
||
|
retrieving revision 1.71
|
||
|
diff -u -r1.70 -r1.71
|
||
|
--- libc/include/libc-symbols.h 2005/02/11 00:29:46 1.70
|
||
|
+++ libc/include/libc-symbols.h 2005/03/17 21:06:27 1.71
|
||
|
@@ -583,78 +583,23 @@
|
||
|
# define hidden_proto(name, attrs...) \
|
||
|
__hidden_proto (name, __GI_##name, ##attrs)
|
||
|
# define __hidden_proto(name, internal, attrs...) \
|
||
|
- extern __typeof (name) internal; \
|
||
|
extern __typeof (name) name __asm__ (__hidden_asmname (#internal)) \
|
||
|
__hidden_proto_hiddenattr (attrs);
|
||
|
# define __hidden_asmname(name) \
|
||
|
__hidden_asmname1 (__USER_LABEL_PREFIX__, name)
|
||
|
# define __hidden_asmname1(prefix, name) __hidden_asmname2(prefix, name)
|
||
|
# define __hidden_asmname2(prefix, name) #prefix name
|
||
|
-# ifdef HAVE_ASM_SET_DIRECTIVE
|
||
|
-# define __hidden_def1(original, alias) \
|
||
|
- ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
|
||
|
- .set C_SYMBOL_NAME (alias), C_SYMBOL_NAME (original)
|
||
|
-# ifdef HAVE_ASM_GLOBAL_DOT_NAME
|
||
|
-# define __hidden_dot_def1(original, alias) ASM_LINE_SEP \
|
||
|
- ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
|
||
|
- .set C_SYMBOL_DOT_NAME (alias), C_SYMBOL_DOT_NAME (original)
|
||
|
-# else
|
||
|
-# define __hidden_dot_def1(original, alias)
|
||
|
-# endif
|
||
|
-# else
|
||
|
-# define __hidden_def1(original, alias) \
|
||
|
- ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
|
||
|
- C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
|
||
|
-# ifdef HAVE_ASM_GLOBAL_DOT_NAME
|
||
|
-# define __hidden_dot_def1(original, alias) ASM_LINE_SEP \
|
||
|
- ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
|
||
|
- C_SYMBOL_DOT_NAME (alias) = C_SYMBOL_DOT_NAME (original)
|
||
|
-# else
|
||
|
-# define __hidden_dot_def1(original, alias)
|
||
|
-# endif
|
||
|
-# endif
|
||
|
-# define __hidden_def2(...) #__VA_ARGS__
|
||
|
-# define __hidden_def3(...) __hidden_def2 (__VA_ARGS__)
|
||
|
-# define hidden_def(name) \
|
||
|
- __asm__ (__hidden_def3 (__hidden_def1 (__GI_##name, name) \
|
||
|
- __hidden_dot_def1 (__GI_##name, name)));
|
||
|
-# define hidden_data_def(name) \
|
||
|
- __asm__ (__hidden_def3 (__hidden_def1 (__GI_##name, name)));
|
||
|
-# define hidden_ver(local, name) \
|
||
|
- __asm__ (__hidden_def3 (__hidden_def1 (local, __GI_##name) \
|
||
|
- __hidden_dot_def1 (local, __GI_##name)));
|
||
|
-# define hidden_data_ver(local, name) \
|
||
|
- __asm__ (__hidden_def3 (__hidden_def1 (local, __GI_##name)));
|
||
|
-# ifdef HAVE_WEAK_SYMBOLS
|
||
|
-# ifdef HAVE_ASM_WEAKEXT_DIRECTIVE
|
||
|
-# define __hidden_weak1(original, alias) \
|
||
|
- .weakext C_SYMBOL_NAME (alias), C_SYMBOL_NAME (original)
|
||
|
-# ifdef HAVE_ASM_GLOBAL_DOT_NAME
|
||
|
-# define __hidden_dot_weak1(original, alias) ASM_LINE_SEP \
|
||
|
- .weakext C_SYMBOL_DOT_NAME (alias), C_SYMBOL_DOT_NAME (original)
|
||
|
-# else
|
||
|
-# define __hidden_dot_weak1(original, alias)
|
||
|
-# endif
|
||
|
-# else /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
|
||
|
-# define __hidden_weak1(original, alias) \
|
||
|
- .weak C_SYMBOL_NAME (alias) ASM_LINE_SEP \
|
||
|
- C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
|
||
|
-# ifdef HAVE_ASM_GLOBAL_DOT_NAME
|
||
|
-# define __hidden_dot_weak1(original, alias) ASM_LINE_SEP \
|
||
|
- .weak C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
|
||
|
- C_SYMBOL_DOT_NAME (alias) = C_SYMBOL_DOT_NAME (original)
|
||
|
-# else
|
||
|
-# define __hidden_dot_weak1(original, alias)
|
||
|
-# endif
|
||
|
-# endif
|
||
|
-# define hidden_weak(name) \
|
||
|
- __asm__ (__hidden_def3 (__hidden_weak1 (__GI_##name, name) \
|
||
|
- __hidden_dot_weak1 (__GI_##name, name)));
|
||
|
-# define hidden_data_weak(name) \
|
||
|
- __asm__ (__hidden_def3 (__hidden_weak1 (__GI_##name, name)));
|
||
|
-# else
|
||
|
-# define hidden_weak(name) hidden_def (name)
|
||
|
-# endif
|
||
|
+# define __hidden_ver1(local, internal, name) \
|
||
|
+ extern __typeof (name) __EI_##name __asm__(__hidden_asmname (#internal)); \
|
||
|
+ extern __typeof (name) __EI_##name \
|
||
|
+ __attribute__((alias (__hidden_asmname (#local))))
|
||
|
+# define hidden_ver(local, name) __hidden_ver1(local, __GI_##name, name);
|
||
|
+# define hidden_data_ver(local, name) hidden_ver(local, name)
|
||
|
+# define hidden_def(name) __hidden_ver1(__GI_##name, name, name);
|
||
|
+# define hidden_data_def(name) hidden_def(name)
|
||
|
+# define hidden_weak(name) \
|
||
|
+ __hidden_ver1(__GI_##name, name, name) __attribute__((weak));
|
||
|
+# define hidden_data_weak(name) hidden_weak(name)
|
||
|
# else
|
||
|
/* For assembly, we need to do the opposite of what we do in C:
|
||
|
in assembly gcc __REDIRECT stuff is not in place, so functions
|