On Mon, Oct 22, 2012 at 11:00:08AM +0800, Bin Cheng wrote:
> The test case "gcc/testsuite/gcc.dg/hoist-register-pressure.c" is failed on
> x86_64-apple-darwin because it uses more registers than x86_64-linux. This
> can be fixed by simplifying the case using fewer registers.
>
> Tested on x86_64-apple-darwin/x86_64-linux, is it OK?
I'd say it is better to do the scan-rtl-dump only on nonpic targets,
that way it won't be done on darwin or for testing with
--target_board=unix/-fpic where it would fail too. You can add
the test with smaller register pressure as a new test
(hoist-register-pressure2.c).
Jakub