[PATCH] D122234: [clang] Link libbitint for large division of _BitInt

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 11 12:48:03 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Hexagon.cpp:456
   if (IncStdLib && IncDefLibs) {
+    addBitIntRuntime(HTC, CmdArgs, Args);
+
----------------
The runtime library order matters and roughly reflects a topological order.
For instances, -lc is higher level than libgcc_s/libclang_rt.builtins.a therefore -lc precedes them.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122234/new/

https://reviews.llvm.org/D122234



More information about the cfe-commits mailing list