This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[commit, spu] Unbreak SPU build again
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Jul 2010 20:20:25 +0200 (CEST)
- Subject: [commit, spu] Unbreak SPU build again
Hello,
after a recent patch:
http://gcc.gnu.org/ml/gcc-patches/2010-07/msg00582.html
build of a spu-gcc compiler breaks again.
This is because spu.c for some reason contained hard-coded declarations
for some global variables that used to be defined by common code; and
have now been replaced by macros.
Fixed by simply removing the unneeded declarations.
Tested on spu-elf; committed to mainline.
Bye,
Ulrich
ChangeLog:
* config/spu/spu.c (reg_names): Remove prototype.
(call_used_regs): Likewise.
Index: gcc/config/spu/spu.c
===================================================================
*** gcc/config/spu/spu.c (revision 162175)
--- gcc/config/spu/spu.c (working copy)
*************** static void spu_unique_section (tree, in
*** 225,232 ****
static rtx spu_expand_load (rtx, rtx, rtx, int);
static void spu_trampoline_init (rtx, tree, rtx);
- extern const char *reg_names[];
-
/* Which instruction set architecture to use. */
int spu_arch;
/* Which cpu are we tuning for. */
--- 225,230 ----
*************** print_operand (FILE * file, rtx x, int c
*** 1697,1704 ****
gcc_unreachable ();
}
- extern char call_used_regs[];
-
/* For PIC mode we've reserved PIC_OFFSET_TABLE_REGNUM, which is a
caller saved register. For leaf functions it is more efficient to
use a volatile register because we won't need to save and restore the
--- 1695,1700 ----
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com