re PR rtl-optimization/42952 (possible integer wrong code bug)

2010-02-04  Richard Guenther  <rguenther@suse.de>

	PR rtl-optimization/42952
	* dse.c (const_or_frame_p): Remove MEM handling.

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

From-SVN: r156495
This commit is contained in:
Richard Guenther 2010-02-04 16:18:01 +00:00 committed by Richard Biener
parent 555e62b7e5
commit ef21095d90
4 changed files with 29 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-02-04 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/42952
* dse.c (const_or_frame_p): Remove MEM handling.
2010-01-31 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/42898

View File

@ -1015,9 +1015,6 @@ const_or_frame_p (rtx x)
{
switch (GET_CODE (x))
{
case MEM:
return MEM_READONLY_P (x);
case CONST:
case CONST_INT:
case CONST_DOUBLE:

View File

@ -1,3 +1,8 @@
2010-02-04 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/42952
* gcc.dg/torture/pr42952.c: New testcase.
2010-02-02 Tobias Burnus <burnus@net-b.de>
PR fortran/42650

View File

@ -0,0 +1,19 @@
/* { dg-do run } */
/* { dg-options "-fno-tree-ccp -fno-tree-fre" } */
extern void abort (void);
static int g[1];
static int * const p = &g[0];
static int * const q = &g[0];
int main(void)
{
g[0] = 1;
*p = 0;
*p = *q;
if (g[0] != 0)
abort ();
return 0;
}