Commit 475c267f by Kaveh R. Ghazi Committed by Kaveh Ghazi

collect2.c: Check HAVE_DUP2 instead of NO_DUP2.

	* collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
	(dup2): Make static and add prototype.
	* m68k/plexus.h: Don't define NO_DUP2.
	* configure.in (AC_CHECK_FUNCS): Add dup2.
	* config.in, configure: Regenerate.

From-SVN: r47379
parent ec8e621d
2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
(dup2): Make static and add prototype.
* m68k/plexus.h: Don't define NO_DUP2.
* configure.in (AC_CHECK_FUNCS): Add dup2.
* config.in, configure: Regenerate.
* ia64/aix.h (REG_SIZE): Don't #undef. * ia64/aix.h (REG_SIZE): Don't #undef.
* sparc.h (REG_SIZE): Delete. * sparc.h (REG_SIZE): Delete.
* flow.c (mark_used_regs): Don't use REG_SIZE. * flow.c (mark_used_regs): Don't use REG_SIZE.
......
...@@ -309,8 +309,9 @@ static int ignore_library PARAMS ((const char *)); ...@@ -309,8 +309,9 @@ static int ignore_library PARAMS ((const char *));
#endif #endif
static char *extract_string PARAMS ((const char **)); static char *extract_string PARAMS ((const char **));
#ifdef NO_DUP2 #ifndef HAVE_DUP2
int static int dup2 PARAMS ((int, int));
static int
dup2 (oldfd, newfd) dup2 (oldfd, newfd)
int oldfd; int oldfd;
int newfd; int newfd;
...@@ -329,7 +330,7 @@ dup2 (oldfd, newfd) ...@@ -329,7 +330,7 @@ dup2 (oldfd, newfd)
return fd; return fd;
} }
#endif #endif /* ! HAVE_DUP2 */
/* Delete tempfiles and exit function. */ /* Delete tempfiles and exit function. */
......
/* config.in. Generated automatically from configure.in by autoheader 2.13. */ /* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */ /* Define if using alloca.c. */
#undef C_ALLOCA #undef C_ALLOCA
...@@ -114,6 +114,9 @@ ...@@ -114,6 +114,9 @@
/* Define if you have the dcgettext function. */ /* Define if you have the dcgettext function. */
#undef HAVE_DCGETTEXT #undef HAVE_DCGETTEXT
/* Define if you have the dup2 function. */
#undef HAVE_DUP2
/* Define if you have the feof_unlocked function. */ /* Define if you have the feof_unlocked function. */
#undef HAVE_FEOF_UNLOCKED #undef HAVE_FEOF_UNLOCKED
...@@ -566,15 +569,16 @@ ...@@ -566,15 +569,16 @@
and preserves file table indices exactly as given. */ and preserves file table indices exactly as given. */
#undef HAVE_AS_DWARF2_DEBUG_LINE #undef HAVE_AS_DWARF2_DEBUG_LINE
/* Define 0/1 to force the choice for exception handling model. */
#undef CONFIG_SJLJ_EXCEPTIONS
/* Define if your assembler supports the --gdwarf2 option. */ /* Define if your assembler supports the --gdwarf2 option. */
#undef HAVE_AS_GDWARF2_DEBUG_FLAG #undef HAVE_AS_GDWARF2_DEBUG_FLAG
/* Define if your assembler supports the --gstabs option. */ /* Define if your assembler supports the --gstabs option. */
#undef HAVE_AS_GSTABS_DEBUG_FLAG #undef HAVE_AS_GSTABS_DEBUG_FLAG
/* Define 0/1 to force the choice for exception handling model. */
#undef CONFIG_SJLJ_EXCEPTIONS
/* Bison unconditionally undefines `const' if neither `__STDC__' nor /* Bison unconditionally undefines `const' if neither `__STDC__' nor
__cplusplus are defined. That's a problem since we use `const' in __cplusplus are defined. That's a problem since we use `const' in
the GCC headers, and the resulting bison code is therefore type the GCC headers, and the resulting bison code is therefore type
......
...@@ -102,6 +102,5 @@ Boston, MA 02111-1307, USA. */ ...@@ -102,6 +102,5 @@ Boston, MA 02111-1307, USA. */
/***********************************************************************/ /***********************************************************************/
#define NM_FLAGS "" #define NM_FLAGS ""
#define NO_DUP2
#define SIZE_TYPE "int" #define SIZE_TYPE "int"
...@@ -2078,7 +2078,7 @@ EOF ...@@ -2078,7 +2078,7 @@ EOF
fi fi
# Find some useful tools # Find some useful tools
for ac_prog in gawk mawk nawk awk for ac_prog in mawk gawk nawk awk
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
...@@ -3397,7 +3397,7 @@ EOF ...@@ -3397,7 +3397,7 @@ EOF
fi fi
for ac_func in strtoul bsearch popen times clock \ for ac_func in strtoul bsearch popen times clock dup2 \
strchr strrchr kill getrlimit setrlimit atoll atoq \ strchr strrchr kill getrlimit setrlimit atoll atoq \
sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
fputs_unlocked fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \ fputs_unlocked fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
......
...@@ -578,7 +578,7 @@ fi ...@@ -578,7 +578,7 @@ fi
dnl Disabled until we have a complete test for buggy enum bitfields. dnl Disabled until we have a complete test for buggy enum bitfields.
dnl gcc_AC_C_ENUM_BF_UNSIGNED dnl gcc_AC_C_ENUM_BF_UNSIGNED
AC_CHECK_FUNCS(strtoul bsearch popen times clock \ AC_CHECK_FUNCS(strtoul bsearch popen times clock dup2 \
strchr strrchr kill getrlimit setrlimit atoll atoq \ strchr strrchr kill getrlimit setrlimit atoll atoq \
sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
fputs_unlocked fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \ fputs_unlocked fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment