[gcc r12-4191] Fix redefinition warning

Jan-Benedict Glaw jbglaw@gcc.gnu.org
Tue Oct 5 15:11:07 GMT 2021


https://gcc.gnu.org/g:5b4bf54a00be17e49433582c237724ac4e653608

commit r12-4191-g5b4bf54a00be17e49433582c237724ac4e653608
Author: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Date:   Tue Oct 5 17:08:23 2021 +0200

    Fix redefinition warning
    
    gcc/ChangeLog:
    
            * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
            Undefine before redefinition.

Diff:
---
 gcc/config/lm32/uclinux-elf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config/lm32/uclinux-elf.h b/gcc/config/lm32/uclinux-elf.h
index 370df4c55dd..5b638fa5db2 100644
--- a/gcc/config/lm32/uclinux-elf.h
+++ b/gcc/config/lm32/uclinux-elf.h
@@ -67,6 +67,7 @@
 
 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
 
+#undef LINK_GCC_C_SEQUENCE_SPEC
 #define LINK_GCC_C_SEQUENCE_SPEC \
   "%{static|static-pie:--start-group} %G %{!nolibc:%L} \
    %{static|static-pie:--end-group}%{!static:%{!static-pie:%G}}"


More information about the Gcc-cvs mailing list