Discontinue HPUX support

This commit is contained in:
Chase
2022-07-22 21:42:06 -05:00
committed by Jon Trulson
parent bd83b53d56
commit edf4319548
235 changed files with 198 additions and 6290 deletions

View File

@@ -98,7 +98,7 @@ Destructable::~Destructable()
// This code relies on the fact that in cfront 2.1 this qualified
// call to the destructor will actually call the virtual destructor.
#if !defined(hpux) && (CC_VERSION < 30)
#if (CC_VERSION < 30)
inline void
Destructable::destruct()
{

View File

@@ -31,10 +31,6 @@ class Exception : public Destructable
public:
#ifdef NATIVE_EXCEPTIONS
#if defined(hpux)
Exception() { }
#endif
#else
Exception();
@@ -106,10 +102,6 @@ protected:
friend class Jump_Environment;
friend class Exceptions;
#if defined(hpux)
#define MakeOperatorNewPublic
#endif
#ifdef MakeOperatorNewPublic
// A problem with the HP-UX 3.65 compiler requires us to make this public.
// And, since we gen the Templates.nd.c file on a non-HPUX platform, we need

View File

@@ -66,7 +66,7 @@ extern "C" {
#endif
#ifndef STRINGIFY
#if !defined(__STDC__) && !defined(hpux)
#if !defined(__STDC__)
#define STRINGIFY(S) "S"
#else
#define STRINGIFY(S) #S
@@ -130,13 +130,8 @@ extern "C" {
// This works if OBJ is an object or a pointer since Exception objects
// overload operator ->.
#if !defined(hpux)
#define mthrow(OBJ) \
(OBJ)->throw_it (__LINE__, __FILE__, DEBUG_THROW_FLAG)
#else
#define mthrow(OBJ) \
OBJ->throw_it (__LINE__, __FILE__, DEBUG_THROW_FLAG)
#endif
#define rethrow \
Exception::current_exception().do_throw (__LINE__, __FILE__)

View File

@@ -63,11 +63,4 @@ terminate()
abort();
}
#else
#ifdef hpux
// HPUX doesn't define the set_terminate function from the ARM.
typedef void (*PFV)();
PFV set_terminate (PFV) { return (0); }
#endif
#endif /* NATIVE_EXCEPTIONS */