diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-10-09 10:17:08 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-10-09 10:17:08 +0200 |
commit | df96b059470a8ede40342b4b19c6da1a82851aaf (patch) | |
tree | 4b26de45565f6554ef5ed3f5f27def80b657ef53 /gcc/tree.h | |
parent | cc2a64dd80513c1155fad3370bc639daa97b7404 (diff) | |
download | gcc-df96b059470a8ede40342b4b19c6da1a82851aaf.zip gcc-df96b059470a8ede40342b4b19c6da1a82851aaf.tar.gz gcc-df96b059470a8ede40342b4b19c6da1a82851aaf.tar.bz2 |
re PR middle-end/37774 (Alignment information is lost for ARRAY_REFs)
PR middle-end/37774
* tree.h (get_object_alignment): Declare.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Call
get_object_alignment if needed.
* builtins.c (get_pointer_alignment): Move ADDR_EXPR operand handling
to ...
(get_object_alignment): ... here. New function. Try harder to
determine alignment from get_inner_reference returned offset.
From-SVN: r141003
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4864,6 +4864,7 @@ extern tree build_string_literal (int, const char *); extern bool validate_arglist (const_tree, ...); extern rtx builtin_memset_read_str (void *, HOST_WIDE_INT, enum machine_mode); extern int get_pointer_alignment (tree, unsigned int); +extern int get_object_alignment (tree, unsigned int, unsigned int); extern tree fold_call_stmt (gimple, bool); extern tree gimple_fold_builtin_snprintf_chk (gimple, tree, enum built_in_function); |