From b19a539e02fb8cea5f0f702715b1981ad4b7649d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Thu, 8 Mar 2001 18:53:26 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 18 +++++++++++ gcc/config.gcc | 17 +++++++---- gcc/config/alpha/xm-alpha.h | 4 --- gcc/config/alpha/xm-openbsd.h | 22 -------------- gcc/config/arm/xm-arm.h | 6 ---- gcc/config/i386/xm-cygwin.h | 5 ---- gcc/config/i386/xm-gnu.h | 4 --- gcc/config/i386/xm-openbsd.h | 22 -------------- gcc/config/m68k/xm-openbsd.h | 22 -------------- gcc/config/mips/xm-openbsd.h | 22 -------------- gcc/config/ns32k/xm-pc532-min.h | 4 --- gcc/config/sparc/xm-openbsd.h | 22 -------------- gcc/config/we32k/xm-we32k.h | 4 --- gcc/config/xm-gnu.h | 26 ---------------- gcc/config/xm-linux.h | 3 -- gcc/config/xm-openbsd.h | 29 ------------------ gcc/f/ChangeLog | 4 +++ gcc/f/com.c | 53 --------------------------------- 18 files changed, 33 insertions(+), 254 deletions(-) delete mode 100644 gcc/config/alpha/xm-openbsd.h delete mode 100644 gcc/config/i386/xm-gnu.h delete mode 100644 gcc/config/i386/xm-openbsd.h delete mode 100644 gcc/config/m68k/xm-openbsd.h delete mode 100644 gcc/config/mips/xm-openbsd.h delete mode 100644 gcc/config/sparc/xm-openbsd.h delete mode 100644 gcc/config/xm-gnu.h delete mode 100644 gcc/config/xm-openbsd.h diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8bb57772b8..95a676f7925 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,21 @@ +2001-03-08 Kaveh R. Ghazi + + * 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 * config/i386/i386.md (clrstrsi): Call ix86_set_move_mem_attrs. diff --git a/gcc/config.gcc b/gcc/config.gcc index 5c364c8d3f3..d1d0cf05284 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 ec4680d546c..1d28d17bcb4 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 e77b8be0472..00000000000 --- 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 -#include diff --git a/gcc/config/arm/xm-arm.h b/gcc/config/arm/xm-arm.h index 89f39d1f1a9..b762c90045f 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 e7755bb54a4..d0a2f6268ee 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 240e9041178..00000000000 --- a/gcc/config/i386/xm-gnu.h +++ /dev/null @@ -1,4 +0,0 @@ -/* Configuration for GCC for Intel i386 running GNU as host. */ - -#include -#include diff --git a/gcc/config/i386/xm-openbsd.h b/gcc/config/i386/xm-openbsd.h deleted file mode 100644 index dac2de2de76..00000000000 --- 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 -#include diff --git a/gcc/config/m68k/xm-openbsd.h b/gcc/config/m68k/xm-openbsd.h deleted file mode 100644 index b22e13c1283..00000000000 --- 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 -#include diff --git a/gcc/config/mips/xm-openbsd.h b/gcc/config/mips/xm-openbsd.h deleted file mode 100644 index 4787ee29f81..00000000000 --- 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 -#include diff --git a/gcc/config/ns32k/xm-pc532-min.h b/gcc/config/ns32k/xm-pc532-min.h index 7097d7e127a..0537018c88f 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 5e066cc252b..00000000000 --- 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 -#include diff --git a/gcc/config/we32k/xm-we32k.h b/gcc/config/we32k/xm-we32k.h index 5377140bade..2ee3d8553bd 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 67beb556e68..00000000000 --- 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 d3aec5f8b79..98fe0786813 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 27ddfc58d6d..00000000000 --- 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 5dbe031c855..c620ab6fa6e 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +Thu Mar 8 13:27:47 2001 Kaveh R. Ghazi + + * com.c: Don't rely on the POSIX macro to define autoconf stuff. + 2001-03-07 Brad Lucier * g77.texi: Document new options -funsafe-math-optimizations diff --git a/gcc/f/com.c b/gcc/f/com.c index 88baa180eb3..99ba60efebf 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 -#endif - -#if HAVE_FCNTL_H -# include -#endif - -/* This defines "errno" properly for VMS, and gives us EACCES. */ -#include - -#if HAVE_STDLIB_H -# include -#else -char *getenv (); -#endif - -#if HAVE_UNISTD_H -# include -#endif - /* VMS-specific definitions */ #ifdef VMS #include @@ -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" -- 2.30.2