toolchain/gcc: use configure option to disable TM clone registry
GCC 10 added the new configure option --disable-tm-clone-registry[1]. It is useful for reducing code size in embedded systems. Our local hack patch is no longer needed. [1] https://gcc.gnu.org/cgit/gcc/commit/?h=releases/gcc-10&id=5a4602805eb3ebddbc935b102481e63bffc7c5e6 Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/23494 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
024abbcc92
commit
59c07e6053
@ -102,6 +102,7 @@ GCC_CONFIGURE:= \
|
|||||||
--disable-libmpx \
|
--disable-libmpx \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
|
--disable-tm-clone-registry \
|
||||||
$(GRAPHITE_CONFIGURE) \
|
$(GRAPHITE_CONFIGURE) \
|
||||||
--with-host-libstdcxx=-lstdc++ \
|
--with-host-libstdcxx=-lstdc++ \
|
||||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
--- a/libgcc/crtstuff.c
|
|
||||||
+++ b/libgcc/crtstuff.c
|
|
||||||
@@ -152,7 +152,7 @@ call_ ## FUNC (void) \
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(USE_TM_CLONE_REGISTRY) && defined(OBJECT_FORMAT_ELF)
|
|
||||||
-# define USE_TM_CLONE_REGISTRY 1
|
|
||||||
+# define USE_TM_CLONE_REGISTRY 0
|
|
||||||
#elif !defined(USE_TM_CLONE_REGISTRY)
|
|
||||||
# define USE_TM_CLONE_REGISTRY 0
|
|
||||||
#endif
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- a/libgcc/crtstuff.c
|
|
||||||
+++ b/libgcc/crtstuff.c
|
|
||||||
@@ -152,7 +152,7 @@ call_ ## FUNC (void) \
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(USE_TM_CLONE_REGISTRY) && defined(OBJECT_FORMAT_ELF)
|
|
||||||
-# define USE_TM_CLONE_REGISTRY 1
|
|
||||||
+# define USE_TM_CLONE_REGISTRY 0
|
|
||||||
#elif !defined(USE_TM_CLONE_REGISTRY)
|
|
||||||
# define USE_TM_CLONE_REGISTRY 0
|
|
||||||
#endif
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- a/libgcc/crtstuff.c
|
|
||||||
+++ b/libgcc/crtstuff.c
|
|
||||||
@@ -152,7 +152,7 @@ call_ ## FUNC (void) \
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(USE_TM_CLONE_REGISTRY) && defined(OBJECT_FORMAT_ELF)
|
|
||||||
-# define USE_TM_CLONE_REGISTRY 1
|
|
||||||
+# define USE_TM_CLONE_REGISTRY 0
|
|
||||||
#elif !defined(USE_TM_CLONE_REGISTRY)
|
|
||||||
# define USE_TM_CLONE_REGISTRY 0
|
|
||||||
#endif
|
|
||||||
Loading…
Reference in New Issue
Block a user