* cse.c (equiv_constant): Fix pasto.

From-SVN: r142432
This commit is contained in:
Eric Botcazou 2008-12-04 11:44:41 +00:00 committed by Eric Botcazou
parent 5ab9749e29
commit a4781348e2
4 changed files with 32 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-12-04 Eric Botcazou <ebotcazou@adacore.com>
* cse.c (equiv_constant): Fix pasto.
2008-12-04 Nick Clifton <nickc@redhat.com> 2008-12-04 Nick Clifton <nickc@redhat.com>
* config/stormy16/stormy16.md: Remove extraneous spaces and * config/stormy16/stormy16.md: Remove extraneous spaces and

View File

@ -3651,7 +3651,7 @@ equiv_constant (rtx x)
if (REG_P (SUBREG_REG (x)) if (REG_P (SUBREG_REG (x))
&& (new_rtx = equiv_constant (SUBREG_REG (x))) != 0) && (new_rtx = equiv_constant (SUBREG_REG (x))) != 0)
return simplify_subreg (GET_MODE (x), SUBREG_REG (x), return simplify_subreg (GET_MODE (x), new_rtx,
GET_MODE (SUBREG_REG (x)), SUBREG_BYTE (x)); GET_MODE (SUBREG_REG (x)), SUBREG_BYTE (x));
return 0; return 0;

View File

@ -1,3 +1,7 @@
2008-12-04 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/union-4.c: New test.
2008-12-03 H.J. Lu <hongjiu.lu@intel.com> 2008-12-03 H.J. Lu <hongjiu.lu@intel.com>
* g++.old-deja/g++.eh/badalloc1.C: Add the missing "}". * g++.old-deja/g++.eh/badalloc1.C: Add the missing "}".

View File

@ -0,0 +1,23 @@
/* { dg-do compile } */
/* { dg-options "-O -fdump-rtl-cse1" } */
extern void abort(void);
typedef unsigned int uint32;
typedef unsigned long long uint64;
typedef union {
uint32 i32;
uint64 i64;
} u64;
void foo(void)
{
u64 data;
data.i64 = 1;
if (data.i32 != 1)
abort ();
}
/* { dg-final { scan-rtl-dump-not "abort" "cse1" { target i?86-*-* } } } */
/* { dg-final { cleanup-rtl-dump "cse1" } } */