From 27f4cfdb2fdd6bfa9328dd0be59ad37138236b34 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 17 Apr 1998 14:32:23 +0000 Subject: [PATCH] Fix vxworks-ppc build failure reported by SXTHREE. * rs6000/vxppc.h (CPP_SPEC): Add support for mrelocatable*. From-SVN: r19266 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/vxppc.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb8daaba65d..d19b93ea7b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Apr 17 14:30:37 1998 Jim Wilson + + * rs6000/vxppc.h (CPP_SPEC): Add support for mrelocatable*. + Fri Apr 17 17:01:25 1998 Michael Meissner * tree.h (mark_seen_cases): Delete declaration. diff --git a/gcc/config/rs6000/vxppc.h b/gcc/config/rs6000/vxppc.h index 0dddc498325..63466e36630 100644 --- a/gcc/config/rs6000/vxppc.h +++ b/gcc/config/rs6000/vxppc.h @@ -22,9 +22,15 @@ Boston, MA 02111-1307, USA. */ #include "rs6000/sysv4.h" +/* ??? This file redefines CPP_SPEC which is wrong. It should instead define + one of the extra specs that gets included in CPP_SPEC. For instance, + CPP_OS_DEFAULT_SPEC. The mrelocatable line was copied from CPP_SYSV_SPEC. + There is probably other stuff missing. */ + #undef CPP_SPEC #define CPP_SPEC "\ %{posix: -D_POSIX_SOURCE} \ +%{mrelocatable*: -D_RELOCATABLE} \ %{!mcpu*: \ %{mpowerpc*: -D_ARCH_PPC -DCPU=PPC603} \ %{!mno-powerpc: -D_ARCH_PPC -DCPU=PPC603}} \