diff options
author | Ilya Yanok <yanok@emcraft.com> | 2011-07-19 03:00:57 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-20 15:27:36 +0100 |
commit | eb83c447613005448af558603e151381b2d602b4 (patch) | |
tree | ffef355966c6c070b665756119f7e5a7ba4ebd83 /meta | |
parent | 30c9f6c9339d539c5457ef2a83c45fb43f29e29b (diff) | |
download | poky-eb83c447613005448af558603e151381b2d602b4.tar.gz |
gcc_4.5.1: add pr45052.patch
Add fix for PR45052 as proposed in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
(From OE-Core rev: 296b2e7d90f11dc50d8c2e90bd2062733fd3d47c)
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1/pr45052.patch | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1.inc b/meta/recipes-devtools/gcc/gcc-4.5.1.inc index 2473775fcd..03dca08189 100644 --- a/meta/recipes-devtools/gcc/gcc-4.5.1.inc +++ b/meta/recipes-devtools/gcc/gcc-4.5.1.inc | |||
@@ -62,6 +62,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ | |||
62 | file://pr44290.patch \ | 62 | file://pr44290.patch \ |
63 | file://pr44606.patch \ | 63 | file://pr44606.patch \ |
64 | file://pr45094.patch \ | 64 | file://pr45094.patch \ |
65 | file://pr45052.patch \ | ||
65 | " | 66 | " |
66 | 67 | ||
67 | SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " | 68 | SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " |
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/pr45052.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/pr45052.patch new file mode 100644 index 0000000000..855a8230ee --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.5.1/pr45052.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 138f1af2d77d56762a2c2af4759efd53c275b67e Mon Sep 17 00:00:00 2001 | ||
2 | From: Ilya Yanok <yanok@emcraft.com> | ||
3 | Date: Mon, 21 Mar 2011 00:49:43 +0100 | ||
4 | Subject: [PATCH 5/6] PR45052 | ||
5 | |||
6 | --- | ||
7 | gcc/ipa-pure-const.c | 7 +++++++ | ||
8 | 1 files changed, 7 insertions(+), 0 deletions(-) | ||
9 | |||
10 | diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c | ||
11 | index 166dabb..da9d5d6 100644 | ||
12 | --- a/gcc/ipa-pure-const.c | ||
13 | +++ b/gcc/ipa-pure-const.c | ||
14 | @@ -416,6 +416,13 @@ check_stmt (gimple_stmt_iterator *gsip, funct_state local, bool ipa) | ||
15 | print_gimple_stmt (dump_file, stmt, 0, 0); | ||
16 | } | ||
17 | |||
18 | + if (gimple_has_volatile_ops (stmt)) | ||
19 | + { | ||
20 | + local->pure_const_state = IPA_NEITHER; | ||
21 | + if (dump_file) | ||
22 | + fprintf (dump_file, " Volatile stmt is not const/pure\n"); | ||
23 | + } | ||
24 | + | ||
25 | /* Look for loads and stores. */ | ||
26 | walk_stmt_load_store_ops (stmt, local, check_load, check_store); | ||
27 | |||
28 | -- | ||
29 | 1.7.4 | ||
30 | |||