diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-10-20 15:29:08 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-10-20 15:29:08 +0200 |
commit | dd8c071d66169f4696a86b1ebe4638a26696bce7 (patch) | |
tree | 41fd57790932a3036655aea364c231276401030b /gcc/loop-invariant.c | |
parent | b0cc341fd953d45f6418b2cbc646706eb3ad3bc5 (diff) | |
download | gcc-dd8c071d66169f4696a86b1ebe4638a26696bce7.zip gcc-dd8c071d66169f4696a86b1ebe4638a26696bce7.tar.gz gcc-dd8c071d66169f4696a86b1ebe4638a26696bce7.tar.bz2 |
re PR debug/41340 (GCC produces different code with and without -g option)
PR debug/41340
* loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
referenced just in DEBUG_INSNs.
* gcc.dg/pr41340.c: New test.
From-SVN: r153011
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r-- | gcc/loop-invariant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c index 7fb6cf0..8cbfdb3 100644 --- a/gcc/loop-invariant.c +++ b/gcc/loop-invariant.c @@ -1785,7 +1785,7 @@ calculate_loop_reg_pressure (void) FOR_BB_INSNS (bb, insn) { - if (! INSN_P (insn)) + if (! NONDEBUG_INSN_P (insn)) continue; mark_ref_regs (PATTERN (insn)); |