[all-commits] [llvm/llvm-project] 9715af: [AIX][clang] Storage Locations for Constant Pointers
Qiongsi Wu via All-commits
all-commits at lists.llvm.org
Mon May 15 08:34:09 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9715af434579022b5ef31781be40b722d7e63bee
https://github.com/llvm/llvm-project/commit/9715af434579022b5ef31781be40b722d7e63bee
Author: Qiongsi Wu <qwu at ibm.com>
Date: 2023-05-15 (Mon, 15 May 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/CodeGenOptions.def
M clang/include/clang/Basic/DiagnosticDriverKinds.td
M clang/include/clang/Driver/Options.td
M clang/lib/CodeGen/BackendUtil.cpp
M clang/lib/Driver/ToolChains/AIX.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
A clang/test/CodeGen/PowerPC/aix-roptr.c
A clang/test/Driver/ppc-roptr.c
Log Message:
-----------
[AIX][clang] Storage Locations for Constant Pointers
This patch adds clang options `-mxcoff-roptr` and `-mno-xcoff-roptr` to specify storage locations for constant pointers on AIX.
When the `-mxcoff-roptr` option is in effect, constant pointers, virtual function tables, and virtual type tables are placed in read-only storage. When the `-mno-xcoff-roptr` option is in effect, pointers, virtual function tables, and virtual type tables are placed are placed in read/write storage.
This patch depends on https://reviews.llvm.org/D144189.
Reviewed By: hubert.reinterpretcast, stephenpeckham
Differential Revision: https://reviews.llvm.org/D144190
More information about the All-commits
mailing list