Comments

Function min_insn_size is defined under "#ifdef ASM_OUTPUT_MAX_SKIP_PAD" flag. Dispatch Scheduler called the function after #endif.
In this fix we move dispatch scheduler code under the same #ifdef.
Testing
-------
Self compile ran with “–mdispatch-scheduling -fschedule-insns -fsched-pressure –O2". Dispatch scheduling flag was manually set on in the self compile to exercise the new code. No new test added for this implementation. Make check of i386 tests passes. No difference in the number of failures with and without the dispatch flag.
ChangeLog
---------
2010-09-15 Reza Yazdani <reza.yazdani@amd.com>
* i386.c (#ifdef ASM_OUTPUT_MAX_SKIP_PAD): Added.
Is it okay to commit to trunk?
Reza

On 09/15/2010 01:46 PM, reza yazdani wrote:
> Function min_insn_size is defined under "#ifdef> ASM_OUTPUT_MAX_SKIP_PAD" flag. Dispatch Scheduler called the function> after #endif.> > In this fix we move dispatch scheduler code under the same #ifdef.
That's hardly the correct fix. If the dispatch scheduler needs
to use that function, then remove the ifdefs around its definition.
r~