alpha-dec-osf1 and alpha-dec-osf3 are now separate configurations.
# Hack!: nlist() under Digital UNIX insist on there being an _,
# but symbol table listings show none. What is going on here?!?
#
-if test $HostPlatform = "alpha-dec-osf1"; then
- ac_cv_lead_uscore='no'
-else
+changequote(<<, >>)dnl
+<<
+case $HostPlatform in
+alpha-dec-osf*) ac_cv_lead_uscore='no';;
+*) >>
+changequote([, ])dnl
AC_TRY_RUN([#ifdef HAVE_NLIST_H
#include <nlist.h>
changequote(<<, >>)dnl
#endif
exit(1);
}], ac_cv_lead_uscore=yes, ac_cv_lead_uscore=no, ac_cv_lead_uscore=NO)
-fi);
+;;
+esac);
LeadingUnderscore=`echo $ac_cv_lead_uscore | sed 'y/yesno/YESNO/'`
AC_SUBST(LeadingUnderscore)
])
# We also record the architecture, vendor, and operating system (OS)
# separately.
case $HostPlatform in
-alpha-dec-osf[[1234]]*)
+alpha-dec-osf[[12]]*)
HostPlatform=alpha-dec-osf1 # canonicalise for our purposes
TargetPlatform=alpha-dec-osf1 # this will work for now... (hack)
BuildPlatform=alpha-dec-osf1 # hack
HostVendor_CPP='dec'
HostOS_CPP='osf1'
;;
+alpha-dec-osf[[34]]*)
+ HostPlatform=alpha-dec-osf3 # canonicalise for our purposes
+ TargetPlatform=alpha-dec-osf3 # this will work for now... (hack)
+ BuildPlatform=alpha-dec-osf3 # hack
+ HostPlatform_CPP='alpha_dec_osf3'
+ HostArch_CPP='alpha'
+ HostVendor_CPP='dec'
+ HostOS_CPP='osf3'
+ ;;
hppa1.1-hp-hpux*)
HostPlatform=hppa1.1-hp-hpux # canonicalise for our purposes (hack)
TargetPlatform=hppa1.1-hp-hpux
# We also record the architecture, vendor, and operating system (OS)
# separately.
case $TargetPlatform in
-alpha-dec-osf[[1234]]*)
+alpha-dec-osf[[12]]*)
TargetPlatform=alpha-dec-osf1;;
+alpha-dec-osf[[34]]*)
+ TargetPlatform=alpha-dec-osf3;;
hppa1.1-hp-hpux*)
TargetPlatform=hppa1.1-hp-hpux;;
i[[3456]]86-*-linuxaout*)
# define BYTES_PER_WORD 8
# define BYTES_PER_WORD_STR "8"
-# include "../../includes/alpha-dec-osf1.h"
+# if osf1_TARGET_OS
+# include "../../includes/alpha-dec-osf1.h"
+# endif
+# if osf3_TARGET_OS
+# include "../../includes/alpha-dec-osf3.h"
+# endif
#endif
#if i386_TARGET_ARCH
\tr{JMP_} macro...at least, not if we want it to be \$27, which we do!
\begin{code}
-#if alpha_dec_osf1_TARGET
+#if alpha_TARGET_ARCH
/* ToDo: less specific? */
/*
This is a HACK here; see comment in COptJumps.lh.
\begin{code}
-#if alpha_dec_osf1_TARGET && defined(__STG_TAILJUMPS__) && defined(__GNUC__)
+#if alpha_TARGET_ARCH && defined(__STG_TAILJUMPS__) && defined(__GNUC__)
register void *_procedure __asm__("$27");
#endif
#if (mipsel_TARGET_ARCH || mipseb_TARGET_ARCH) && defined(__STG_TAILJUMPS__) && defined(__GNUC__)
/* yes, it is IEEE floating point */
#include "ieee-flpt.h"
-#if alpha_dec_osf1_TARGET \
+#if alpha_TARGET_ARCH \
|| i386_TARGET_ARCH \
|| mipsel_TARGET_ARCH
\end{code}
\begin{code}
-#if alpha_dec_osf1_TARGET
+#if alpha_TARGET_ARCH
#define encodeFloatZh(r, hp, aa,sa,da, expon) encodeDoubleZh(r, hp, aa,sa,da, expon)
#else
#define encodeFloatZh(r, hp, aa,sa,da, expon) \
r = SAFESTGCALL2(StgDouble,(void *, MP_INT *, I_), __encodeDouble,&arg,(expon));\
}
-#if alpha_dec_osf1_TARGET
+#if alpha_TARGET_ARCH
#define decodeFloatZh(exponr, ar,sr,dr, hp, f) decodeDoubleZh(exponr, ar,sr,dr, hp, f)
#else
#define decodeFloatZh(exponr, ar,sr,dr, hp, f) \
#define alpha_dec_osf1 10
#define alpha_unknown_linux 11
+#define alpha_dec_osf3 12
#define hppa1_1_hp_hpux 20
#define i386_next_nextstep3 30
#define i386_unknown_bsdi 31