X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fvar-tracking.c;h=815facae1820e47b06f0c10b7aac1e6ecd781f7d;hp=e33950e87b59c31140f78b54d66f72400f0900cd;hb=2a964ec63acf074dc570dafdb77b3b2bd89bcf47;hpb=57bcf24d3abb83508e34fa942b8df8cf7950453c diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index e33950e87b5..815facae182 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -1960,7 +1960,7 @@ dump_dataflow_set (dataflow_set *set) fprintf (dump_file, "Stack adjustment: " HOST_WIDE_INT_PRINT_DEC "\n", set->stack_adjust); - for (i = 1; i < FIRST_PSEUDO_REGISTER; i++) + for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) { if (set->regs[i]) { @@ -2212,8 +2212,32 @@ clobber_variable_part (dataflow_set *set, rtx loc, tree decl, for (node = next; node; node = next) { next = node->next; - if (REG_P (node->loc) && node->loc != loc) - var_reg_delete (set, node->loc, false); + if (node->loc != loc) + { + if (REG_P (node->loc)) + { + attrs anode, anext; + attrs *anextp; + + /* Remove the variable part from the register's + list, but preserve any other variable parts + that might be regarded as live in that same + register. */ + anextp = &set->regs[REGNO (node->loc)]; + for (anode = *anextp; anode; anode = anext) + { + anext = anode->next; + if (anode->decl == decl + && anode->offset == offset) + { + pool_free (attrs_pool, anode); + *anextp = anext; + } + } + } + + delete_variable_part (set, node->loc, decl, offset); + } } } }