Enable _FORTIFY_SOURCE=3 for gcc 12 and above
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 12 Jan 2022 13:16:28 +0000 (18:46 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 12 Jan 2022 13:16:28 +0000 (18:46 +0530)
commit86bf0feb0e3ec8e37872f72499d6ae33406561d7
tree6a769e608b3e78a6bcbe3d0d373bffd5c7b0643a
parent0005e54f762b2ec65cee2c4ecf1e9d42612030f0
Enable _FORTIFY_SOURCE=3 for gcc 12 and above

gcc 12 now has support for the __builtin_dynamic_object_size builtin.
Adapt the macro checks to enable _FORTIFY_SOURCE=3 on gcc 12 and above.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/features.h
misc/sys/cdefs.h