Add -funconstrained-commons to work around PR/69368 (and others) in SPEC2006
commit5ab2987f634948564554a6645c7cd73093a17a4a
authoralalaw01 <alalaw01@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Mar 2016 12:19:45 +0000 (10 12:19 +0000)
committeralalaw01 <alalaw01@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Mar 2016 12:19:45 +0000 (10 12:19 +0000)
tree53a07b60bfba985927686a3c1f4608c6205aaca9
parentbfe972081c3c75019fa5a6e883dcbeb5e03eea18
Add -funconstrained-commons to work around PR/69368 (and others) in SPEC2006

gcc/:

        * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
        * tree.c (array_at_struct_end_p): Do not limit to size of decl for
        DECL_COMMONS if flag_unconstrained_commons is set.
        * tree-dfa.c (get_ref_base_and_extent): Likewise.
        * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
        (funconstrained-commons): Document.

gcc/testsuite:

* gfortran.dg/unconstrained_commons.f: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234106 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/unconstrained_commons.f [new file with mode: 0644]
gcc/tree-dfa.c
gcc/tree.c