Skip to content

Commit ab1722a

Browse files
authored
[Clang] Remove NetBSD/i386 workaround for FP eval method with older versions (#74025)
NetBSD 6.x is long EoL. Make 7.x the minimum and even that is EoL.
1 parent e391ba0 commit ab1722a

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,11 @@ AIX Support
12581258
This access sequence is not used for TLS variables larger than 32KB, and is
12591259
currently only supported on 64-bit mode.
12601260

1261+
NetBSD Support
1262+
^^^^^^^^^^^^^^
1263+
1264+
- Removed support for building NetBSD/i386 6.x or older binaries.
1265+
12611266
WebAssembly Support
12621267
^^^^^^^^^^^^^^^^^^^
12631268

clang/lib/Basic/Targets/X86.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -513,15 +513,6 @@ class LLVM_LIBRARY_VISIBILITY NetBSDI386TargetInfo
513513
public:
514514
NetBSDI386TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
515515
: NetBSDTargetInfo<X86_32TargetInfo>(Triple, Opts) {}
516-
517-
LangOptions::FPEvalMethodKind getFPEvalMethod() const override {
518-
VersionTuple OsVersion = getTriple().getOSVersion();
519-
// New NetBSD uses the default rounding mode.
520-
if (OsVersion >= VersionTuple(6, 99, 26) || OsVersion.getMajor() == 0)
521-
return X86_32TargetInfo::getFPEvalMethod();
522-
// NetBSD before 6.99.26 defaults to "double" rounding.
523-
return LangOptions::FPEvalMethodKind::FEM_Double;
524-
}
525516
};
526517

527518
class LLVM_LIBRARY_VISIBILITY OpenBSDI386TargetInfo

0 commit comments

Comments
 (0)