File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -121,13 +121,14 @@ config CC_HAS_NO_PROFILE_FN_ATTR
121
121
def_bool $(success,echo '__attribute__((no_profile_instrument_function)) int x();' | $(CC) -x c - -c -o /dev/null -Werror)
122
122
123
123
config CC_HAS_COUNTED_BY
124
- # TODO: when gcc 15 is released remove the build test and add
125
- # a gcc version check
126
- def_bool $(success,echo 'struct flex { int count; int array[] __attribute__((__counted_by__(count))); };' | $(CC) $(CLANG_FLAGS) -x c - -c -o /dev/null -Werror)
124
+ bool
127
125
# clang needs to be at least 19.1.3 to avoid __bdos miscalculations
128
126
# https://github.com/llvm/llvm-project/pull/110497
129
127
# https://github.com/llvm/llvm-project/pull/112636
130
- depends on !(CC_IS_CLANG && CLANG_VERSION < 190103)
128
+ default y if CC_IS_CLANG && CLANG_VERSION >= 190103
129
+ # supported since gcc 15.1.0
130
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108896
131
+ default y if CC_IS_GCC && GCC_VERSION >= 150100
131
132
132
133
config CC_HAS_MULTIDIMENSIONAL_NONSTRING
133
134
def_bool $(success,echo 'char tag[][4] __attribute__((__nonstring__)) = { };' | $(CC) $(CLANG_FLAGS) -x c - -c -o /dev/null -Werror)
You can’t perform that action at this time.
0 commit comments