diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-30 12:37:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-05 11:54:44 +0100 |
commit | b0d5b9f12adbce2c4a0df6059f5671188cd32293 (patch) | |
tree | f376fcd2e5dcc46185d73d619ce2eec31320d812 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0132-PR-lto-48538.patch | |
parent | 81859b136c0153e8d5be71d56e910dcc3e8cdb66 (diff) | |
download | openembedded-core-b0d5b9f12adbce2c4a0df6059f5671188cd32293.tar.gz openembedded-core-b0d5b9f12adbce2c4a0df6059f5671188cd32293.tar.bz2 openembedded-core-b0d5b9f12adbce2c4a0df6059f5671188cd32293.tar.xz openembedded-core-b0d5b9f12adbce2c4a0df6059f5671188cd32293.zip |
gcc-4.6.0: Backport FSF 4.6 branch patches
This is set of bugfixes that has been done on
FSF gcc-4_2-branch since 4.6.0 was released
They will roll into 4.6.1 release once that
happens in coming approx 6 months time then
we can simply remove them thats the reason
so use a separate .inc file to define the
SRC_URI additions
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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.patch | 36 |
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 000000000..e71632e65 --- /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 + |