mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-09 02:40:08 +00:00
547e970409
IA64 builds in math/ use "-include libm-symbols.h". This breaks the signgam tests, which rely on undefining _LIBC and feature test macros and defining _ISOMAC before including system headers to get them to provide only ISO C declarations (libm-symbols.h ending up indirectly including headers which result in this breaking); similarly, it breaks C++ tests as some headers included from libm-symbols.h are not ready for inclusion in C++ code. This patch disables the contents of libm-symbols.h if __STRICT_ANSI__ or __cplusplus are defined to avoid this problem (this header can only test symbols defined before the source file is processed, so can't test _ISOMAC because that's defined within the source file, after this header is included). Tested (compilation only) for ia64. * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on [!__STRICT_ANSI__ && !__cplusplus].
61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
#if !defined __STRICT_ANSI__ && !defined __cplusplus
|
|
# include <sysdep.h>
|
|
# undef ret /* get rid of the stupid "ret" macro; it breaks br.ret */
|
|
|
|
/* Support for compatible assembler handling. */
|
|
|
|
# define ASM_SIZE_DIRECTIVE(name) .size name,.-name
|
|
|
|
# define LOCAL_LIBM_ENTRY(name) \
|
|
.proc name; \
|
|
name:
|
|
|
|
# define LOCAL_LIBM_END(name) \
|
|
.endp name; \
|
|
ASM_SIZE_DIRECTIVE(name)
|
|
|
|
|
|
# define RODATA .rodata
|
|
# define LOCAL_OBJECT_START(name) \
|
|
name:; \
|
|
.type name, @object
|
|
# define LOCAL_OBJECT_END(name) \
|
|
ASM_SIZE_DIRECTIVE(name)
|
|
|
|
# define GLOBAL_LIBM_ENTRY(name) \
|
|
LOCAL_LIBM_ENTRY(name); \
|
|
.global name
|
|
# define GLOBAL_LIBM_END(name) LOCAL_LIBM_END(name)
|
|
|
|
# define INTERNAL_LIBM_ENTRY(name) \
|
|
GLOBAL_LIBM_ENTRY(__libm_##name); \
|
|
.global __libm_##name
|
|
# define INTERNAL_LIBM_END(name) GLOBAL_LIBM_END(__libm_##name)
|
|
|
|
# define WEAK_LIBM_ENTRY(name) \
|
|
.align 32; \
|
|
LOCAL_LIBM_ENTRY(__##name); \
|
|
.global __##name; \
|
|
__##name:
|
|
# define WEAK_LIBM_END(name) \
|
|
weak_alias (__##name, name); \
|
|
.hidden __##name; \
|
|
LOCAL_LIBM_END(__##name); \
|
|
ASM_SIZE_DIRECTIVE(__##name); \
|
|
.type __##name, @function
|
|
|
|
# define GLOBAL_IEEE754_ENTRY(name) \
|
|
WEAK_LIBM_ENTRY(name); \
|
|
.global __ieee754_##name; \
|
|
.hidden __ieee754_##name; \
|
|
__ieee754_##name:
|
|
# define GLOBAL_IEEE754_END(name) \
|
|
WEAK_LIBM_END(name); \
|
|
ASM_SIZE_DIRECTIVE(__ieee754_##name); \
|
|
.type __ieee754_##name, @function
|
|
|
|
# if defined ASSEMBLER && IS_IN (libc)
|
|
# define __libm_error_support HIDDEN_JUMPTARGET(__libm_error_support)
|
|
# endif
|
|
#endif
|