Article View: gnu.gcc.bug
Article #1296Fixes for hppa config files (gcc 2.3.1)
From: Mike Rendell
Date: Sat, 07 Nov 1992 11:26
Date: Sat, 07 Nov 1992 11:26
88 lines
2804 bytes
2804 bytes
Environment: hp720 running HPUX 8.07, gcc 2.3.1
The definition of CPP_SPEC in config/pa.h assumes that TARGET_DEFAULT
has been defined, when, in fact, it is not defined until later.
This causes some snake preprocessor symbols not to be defined.
The following diffs fix the problem by using one CPP_SPEC in
config/pa.h and overriding it in config/pa1.h, config/pa1-hpux.h
and config/pa1-ghpux.h.
*** config/pa.h.orig Tue Oct 27 15:08:38 1992
--- config/pa.h Wed Nov 4 13:26:45 1992
***************
*** 31,43 ****
#define DBX_DEBUGGING_INFO
#define DEFAULT_GDB_EXTENSIONS 0
- #if (TARGET_DEFAULT & 1) == 0
- #define CPP_SPEC "%{msnake:-D__hp9000s700 -D_PA_RISC1_1}\
- %{mpa-risc-1-1:-D__hp9000s700 -D_PA_RISC1_1}"
- #else
- #define CPP_SPEC "%{!mpa-risc-1-0:-D__hp9000s700 -D_PA_RISC1_1}"
- #endif
-
/* Defines for a K&R CC */
#ifdef OLD_CC
--- 31,36 ----
***************
*** 46,51 ****
--- 39,46 ----
#define CC1_SPEC "%{!gnu:-traditional -fwritable-strings -fno-defer-pop} \
%{pg:} %{p:}"
#else
+ #define CPP_SPEC "%{msnake:-D__hp9000s700 -D_PA_RISC1_1}\
+ %{mpa-risc-1-1:-D__hp9000s700 -D_PA_RISC1_1}"
#define CC1_SPEC "%{pg:} %{p:}"
#endif
*** config/pa1-ghpux.h.orig Wed Oct 14 12:07:34 1992
--- config/pa1-ghpux.h Wed Nov 4 13:25:08 1992
***************
*** 25,30 ****
--- 25,33 ----
#include "pa-ghpux.h"
+ #undef CPP_SPEC
+ #define CPP_SPEC "%{!mnosnake:%{!mpa-risc-1-0:-D__hp9000s700 -D_PA_RISC1_1}}"
+
#undef TARGET_DEFAULT
#ifdef hpux8
#define TARGET_DEFAULT 9
*** config/pa1-hpux.h.orig Wed Oct 14 12:07:47 1992
--- config/pa1-hpux.h Wed Nov 4 13:25:29 1992
***************
*** 25,30 ****
--- 25,33 ----
#include "pa-hpux.h"
+ #undef CPP_SPEC
+ #define CPP_SPEC "%{!mnosnake:%{!mpa-risc-1-0:-D__hp9000s700 -D_PA_RISC1_1}}"
+
#undef TARGET_DEFAULT
#ifdef hpux8
#define TARGET_DEFAULT 9
*** config/pa1.h.orig Tue Jul 28 00:17:15 1992
--- config/pa1.h Wed Nov 4 13:24:09 1992
***************
*** 23,27 ****
--- 23,30 ----
#include "pa.h"
+ #undef CPP_SPEC
+ #define CPP_SPEC "%{!mnosnake:%{!mpa-risc-1-0:-D__hp9000s700 -D_PA_RISC1_1}}"
+
#undef TARGET_DEFAULT
#define TARGET_DEFAULT 1
--
Michael Rendell - Dept. of Comp. Sci., Memorial University of Newfoundland
Technical Details
Message-ID:
<9211071844.AA14865@mercury.cs.mun.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mercury.cs.mun.ca!michaelShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mercury.cs.mun.ca!michael From: michael@mercury.cs.mun.ca (Mike Rendell) Subject: Fixes for hppa config files (gcc 2.3.1) Message-ID: <9211071844.AA14865@mercury.cs.mun.ca> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sat, 7 Nov 1992 11:26:35 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 89