From 52ef876432b6b72bcd1c31b634b955a86abd04f0 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Sat, 21 Nov 1992 23:17:25 +0000 Subject: [PATCH] entered into RCS From-SVN: r2769 --- gcc/config/pa/pa-hpux7.h | 50 +++++++++++++++++++++++++++++++ gcc/config/pa/xm-pahpux.h | 63 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 gcc/config/pa/pa-hpux7.h create mode 100644 gcc/config/pa/xm-pahpux.h diff --git a/gcc/config/pa/pa-hpux7.h b/gcc/config/pa/pa-hpux7.h new file mode 100644 index 00000000000..be913ebda67 --- /dev/null +++ b/gcc/config/pa/pa-hpux7.h @@ -0,0 +1,50 @@ +/* Definitions of target machine for GNU compiler, for HP-UX. + Copyright (C) 1991 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, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#ifndef TARGET_DEFAULT +#define TARGET_DEFAULT 0 +#endif + +#include "pa.h" + +/* Make GCC agree with types.h. */ +#undef SIZE_TYPE +#undef PTRDIFF_TYPE +#undef WCHAR_TYPE +#undef WCHAR_TYPE_SIZE + +#define SIZE_TYPE "unsigned int" +#define PTRDIFF_TYPE "int" +#define WCHAR_TYPE "unsigned int" +#define WCHAR_TYPE_SIZE 32 + +/* HPUX doesn't use any debugging format that GCC knows about. */ +#undef DBX_DEBUGGING_INFO + +/* Like the default, except no -lg. */ +#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" + +/* Control how gcc finds libgcc.a and how it passes -L options. */ +#define LINK_LIBGCC_SPECIAL +#define RELATIVE_PREFIX_NOT_LINKDIR + +#define HAVE_ATEXIT + +#undef CPP_PREDEFINES +#define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE" diff --git a/gcc/config/pa/xm-pahpux.h b/gcc/config/pa/xm-pahpux.h new file mode 100644 index 00000000000..87aa6973745 --- /dev/null +++ b/gcc/config/pa/xm-pahpux.h @@ -0,0 +1,63 @@ +/* Configuration for GNU C-compiler for PA-RISC. + Copyright (C) 1988 Free Software Foundation, Inc. + Contributed by Michael Tiemann (tiemann@cygnus.com). + +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, 675 Mass Ave, Cambridge, MA 02139, USA. */ + + +/* HP-UX is a flavor of System V */ +#define USG + +/* Use System V memory functions. */ +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) + +#define rindex strrchr +#define index strchr + +/* #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 + +/* Doubles are stored in memory with the high order word first. This + matters when cross-compiling. */ +#define HOST_WORDS_BIG_ENDIAN 1 + +/* Place any machine-dependent include files here, in case we + are bootstrapping. */ + +/* target machine dependencies. + tm.h is a symbolic link to the actual target specific file. */ +#include "tm.h" + +/* Arguments to use with `exit'. */ +#define SUCCESS_EXIT_CODE 0 +#define FATAL_EXIT_CODE 33 + +/* Don't try to use sys_siglist. */ +#define NO_SYS_SIGLIST + +/* HP's compiler has problems with enum bitfields. */ +#define ONLY_INT_FIELDS -- 2.30.2