re PR debug/41232 (VTA: SSA name in freelist but still referenced)
gcc/ChangeLog: PR debug/41232 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts in the middle block. gcc/testsuite/ChangeLog: PR debug/41232 * gcc.dg/pr41232.c: New. From-SVN: r151519
This commit is contained in:
parent
a3d3711969
commit
21719cea11
4 changed files with 26 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-09-08 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
PR debug/41232
|
||||
* tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
|
||||
in the middle block.
|
||||
|
||||
2009-09-08 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* tree-ssa-reassoc.c (find_operand_rank): Cast pointer
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2009-09-08 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
PR debug/41232
|
||||
* gcc.dg/pr41232.c: New.
|
||||
|
||||
2009-09-08 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* gcc.misc-tests/i386-prefetch.exp: Skip tests when multilib flags
|
||||
|
|
14
gcc/testsuite/gcc.dg/pr41232.c
Normal file
14
gcc/testsuite/gcc.dg/pr41232.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O1 -g" } */
|
||||
extern int atoi (const char *);
|
||||
extern int sprintf (char *, const char *, ...);
|
||||
void malloc_init() {
|
||||
char *cptr;
|
||||
char buf[1];
|
||||
int tmbd = atoi(cptr);
|
||||
if (tmbd > 0)
|
||||
tmbd = (tmbd <= 124) ? tmbd : 124;
|
||||
else
|
||||
tmbd = 0;
|
||||
sprintf(buf, "%d\n", tmbd);
|
||||
}
|
|
@ -857,7 +857,7 @@ minmax_replacement (basic_block cond_bb, basic_block middle_bb,
|
|||
|
||||
/* Move the statement from the middle block. */
|
||||
gsi = gsi_last_bb (cond_bb);
|
||||
gsi_from = gsi_last_bb (middle_bb);
|
||||
gsi_from = gsi_last_nondebug_bb (middle_bb);
|
||||
gsi_move_before (&gsi_from, &gsi);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue