https://gcc.gnu.org/g:3bc96cf6b3ba4579c2bdfe6a8c4404052c0c0353

commit 3bc96cf6b3ba4579c2bdfe6a8c4404052c0c0353
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Thu May 8 02:18:16 2025 -0300

    vxworks: undefine TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL
    
    config.gcc arranges for vxworks 7r2+ targets to include linux.h,
    because of the similarity, but linux.h defines
    TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL to a function declared in
    linux-protos.h, and defined in linux.cc, neither of which vxworks
    targets include.  Undefine it in vxworks.h.
    
    
    for  gcc/ChangeLog
    
            * config/vxworks.h (TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL):
            Undefine.

Diff:
---
 gcc/config/vxworks.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index 204a8e000d40..1ad4c1553ba9 100644
--- a/gcc/config/vxworks.h
+++ b/gcc/config/vxworks.h
@@ -433,3 +433,6 @@ extern void vxworks_emit_call_builtin___clear_cache (rtx 
begin, rtx end);
    so silence the warning (instead of passing -flinker-output=nolto-rel).  */
 #undef LTO_PLUGIN_SPEC
 #define LTO_PLUGIN_SPEC "%{!mrtp:-plugin-opt=-linker-output-auto-nolto-rel}"
+
+/* Undo the linux.h definition.  */
+#undef TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL

Reply via email to