summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-05 15:54:49 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-05 15:54:49 +0000
commit0119c7f2645e23ea7bc941636e7df39a06494a98 (patch)
tree2eb4c36a112e71b037e8e4b032f41972ed7978be /gcc/config
parent64685a89ef451c911b6c451057863487061ec0bc (diff)
downloadgcc-0119c7f2645e23ea7bc941636e7df39a06494a98.tar.gz
* pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
* config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of pa/t-pa. * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of pa/t-pa. * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of pa/x-ada. * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules. * pa/t-pa64: Delete quadlib.c rule. * pa/x-ada: Revert last change. * pa/t-pa: Revert last change. Delete quadlib.c rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110615 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/pa/t-pa14
-rw-r--r--gcc/config/pa/t-pa-hpux8
-rw-r--r--gcc/config/pa/t-pa-hpux102
-rw-r--r--gcc/config/pa/t-pa-hpux112
-rw-r--r--gcc/config/pa/t-pa648
-rw-r--r--gcc/config/pa/x-ada8
-rw-r--r--gcc/config/pa/x-ada-hpux104
7 files changed, 20 insertions, 26 deletions
diff --git a/gcc/config/pa/t-pa b/gcc/config/pa/t-pa
index 5b1a0f911b3..cad060da066 100644
--- a/gcc/config/pa/t-pa
+++ b/gcc/config/pa/t-pa
@@ -1,15 +1,7 @@
-LIB2FUNCS_EXTRA=lib2funcs.asm quadlib.c
+TARGET_LIBGCC2_CFLAGS = -fPIC
+
+LIB2FUNCS_EXTRA=lib2funcs.asm
lib2funcs.asm: $(srcdir)/config/pa/lib2funcs.asm
rm -f lib2funcs.asm
cp $(srcdir)/config/pa/lib2funcs.asm .
-
-quadlib.c: $(srcdir)/config/pa/quadlib.c
- rm -f quadlib.c
- cp $(srcdir)/config/pa/quadlib.c .
-
-ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
- TARGET_LIBGCC2_CFLAGS = -fPIC -D_T_HPUX10
-else
- TARGET_LIBGCC2_CFLAGS = -fPIC
-endif
diff --git a/gcc/config/pa/t-pa-hpux b/gcc/config/pa/t-pa-hpux
index 11c28466e76..1c62f4ee237 100644
--- a/gcc/config/pa/t-pa-hpux
+++ b/gcc/config/pa/t-pa-hpux
@@ -1,2 +1,10 @@
# So putenv and other functions get seen by fixproto.
FIXPROTO_DEFINES = -D_HPUX_SOURCE -D_HIUX_SOURCE
+
+lib2funcs.asm: $(srcdir)/config/pa/lib2funcs.asm
+ rm -f lib2funcs.asm
+ cp $(srcdir)/config/pa/lib2funcs.asm .
+
+quadlib.c: $(srcdir)/config/pa/quadlib.c
+ rm -f quadlib.c
+ cp $(srcdir)/config/pa/quadlib.c .
diff --git a/gcc/config/pa/t-pa-hpux10 b/gcc/config/pa/t-pa-hpux10
new file mode 100644
index 00000000000..105ef19f365
--- /dev/null
+++ b/gcc/config/pa/t-pa-hpux10
@@ -0,0 +1,2 @@
+TARGET_LIBGCC2_CFLAGS = -fPIC -D_T_HPUX10
+LIB2FUNCS_EXTRA=lib2funcs.asm quadlib.c
diff --git a/gcc/config/pa/t-pa-hpux11 b/gcc/config/pa/t-pa-hpux11
new file mode 100644
index 00000000000..f36a75cb9c5
--- /dev/null
+++ b/gcc/config/pa/t-pa-hpux11
@@ -0,0 +1,2 @@
+TARGET_LIBGCC2_CFLAGS = -fPIC
+LIB2FUNCS_EXTRA=lib2funcs.asm quadlib.c
diff --git a/gcc/config/pa/t-pa64 b/gcc/config/pa/t-pa64
index e80406009a6..b302cffca3f 100644
--- a/gcc/config/pa/t-pa64
+++ b/gcc/config/pa/t-pa64
@@ -1,10 +1,2 @@
TARGET_LIBGCC2_CFLAGS = -fPIC -Dpa64=1 -DELF=1 -mlong-calls
-
LIB2FUNCS_EXTRA=quadlib.c
-
-# We'll need this once .init sections are enabled on PA64.
-#EXTRA_PARTS = crtbegin.o crtend.o
-
-quadlib.c: $(srcdir)/config/pa/quadlib.c
- rm -f quadlib.c
- cp $(srcdir)/config/pa/quadlib.c .
diff --git a/gcc/config/pa/x-ada b/gcc/config/pa/x-ada
index 1e1ba698ec0..b60b3d7925b 100644
--- a/gcc/config/pa/x-ada
+++ b/gcc/config/pa/x-ada
@@ -1,10 +1,4 @@
# The ada virtual array implementation requires that indexing be disabled on
# hosts such as hpux that use a segmented memory architecture. Both the c
# and ada files need to be compiled with this option for correct operation.
-# On HP-UX 10 hosts, we define _X_HPUX10 to cause __main () to be called at
-# startup.
-ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
- X_ADA_CFLAGS = -mdisable-indexing -D_X_HPUX10
-else
- X_ADA_CFLAGS = -mdisable-indexing
-endif
+X_ADA_CFLAGS=-mdisable-indexing
diff --git a/gcc/config/pa/x-ada-hpux10 b/gcc/config/pa/x-ada-hpux10
new file mode 100644
index 00000000000..d2b70753088
--- /dev/null
+++ b/gcc/config/pa/x-ada-hpux10
@@ -0,0 +1,4 @@
+# The ada virtual array implementation requires that indexing be disabled on
+# hosts such as hpux that use a segmented memory architecture. Both the c
+# and ada files need to be compiled with this option for correct operation.
+X_ADA_CFLAGS = -mdisable-indexing -D_X_HPUX10