diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-06-21 16:05:16 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-25 16:35:52 +0100 |
| commit | 2ef14dff79230a67258995c27b49aaab1aae92ca (patch) | |
| tree | 64649c848a1241ba2cdfa5909e9ff282a2348e0c /meta/recipes-devtools/gcc/gcc-4.6/pr32219.patch | |
| parent | aecbfbc0abd584aa1a08cd655eae6e1f99b2a60c (diff) | |
| download | poky-2ef14dff79230a67258995c27b49aaab1aae92ca.tar.gz | |
gcc-4.6: Retire into toochain-layer
If anyone wants it add toolchain-layer from meta-openembedded
repo to your setup
(From OE-Core rev: a78260d8d041e606ce4d10c0bb52f196dd27832e)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6/pr32219.patch')
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6/pr32219.patch | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6/pr32219.patch b/meta/recipes-devtools/gcc/gcc-4.6/pr32219.patch deleted file mode 100644 index c0e35940a5..0000000000 --- a/meta/recipes-devtools/gcc/gcc-4.6/pr32219.patch +++ /dev/null | |||
| @@ -1,72 +0,0 @@ | |||
| 1 | Upstream-Status:Backport | ||
| 2 | Hi, | ||
| 3 | |||
| 4 | As suggested by richi. | ||
| 5 | regtested on i686-linux-gnu with all default languages and no regressions. | ||
| 6 | Ok for trunk? | ||
| 7 | |||
| 8 | gcc/ChangeLog | ||
| 9 | 2010-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | ||
| 10 | |||
| 11 | PR target/32219 | ||
| 12 | * varasm.c (default_binds_local_p_1): Weak data is not local. | ||
| 13 | |||
| 14 | gcc/testsuite/ChangeLog | ||
| 15 | 2010-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | ||
| 16 | |||
| 17 | PR target/32219 | ||
| 18 | * gcc.dg/visibility-21.c: New test. | ||
| 19 | |||
| 20 | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | ||
| 21 | --- | ||
| 22 | gcc/testsuite/gcc.dg/visibility-21.c | 14 ++++++++++++++ | ||
| 23 | gcc/varasm.c | 8 ++++---- | ||
| 24 | 2 files changed, 18 insertions(+), 4 deletions(-) | ||
| 25 | create mode 100644 gcc/testsuite/gcc.dg/visibility-21.c | ||
| 26 | |||
| 27 | Index: gcc-4_6-branch/gcc/testsuite/gcc.dg/visibility-21.c | ||
| 28 | =================================================================== | ||
| 29 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
| 30 | +++ gcc-4_6-branch/gcc/testsuite/gcc.dg/visibility-21.c 2011-10-18 17:11:33.224827436 -0700 | ||
| 31 | @@ -0,0 +1,14 @@ | ||
| 32 | +/* PR target/32219 */ | ||
| 33 | +/* { dg-do run } */ | ||
| 34 | +/* { dg-require-visibility "" } */ | ||
| 35 | +/* { dg-options "-fPIC" { target fpic } } */ | ||
| 36 | + | ||
| 37 | +extern void f() __attribute__((weak,visibility("hidden"))); | ||
| 38 | +extern int puts( char const* ); | ||
| 39 | +int main() | ||
| 40 | +{ | ||
| 41 | + if (f) | ||
| 42 | + f(); | ||
| 43 | + return 0; | ||
| 44 | +} | ||
| 45 | + | ||
| 46 | Index: gcc-4_6-branch/gcc/varasm.c | ||
| 47 | =================================================================== | ||
| 48 | --- gcc-4_6-branch.orig/gcc/varasm.c 2011-09-16 19:58:21.000000000 -0700 | ||
| 49 | +++ gcc-4_6-branch/gcc/varasm.c 2011-10-18 17:19:06.431074788 -0700 | ||
| 50 | @@ -6760,6 +6760,10 @@ | ||
| 51 | /* Static variables are always local. */ | ||
| 52 | else if (! TREE_PUBLIC (exp)) | ||
| 53 | local_p = true; | ||
| 54 | + /* hidden weak can't be overridden by something non-local, all | ||
| 55 | + that is possible is that it is not defined at all. */ | ||
| 56 | + else if (DECL_WEAK (exp)) | ||
| 57 | + local_p = false; | ||
| 58 | /* A variable is local if the user has said explicitly that it will | ||
| 59 | be. */ | ||
| 60 | else if ((DECL_VISIBILITY_SPECIFIED (exp) | ||
| 61 | @@ -6773,11 +6777,6 @@ | ||
| 62 | local. */ | ||
| 63 | else if (DECL_VISIBILITY (exp) != VISIBILITY_DEFAULT) | ||
| 64 | local_p = true; | ||
| 65 | - /* Default visibility weak data can be overridden by a strong symbol | ||
| 66 | - in another module and so are not local. */ | ||
| 67 | - else if (DECL_WEAK (exp) | ||
| 68 | - && !resolved_locally) | ||
| 69 | - local_p = false; | ||
| 70 | /* If PIC, then assume that any global name can be overridden by | ||
| 71 | symbols resolved from other modules. */ | ||
| 72 | else if (shlib) | ||
