diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-02-23 19:14:58 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-30 11:37:24 +0100 |
| commit | aafa59064b9409e3ce06bf334ca250fc2c483acb (patch) | |
| tree | 1bd0f82a6812d154785f849c511771852ab1bf3a /meta/recipes-devtools/gcc/gcc-4.7/pr32219.patch | |
| parent | 173f424808b935f5db99905bf5af307990d87107 (diff) | |
| download | poky-aafa59064b9409e3ce06bf334ca250fc2c483acb.tar.gz | |
gcc-4.7: Add recipes
Add new recipes for gcc-4_7-branch right now gcc 4.7.0
is latest release from this branch
(From OE-Core rev: 3f8fee75e598ad0994acc5da0a612e6eca4f35f6)
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.7/pr32219.patch')
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.7/pr32219.patch | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.7/pr32219.patch b/meta/recipes-devtools/gcc/gcc-4.7/pr32219.patch new file mode 100644 index 0000000000..bea2063049 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.7/pr32219.patch | |||
| @@ -0,0 +1,72 @@ | |||
| 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_7-branch/gcc/testsuite/gcc.dg/visibility-21.c | ||
| 28 | =================================================================== | ||
| 29 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
| 30 | +++ gcc-4_7-branch/gcc/testsuite/gcc.dg/visibility-21.c 2012-04-10 10:39:38.083396738 -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_7-branch/gcc/varasm.c | ||
| 47 | =================================================================== | ||
| 48 | --- gcc-4_7-branch.orig/gcc/varasm.c 2012-04-10 10:17:24.127330049 -0700 | ||
| 49 | +++ gcc-4_7-branch/gcc/varasm.c 2012-04-10 10:39:38.087396414 -0700 | ||
| 50 | @@ -6937,6 +6937,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 | @@ -6950,11 +6954,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) | ||
