Commit bec06bb2 by Michael Meissner

Handle -pic-names switch.

From-SVN: r2541
parent d39985fa
...@@ -23,12 +23,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -23,12 +23,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define OSF_OS #define OSF_OS
/* Use a more friendly abort which prints internal compiler error, #undef WORD_SWITCH_TAKES_ARG
rather than just dumping core. */ #define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
#ifndef abort || !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
#define abort fancy_abort || !strcmp (STR, "imacros") || !strcmp (STR, "aux-info") \
#endif || !strcmp (STR, "pic-names"))
#define MASK_HALF_PIC 0x40000000 /* Mask for half-pic code */ #define MASK_HALF_PIC 0x40000000 /* Mask for half-pic code */
#define MASK_HALF_PIC_DEBUG 0x20000000 /* Debug flag */ #define MASK_HALF_PIC_DEBUG 0x20000000 /* Debug flag */
...@@ -74,6 +74,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -74,6 +74,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{pic-lib: -mhalf-pic} \ %{pic-lib: -mhalf-pic} \
%{pic-extern: -mhalf-pic} \ %{pic-extern: -mhalf-pic} \
%{pic-calls: -mhalf-pic} \ %{pic-calls: -mhalf-pic} \
%{pic-names*: -mhalf-pic} \
%{!pic-*: -mhalf-pic}" %{!pic-*: -mhalf-pic}"
#undef ASM_SPEC #undef ASM_SPEC
......
...@@ -26,6 +26,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -26,6 +26,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "halfpic.h" #include "halfpic.h"
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
|| !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
|| !strcmp (STR, "imacros") || !strcmp (STR, "aux-info") \
|| !strcmp (STR, "pic-names"))
#define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD" #define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD"
#define ASM_SPEC "\ #define ASM_SPEC "\
...@@ -93,6 +99,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -93,6 +99,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{pic-lib: -mhalf-pic} \ %{pic-lib: -mhalf-pic} \
%{pic-extern: -mhalf-pic} \ %{pic-extern: -mhalf-pic} \
%{pic-calls: -mhalf-pic} \ %{pic-calls: -mhalf-pic} \
%{pic-names*: -mhalf-pic} \
%{!pic-*: -mhalf-pic}" %{!pic-*: -mhalf-pic}"
/* Specify size_t, ptrdiff_t, and wchar_t types. */ /* Specify size_t, ptrdiff_t, and wchar_t types. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment