+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.
# 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.
*-*-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
#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"
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"
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"
;;
alpha*-dec-osf*)
+ xm_defines=POSIX
if test x$stabs = xyes
then
tm_file="${tm_file} dbx.h"
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 ]
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"
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
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
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
;;
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"
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
;;
#ifndef __GNUC__
#define ONLY_INT_FIELDS
#endif
-
-/* OSF/1 is POSIX.1 compliant. */
-
-#define POSIX
+++ /dev/null
-/* 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>
#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
} while (0)
#define PATH_SEPARATOR ':'
-
-/* This is needed so that protoize will compile. */
-#ifndef POSIX
-#define POSIX
-#endif
+++ /dev/null
-/* Configuration for GCC for Intel i386 running GNU as host. */
-
-#include <i386/xm-i386.h>
-#include <xm-gnu.h>
+++ /dev/null
-/* 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>
+++ /dev/null
-/* 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>
+++ /dev/null
-/* 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>
#ifndef HZ
#define HZ 60
#endif
-
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 1024
-#endif
+++ /dev/null
-/* 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>
/* This describes the machine the compiler is hosted on. */
#define HOST_WORDS_BIG_ENDIAN
-
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 512
-#endif
+++ /dev/null
-/* 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. */
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
+++ /dev/null
-/* 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
+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
#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>
#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"