This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR target/43921: Bootstrap comparison fails when using -march=atom
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Apr 2010 11:23:09 -0700
- Subject: PATCH: PR target/43921: Bootstrap comparison fails when using -march=atom
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
We need to replace INSN_P with NONDEBUG_INSN_P after VTA change. Tested
on Linux/x86 with --with-arch=atom --with-cpu=atom. OK for trunk and
4.5?
Thanks.
H.J.
---
2010-04-28 H.J. Lu <hongjiu.lu@intel.com>
PR target/43921
* config/i386/i386.c (get_some_local_dynamic_name): Replace
INSN_P with NONDEBUG_INSN_P.
(distance_non_agu_define): Likewise.
(distance_agu_use): Likewise.
(x86_extended_reg_mentioned_p): Likewise.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index d13ab18..3e07d67 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -11420,7 +11420,7 @@ get_some_local_dynamic_name (void)
return cfun->machine->some_ld_name;
for (insn = get_insns (); insn ; insn = NEXT_INSN (insn))
- if (INSN_P (insn)
+ if (NONDEBUG_INSN_P (insn)
&& for_each_rtx (&PATTERN (insn), get_some_local_dynamic_name_1, 0))
return cfun->machine->some_ld_name;
@@ -13666,7 +13666,7 @@ distance_non_agu_define (unsigned int regno1, unsigned int regno2,
rtx prev = PREV_INSN (insn);
while (prev && distance < LEA_SEARCH_THRESHOLD)
{
- if (INSN_P (prev))
+ if (NONDEBUG_INSN_P (prev))
{
distance++;
for (def_rec = DF_INSN_DEFS (prev); *def_rec; def_rec++)
@@ -13706,7 +13706,7 @@ distance_non_agu_define (unsigned int regno1, unsigned int regno2,
&& prev != insn
&& distance < LEA_SEARCH_THRESHOLD)
{
- if (INSN_P (prev))
+ if (NONDEBUG_INSN_P (prev))
{
distance++;
for (def_rec = DF_INSN_DEFS (prev); *def_rec; def_rec++)
@@ -13752,7 +13752,7 @@ distance_agu_use (unsigned int regno0, rtx insn)
rtx next = NEXT_INSN (insn);
while (next && distance < LEA_SEARCH_THRESHOLD)
{
- if (INSN_P (next))
+ if (NONDEBUG_INSN_P (next))
{
distance++;
@@ -13801,7 +13801,7 @@ distance_agu_use (unsigned int regno0, rtx insn)
&& next != insn
&& distance < LEA_SEARCH_THRESHOLD)
{
- if (INSN_P (next))
+ if (NONDEBUG_INSN_P (next))
{
distance++;
@@ -26765,7 +26765,7 @@ extended_reg_mentioned_1 (rtx *p, void *data ATTRIBUTE_UNUSED)
bool
x86_extended_reg_mentioned_p (rtx insn)
{
- return for_each_rtx (INSN_P (insn) ? &PATTERN (insn) : &insn,
+ return for_each_rtx (NONDEBUG_INSN_P (insn) ? &PATTERN (insn) : &insn,
extended_reg_mentioned_1, NULL);
}