1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-05 19:35:52 +03:00
2001-02-09  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/generic/setenv.c (unsetenv): Remove const from len.
	* sysdeps/sparc/fpu/bits/mathinline.h (sqrt, fdim): Don't define if
	__NO_MATH_INLINES.
	* sysdeps/i386/dl-machine.h (elf_machine_rel): Only declare refsym
	if not RTLD_BOOTSTRAP.
	* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
This commit is contained in:
Ulrich Drepper
2001-02-09 17:13:50 +00:00
parent f126ef6731
commit 7c5bb945c2
8 changed files with 38 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
2001-02-09 Jakub Jelinek <jakub@redhat.com>
* sysdeps/generic/setenv.c (unsetenv): Remove const from len.
* sysdeps/sparc/fpu/bits/mathinline.h (sqrt, fdim): Don't define if
__NO_MATH_INLINES.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Only declare refsym
if not RTLD_BOOTSTRAP.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2001-02-09 Ulrich Drepper <drepper@redhat.com> 2001-02-09 Ulrich Drepper <drepper@redhat.com>
* locale/programs/linereader.c (get_ident): Stop loop if EOF. Use * locale/programs/linereader.c (get_ident): Stop loop if EOF. Use

View File

@@ -65,6 +65,8 @@ asm ("\n/*@_init_PROLOG_BEGINS*/");
static void static void
call_initialize_minimal (void) call_initialize_minimal (void)
{ {
extern void __pthread_initialize_minimal (void);
__pthread_initialize_minimal (); __pthread_initialize_minimal ();
} }

View File

@@ -267,7 +267,7 @@ int
unsetenv (name) unsetenv (name)
const char *name; const char *name;
{ {
const size_t len; size_t len;
char **ep; char **ep;
if (name == NULL || *name == '\0' || strchr (name, '=') != NULL) if (name == NULL || *name == '\0' || strchr (name, '=') != NULL)

View File

@@ -319,7 +319,9 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
} }
else if (ELF32_R_TYPE (reloc->r_info) != R_386_NONE) else if (ELF32_R_TYPE (reloc->r_info) != R_386_NONE)
{ {
#ifndef RTLD_BOOTSTRAP
const Elf32_Sym *const refsym = sym; const Elf32_Sym *const refsym = sym;
#endif
Elf32_Addr value = RESOLVE (&sym, version, ELF32_R_TYPE (reloc->r_info)); Elf32_Addr value = RESOLVE (&sym, version, ELF32_R_TYPE (reloc->r_info));
if (sym) if (sym)
value += sym->st_value; value += sym->st_value;

View File

@@ -142,6 +142,8 @@ __signbitl (long double __x) __THROW
#endif /* sparc64 */ #endif /* sparc64 */
#ifndef __NO_MATH_INLINES
__MATH_INLINE double __MATH_INLINE double
sqrt(double __x) __THROW sqrt(double __x) __THROW
{ {
@@ -169,6 +171,8 @@ sqrtl(long double __x) __THROW
} }
#endif /* sparc64 */ #endif /* sparc64 */
#endif
/* This code is used internally in the GNU libc. */ /* This code is used internally in the GNU libc. */
#ifdef __LIBC_INTERNAL_MATH_INLINES #ifdef __LIBC_INTERNAL_MATH_INLINES
__MATH_INLINE double __MATH_INLINE double
@@ -202,6 +206,8 @@ __ieee754_sqrtl(long double __x)
#ifdef __USE_ISOC99 #ifdef __USE_ISOC99
#ifndef __NO_MATH_INLINES
__MATH_INLINE double fdim (double __x, double __y); __MATH_INLINE double fdim (double __x, double __y);
__MATH_INLINE double __MATH_INLINE double
fdim (double __x, double __y) fdim (double __x, double __y)
@@ -216,6 +222,7 @@ fdimf (float __x, float __y)
return __x < __y ? 0 : __x - __y; return __x < __y ? 0 : __x - __y;
} }
#endif /* !__NO_MATH_INLINES */
#endif /* __USE_ISOC99 */ #endif /* __USE_ISOC99 */
#endif /* !__NO_MATH_INLINES && __OPTIMIZE__ */ #endif /* !__NO_MATH_INLINES && __OPTIMIZE__ */
#endif /* __GNUC__ */ #endif /* __GNUC__ */

View File

@@ -362,7 +362,9 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
} }
else else
{ {
#ifndef RTLD_BOOTSTRAP
const Elf32_Sym *const refsym = sym; const Elf32_Sym *const refsym = sym;
#endif
Elf32_Addr value; Elf32_Addr value;
if (sym->st_shndx != SHN_UNDEF && if (sym->st_shndx != SHN_UNDEF &&
ELF32_ST_BIND (sym->st_info) == STB_LOCAL) ELF32_ST_BIND (sym->st_info) == STB_LOCAL)

View File

@@ -197,7 +197,9 @@ elf_machine_rela (struct link_map *map, const Elf64_Rela *reloc,
} }
else if (ELF64_R_TYPE_ID (reloc->r_info) != R_SPARC_NONE) /* Who is Wilbur? */ else if (ELF64_R_TYPE_ID (reloc->r_info) != R_SPARC_NONE) /* Who is Wilbur? */
{ {
#ifndef RTLD_BOOTSTRAP
const Elf64_Sym *const refsym = sym; const Elf64_Sym *const refsym = sym;
#endif
Elf64_Addr value; Elf64_Addr value;
if (sym->st_shndx != SHN_UNDEF && if (sym->st_shndx != SHN_UNDEF &&
ELF64_ST_BIND (sym->st_info) == STB_LOCAL) ELF64_ST_BIND (sym->st_info) == STB_LOCAL)