Skip to contentSkip to conversation

gcc: disable libsanitizer for sparc

PATCH New Gustavo Zacarias 2 participants 2 messages Apr 15, 2015 – Apr 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: disable libsanitizer for sparc

Normally libsanitizer handles the different functionalities gracefully for each architecture, but it doesn't seem to be the case for SPARC. Since in general it doesn't support anything for SPARC just disable it.

Fixes bug #7951.

---
 package/gcc/gcc.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/gcc/gcc.mk +6 -0
index 24fd7b8..be242cb 100644
@@ -126,6 +126,12 @@ ifeq ($(BR2_TOOLCHAIN_BUILDROOT_UCLIBC)$(BR2_TOOLCHAIN_BUILDROOT_MUSL),y)
 HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
 endif
 
+# libsanitizer is broken for SPARC
+# https://bugs.busybox.net/show_bug.cgi?id=7951
+ifeq ($(BR2_sparc),y)
+HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
+endif
+
 ifeq ($(BR2_GCC_ENABLE_TLS),y)
 HOST_GCC_COMMON_CONF_OPTS += --enable-tls
 else
Signature · 1 line
2.0.5
#1 lore raw

PATCH 1/1 gcc: disable libsanitizer for sparc

Dear Gustavo Zacarias,

Quoted 10 lines · Gustavo Zacarias

Normally libsanitizer handles the different functionalities gracefully for each architecture, but it doesn't seem to be the case for SPARC. Since in general it doesn't support anything for SPARC just disable it.

Fixes bug #7951.

---
 package/gcc/gcc.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com