diff options
author | Alexey Brodkin <Alexey.Brodkin@synopsys.com> | 2016-05-19 08:20:33 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-19 19:29:44 +0200 |
commit | d354bfde174514973309e788e11c286f1667c2f5 (patch) | |
tree | c71bdb107387fb9c9aedce9b93f8cabbf5ab2378 /toolchain/gcc/patches/arc-2016.03/002-weak_data_fix.patch | |
parent | 8d105653b13eb5f56764c8e02f307f4d28a6a3a7 (diff) | |
download | mtk-20170518-d354bfde174514973309e788e11c286f1667c2f5.zip mtk-20170518-d354bfde174514973309e788e11c286f1667c2f5.tar.gz mtk-20170518-d354bfde174514973309e788e11c286f1667c2f5.tar.bz2 |
toolchain: Bump ARC tools to arc-2016.03
This change switches ARC tools to the most recent arc-2016.03
version.
ARC GNU tools of version arc-2016.03 bring some quite significant
changes like:
* Binutils v2.26+ (upstream commit id 202ac19 with additional ARC
* patches)
* GCC v4.8.5
* GDB 7.10
More about changes, improvements and fixes could be found here:
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'toolchain/gcc/patches/arc-2016.03/002-weak_data_fix.patch')
-rw-r--r-- | toolchain/gcc/patches/arc-2016.03/002-weak_data_fix.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/arc-2016.03/002-weak_data_fix.patch b/toolchain/gcc/patches/arc-2016.03/002-weak_data_fix.patch new file mode 100644 index 0000000..a740b4c --- /dev/null +++ b/toolchain/gcc/patches/arc-2016.03/002-weak_data_fix.patch @@ -0,0 +1,42 @@ +--- /dev/null ++++ b/gcc/testsuite/gcc.dg/visibility-21.c +@@ -0,0 +1,14 @@ ++/* PR target/32219 */ ++/* { dg-do run } */ ++/* { dg-require-visibility "" } */ ++/* { dg-options "-fPIC" { target fpic } } */ ++ ++extern void f() __attribute__((weak,visibility("hidden"))); ++extern int puts( char const* ); ++int main() ++{ ++ if (f) ++ f(); ++ return 0; ++} ++ +--- a/gcc/varasm.c ++++ b/gcc/varasm.c +@@ -6677,6 +6677,10 @@ default_binds_local_p_1 (const_tree exp, + /* Static variables are always local. */ + else if (! TREE_PUBLIC (exp)) + local_p = true; ++ /* hidden weak can't be overridden by something non-local, all ++ that is possible is that it is not defined at all. */ ++ else if (DECL_WEAK (exp)) ++ local_p = false; + /* A variable is local if the user has said explicitly that it will + be. */ + else if ((DECL_VISIBILITY_SPECIFIED (exp) +@@ -6690,11 +6694,6 @@ default_binds_local_p_1 (const_tree exp, + local. */ + else if (DECL_VISIBILITY (exp) != VISIBILITY_DEFAULT) + local_p = true; +- /* Default visibility weak data can be overridden by a strong symbol +- in another module and so are not local. */ +- else if (DECL_WEAK (exp) +- && !resolved_locally) +- local_p = false; + /* If PIC, then assume that any global name can be overridden by + symbols resolved from other modules. */ + else if (shlib) |