diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-03-08 18:53:26 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-03-08 18:53:26 +0000 |
commit | b19a539e02fb8cea5f0f702715b1981ad4b7649d (patch) | |
tree | 0c07d5db180f4251184ec4d5f90a574573e7b97a /gcc | |
parent | c53cf0fe5efaa53a475ed75dc4c292f631701961 (diff) | |
download | gcc-b19a539e02fb8cea5f0f702715b1981ad4b7649d.zip gcc-b19a539e02fb8cea5f0f702715b1981ad4b7649d.tar.gz gcc-b19a539e02fb8cea5f0f702715b1981ad4b7649d.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 18 | ||||
-rw-r--r-- | gcc/config.gcc | 17 | ||||
-rw-r--r-- | gcc/config/alpha/xm-alpha.h | 4 | ||||
-rw-r--r-- | gcc/config/alpha/xm-openbsd.h | 22 | ||||
-rw-r--r-- | gcc/config/arm/xm-arm.h | 6 | ||||
-rw-r--r-- | gcc/config/i386/xm-cygwin.h | 5 | ||||
-rw-r--r-- | gcc/config/i386/xm-gnu.h | 4 | ||||
-rw-r--r-- | gcc/config/i386/xm-openbsd.h | 22 | ||||
-rw-r--r-- | gcc/config/m68k/xm-openbsd.h | 22 | ||||
-rw-r--r-- | gcc/config/mips/xm-openbsd.h | 22 | ||||
-rw-r--r-- | gcc/config/ns32k/xm-pc532-min.h | 4 | ||||
-rw-r--r-- | gcc/config/sparc/xm-openbsd.h | 22 | ||||
-rw-r--r-- | gcc/config/we32k/xm-we32k.h | 4 | ||||
-rw-r--r-- | gcc/config/xm-gnu.h | 26 | ||||
-rw-r--r-- | gcc/config/xm-linux.h | 3 | ||||
-rw-r--r-- | gcc/config/xm-openbsd.h | 29 | ||||
-rw-r--r-- | gcc/f/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/f/com.c | 53 |
18 files changed, 33 insertions, 254 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8bb577..95a676f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config.gcc b/gcc/config.gcc index 5c364c8..d1d0cf0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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 ;; diff --git a/gcc/config/alpha/xm-alpha.h b/gcc/config/alpha/xm-alpha.h index ec4680d..1d28d17 100644 --- a/gcc/config/alpha/xm-alpha.h +++ b/gcc/config/alpha/xm-alpha.h @@ -29,7 +29,3 @@ Boston, MA 02111-1307, USA. */ #ifndef __GNUC__ #define ONLY_INT_FIELDS #endif - -/* OSF/1 is POSIX.1 compliant. */ - -#define POSIX diff --git a/gcc/config/alpha/xm-openbsd.h b/gcc/config/alpha/xm-openbsd.h deleted file mode 100644 index e77b8be..0000000 --- a/gcc/config/alpha/xm-openbsd.h +++ /dev/null @@ -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> diff --git a/gcc/config/arm/xm-arm.h b/gcc/config/arm/xm-arm.h index 89f39d1..b762c90 100644 --- a/gcc/config/arm/xm-arm.h +++ b/gcc/config/arm/xm-arm.h @@ -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 diff --git a/gcc/config/i386/xm-cygwin.h b/gcc/config/i386/xm-cygwin.h index e7755bb..d0a2f62 100644 --- a/gcc/config/i386/xm-cygwin.h +++ b/gcc/config/i386/xm-cygwin.h @@ -54,8 +54,3 @@ do { \ } while (0) #define PATH_SEPARATOR ':' - -/* This is needed so that protoize will compile. */ -#ifndef POSIX -#define POSIX -#endif diff --git a/gcc/config/i386/xm-gnu.h b/gcc/config/i386/xm-gnu.h deleted file mode 100644 index 240e904..0000000 --- a/gcc/config/i386/xm-gnu.h +++ /dev/null @@ -1,4 +0,0 @@ -/* Configuration for GCC for Intel i386 running GNU as host. */ - -#include <i386/xm-i386.h> -#include <xm-gnu.h> diff --git a/gcc/config/i386/xm-openbsd.h b/gcc/config/i386/xm-openbsd.h deleted file mode 100644 index dac2de2..0000000 --- a/gcc/config/i386/xm-openbsd.h +++ /dev/null @@ -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> diff --git a/gcc/config/m68k/xm-openbsd.h b/gcc/config/m68k/xm-openbsd.h deleted file mode 100644 index b22e13c..0000000 --- a/gcc/config/m68k/xm-openbsd.h +++ /dev/null @@ -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> diff --git a/gcc/config/mips/xm-openbsd.h b/gcc/config/mips/xm-openbsd.h deleted file mode 100644 index 4787ee2..0000000 --- a/gcc/config/mips/xm-openbsd.h +++ /dev/null @@ -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> diff --git a/gcc/config/ns32k/xm-pc532-min.h b/gcc/config/ns32k/xm-pc532-min.h index 7097d7e..0537018 100644 --- a/gcc/config/ns32k/xm-pc532-min.h +++ b/gcc/config/ns32k/xm-pc532-min.h @@ -1,7 +1,3 @@ #ifndef HZ #define HZ 60 #endif - -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif diff --git a/gcc/config/sparc/xm-openbsd.h b/gcc/config/sparc/xm-openbsd.h deleted file mode 100644 index 5e066cc..0000000 --- a/gcc/config/sparc/xm-openbsd.h +++ /dev/null @@ -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> diff --git a/gcc/config/we32k/xm-we32k.h b/gcc/config/we32k/xm-we32k.h index 5377140..2ee3d85 100644 --- a/gcc/config/we32k/xm-we32k.h +++ b/gcc/config/we32k/xm-we32k.h @@ -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 diff --git a/gcc/config/xm-gnu.h b/gcc/config/xm-gnu.h deleted file mode 100644 index 67beb55..0000000 --- a/gcc/config/xm-gnu.h +++ /dev/null @@ -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. */ diff --git a/gcc/config/xm-linux.h b/gcc/config/xm-linux.h index d3aec5f..98fe078 100644 --- a/gcc/config/xm-linux.h +++ b/gcc/config/xm-linux.h @@ -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 diff --git a/gcc/config/xm-openbsd.h b/gcc/config/xm-openbsd.h deleted file mode 100644 index 27ddfc5..0000000 --- a/gcc/config/xm-openbsd.h +++ /dev/null @@ -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 diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 5dbe031..c620ab6 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -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 diff --git a/gcc/f/com.c b/gcc/f/com.c index 88baa18..99ba60e 100644 --- a/gcc/f/com.c +++ b/gcc/f/com.c @@ -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" |