Commit 25f738f2 by Jakub Jelinek Committed by Jakub Jelinek

re PR fortran/69368 (spec2006 test case 416.gamess fails with the g++ 6.0…

re PR fortran/69368 (spec2006 test case 416.gamess fails with the g++ 6.0 compiler starting with r232508)

	PR fortran/69368
	* tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.

From-SVN: r233153
parent cfca2d6d
2016-02-04 Jakub Jelinek <jakub@redhat.com>
PR fortran/69368
* tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
2016-02-04 Uros Bizjak <ubizjak@gmail.com>
PR rtl-optimization/69577
......
......@@ -588,15 +588,6 @@ get_ref_base_and_extent (tree exp, HOST_WIDE_INT *poffset,
exp = TREE_OPERAND (exp, 0);
}
/* We need to deal with variable arrays ending structures. */
if (seen_variable_array_ref
&& maxsize != -1
&& (TYPE_SIZE (TREE_TYPE (exp)) == NULL_TREE
|| TREE_CODE (TYPE_SIZE (TREE_TYPE (exp))) != INTEGER_CST
|| (bit_offset + maxsize
== wi::to_offset (TYPE_SIZE (TREE_TYPE (exp))))))
maxsize = -1;
done:
if (!wi::fits_shwi_p (bitsize) || wi::neg_p (bitsize))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment