+2005-10-07 Steve Ellcey <sje@cup.hp.com>
+
+ * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
+ host_xmake_file.
+ (hppa*-*-linux*): Ditto.
+ (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
+ * config/host-hpux.c: New.
+ * config/x-hpux: New.
+ * config/pa/x-hpux: Remove.
+ * config/pa/x-linux: Remove.
+ * config/pa/pa-host.c: Remove.
+
2005-10-07 Jeff Law <law@redhat.com>
* tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
hppa1.0-*-hpux10* | hppa1.1-*-hpux10* | hppa2*-*-hpux10* | \
hppa1.0-*-hpux11* | hppa1.1-*-hpux11* | hppa2*-*-hpux11* | \
hppa*64*-*-hpux11*)
- out_host_hook_obj=pa-host.o
- host_xmake_file=pa/x-hpux
+ out_host_hook_obj=host-hpux.o
+ host_xmake_file="pa/x-ada x-hpux"
;;
hppa*-*-linux*)
- out_host_hook_obj=pa-host.o
- host_xmake_file=pa/x-linux
+ out_host_hook_obj=host-hpux.o
+ host_xmake_file=x-hpux
;;
i370-*-opened* | i370-*-mvs* ) # IBM 360/370/390 Architecture
host_xm_defines='FATAL_EXIT_CODE=12'
;;
ia64-*-hpux*)
use_long_long_for_widest_fast_int=yes
+ out_host_hook_obj=host-hpux.o
+ host_xmake_file=x-hpux
;;
esac
-/* PA host-specific hook definitions.
- Copyright (C) 2004 Free Software Foundation, Inc.
+/* HP-UX host-specific hook definitions.
+ Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This file is part of GCC.
#define MAP_FAILED (void *)-1L
#endif
-static void *pa_gt_pch_get_address (size_t, int);
-static int pa_gt_pch_use_address (void *, size_t, int, size_t);
+static void *hpux_gt_pch_get_address (size_t, int);
+static int hpux_gt_pch_use_address (void *, size_t, int, size_t);
#undef HOST_HOOKS_GT_PCH_GET_ADDRESS
-#define HOST_HOOKS_GT_PCH_GET_ADDRESS pa_gt_pch_get_address
+#define HOST_HOOKS_GT_PCH_GET_ADDRESS hpux_gt_pch_get_address
#undef HOST_HOOKS_GT_PCH_USE_ADDRESS
-#define HOST_HOOKS_GT_PCH_USE_ADDRESS pa_gt_pch_use_address
+#define HOST_HOOKS_GT_PCH_USE_ADDRESS hpux_gt_pch_use_address
/* For various ports, try to guess a fixed spot in the vm space
that's probably free. */
-#if defined(__hppa__) && defined(__LP64__)
+#if (defined(__hppa__) || defined(__ia64__)) && defined(__LP64__)
# define TRY_EMPTY_VM_SPACE 0x8000000000000000
-#elif defined(__hppa__)
+#elif defined(__hppa__) || defined(__ia64__)
# define TRY_EMPTY_VM_SPACE 0x60000000
#else
# define TRY_EMPTY_VM_SPACE 0
file unmapped. */
static void *
-pa_gt_pch_get_address (size_t size, int fd)
+hpux_gt_pch_get_address (size_t size, int fd)
{
void *addr;
little else we can do given the current PCH implementation. */
static int
-pa_gt_pch_use_address (void *base, size_t size, int fd, size_t offset)
+hpux_gt_pch_use_address (void *base, size_t size, int fd, size_t offset)
{
void *addr;
+++ /dev/null
-# 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
-
-pa-host.o : $(srcdir)/config/pa/pa-host.c $(CONFIG_H) $(SYSTEM_H) \
- coretypes.h hosthooks.h hosthooks-def.h $(HOOKS_H)
- $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- $(srcdir)/config/pa/pa-host.c