diff options
author | Doug Evans <dje@gnu.org> | 1995-02-18 17:20:28 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1995-02-18 17:20:28 +0000 |
commit | 9cacc18e7e4a52665e7b88b353419fd1d6259fba (patch) | |
tree | b29893e37a865edca4a21a1a9336f6a6b5b696e8 | |
parent | 44bfb268f19cc9b5bbd8e9784653433156139ffd (diff) | |
download | gcc-9cacc18e7e4a52665e7b88b353419fd1d6259fba.zip gcc-9cacc18e7e4a52665e7b88b353419fd1d6259fba.tar.gz gcc-9cacc18e7e4a52665e7b88b353419fd1d6259fba.tar.bz2 |
xm-lynx.h (HOST_BITS_PER_CHAR): Delete.
* config/xm-lynx.h (HOST_BITS_PER_CHAR): Delete.
(HOST_BITS_PER_{SHORT,INT,LONG,LONGLONG}): Likewise.
(mktemp): Provide our own, lynx's definition isn't standard.
From-SVN: r8962
-rw-r--r-- | gcc/config/xm-lynx.h | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/gcc/config/xm-lynx.h b/gcc/config/xm-lynx.h index 80acb80..744a015 100644 --- a/gcc/config/xm-lynx.h +++ b/gcc/config/xm-lynx.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for Lynx. - Copyright (C) 1993 Free Software Foundation, Inc. + Copyright (C) 1993, 1995 Free Software Foundation, Inc. This file is part of GNU CC. @@ -17,17 +17,14 @@ 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, 675 Mass Ave, Cambridge, MA 02139, USA. */ +/* This file defines machine-independent things specific to a host + running Lynx. This file should not be specified as $xm_file itself; + instead $xm_file should be CPU/xm-lynx.h, which should include this one. */ + /* #defines that need visibility everywhere. */ #define FALSE 0 #define TRUE 1 -/* This describes the machine the compiler is hosted on. */ -#define HOST_BITS_PER_CHAR 8 -#define HOST_BITS_PER_SHORT 16 -#define HOST_BITS_PER_INT 32 -#define HOST_BITS_PER_LONG 32 -#define HOST_BITS_PER_LONGLONG 64 - /* Arguments to use with `exit'. */ #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 33 @@ -35,8 +32,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Lynx has no vfork system call. */ #define vfork fork -/* target machine dependencies. - tm.h is a symbolic link to the actual target specific file. */ - -#include "tm.h" - +/* Lynx has a non-standard mktemp function. */ +/* ??? This is simpler than creating YATM: Yet Another Target Macro. */ +#define mktemp lynx_mktemp + +#define lynx_mktemp(template) \ +do { \ + int pid = getpid (); \ + char *t = template; \ + char *p; \ + p = t + strlen (t); \ + while (*--p == 'X') \ + { \ + *p = (pid % 10) + '0'; \ + pid /= 10; \ + } \ +} while (0) |