[PATCH] Fix cselib -fcompare-debug problem (PR bootstrap/52172)

2012-02-13 Thread Jakub Jelinek
Hi! To avoid -fcompare-debug failures, we promote_debug_loc VALUEs looked up from DEBUG_INSNs when they are looked from some other insns. Unfortunately, the scheduler after cselib_lookup_from_insn from DEBUG_INSN calls cselib_subst_to_values, which may e.g. cselib_lookup_mem (with create=0). As

Re: [PATCH] Fix cselib -fcompare-debug problem (PR bootstrap/52172)

2012-02-13 Thread Richard Henderson
On 02/13/2012 03:17 PM, Jakub Jelinek wrote: 2012-02-13 Jakub Jelinek ja...@redhat.com PR bootstrap/52172 * cselib.h (cselib_subst_to_values_from_insn): New prototype. * cselib.c (cselib_subst_to_values_from_insn): New function. * sched-deps.c