Rebased from upstream / out of band repository.
[librecmc/librecmc.git] / toolchain / gcc / patches / arc-2017.09-release / 881-no_tm_section.patch
1 commit 565988ab47bd9b96b50608564aee2104aeb4b7ae
2 Author: Felix Fietkau <nbd@nbd.name>
3 Date:   Tue Dec 13 14:20:49 2016 +0100
4
5     gcc: rip out transactional memory related bloat from crtbegin
6     
7     Slightly improves compression for each executable, saving about 4k from
8     the default ar71xx rootfs
9     
10     Signed-off-by: Felix Fietkau <nbd@nbd.name>
11
12 --- a/libgcc/crtstuff.c
13 +++ b/libgcc/crtstuff.c
14 @@ -152,7 +152,7 @@ call_ ## FUNC (void)                                        \
15  #endif
16  
17  #if !defined(USE_TM_CLONE_REGISTRY) && defined(OBJECT_FORMAT_ELF)
18 -# define USE_TM_CLONE_REGISTRY 1
19 +# define USE_TM_CLONE_REGISTRY 0
20  #endif
21  
22  /* We do not want to add the weak attribute to the declarations of these