Skip to content

Commit ae4d682

Browse files
nickdesaulnierskees
authored andcommitted
compiler_attributes.h: cleanups for GCC 4.9+
Since commit 6ec4476 ("Raise gcc version requirement to 4.9") we no longer support building the kernel with GCC 4.8; drop the preprocess checks for __GNUC_MINOR__ version. It's implied that if __GNUC_MAJOR__ is 4, then the only supported version of __GNUC_MINOR__ left is 9. Signed-off-by: Nick Desaulniers <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Miguel Ojeda <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 380d53c commit ae4d682

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/compiler_attributes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@
2727
*/
2828
#ifndef __has_attribute
2929
# define __has_attribute(x) __GCC4_has_attribute_##x
30-
# define __GCC4_has_attribute___assume_aligned__ (__GNUC_MINOR__ >= 9)
30+
# define __GCC4_has_attribute___assume_aligned__ 1
3131
# define __GCC4_has_attribute___copy__ 0
3232
# define __GCC4_has_attribute___designated_init__ 0
3333
# define __GCC4_has_attribute___externally_visible__ 1
3434
# define __GCC4_has_attribute___no_caller_saved_registers__ 0
3535
# define __GCC4_has_attribute___noclone__ 1
3636
# define __GCC4_has_attribute___no_profile_instrument_function__ 0
3737
# define __GCC4_has_attribute___nonstring__ 0
38-
# define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8)
39-
# define __GCC4_has_attribute___no_sanitize_undefined__ (__GNUC_MINOR__ >= 9)
38+
# define __GCC4_has_attribute___no_sanitize_address__ 1
39+
# define __GCC4_has_attribute___no_sanitize_undefined__ 1
4040
# define __GCC4_has_attribute___fallthrough__ 0
4141
#endif
4242

0 commit comments

Comments
 (0)