diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-02-08 10:09:01 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-02-08 10:09:01 +0100 |
commit | 8fcbce729d0ccd6881e479af9eec694abec61ee5 (patch) | |
tree | f4136c704d65e778659cad96324aa2c41d89c897 /gcc/fortran/resolve.c | |
parent | 451bdd23084ab3282aa438f8d2808ea091cc0758 (diff) | |
download | gcc-8fcbce729d0ccd6881e479af9eec694abec61ee5.zip gcc-8fcbce729d0ccd6881e479af9eec694abec61ee5.tar.gz gcc-8fcbce729d0ccd6881e479af9eec694abec61ee5.tar.bz2 |
re PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment info)
PR middle-end/60092
* tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
assume_aligned or alloc_align attributes.
(bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
arguments. Handle also assume_aligned and alloc_align attributes.
(evaluate_stmt): Adjust bit_value_assume_aligned caller.
Handle calls to functions with assume_aligned or alloc_align
attributes.
* doc/extend.texi: Document assume_aligned and alloc_align
attributes.
c-family/
* c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
and tree_to_uhwi.
(handle_alloc_align_attribute, handle_assume_aligned_attribute): New
functions.
(c_common_attribute_table): Add alloc_align and assume_aligned
attributes.
testsuite/
* gcc.dg/attr-alloc_align-1.c: New test.
* gcc.dg/attr-alloc_align-2.c: New test.
* gcc.dg/attr-alloc_align-3.c: New test.
* gcc.dg/attr-assume_aligned-1.c: New test.
* gcc.dg/attr-assume_aligned-2.c: New test.
* gcc.dg/attr-assume_aligned-3.c: New test.
From-SVN: r207628
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions