Commit f561ef0f by Bernd Schmidt Committed by Bernd Schmidt

re PR bootstrap/50825 (bootstrap fails at stage1 libgcc from r180302)

	PR bootstrap/50825
	* sched-deps.c (add_dependence): If not doing predication, promote
	REG_DEP_CONTROL to REG_DEP_ANTI.

From-SVN: r180310
parent fe66170d
2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
PR bootstrap/50825
* sched-deps.c (add_dependence): If not doing predication, promote
REG_DEP_CONTROL to REG_DEP_ANTI.
2011-10-21 Georg-Johann Lay <avr@gjlay.de> 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
...@@ -1505,6 +1505,10 @@ sd_debug_lists (rtx insn, sd_list_types_def types) ...@@ -1505,6 +1505,10 @@ sd_debug_lists (rtx insn, sd_list_types_def types)
void void
add_dependence (rtx con, rtx pro, enum reg_note dep_type) add_dependence (rtx con, rtx pro, enum reg_note dep_type)
{ {
if (dep_type == REG_DEP_CONTROL
&& !(current_sched_info->flags & DO_PREDICATION))
dep_type = REG_DEP_ANTI;
/* A REG_DEP_CONTROL dependence may be eliminated through predication, /* A REG_DEP_CONTROL dependence may be eliminated through predication,
so we must also make the insn dependent on the setter of the so we must also make the insn dependent on the setter of the
condition. */ condition. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment