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]

[commit] Fix SPU build issue (Re: Remove US_SOFTWARE_GOFAST)


Joseph Myers wrote:

> Index: gcc/config/spu/t-spu-elf
> ===================================================================
> --- gcc/config/spu/t-spu-elf	(revision 167746)
> +++ gcc/config/spu/t-spu-elf	(working copy)

>  dp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
> -	echo '#undef US_SOFTWARE_GOFAST' > dp-bit.c
>  	cat $(srcdir)/config/fp-bit.c >> dp-bit.c

This change causes occasional build problems since the dp-bit.c file is
now no longer truncated before adding new contents.  Fixed by using >
instead of >> to create the file.

Tested on spu-elf, committed to mainline and 4.6 branch.

Bye,
Ulrich

ChangeLog:

	* config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.

Index: gcc/config/spu/t-spu-elf
===================================================================
*** gcc/config/spu/t-spu-elf	(revision 171686)
--- gcc/config/spu/t-spu-elf	(working copy)
***************
*** 1,4 ****
! #  Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
  #
  #  This file is free software; you can redistribute it and/or modify it under
  #  the terms of the GNU General Public License as published by the Free
--- 1,5 ----
! #  Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
! #  Free Software Foundation, Inc.
  #
  #  This file is free software; you can redistribute it and/or modify it under
  #  the terms of the GNU General Public License as published by the Free
*************** FPBIT = fp-bit.c
*** 55,61 ****
  DPBIT = dp-bit.c
  
  dp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
! 	cat $(srcdir)/config/fp-bit.c >> dp-bit.c
  
  fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
  	echo '#define FLOAT' > fp-bit.c
--- 56,62 ----
  DPBIT = dp-bit.c
  
  dp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
! 	cat $(srcdir)/config/fp-bit.c > dp-bit.c
  
  fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/spu/t-spu-elf
  	echo '#define FLOAT' > fp-bit.c

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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