diff options
| author | Piyou Chen <piyou.chen@sifive.com> | 2024-07-24 07:52:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-24 07:52:08 +0800 |
| commit | 73ac9536268f21149e29601da31e3415725b0a17 (patch) | |
| tree | 65dccd30b31c5fc0c86215ecc898e958d5394973 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.cpp | |
| parent | ef8de68faebee0226b4836e66574f225f724e768 (diff) | |
[RISCV][compiler-rt] Small fixes for __riscv_feature_bits (#100158)
Changes included:
- Adding CONSTRUCTOR_ATTRIBUTE so that the static data is setup early on
in process lifetime. This is required by gcc docs for
__builtin_cpu_supports which we hope to implement in terms of this.
- Move the length initialization outside of the #if defined(linux) block
so that the length field always reflects the size of the structures even
if non of the feature bits are non-zero.
- Change the __riscv_vendor_feature_bits.length field to match the
length of the actual structure.
Note: Copy from https://github.com/llvm/llvm-project/pull/99958
---------
Co-authored-by: Philip Reames <preames@rivosinc.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
