mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 10:39:19 +08:00
re PR bootstrap/12100 (time.h:402: error: previous declaration of clock'evious declaration of
clock')
2003-08-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> PR bootstrap/12100 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define. * configure: Rebuilt. From-SVN: r71009
This commit is contained in:
parent
1918facfd1
commit
86d7590652
@ -1,3 +1,9 @@
|
|||||||
|
2003-08-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||||
|
|
||||||
|
PR bootstrap/12100
|
||||||
|
* aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
|
||||||
|
* configure: Rebuilt.
|
||||||
|
|
||||||
2003-08-27 Daniel Jacobowitz <drow@mvista.com>
|
2003-08-27 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
* aclocal.m4: Include acx.m4 and no-executables.m4.
|
* aclocal.m4: Include acx.m4 and no-executables.m4.
|
||||||
|
49
libiberty/aclocal.m4
vendored
49
libiberty/aclocal.m4
vendored
@ -180,3 +180,52 @@ AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction,
|
|||||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||||
STACK_DIRECTION = 0 => direction of growth unknown])
|
STACK_DIRECTION = 0 => direction of growth unknown])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# AC_LANG_FUNC_LINK_TRY(C)(FUNCTION)
|
||||||
|
# ----------------------------------
|
||||||
|
# Don't include <ctype.h> because on OSF/1 3.0 it includes
|
||||||
|
# <sys/types.h> which includes <sys/select.h> which contains a
|
||||||
|
# prototype for select. Similarly for bzero.
|
||||||
|
#
|
||||||
|
# This test used to merely assign f=$1 in main(), but that was
|
||||||
|
# optimized away by HP unbundled cc A.05.36 for ia64 under +O3,
|
||||||
|
# presumably on the basis that there's no need to do that store if the
|
||||||
|
# program is about to exit. Conversely, the AIX linker optimizes an
|
||||||
|
# unused external declaration that initializes f=$1. So this test
|
||||||
|
# program has both an external initialization of f, and a use of f in
|
||||||
|
# main that affects the exit status.
|
||||||
|
#
|
||||||
|
m4_define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||||
|
[AC_LANG_PROGRAM(
|
||||||
|
[/* System header to define __stub macros and hopefully few prototypes,
|
||||||
|
which can conflict with char $1 (); below.
|
||||||
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
|
# include <limits.h>
|
||||||
|
#else
|
||||||
|
# include <assert.h>
|
||||||
|
#endif
|
||||||
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
/* We use char because int might match the return type of a gcc2
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
char $1 ();
|
||||||
|
/* The GNU C library defines this for functions which it implements
|
||||||
|
to always fail with ENOSYS. Some functions are actually named
|
||||||
|
something starting with __ and the normal name is an alias. */
|
||||||
|
#if defined (__stub_$1) || defined (__stub___$1)
|
||||||
|
choke me
|
||||||
|
#else
|
||||||
|
char (*f) () = $1;
|
||||||
|
#endif
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
], [return f != $1;])])
|
||||||
|
|
||||||
|
71
libiberty/configure
vendored
71
libiberty/configure
vendored
@ -923,7 +923,7 @@ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
|||||||
else
|
else
|
||||||
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
||||||
fi
|
fi
|
||||||
cd "$ac_popdir"
|
cd $ac_popdir
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1120,7 +1120,7 @@ _ASBOX
|
|||||||
echo "$as_me: caught signal $ac_signal"
|
echo "$as_me: caught signal $ac_signal"
|
||||||
echo "$as_me: exit $exit_status"
|
echo "$as_me: exit $exit_status"
|
||||||
} >&5
|
} >&5
|
||||||
rm -f core *.core &&
|
rm -f core core.* *.core &&
|
||||||
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
||||||
exit $exit_status
|
exit $exit_status
|
||||||
' 0
|
' 0
|
||||||
@ -2486,7 +2486,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); }; }; then
|
(exit $ac_status); }; }; then
|
||||||
for ac_declaration in \
|
for ac_declaration in \
|
||||||
'' \
|
''\
|
||||||
|
'#include <stdlib.h>' \
|
||||||
'extern "C" void std::exit (int) throw (); using std::exit;' \
|
'extern "C" void std::exit (int) throw (); using std::exit;' \
|
||||||
'extern "C" void std::exit (int); using std::exit;' \
|
'extern "C" void std::exit (int); using std::exit;' \
|
||||||
'extern "C" void exit (int) throw ();' \
|
'extern "C" void exit (int) throw ();' \
|
||||||
@ -2500,8 +2501,8 @@ _ACEOF
|
|||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
$ac_declaration
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
$ac_declaration
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@ -2976,7 +2977,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|||||||
( exit $ac_status )
|
( exit $ac_status )
|
||||||
ac_cv_c_bigendian=yes
|
ac_cv_c_bigendian=yes
|
||||||
fi
|
fi
|
||||||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -3529,7 +3530,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|||||||
( exit $ac_status )
|
( exit $ac_status )
|
||||||
ac_cv_header_stdc=no
|
ac_cv_header_stdc=no
|
||||||
fi
|
fi
|
||||||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -4220,8 +4221,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func (); below.
|
which can conflict with char $ac_func (); below.
|
||||||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
<limits.h> exists even on freestanding compilers. */
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
#ifdef __STDC__
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@ -4645,8 +4648,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func (); below.
|
which can conflict with char $ac_func (); below.
|
||||||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
<limits.h> exists even on freestanding compilers. */
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
#ifdef __STDC__
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@ -4766,8 +4771,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func (); below.
|
which can conflict with char $ac_func (); below.
|
||||||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
<limits.h> exists even on freestanding compilers. */
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
#ifdef __STDC__
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@ -4886,7 +4893,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|||||||
( exit $ac_status )
|
( exit $ac_status )
|
||||||
ac_cv_c_stack_direction=-1
|
ac_cv_c_stack_direction=-1
|
||||||
fi
|
fi
|
||||||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
||||||
@ -5065,8 +5072,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func (); below.
|
which can conflict with char $ac_func (); below.
|
||||||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
<limits.h> exists even on freestanding compilers. */
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
#ifdef __STDC__
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@ -5173,7 +5182,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|||||||
( exit $ac_status )
|
( exit $ac_status )
|
||||||
ac_cv_func_fork_works=no
|
ac_cv_func_fork_works=no
|
||||||
fi
|
fi
|
||||||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
|
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
|
||||||
@ -5328,7 +5337,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|||||||
( exit $ac_status )
|
( exit $ac_status )
|
||||||
ac_cv_func_vfork_works=no
|
ac_cv_func_vfork_works=no
|
||||||
fi
|
fi
|
||||||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
|
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
|
||||||
@ -5393,8 +5402,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func (); below.
|
which can conflict with char $ac_func (); below.
|
||||||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
<limits.h> exists even on freestanding compilers. */
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
#ifdef __STDC__
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@ -5486,8 +5497,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func (); below.
|
which can conflict with char $ac_func (); below.
|
||||||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
<limits.h> exists even on freestanding compilers. */
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
#ifdef __STDC__
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@ -5688,8 +5701,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func (); below.
|
which can conflict with char $ac_func (); below.
|
||||||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
<limits.h> exists even on freestanding compilers. */
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
#ifdef __STDC__
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@ -6006,8 +6021,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func (); below.
|
which can conflict with char $ac_func (); below.
|
||||||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
||||||
<limits.h> exists even on freestanding compilers. */
|
<limits.h> exists even on freestanding compilers. Under hpux,
|
||||||
#ifdef __STDC__
|
including <limits.h> includes <sys/time.h> and causes problems
|
||||||
|
checking for functions defined therein. */
|
||||||
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@ -6233,7 +6250,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|||||||
( exit $ac_status )
|
( exit $ac_status )
|
||||||
ac_cv_func_mmap_fixed_mapped=no
|
ac_cv_func_mmap_fixed_mapped=no
|
||||||
fi
|
fi
|
||||||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
|
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
|
||||||
@ -6346,7 +6363,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|||||||
( exit $ac_status )
|
( exit $ac_status )
|
||||||
ac_cv_func_strncmp_works=no
|
ac_cv_func_strncmp_works=no
|
||||||
fi
|
fi
|
||||||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
rm -f core core.* *.core
|
rm -f core core.* *.core
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user