This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix build of cc1 for pdp11


Hi.

From: "Joseph S. Myers" <joseph@codesourcery.com>
Sent: Wednesday, September 15, 2010 3:34 AM

The pdp11 back end has its own register_move_cost function that
conflicts with the target-independent one added a few months ago.
This patch fixes build of cc1 for this target by renaming the target's
function to pdp11_register_move_cost.

Tested with building cc1 for cross to pdp11-none. OK to commit?


Better to hookize REGISTER_MOVE_COST and MEMORY_MOVE_COST macros and use equivalent TARGET_REGISTER_MOVE_COST and TARGET_MEMORY_MOVE_COST target hooks.

Anatoly.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]