Commit 88c04a5d by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/44136 (ICE in expand_debug_expr with -mno-sse)

	PR debug/44136
	* cfgexpand.c (expand_debug_expr): If non-memory op0
	has BLKmode, return NULL.

	* gcc.dg/pr44136.c: New test.

From-SVN: r159400
parent 1133125e
2010-05-14 Jakub Jelinek <jakub@redhat.com>
PR debug/44136
* cfgexpand.c (expand_debug_expr): If non-memory op0
has BLKmode, return NULL.
2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
* config.gcc: Add support for --with-cpu option for bdver1.
......
......@@ -2561,13 +2561,14 @@ expand_debug_expr (tree exp)
if (bitpos < 0)
return NULL;
if (GET_MODE (op0) == BLKmode)
return NULL;
if ((bitpos % BITS_PER_UNIT) == 0
&& bitsize == GET_MODE_BITSIZE (mode1))
{
enum machine_mode opmode = GET_MODE (op0);
gcc_assert (opmode != BLKmode);
if (opmode == VOIDmode)
opmode = mode1;
......
......@@ -2,6 +2,9 @@
* gfortran.dg/gomp/pr44036-1.f90: Adjust.
PR debug/44136
* gcc.dg/pr44136.c: New test.
2010-05-14 Shujing Zhao <pearly.zhao@oracle.com>
PR c++/30566
......
/* PR debug/44136 */
/* { dg-do compile } */
/* { dg-options "-w -O2 -g" } */
/* { dg-options "-w -O2 -g -mno-sse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
#define vector __attribute((vector_size(16)))
vector float a;
float
foo (float b)
{
vector float c = { 0, 0, 0, 0 };
vector float d = { 0, 0, 0, 0 };
d += c;
return ((float *)&c)[2];
}
float
bar (vector float a, int b, vector float c)
{
vector float e = c * a;
a = (vector float) { 0, 0, 0, 0 };
c = (vector float) { 0, 0, 0, 0 };
float d = ((float *)&a)[0];
float f = ((float *)&c)[0];
return d * f;
}
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