This is the mail archive of the 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]

[commit, spu] Unbreak SPU build again


after a recent patch:
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.



	* 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

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