diff options
author | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2018-08-30 20:45:01 +0300 |
---|---|---|
committer | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2018-09-30 21:14:03 +0300 |
commit | c2c640aa04cc4e6caf0ff17ff18b3784e0c99566 (patch) | |
tree | 186e2ed378aacc4142e41535c4dc5670defed3a9 /include/linux/compiler-clang.h | |
parent | 5c67a52f3da0f0d22764f2daec417702695a8112 (diff) | |
download | linux-c2c640aa04cc4e6caf0ff17ff18b3784e0c99566.tar.xz |
Compiler Attributes: remove unneeded tests
Attributes const and always_inline have tests around them
which are unneeded, since they are supported by gcc >= 4.6,
clang >= 3 and icc >= 13. https://godbolt.org/z/DFPq37
In the case of gnu_inline, we do not need to test for
__GNUC_STDC_INLINE__ because, regardless of the current
inlining behavior, we can simply always force the old
GCC inlining behavior by using the attribute in all cases.
Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # on top of v4.19-rc5, clang 7
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Diffstat (limited to 'include/linux/compiler-clang.h')
0 files changed, 0 insertions, 0 deletions