Tue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* configure.in (libc_cv_asm_global_directive): New check to define ASM_GLOBAL_DIRECTIVE. * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE. * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef HAVE_WEAK_SYMBOLS" #defns.
This commit is contained in:
parent
2657da50f0
commit
65b3cbcba7
|
@ -1,3 +1,12 @@
|
||||||
|
Tue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* configure.in (libc_cv_asm_global_directive): New check to define
|
||||||
|
ASM_GLOBAL_DIRECTIVE.
|
||||||
|
* config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
|
||||||
|
|
||||||
|
* sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
|
||||||
|
HAVE_WEAK_SYMBOLS" #defns.
|
||||||
|
|
||||||
Mon Apr 17 12:02:49 1995 Brendan Kehoe (brendan@zen.org)
|
Mon Apr 17 12:02:49 1995 Brendan Kehoe (brendan@zen.org)
|
||||||
|
|
||||||
* sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
|
* sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
/* Define if the assembler supports the `.set' directive. */
|
/* Define if the assembler supports the `.set' directive. */
|
||||||
#undef HAVE_ASM_SET_DIRECTIVE
|
#undef HAVE_ASM_SET_DIRECTIVE
|
||||||
|
|
||||||
|
/* Define to the name of the assembler's directive for
|
||||||
|
declaring a symbol global (default `.globl'). */
|
||||||
|
#undef ASM_GLOBAL_DIRECTIVE
|
||||||
|
|
||||||
/* ELF has weak symbols, and with GNU ld a.out does too. */
|
/* ELF has weak symbols, and with GNU ld a.out does too. */
|
||||||
#ifndef HAVE_WEAK_SYMBOLS
|
#ifndef HAVE_WEAK_SYMBOLS
|
||||||
#if defined (HAVE_ELF) || defined (HAVE_GNU_LD)
|
#if defined (HAVE_ELF) || defined (HAVE_GNU_LD)
|
||||||
|
|
24
configure.in
24
configure.in
|
@ -351,12 +351,34 @@ if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
|
||||||
else
|
else
|
||||||
libc_cv_asm_set_directive=no
|
libc_cv_asm_set_directive=no
|
||||||
fi
|
fi
|
||||||
rm -f contest*])
|
rm -f conftest*])
|
||||||
AC_MSG_RESULT($libc_cv_asm_set_directive)
|
AC_MSG_RESULT($libc_cv_asm_set_directive)
|
||||||
if test $libc_cv_asm_set_directive = yes; then
|
if test $libc_cv_asm_set_directive = yes; then
|
||||||
AC_DEFINE(HAVE_ASM_SET_DIRECTIVE)
|
AC_DEFINE(HAVE_ASM_SET_DIRECTIVE)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(for assembler global-symbol directive)
|
||||||
|
AC_CACHE_VAL(libc_cv_asm_global_directive, [dnl
|
||||||
|
libc_cv_asm_global_directive=UNKNOWN
|
||||||
|
for ac_globl in .globl .global; do
|
||||||
|
cat > conftest.s <<EOF
|
||||||
|
.text
|
||||||
|
${ac_globl} foo
|
||||||
|
foo: .long 0
|
||||||
|
EOF
|
||||||
|
if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
|
||||||
|
libc_cv_asm_global_directive=${ac_globl}
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
test $libc_cv_asm_global_directive != UNKNOWN && break
|
||||||
|
done])
|
||||||
|
AC_MSG_RESULT($libc_cv_asm_global_directive)
|
||||||
|
if test $libc_cv_asm_global_directive = UNKNOWN; then
|
||||||
|
AC_MSG_ERROR(cannot determine asm global directive)
|
||||||
|
else
|
||||||
|
AC_DEFINE_UNQUOTED(ASM_GLOBAL_DIRECTIVE, ${libc_cv_asm_global_directive})
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# sysdeps configure fragments may set these with files to be linked below.
|
# sysdeps configure fragments may set these with files to be linked below.
|
||||||
libc_link_dests=
|
libc_link_dests=
|
||||||
|
|
Loading…
Reference in New Issue