readonly TARGET = "PA32_HPUX" % code generation target
readonly WORD_SIZE = "32BITS" % { "32BITS" or "64BITS" }
readonly GNU_PLATFORM = "hppa-hpux"

%
% PA/RISC 2.0 has apparently been around a while,
% but for older machines, remove it.
%
readonly m3back_flags = "-fPIC -gstabs+ -quiet -mpa-risc-2-0"
readonly SYSTEM_CC = "/usr/local/32/bin/gcc -fPIC -gstabs+ -mpa-risc-2-0" % C compiler
readonly SYSTEM_ASM = "/usr/local/32/bin/gas" % Assembler

%
% newer platforms never needed these workarounds for
% bootstrapping with older builds
%
readonly proc GetGcWrapFlags() is return "" end
readonly proc FixM3GcDefs(x) is return x end

readonly proc GetM3BackFlag(x) is
    if equal (x, "-fno-reorder-blocks")
        return x
    end
    if equal (x, "-m32") or equal (x, "-m64")
        return ""
    end
    error ("unknown flag: " & x)
end

include("HPUX.common")
