static void getSolarisDefines(const LangOptions &Opts, std::vector<char> &Defs) {
DefineStd(Defs, "sun", Opts);
DefineStd(Defs, "unix", Opts);
- Define(Defs, "__ELF__", "1");
+ Define(Defs, "__ELF__");
+ Define(Defs, "__svr4__");
+ Define(Defs, "__SVR4");
}
static void getFreeBSDDefines(const LangOptions &Opts, bool is64Bit,
public:
SolarisX86_32TargetInfo(const std::string& triple) : X86_32TargetInfo(triple) {
UserLabelPrefix = "";
- WCharType = WCharType = SignedLong;
+ WCharType = SignedLong;
+ // FIXME: WIntType should be SignedLong
}
virtual void getTargetDefines(const LangOptions &Opts,
std::vector<char> &Defines) const {
public:
SolarisX86_64TargetInfo(const std::string& triple) : X86_64TargetInfo(triple) {
UserLabelPrefix = "";
- WCharType = WCharType = SignedLong;
}
virtual void getTargetDefines(const LangOptions &Opts,
std::vector<char> &Defines) const {
}
virtual void getTargetDefines(const LangOptions &Opts,
std::vector<char> &Defines) const {
- // FIXME: This is missing a lot of important defines; some of the
- // missing stuff is likely to break system headers.
- Define(Defines, "__sparc");
- Define(Defines, "__sparc__");
+ DefineStd(Defines, "sparc", Opts);
Define(Defines, "__sparcv8");
+ Define(Defines, "__REGISTER_PREFIX__", "");
}
virtual void getTargetBuiltins(const Builtin::Info *&Records,
unsigned &NumRecords) const {
SparcV8TargetInfo(triple) {
SizeType = UnsignedInt;
PtrDiffType = SignedInt;
+ WCharType = SignedLong;
+ // FIXME: WIntType should be SignedLong
+ UserLabelPrefix = "";
}
virtual void getTargetDefines(const LangOptions &Opts,