mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 15:40:55 +08:00
re PR debug/46375 (-fcompare-debug failure (length) with -O -fgcse -fno-tree-dominator-opts)
PR debug/46375 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns. From-SVN: r166646
This commit is contained in:
parent
8bbaa77087
commit
4e0084e438
@ -1,3 +1,8 @@
|
||||
2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
PR debug/46375
|
||||
* emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
|
||||
|
||||
2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
|
||||
|
||||
PR lto/46376
|
||||
|
@ -3867,7 +3867,7 @@ remove_insn (rtx insn)
|
||||
if (!BARRIER_P (insn)
|
||||
&& (bb = BLOCK_FOR_INSN (insn)))
|
||||
{
|
||||
if (INSN_P (insn))
|
||||
if (NONDEBUG_INSN_P (insn))
|
||||
df_set_bb_dirty (bb);
|
||||
if (BB_HEAD (bb) == insn)
|
||||
{
|
||||
|
@ -1,3 +1,7 @@
|
||||
2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gcc.dg/pr46375.c: New test.
|
||||
|
||||
2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
|
||||
|
||||
PR c/44782
|
||||
|
16
gcc/testsuite/gcc.dg/pr46375.c
Normal file
16
gcc/testsuite/gcc.dg/pr46375.c
Normal file
@ -0,0 +1,16 @@
|
||||
/* PR debug/46375 */
|
||||
/* Reported by Zdenek Sojka <zsojka@seznam.cz> */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-fgcse -fno-tree-dominator-opts -fcompare-debug -O" } */
|
||||
|
||||
void bar (void);
|
||||
|
||||
void
|
||||
foo (int **pp)
|
||||
{
|
||||
int *p = 0;
|
||||
if (pp)
|
||||
p = *pp;
|
||||
if (p && *p)
|
||||
bar ();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user