This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix build of cc1 for pdp11
- From: "Anatoly Sokolov" <aesok at post dot ru>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>, <gcc-patches at gcc dot gnu dot org>
- Cc: <ni1d at arrl dot net>
- Date: Wed, 15 Sep 2010 11:01:18 +0400
- Subject: Re: Fix build of cc1 for pdp11
- References: <Pine.LNX.4.64.1009142333240.11898@digraph.polyomino.org.uk>
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.