Commit 7e1e8a0a by Richard Biener Committed by Richard Biener

re PR middle-end/69715 (ICE: in store_bit_field_1, at expmed.c:839)

2016-02-09  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/69715
	* tree-ssa.c (execute_update_addresses_taken): Mark non-decl
	LHS on calls as non-rewritable.

	* gcc.dg/torture/pr69715.c: New testcase.

From-SVN: r233239
parent 2746ac67
2016-02-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/69715
* tree-ssa.c (execute_update_addresses_taken): Mark non-decl
LHS on calls as non-rewritable.
2016-02-09 Tom de Vries <tom@codesourcery.com>
PR lto/69707
......
2016-02-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/69715
* gcc.dg/torture/pr69715.c: New testcase.
2016-02-08 Patrick Palka <ppalka@gcc.gnu.org>
PR c++/69139
......
/* { dg-do compile } */
struct __attribute__((may_alias)) S { long long low; int high; };
struct S foo (void);
long double
bar (void)
{
long double a;
*(struct S *)&a = foo ();
return a;
}
......@@ -1436,7 +1436,8 @@ execute_update_addresses_taken (void)
tree lhs = gimple_get_lhs (stmt);
if (lhs
&& TREE_CODE (lhs) != SSA_NAME
&& non_rewritable_lvalue_p (lhs))
&& ((code == GIMPLE_CALL && ! DECL_P (lhs))
|| non_rewritable_lvalue_p (lhs)))
{
decl = get_base_address (lhs);
if (DECL_P (decl))
......
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