[PATCH] D106371: [AIX] Generate large code model relocations when mcmodel=medium on AIX

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 13:39:35 PDT 2023


MaskRay added inline comments.
Herald added a project: All.


================
Comment at: clang/test/Driver/mcmodel.c:15
 // LARGE: "-mcmodel=large"
+// AIX-MCMEDIUM-OVERRIDE: "-mcmodel=large"
 
----------------
Is it intentional that -mcmodel=medium is changed to large for 32-bit systems? Is this AIX specific?

In GCC, I believe in general only 64-bit architectures support `-mcmodel=` with some exceptions like nds32.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106371



More information about the cfe-commits mailing list