aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2025-06-05 08:34:59 +0200
committerGitHub <noreply@github.com>2025-06-05 08:34:59 +0200
commitd76b9d6653020e7cb4a2937accf775254af61ab9 (patch)
tree2e7ed4078bb799b51b8b5e7f5b8aedd6f0d55622 /llvm/lib/CodeGen/MachineScheduler.cpp
parent70fce9202709f36f28a991aa0523f6c8e78b2028 (diff)
downloadllvm-d76b9d6653020e7cb4a2937accf775254af61ab9.zip
llvm-d76b9d6653020e7cb4a2937accf775254af61ab9.tar.gz
llvm-d76b9d6653020e7cb4a2937accf775254af61ab9.tar.bz2
[OpenMP][cmake] Simplify -m32 handling (#142742)
Linking `libomp.so` on 32-bit SPARC `FAIL`s with ``` ld: fatal: file projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_asm.S.o: wrong ELF class: ELFCLASS64 ``` This was a 1-stage build with a 64-bit-default `gcc`. Unlike the C++ sources, which were compiled as 32-bit objects due to the use of `-DCMAKE_CXX_FLAGS=-m32`, the assembler sources were not. This patch simplifies passing `-m32`: instead of doing it per architecture, `-m32` is now always passed when the target uses 32-bit pointers and supports the option. Tested on `sparc-sun-solaris2.11`, `sparcv9-sun-solaris2.11`, `sparc-unknown-linux-gnu`, `sparc64-unknown-linux-gnu`, `i386-pc-solaris2.11`, `amd64-pc-solaris2.11`, `i686-pc-linux-gnu`, and `x86_64-pc-linux-gnu`.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions