* ada/initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
implementation that calls __main.
* pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
* pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110580
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR target/25926
+ * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
+ * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
+
2006-02-03 Jason Merrill <jason@redhat.com>
PR c++/25979
+2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR target/25926
+ * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
+ implementation that calls __main.
+
2006-01-25 Peter O'Gorman <peter@pogma.com>
PR bootstrap/25859
#endif
}
+#elif defined(_T_HPUX10) || (!defined(IN_RTS) && defined(_X_HPUX10))
+
+/************************************************/
+/* __gnat_initialize (PA-RISC HP-UX 10 Version) */
+/************************************************/
+
+extern void __main (void);
+
+void
+__gnat_initialize (void *eh ATTRIBUTE_UNUSED)
+{
+ __main ();
+}
+
#else
/* For all other versions of GNAT, the initialize routine and handler
rm -f quadlib.c
cp $(srcdir)/config/pa/quadlib.c .
-TARGET_LIBGCC2_CFLAGS = -fPIC
+ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
+ TARGET_LIBGCC2_CFLAGS = -fPIC -D_T_HPUX10
+else
+ TARGET_LIBGCC2_CFLAGS = -fPIC
+endif
# 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
+# 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