Skip to content

Commit

Permalink
Disable MultiSource/UnitTests/C++11/frame_layout on SPARC
Browse files Browse the repository at this point in the history
As reported in Issue #57626, `frame_layout.cpp` doesn't compile on SPARC
(both Solaris/sparcv9 and Linux/sparc64):

  FAILED:
MultiSource/UnitTests/C++11/frame_layout/CMakeFiles/frame_layout.dir/frame_layout.cpp.o
  [...]
  fatal error: error in backend: Function
"_Z10test_frameILj4096ELb1ELj2048ELb0ELb0EJEEvDpT4_jPKcP13trace_elementd":
over-aligned dynamic alloca not supported.
  void test_frame<4096u, true, 2048u, false, false>(, unsigned int, char
const*, trace_element*, double)

Therefore, this patch disables the test on SPARC.

Tested on `sparc64-unknown-linux-gnu` (only 3 testsuite failures remaining)
and `sparcv9-sun-solaris2.11` (11 failures once a couple of
Solaris-specific bugs are fixed).

Differential Revision: https://reviews.llvm.org/D133493
  • Loading branch information
rorth committed Sep 8, 2022
1 parent 3ce737c commit 83de0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MultiSource/UnitTests/C++11/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
list(APPEND CXXFLAGS -std=c++11)

if(NOT MIPS_IS_MIPS16_ENABLED)
if(NOT (MIPS_IS_MIPS16_ENABLED OR ARCH MATCHES "Sparc"))
add_subdirectory(frame_layout)
endif()

0 comments on commit 83de0f3

Please sign in to comment.