🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Mike Rendell Sat, 07 Nov 1992 11:26
Fixes for hppa config files (gcc 2.3.1)
#1296
Author: Mike Rendell
Date: Sat, 07 Nov 1992 11:26
88 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads