Skip to content

Commit e0acc36

Browse files
committed
chore: remove -Xclang flags and tests with padding
1 parent 519ae5d commit e0acc36

File tree

3 files changed

+0
-35
lines changed

3 files changed

+0
-35
lines changed

libc/cmake/modules/CheckCompilerFeatures.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ foreach(feature IN LISTS ALL_COMPILER_FEATURES)
6565
set(link_options "")
6666
if(${feature} STREQUAL "fixed_point")
6767
list(APPEND compile_options "-ffixed-point")
68-
elseif(${feature} STREQUAL "padding_on_unsigned_fixed_point")
69-
list(APPEND compile_options "-ffixed-point -Xclang=-fpadding-on-unsigned-fixed-point")
7068
elseif(${feature} MATCHES "^builtin_" OR
7169
${feature} STREQUAL "float16_conversion")
7270
set(compile_options ${LIBC_COMPILE_OPTIONS_DEFAULT})

libc/src/stdfix/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,5 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
118118
DEPENDS
119119
libc.src.__support.fixed_point.fx_bits
120120
)
121-
if(LIBC_COMPILER_HAS_PADDING_ON_UNSIGNED_FIXED_POINT)
122-
add_entrypoint_object(
123-
countls${suffix}_padding_on_unsigned_fixed_point
124-
HDRS
125-
countls${suffix}.h
126-
SRCS
127-
countls${suffix}.cpp
128-
COMPILE_OPTIONS
129-
${libc_opt_high_flag}
130-
-Xclang=-fpadding-on-unsigned-fixed-point
131-
DEPENDS
132-
libc.src.__support.fixed_point.fx_bits
133-
)
134-
endif()
135121

136122
endforeach()

libc/test/src/stdfix/CMakeLists.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,6 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
8888
libc.src.stdfix.countls${suffix}
8989
libc.src.__support.fixed_point.fx_rep
9090
libc.src.__support.fixed_point.fx_bits
91-
92-
if(LIBC_COMPILER_HAS_PADDING_ON_UNSIGNED_FIXED_POINT)
93-
add_libc_test(
94-
countls${suffix}_padding_on_unsigned_fixed_point_test
95-
SUITE
96-
libc-stdfix-tests
97-
HDRS
98-
CountlsTest.h
99-
SRCS
100-
countls${suffix}_test.cpp
101-
COMPILE_OPTIONS
102-
-O3
103-
-Xclang=-fpadding-on-unsigned-fixed-point
104-
DEPENDS
105-
libc.src.stdfix.countls${suffix}_padding_on_unsigned_fixed_point
106-
libc.src.__support.fixed_point.fx_rep
107-
libc.src.__support.fixed_point.fx_bits
108-
)
109-
endif()
11091
)
11192
endforeach()
11293

0 commit comments

Comments
 (0)