[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

Abhina Sree via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 7 12:31:11 PDT 2024


================
@@ -3650,6 +3650,14 @@ void CompilerInvocationBase::GenerateLangArgs(const LangOptions &Opts,
       GenerateArg(Consumer, OPT_ftrigraphs);
   }
 
+  if (T.isOSzOS()) {
+    if (!Opts.ZOSExt)
+      GenerateArg(Consumer, OPT_fno_zos_extensions);
+  } else {
+    if (Opts.ZOSExt)
+      GenerateArg(Consumer, OPT_fzos_extensions);
+  }
----------------
abhina-sree wrote:

Thanks, I refactored the code a bit

https://github.com/llvm/llvm-project/pull/101696


More information about the cfe-commits mailing list