summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.5.1/pr45052.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.5.1/pr45052.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.5.1/pr45052.patch30
1 files changed, 30 insertions, 0 deletions
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 @@
1From 138f1af2d77d56762a2c2af4759efd53c275b67e Mon Sep 17 00:00:00 2001
2From: Ilya Yanok <yanok@emcraft.com>
3Date: Mon, 21 Mar 2011 00:49:43 +0100
4Subject: [PATCH 5/6] PR45052
5
6---
7 gcc/ipa-pure-const.c | 7 +++++++
8 1 files changed, 7 insertions(+), 0 deletions(-)
9
10diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
11index 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--
291.7.4
30