xm-pc532-min.h, xm-we32k.h: Delete references to the MAXPATHLEN macro.

* config/ns32k/xm-pc532-min.h, config/we32k/xm-we32k.h: Delete
	references to the MAXPATHLEN macro.

	* config/alpha/xm-alpha.h, config/arm/xm-arm.h,
	config/i386/xm-cygwin.h, config/xm-linux.h: Delete references to
	the POSIX macro.

	* config/i386/xm-gnu.h, config/xm-gnu.h,
	config/alpha/xm-openbsd.h, config/i386/xm-openbsd.h,
	config/m68k/xm-openbsd.h, config/mips/xm-openbsd.h,
	config/sparc/xm-openbsd.h, config/xm-openbsd.h: Delete empty
	and/or unused files.

	* config.gcc: Define POSIX in xm_defines as appropriate in lieu of
	doing so in various xm-*.h files.

f:
	* com.c: Don't rely on the POSIX macro to define autoconf stuff.

From-SVN: r40323
This commit is contained in:
Kaveh R. Ghazi 2001-03-08 18:53:26 +00:00 committed by Kaveh Ghazi
parent c53cf0fe5e
commit b19a539e02
18 changed files with 33 additions and 254 deletions

View File

@ -1,3 +1,21 @@
2001-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* config/ns32k/xm-pc532-min.h, config/we32k/xm-we32k.h: Delete
references to the MAXPATHLEN macro.
* config/alpha/xm-alpha.h, config/arm/xm-arm.h,
config/i386/xm-cygwin.h, config/xm-linux.h: Delete references to
the POSIX macro.
* config/i386/xm-gnu.h, config/xm-gnu.h,
config/alpha/xm-openbsd.h, config/i386/xm-openbsd.h,
config/m68k/xm-openbsd.h, config/mips/xm-openbsd.h,
config/sparc/xm-openbsd.h, config/xm-openbsd.h: Delete empty
and/or unused files.
* config.gcc: Define POSIX in xm_defines as appropriate in lieu of
doing so in various xm-*.h files.
Thu Mar 8 06:32:50 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/i386/i386.md (clrstrsi): Call ix86_set_move_mem_attrs.

View File

@ -264,7 +264,7 @@ case $machine in
# On the Hurd, the setup is just about the same on
# each different CPU. The specific machines that we
# support are matched above and just set $cpu_type.
xm_file="xm-gnu.h ${xm_file}"
xm_defines=POSIX
tm_file="${cpu_type}/gnu.h"
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
# GNU always uses ELF.
@ -288,8 +288,7 @@ case $machine in
*-*-openbsd*)
tm_file=${cpu_type}/openbsd.h
tmake_file="t-libc-ok t-openbsd"
# avoid surprises, always provide an xm-openbsd file
xm_file=${cpu_type}/xm-openbsd.h
xm_defines=POSIX
# don't depend on processor x-fragments as well
xmake_file=none
if test x$enable_threads = xyes; then
@ -371,6 +370,7 @@ alpha-*-interix)
#local_prefix='$$INTERIX_ROOT'/usr/contrib
;;
alpha*-*-linux*ecoff*)
xm_defines=POSIX
tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
target_cpu_default="MASK_GAS"
tmake_file="alpha/t-alpha alpha/t-ieee"
@ -401,6 +401,7 @@ alpha*-*-linux*)
fi
;;
alpha*-*-freebsd*)
xm_defines=POSIX
tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
target_cpu_default="MASK_GAS"
tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
@ -416,6 +417,7 @@ alpha*-*-freebsd*)
esac
;;
alpha*-*-netbsd*)
xm_defines=POSIX
tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
target_cpu_default="MASK_GAS"
tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
@ -431,6 +433,7 @@ alpha*-*-openbsd*)
;;
alpha*-dec-osf*)
xm_defines=POSIX
if test x$stabs = xyes
then
tm_file="${tm_file} dbx.h"
@ -469,6 +472,7 @@ alpha*-dec-osf*)
esac
;;
alpha*-*-vxworks*)
xm_defines=POSIX
tm_file="${tm_file} dbx.h alpha/vxworks.h"
tmake_file="alpha/t-alpha alpha/t-ieee"
if [ x$gas != xyes ]
@ -479,6 +483,7 @@ alpha*-*-vxworks*)
thread_file='vxworks'
;;
alpha*-dec-vms*)
xm_defines=POSIX
tm_file=alpha/vms.h
xm_file="${xm_file} alpha/xm-vms.h"
tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
@ -1417,6 +1422,7 @@ i386-*-vsta) # Intel 80386's running VSTa kernel
xmake_file=i386/x-vsta
;;
i[34567]86-*-win32)
xm_defines=POSIX
xm_file="${xm_file} i386/xm-cygwin.h"
float_format=i386
tmake_file=i386/t-cygwin
@ -1429,6 +1435,7 @@ i[34567]86-*-win32)
exeext=.exe
;;
i[34567]86-*-pe | i[34567]86-*-cygwin*)
xm_defines=POSIX
xm_file="${xm_file} i386/xm-cygwin.h"
float_format=i386
tmake_file=i386/t-cygwin
@ -2092,7 +2099,6 @@ m88k-*-luna*)
m88k-*-openbsd*)
tmake_file="${tmake_file} m88k/t-luna-gas"
tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
xm_file='m88k/xm-m88k.h xm-openbsd.h'
;;
m88k-*-sysv3*)
xm_defines=USG
@ -2749,7 +2755,7 @@ powerpc-*-rtems*)
;;
powerpc-*-linux*libc1)
tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
xm_defines=USG
xm_defines='USG POSIX'
xm_file=rs6000/xm-sysv4.h
out_file=rs6000/rs6000.c
tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
@ -3284,7 +3290,6 @@ vax-*-netbsd*)
vax-*-openbsd*)
tmake_file="${tmake_file} vax/t-openbsd"
tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
xm_file="xm-openbsd.h vax/xm-vax.h"
float_format=vax
use_collect2=yes
;;

View File

@ -29,7 +29,3 @@ Boston, MA 02111-1307, USA. */
#ifndef __GNUC__
#define ONLY_INT_FIELDS
#endif
/* OSF/1 is POSIX.1 compliant. */
#define POSIX

View File

@ -1,22 +0,0 @@
/* Configuration file for an host running alpha OpenBSD.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <xm-openbsd.h>
#include <alpha/xm-alpha.h>

View File

@ -30,9 +30,3 @@ Boston, MA 02111-1307, USA. */
#define HOST_FLOAT_FORMAT IEEE_FLOAT_FORMAT
#define HOST_FLOAT_WORDS_BIG_ENDIAN 1
/* If we have defined POSIX, but are compiling in the BSD environment, then
we need to define getcwd in terms of getwd. */
#if defined (POSIX) && defined (_BSD_C)
#define HAVE_GETWD 1
#endif

View File

@ -54,8 +54,3 @@ do { \
} while (0)
#define PATH_SEPARATOR ':'
/* This is needed so that protoize will compile. */
#ifndef POSIX
#define POSIX
#endif

View File

@ -1,4 +0,0 @@
/* Configuration for GCC for Intel i386 running GNU as host. */
#include <i386/xm-i386.h>
#include <xm-gnu.h>

View File

@ -1,22 +0,0 @@
/* Configuration file for i386 hosts running OpenBSD.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <xm-openbsd.h>
#include <i386/xm-i386.h>

View File

@ -1,22 +0,0 @@
/* Configuration file for an host running m68k OpenBSD.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <xm-openbsd.h>
#include <m68k/xm-m68k.h>

View File

@ -1,22 +0,0 @@
/* Configuration file for an host running mips OpenBSD.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <xm-openbsd.h>
#include <mips/xm-mips.h>

View File

@ -1,7 +1,3 @@
#ifndef HZ
#define HZ 60
#endif
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif

View File

@ -1,22 +0,0 @@
/* Configuration file for an host running sparc OpenBSD.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <xm-openbsd.h>
#include <sparc/xm-sparc.h>

View File

@ -21,7 +21,3 @@ Boston, MA 02111-1307, USA. */
/* This describes the machine the compiler is hosted on. */
#define HOST_WORDS_BIG_ENDIAN
#ifndef MAXPATHLEN
#define MAXPATHLEN 512
#endif

View File

@ -1,26 +0,0 @@
/* Configuration for GNU C-compiler for hosts running GNU.
Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* This file defines machine-independent things specific to a host
running GNU. This file should not be specified as $xm_file itself;
instead $xm_file should be CPU/xm-gnu.h, which should include both
CPU/xm-CPU.h and this file xm-gnu.h. */
#define POSIX /* GNU complies to POSIX.1. */

View File

@ -19,9 +19,6 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#undef POSIX
#define POSIX
/* We do have one, but I'd like to use the one come with gcc since
we have been doing that for a long time with USG defined. H.J. */
#undef HAVE_STAB_H

View File

@ -1,29 +0,0 @@
/* Configuration fragment for hosts running a version of OpenBSD.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* This file gets included by all architectures. It holds stuff
that ought to be defined when hosting a compiler on an OpenBSD
machine, independently of the architecture. It's included by
${cpu_type}/xm-openbsd.h, not included directly. */
/* OpenBSD is trying to be POSIX-compliant, to the point of fixing
problems that may occur with gcc's interpretation. */
#undef POSIX
#define POSIX

View File

@ -1,3 +1,7 @@
Thu Mar 8 13:27:47 2001 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* com.c: Don't rely on the POSIX macro to define autoconf stuff.
2001-03-07 Brad Lucier <lucier@math.purdue.edu>
* g77.texi: Document new options -funsafe-math-optimizations

View File

@ -93,53 +93,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define FFECOM_GCC_INCLUDE 1 /* Enable -I. */
/* BEGIN stuff from gcc/cccp.c. */
/* The following symbols should be autoconfigured:
HAVE_FCNTL_H
HAVE_STDLIB_H
HAVE_SYS_TIME_H
HAVE_UNISTD_H
TIME_WITH_SYS_TIME
In the mean time, we'll get by with approximations based
on existing GCC configuration symbols. */
#ifdef POSIX
# ifndef HAVE_STDLIB_H
# define HAVE_STDLIB_H 1
# endif
# ifndef HAVE_UNISTD_H
# define HAVE_UNISTD_H 1
# endif
#endif /* defined (POSIX) */
#if defined (POSIX) || (defined (USG) && !defined (VMS))
# ifndef HAVE_FCNTL_H
# define HAVE_FCNTL_H 1
# endif
#endif
#ifdef RLIMIT_STACK
# include <sys/resource.h>
#endif
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
/* This defines "errno" properly for VMS, and gives us EACCES. */
#include <errno.h>
#if HAVE_STDLIB_H
# include <stdlib.h>
#else
char *getenv ();
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
/* VMS-specific definitions */
#ifdef VMS
#include <descrip.h>
@ -165,12 +118,6 @@ typedef struct { unsigned :16, :16, :16; } vms_ino_t;
#define INCLUDE_LEN_FUDGE 10 /* leave room for VMS syntax conversion */
#endif /* VMS */
#ifndef O_RDONLY
#define O_RDONLY 0
#endif
/* END stuff from gcc/cccp.c. */
#define FFECOM_DETERMINE_TYPES 1 /* for com.h */
#include "com.h"
#include "bad.h"