From f5e73cee0f947a517658b722a014df649cab01ce Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 26 Aug 2013 16:31:54 +0000 Subject: [PATCH] gcc: realize gas supports visibility . solution for "warning: visibility attribute not supported in this configuration" . needed to make warnings fatal, -Werror Change-Id: If972300a82df570093f2d89825935483ff69fb18 --- external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h | 2 +- external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h | 2 +- tools/gcc/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h b/external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h index fbe18bddc..87872091b 100644 --- a/external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h +++ b/external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h @@ -967,7 +967,7 @@ /* Define if your assembler and linker support .hidden. */ -/* #undef HAVE_GAS_HIDDEN */ +#define HAVE_GAS_HIDDEN 1 /* Define if your assembler supports .lcomm with an alignment field. */ #ifndef USED_FOR_TARGET diff --git a/external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h b/external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h index 5c7c5b9b5..660155e1f 100644 --- a/external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h +++ b/external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h @@ -967,7 +967,7 @@ /* Define if your assembler and linker support .hidden. */ -/* #undef HAVE_GAS_HIDDEN */ +#define HAVE_GAS_HIDDEN 1 /* Define if your assembler supports .lcomm with an alignment field. */ #ifndef USED_FOR_TARGET diff --git a/tools/gcc/Makefile b/tools/gcc/Makefile index 39b864996..ff18e9573 100644 --- a/tools/gcc/Makefile +++ b/tools/gcc/Makefile @@ -44,7 +44,7 @@ COMMON_CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} \ COMMON_CONFIGURE_ARGS+= \ --disable-libssp \ --disable-threads \ - --disable-visibility \ + --enable-visibility \ --disable-libunwind .if ${HOST_OSTYPE:C/\-.*//} == "Minix"