diff options
author | edlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-27 16:33:01 +0000 |
---|---|---|
committer | edlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-27 16:33:01 +0000 |
commit | dc317fc847d66f8d9aa1f22b20c2264227003604 (patch) | |
tree | 57109bd0c5a05fb6134524e9eba3e9890ae43804 /gcc/builtins.c | |
parent | fb930d292eac663fe3b4770caf9ce9ce4a85def3 (diff) | |
download | ppe42-gcc-dc317fc847d66f8d9aa1f22b20c2264227003604.tar.gz ppe42-gcc-dc317fc847d66f8d9aa1f22b20c2264227003604.zip |
2013-11-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
reverted r205398 on request: Remove parameter keep_aligning from
get_inner_reference.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205452 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 3f03b01281b..d2248ea5ec6 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -329,7 +329,7 @@ get_object_alignment_2 (tree exp, unsigned int *alignp, /* Get the innermost object and the constant (bitpos) and possibly variable (offset) offset of the access. */ exp = get_inner_reference (exp, &bitsize, &bitpos, &offset, - &mode, &unsignedp, &volatilep); + &mode, &unsignedp, &volatilep, true); /* Extract alignment information from the innermost object and possibly adjust bitpos and offset. */ @@ -360,6 +360,10 @@ get_object_alignment_2 (tree exp, unsigned int *alignp, align = DECL_ALIGN (exp); known_alignment = true; } + else if (TREE_CODE (exp) == VIEW_CONVERT_EXPR) + { + align = TYPE_ALIGN (TREE_TYPE (exp)); + } else if (TREE_CODE (exp) == INDIRECT_REF || TREE_CODE (exp) == MEM_REF || TREE_CODE (exp) == TARGET_MEM_REF) |