diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0210-2011-05-03-Richard-Guenther-rguenther-suse.de.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0210-2011-05-03-Richard-Guenther-rguenther-suse.de.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0210-2011-05-03-Richard-Guenther-rguenther-suse.de.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0210-2011-05-03-Richard-Guenther-rguenther-suse.de.patch new file mode 100644 index 0000000000..38cf002205 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0210-2011-05-03-Richard-Guenther-rguenther-suse.de.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 70c664c19627b688855bb6189db0b314e1d19567 Mon Sep 17 00:00:00 2001 | ||
2 | From: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Tue, 3 May 2011 10:21:44 +0000 | ||
4 | Subject: [PATCH] 2011-05-03 Richard Guenther <rguenther@suse.de> | ||
5 | |||
6 | PR lto/48846 | ||
7 | * lto-streamer-in.c (unpack_ts_decl_common_value_fields): | ||
8 | Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN. | ||
9 | * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise. | ||
10 | |||
11 | |||
12 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173299 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
13 | |||
14 | index a873258..4783717 100644 | ||
15 | --- a/gcc/lto-streamer-in.c | ||
16 | +++ b/gcc/lto-streamer-in.c | ||
17 | @@ -1596,11 +1596,9 @@ unpack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr) | ||
18 | |||
19 | if (TREE_CODE (expr) == FIELD_DECL) | ||
20 | { | ||
21 | - unsigned HOST_WIDE_INT off_align; | ||
22 | DECL_PACKED (expr) = (unsigned) bp_unpack_value (bp, 1); | ||
23 | DECL_NONADDRESSABLE_P (expr) = (unsigned) bp_unpack_value (bp, 1); | ||
24 | - off_align = (unsigned HOST_WIDE_INT) bp_unpack_value (bp, 8); | ||
25 | - SET_DECL_OFFSET_ALIGN (expr, off_align); | ||
26 | + expr->decl_common.off_align = bp_unpack_value (bp, 8); | ||
27 | } | ||
28 | |||
29 | if (TREE_CODE (expr) == RESULT_DECL | ||
30 | diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c | ||
31 | index ba916b6..3b90fdd 100644 | ||
32 | --- a/gcc/lto-streamer-out.c | ||
33 | +++ b/gcc/lto-streamer-out.c | ||
34 | @@ -414,7 +414,7 @@ pack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr) | ||
35 | { | ||
36 | bp_pack_value (bp, DECL_PACKED (expr), 1); | ||
37 | bp_pack_value (bp, DECL_NONADDRESSABLE_P (expr), 1); | ||
38 | - bp_pack_value (bp, DECL_OFFSET_ALIGN (expr), 8); | ||
39 | + bp_pack_value (bp, expr->decl_common.off_align, 8); | ||
40 | } | ||
41 | |||
42 | if (TREE_CODE (expr) == RESULT_DECL | ||
43 | -- | ||
44 | 1.7.0.4 | ||
45 | |||