aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0132-PR-lto-48538.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0132-PR-lto-48538.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0132-PR-lto-48538.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0132-PR-lto-48538.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0132-PR-lto-48538.patch
new file mode 100644
index 0000000000..e71632e652
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0132-PR-lto-48538.patch
@@ -0,0 +1,36 @@
+From aeb8275b52616d86410149e8500839115f9c0b8b Mon Sep 17 00:00:00 2001
+From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Sun, 17 Apr 2011 14:58:03 +0000
+Subject: [PATCH 132/200] PR lto/48538
+ * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
+ is non-null before accessing it.
+ (input_cgraph): Remove trailing spaces.
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172612 138bc75d-0d04-0410-961f-82ee72b054a4
+
+index ae49ae6..a7f31fe 100644
+--- a/gcc/lto-cgraph.c
++++ b/gcc/lto-cgraph.c
+@@ -1501,7 +1501,8 @@ merge_profile_summaries (struct lto_file_decl_data **file_data_vec)
+ During LTRANS we already have values of count_materialization_scale
+ computed, so just update them. */
+ for (node = cgraph_nodes; node; node = node->next)
+- if (node->local.lto_file_data->profile_info.runs)
++ if (node->local.lto_file_data
++ && node->local.lto_file_data->profile_info.runs)
+ {
+ int scale;
+
+@@ -1573,8 +1574,8 @@ input_cgraph (void)
+ VEC_free (cgraph_node_ptr, heap, nodes);
+ VEC_free (varpool_node_ptr, heap, varpool);
+ }
++
+ merge_profile_summaries (file_data_vec);
+-
+
+ /* Clear out the aux field that was used to store enough state to
+ tell which nodes should be overwritten. */
+--
+1.7.0.4
+