aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-08-27 22:52:26 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-08-27 22:52:27 -0700
commit38714f1ac0f7591e9d6fa23386c2450bb64e7213 (patch)
tree65962d0f8006e3e6cab8dc76f84537647f65ead8 /gcc-4.6
parent21bf998c3d45f38bdacff8a99e7691977927ed6f (diff)
parentb61c3a578b95325f25e08f41c6dfa199b3b53e0b (diff)
downloadtoolchain_gcc-38714f1ac0f7591e9d6fa23386c2450bb64e7213.tar.gz
toolchain_gcc-38714f1ac0f7591e9d6fa23386c2450bb64e7213.tar.bz2
toolchain_gcc-38714f1ac0f7591e9d6fa23386c2450bb64e7213.zip
Merge "Fix compilation with GCC 4.7"
Diffstat (limited to 'gcc-4.6')
-rw-r--r--gcc-4.6/gcc/gengtype.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc-4.6/gcc/gengtype.c b/gcc-4.6/gcc/gengtype.c
index abf17f8e7..6c0ca4a0b 100644
--- a/gcc-4.6/gcc/gengtype.c
+++ b/gcc-4.6/gcc/gengtype.c
@@ -3594,14 +3594,13 @@ write_field_root (outf_p f, pair_p v, type_p type, const char *name,
int has_length, struct fileloc *line, const char *if_marked,
bool emit_pch, type_p field_type, const char *field_name)
{
+ struct pair newv;
/* If the field reference is relative to V, rather than to some
subcomponent of V, we can mark any subarrays with a single stride.
We're effectively treating the field as a global variable in its
own right. */
if (v && type == v->type)
{
- struct pair newv;
-
newv = *v;
newv.type = field_type;
newv.name = ACONCAT ((v->name, ".", field_name, NULL));