OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gcc/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
tree-nested.c
diff --git
a/gcc/tree-nested.c
b/gcc/tree-nested.c
index
a20e320
..
2c1b919
100644
(file)
--- a/
gcc/tree-nested.c
+++ b/
gcc/tree-nested.c
@@
-183,6
+183,10
@@
insert_field_into_struct (tree type, tree field)
TREE_CHAIN (field) = *p;
*p = field;
TREE_CHAIN (field) = *p;
*p = field;
+
+ /* Set correct alignment for frame struct type. */
+ if (TYPE_ALIGN (type) < DECL_ALIGN (field))
+ TYPE_ALIGN (type) = DECL_ALIGN (field);
}
/* Build or return the RECORD_TYPE that describes the frame state that is
}
/* Build or return the RECORD_TYPE that describes the frame state that is