re PR rtl-optimization/9771 ([x86] wrong ebp optimisation)
authorRoger Sayle <roger@eyesopen.com>
Tue, 14 Sep 2004 22:52:41 +0000 (22:52 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 14 Sep 2004 22:52:41 +0000 (22:52 +0000)
commitf6ae6c51dfff2dc6fd23a2a09c8fe831e8cdcbba
tree3e3217eda3fa7c4321a9da7e4e8d44dc4b9d370c
parent1810f6edaad290e6c4b8003deac8a2be1dd0fb68
re PR rtl-optimization/9771 ([x86] wrong ebp optimisation)

PR rtl-optimization/9771
* regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
conditional compilation in init_reg_sets_1.
(init_reg_sets_1): Let global_regs[i] take priority over the frame
(but not stack) pointer exceptions to regs_invalidated_by_call.
(globalize_reg): Globalizing a fixed register may need to update
regs_invalidated_by_call.

* gcc.dg/pr9771-1.c: New test case.

From-SVN: r87516
gcc/ChangeLog
gcc/regclass.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr9771-1.c [new file with mode: 0644]