re PR middle-end/48493 (ice in expand_expr_addr_expr_1 with complex types and mem_ref)

2012-05-31  Richard Guenther  <rguenther@suse.de>

	PR middle-end/48493
	* gcc.dg/torture/pr48493.c: New testcase.

From-SVN: r188058
This commit is contained in:
Richard Guenther 2012-05-31 11:06:35 +00:00 committed by Richard Biener
parent 673910d7aa
commit 1db1c6f520
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-05-31 Richard Guenther <rguenther@suse.de>
PR middle-end/48493
* gcc.dg/torture/pr48493.c: New testcase.
2012-05-31 Greta Yorsh <Greta.Yorsh@arm.com>
* lib/target-supports.exp (check_effective_target_vect_char_mult): Add

View File

@ -0,0 +1,18 @@
/* { dg-do compile } */
typedef long long T __attribute__((may_alias, aligned (1)));
struct S
{
_Complex float d __attribute__((aligned (8)));
};
void bar (struct S);
void
f1 (T x)
{
struct S s;
*(T *) ((char *) &s.d + 1) = x;
bar (s);
}