Article View: gnu.gcc.bug
Article #2349patch for hp9k320 CPP spec
From: Glenn Engel
Date: Wed, 22 Feb 1989 16:55
Date: Wed, 22 Feb 1989 16:55
108 lines
3514 bytes
3514 bytes
The following patch is for gcc-1.33 tm-hp9k320.h configuration file.
The patches properly handle the -mc68xxx options by setting the appropriate
values for cpp. Without these patches, cpp always defines mc68000 even
if -m68020 is specified to gcc.
Thanks for including these in the next release,
--
| Glenn R. Engel
| Hewlett-Packard
| (206) 335-2066
| glenne%hplsla@hplabs.hp.com
*** tm-hp9k320.h Tue Feb 14 16:03:46 1989
--- tm-hp9k320.h.orig Sun Jan 1 13:08:26 1989
***************
*** 49,55
#define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__} -D__HPUX_ASM__"
#define ASM_SPEC "%{m68000:+X}"
#else
- #define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__}"
/* -m68000 requires special flags to gas */
#define ASM_SPEC \
--- 49,54 -----
#define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__} -D__HPUX_ASM__"
#define ASM_SPEC "%{m68000:+X}"
#else
#if TARGET_DEFAULT & 02
***************
*** 51,57
#else
#define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__}"
! /* -m68000 requires special flags to gas */
#define ASM_SPEC \
"%{m68000:-mc68000}%{mc68000:-mc68000}%{!mc68000:%{!m68000:-mc68020}}"
--- 50,75 -----
#define ASM_SPEC "%{m68000:+X}"
#else
!
! #if TARGET_DEFAULT & 02
!
! /* -m68881 is the default */
! #define CPP_SPEC \
! "%{!msoft-float:-D__HAVE_68881__ }\
! %{!ansi:%{m68000:-Dmc68000}%{mc68000:-Dmc68000}%{!mc68000:%{!m68000:-Dmc68020}}}"
!
! #else
!
! /* -msoft-float is the default */
! #define CPP_SPEC \
! "%{m68881:-D__HAVE_68881__ }\
! %{!ansi:%{m68000:-Dmc68000}%{mc68000:-Dmc68000}%{!mc68000:%{!m68000:-Dmc68020}}}"
!
! #endif
!
!
! /* -m68000 requires special flags to the assembler. */
!
#define ASM_SPEC \
"%{m68000:-mc68000}%{mc68000:-mc68000}%{!mc68000:%{!m68000:-mc68020}}"
***************
*** 55,60
#define ASM_SPEC \
"%{m68000:-mc68000}%{mc68000:-mc68000}%{!mc68000:%{!m68000:-mc68020}}"
/* special directory for gnu libs on hp-ux system */
#ifndef STANDARD_STARTFILE_PREFIX
#define STANDARD_STARTFILE_PREFIX "/usr/local/lib/gnu/"
--- 73,81 -----
#define ASM_SPEC \
"%{m68000:-mc68000}%{mc68000:-mc68000}%{!mc68000:%{!m68000:-mc68020}}"
+ /* Names to predefine in the preprocessor for this target machine. */
+
+
/* special directory for gnu libs on hp-ux system */
#ifndef STANDARD_STARTFILE_PREFIX
#define STANDARD_STARTFILE_PREFIX "/usr/local/lib/gnu/"
***************
*** 65,71
/* Names to predefine in the preprocessor for this target machine
(for non-strict-ANSI programs only). */
! #define CPP_PREDEFINES "-Dhp9000s200 -Dhp9000s300 -DPWB -Dmc68k -Dmc68000 -Dhpux -Dunix"
/* Every structure or union's size must be a multiple of 2 bytes. */
--- 86,92 -----
/* Names to predefine in the preprocessor for this target machine
(for non-strict-ANSI programs only). */
! #define CPP_PREDEFINES "-Dhp9000s200 -Dhp9000s300 -DPWB -Dmc68k -Dhpux -Dunix"
/* Every structure or union's size must be a multiple of 2 bytes. */
Technical Details
Message-ID:
<8902221655.AA24330@labgre.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HPLABS.HP.COM!glenne%hplslaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HPLABS.HP.COM!glenne%hplsla From: glenne%hplsla@HPLABS.HP.COM (Glenn Engel) Newsgroups: gnu.gcc.bug Subject: patch for hp9k320 CPP spec Message-ID: <8902221655.AA24330@labgre.HP.COM> Date: 22 Feb 89 16:55:50 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 108