Commit 3723cad9 by Jeff Law

configure.in (hppa1.1-*-*, hppa2*-*): Use symbolic value rather than numeric…

configure.in (hppa1.1-*-*, hppa2*-*): Use symbolic value rather than numeric value for target_cpu_default..

        * configure.in (hppa1.1-*-*, hppa2*-*): Use symbolic value rather
        than numeric value for target_cpu_default..
        * configure: Rebuilt.
        * pa-gas.h (TARGET_DEFAULT): Use symbolic values rather than numeric
        values.
        * pa-hpux.h (LINK_SPEC): Likewise.
        * pa-hpux10.h (LINK_SPEC): Likewise.
        * pa-hpux9.h (LINK_SPEC): Likewise.
        * pa-osf.h: (LINK_SPEC): Likewise.
        * pa-pro.h (TARGET_DEFAULT): Likewise.
        * pa1.h (TARGET_DEFAULT): Likewise.
        * pa.h (MASK_*): New defines.
        (TARGET_*): Use symbolic values rather than numeric values.
        (TARGET_SWITCHES): Likewise.
        (TARGET_DEFAULT): likewise.
        (CPP_SPEC): likewise.

From-SVN: r25011
parent 121315ea
Wed Feb 3 21:56:27 1999 Jeffrey A Law (law@cygnus.com)
* configure.in (hppa1.1-*-*, hppa2*-*): Use symbolic value rather
than numeric value for target_cpu_default..
* configure: Rebuilt.
Wed Feb 3 21:55:56 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
* pa-gas.h (TARGET_DEFAULT): Use symbolic values rather than numeric
values.
* pa-hpux.h (LINK_SPEC): Likewise.
* pa-hpux10.h (LINK_SPEC): Likewise.
* pa-hpux9.h (LINK_SPEC): Likewise.
* pa-osf.h: (LINK_SPEC): Likewise.
* pa-pro.h (TARGET_DEFAULT): Likewise.
* pa1.h (TARGET_DEFAULT): Likewise.
* pa.h (MASK_*): New defines.
(TARGET_*): Use symbolic values rather than numeric values.
(TARGET_SWITCHES): Likewise.
(TARGET_DEFAULT): likewise.
(CPP_SPEC): likewise.
Wed Feb 3 21:07:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
* reload1.c (reload_cse_regs_1): Undo Jan 16 patch.
......
......@@ -19,4 +19,4 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#undef TARGET_DEFAULT
#define TARGET_DEFAULT 0x88 /* TARGET_GAS + TARGET_JUMP_IN_DELAY */
#define TARGET_DEFAULT (MASK_GAS | MASK_JUMP_IN_DELAY)
......@@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa)"
#undef LINK_SPEC
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1)
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_SNAKE)
#define LINK_SPEC \
"%{!mpa-risc-1-0:%{!shared:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
#else
......
......@@ -22,7 +22,7 @@ Boston, MA 02111-1307, USA. */
/* We can debug dynamically linked executables on hpux9; we also want
dereferencing of a NULL pointer to cause a SEGV. */
#undef LINK_SPEC
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1)
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_SNAKE)
#define LINK_SPEC \
"%{!mpa-risc-1-0:%{!shared:-L/lib/pa1.1 -L/usr/lib/pa1.1 }} -z %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-b}"
#else
......
......@@ -22,7 +22,7 @@ Boston, MA 02111-1307, USA. */
/* We can debug dynamically linked executables on hpux9; we also want
dereferencing of a NULL pointer to cause a SEGV. */
#undef LINK_SPEC
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1)
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_SNAKE)
#define LINK_SPEC \
"%{!mpa-risc-1-0:%{!shared:-L/lib/pa1.1 -L/usr/lib/pa1.1 }} -z %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-b}"
#else
......
......@@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#undef CPP_PREDEFINES
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1)
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_SNAKE)
#define CPP_PREDEFINES "-Dhppa -Dunix -Dhp9000 -Dspectrum -DREVARGV -Dhp700 -DHP700 -Dparisc -D__pa_risc -DPARISC -DBYTE_MSF -DBIT_MSF -Asystem(unix) -Asystem(mach) -Acpu(hppa) -Amachine(hppa)"
#else
#define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -Dunix -Dhp9000 -Dhp800 -Dspectrum -DREVARGV -Dparisc -D__pa_risc -DPARISC -DBYTE_MSF -DBIT_MSF -Asystem(unix) -Asystem(mach) -Acpu(hppa) -Amachine(hppa)"
......
......@@ -75,5 +75,5 @@ dtors_section () \
fputs ("\n", FILE); \
} while (0)
/* JUMP_IN_DELAY + PORTABLE_RUNTIME + GAS + NO_SPACE_REGS + SOFT_FLOAT */
#define TARGET_DEFAULT (4 + 8 + 64 + 128 + 256)
#define TARGET_DEFAULT (MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | \
MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT )
......@@ -62,14 +62,16 @@ extern int target_flags;
/* compile code for HP-PA 1.1 ("Snake") */
#define TARGET_SNAKE (target_flags & 1)
#define MASK_SNAKE 1
#define TARGET_SNAKE (target_flags & MASK_SNAKE)
/* Disable all FP registers (they all become fixed). This may be necessary
for compiling kernels which perform lazy context switching of FP regs.
Note if you use this option and try to perform floating point operations
the compiler will abort! */
#define TARGET_DISABLE_FPREGS (target_flags & 2)
#define MASK_DISABLE_FPREGS 2
#define TARGET_DISABLE_FPREGS (target_flags & MASK_DISABLE_FPREGS)
/* Generate code which assumes that calls through function pointers will
never cross a space boundary. Such assumptions are generally safe for
......@@ -78,18 +80,21 @@ extern int target_flags;
or uses nested functions!
This is also used to trigger aggressive unscaled index addressing. */
#define TARGET_NO_SPACE_REGS (target_flags & 4)
#define MASK_NO_SPACE_REGS 4
#define TARGET_NO_SPACE_REGS (target_flags & MASK_NO_SPACE_REGS)
/* Allow unconditional jumps in the delay slots of call instructions. */
#define TARGET_JUMP_IN_DELAY (target_flags & 8)
#define MASK_JUMP_IN_DELAY 8
#define TARGET_JUMP_IN_DELAY (target_flags & MASK_JUMP_IN_DELAY)
/* Optimize for space. Currently this only turns on out of line
prologues and epilogues. */
#define TARGET_SPACE (target_flags & 16)
#define MASK_SPACE 16
#define TARGET_SPACE (target_flags & MASK_SPACE)
/* Disable indexed addressing modes. */
#define TARGET_DISABLE_INDEXING (target_flags & 32)
#define MASK_DISABLE_INDEXING 32
#define TARGET_DISABLE_INDEXING (target_flags & MASK_DISABLE_INDEXING)
/* Emit code which follows the new portable runtime calling conventions
HP wants everyone to use for ELF objects. If at all possible you want
......@@ -97,29 +102,32 @@ extern int target_flags;
Note TARGET_PORTABLE_RUNTIME also forces all calls to use inline
long-call stubs which is quite expensive. */
#define TARGET_PORTABLE_RUNTIME (target_flags & 64)
#define MASK_PORTABLE_RUNTIME 64
#define TARGET_PORTABLE_RUNTIME (target_flags & MASK_PORTABLE_RUNTIME)
/* Emit directives only understood by GAS. This allows parameter
relocations to work for static functions. There is no way
to make them work the HP assembler at this time. */
#define TARGET_GAS (target_flags & 128)
#define MASK_GAS 128
#define TARGET_GAS (target_flags & MASK_GAS)
/* Emit code for processors which do not have an FPU. */
#define TARGET_SOFT_FLOAT (target_flags & 256)
#define MASK_SOFT_FLOAT 256
#define TARGET_SOFT_FLOAT (target_flags & MASK_SOFT_FLOAT)
/* Use 3-insn load/store sequences for access to large data segments
in shared libraries on hpux10. */
#define TARGET_LONG_LOAD_STORE (target_flags & 512)
#define MASK_LONG_LOAD_STORE 512
#define TARGET_LONG_LOAD_STORE (target_flags & MASK_LONG_LOAD_STORE)
/* Use a faster sequence for indirect calls. */
#define TARGET_FAST_INDIRECT_CALLS (target_flags & 1024)
#define MASK_FAST_INDIRECT_CALLS 1024
#define TARGET_FAST_INDIRECT_CALLS (target_flags & MASK_FAST_INDIRECT_CALLS)
/* Generate code with big switch statements to avoid out of range branches
occurring within the switch table. */
#define TARGET_BIG_SWITCH (target_flags & 2048)
#define MASK_BIG_SWITCH 2048
#define TARGET_BIG_SWITCH (target_flags & MASK_BIG_SWITCH)
/* Macro to define tables used to set the flags.
This is a list in braces of pairs in braces,
......@@ -128,37 +136,37 @@ extern int target_flags;
An empty string NAME is used to identify the default VALUE. */
#define TARGET_SWITCHES \
{{"snake", 1}, \
{"nosnake", -1}, \
{"pa-risc-1-0", -1}, \
{"pa-risc-1-1", 1}, \
{"disable-fpregs", 2}, \
{"no-disable-fpregs", -2}, \
{"no-space-regs", 4}, \
{"space-regs", -4}, \
{"jump-in-delay", 8}, \
{"no-jump-in-delay", -8}, \
{"space", 16}, \
{"no-space", -16}, \
{"disable-indexing", 32}, \
{"no-disable-indexing", -32},\
{"portable-runtime", 64}, \
{"no-portable-runtime", -64},\
{"gas", 128}, \
{"no-gas", -128}, \
{"soft-float", 256}, \
{"no-soft-float", -256}, \
{"long-load-store", 512}, \
{"no-long-load-store", -512},\
{"fast-indirect-calls", 1024},\
{"no-fast-indirect-calls", -1024},\
{"big-switch", 2048}, \
{"no-big-switch", -2048}, \
{{"snake", MASK_SNAKE}, \
{"nosnake", -MASK_SNAKE}, \
{"pa-risc-1-0", -MASK_SNAKE}, \
{"pa-risc-1-1", MASK_SNAKE}, \
{"disable-fpregs", MASK_DISABLE_FPREGS}, \
{"no-disable-fpregs", -MASK_DISABLE_FPREGS}, \
{"no-space-regs", MASK_NO_SPACE_REGS}, \
{"space-regs", -MASK_NO_SPACE_REGS}, \
{"jump-in-delay", MASK_JUMP_IN_DELAY}, \
{"no-jump-in-delay", -MASK_JUMP_IN_DELAY}, \
{"space", MASK_SPACE}, \
{"no-space", -MASK_SPACE}, \
{"disable-indexing", MASK_DISABLE_INDEXING}, \
{"no-disable-indexing", -MASK_DISABLE_INDEXING},\
{"portable-runtime", MASK_PORTABLE_RUNTIME}, \
{"no-portable-runtime", -MASK_PORTABLE_RUNTIME},\
{"gas", MASK_GAS}, \
{"no-gas", -MASK_GAS}, \
{"soft-float", MASK_SOFT_FLOAT}, \
{"no-soft-float", -MASK_SOFT_FLOAT}, \
{"long-load-store", MASK_LONG_LOAD_STORE}, \
{"no-long-load-store", -MASK_LONG_LOAD_STORE},\
{"fast-indirect-calls", MASK_FAST_INDIRECT_CALLS},\
{"no-fast-indirect-calls", -MASK_FAST_INDIRECT_CALLS},\
{"big-switch", MASK_BIG_SWITCH}, \
{"no-big-switch", -MASK_BIG_SWITCH}, \
{"linker-opt", 0}, \
{ "", TARGET_DEFAULT | TARGET_CPU_DEFAULT}}
#ifndef TARGET_DEFAULT
#define TARGET_DEFAULT 0x88 /* TARGET_GAS + TARGET_JUMP_IN_DELAY */
#define TARGET_DEFAULT (MASK_GAS | MASK_JUMP_IN_DELAY)
#endif
#ifndef TARGET_CPU_DEFAULT
......@@ -238,7 +246,7 @@ extern int target_flags;
fprintf (FILE, \
"\t.stabs \"\",%d,0,0,L$text_end0000\nL$text_end0000:\n", N_SO)
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1) == 0
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_SNAKE) == 0
#define CPP_SPEC "%{msnake:-D__hp9000s700 -D_PA_RISC1_1}\
%{mpa-risc-1-1:-D__hp9000s700 -D_PA_RISC1_1}\
%{!ansi: -D_HPUX_SOURCE -D_HIUX_SOURCE}\
......
......@@ -19,8 +19,7 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define TARGET_DEFAULT 0x89 /* TARGET_SNAKE + TARGET_GAS
+ TARGET_JUMP_IN_DELAY */
#define TARGET_DEFAULT (MASK_GAS | MASK_SNAKE | MASK_JUMP_IN_DELAY)
/* This is the same as pa.h, except that we generate snake code by
default. */
......
......@@ -786,7 +786,7 @@ changequote([,])dnl
tmake_file=pa/t-pro
;;
hppa1.1-*-osf*)
target_cpu_default=1
target_cpu_default="MASK_SNAKE"
tm_file="${tm_file} pa/pa-osf.h"
use_collect2=yes
fixincludes=Makefile.in
......@@ -802,7 +802,7 @@ changequote([,])dnl
fixincludes=Makefile.in
;;
hppa1.1-*-bsd*)
target_cpu_default=1
target_cpu_default="MASK_SNAKE"
use_collect2=yes
fixincludes=Makefile.in
;;
......@@ -839,7 +839,7 @@ changequote([,])dnl
changequote(,)dnl
hppa1.1-*-hpux8.0[0-2]*)
changequote([,])dnl
target_cpu_default=1
target_cpu_default="MASK_SNAKE"
tm_file="${tm_file} pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -853,7 +853,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.1-*-hpux8*)
target_cpu_default=1
target_cpu_default="MASK_SNAKE"
tm_file="${tm_file} pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -876,7 +876,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
target_cpu_default=1
target_cpu_default="MASK_SNAKE"
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -915,7 +915,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.1-*-hpux* | hppa2*-*-hpux*)
target_cpu_default=1
target_cpu_default="MASK_SNAKE"
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -938,7 +938,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.1-*-hiux* | hppa2*-*-hiux*)
target_cpu_default=1
target_cpu_default="MASK_SNAKE"
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -961,7 +961,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa*-*-lites*)
target_cpu_default=1
target_cpu_default="MASK_SNAKE"
use_collect2=yes
fixincludes=Makefile.in
;;
......
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