[clang] [llvm] [Clang][AIX] Add -mloadtime-comment-vars flag to preserve identifying variables (PR #187986)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 16 23:19:22 PDT 2026
================
@@ -0,0 +1,228 @@
+// C/C++ behavior of -mloadtime-comment-vars= :
+// codegen.cpp - mangled-name matching and what gets preserved
+// storage.cpp - storage-duration and scope diagnostics
+// diag.c - volatile / non-string-literal diagnostics (C)
+// init.cpp - constant-initialization / string-literal diagnostics (C++)
+
+// RUN: rm -rf %t && split-file %s %t
+//
+// RUN: %clang_cc1 -std=c++17 -O2 -triple powerpc64-ibm-aix \
+// RUN: -mloadtime-comment-vars=x,_ZN1N1xE,_ZN1N1qE,_ZN1NL3ptrE,_ZN1A1xE,_ZN1B3verE,_ZN1C4infoE \
----------------
midhuncodes7 wrote:
Consider adding the following test cases:
1. -mloadtime-comment-vars=foo, bar(space after comma)
2. -mloadtime-comment-vars=foo,foo(repeated vars)
https://github.com/llvm/llvm-project/pull/187986
More information about the cfe-commits
mailing list