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: [PATCH]: Separate target and host config files


Richard Earnshaw wrote:
2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
	    Paolo Bonzini  <bonzini@gnu.org>

Breaks bootstrap on arm-netbsdelf2 and building any arm-elf style
cross. The problem is the removal of IN_LIBGCC when compiling
crtstuff.c, but I can't see any explanation why you wanted to do that. On ARM that macro is needed to get a suitable static declaration of the
CTOR macros that can be used in an ASM statement.

I've installed this obvious reversion, after checking that crtFOO still builds on i686. The good news is that I'm nearly at the end of this sequence of assert patches ... now what shall I break next? BWAHAHAHA

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.8670
diff -c -3 -p -r2.8670 ChangeLog
*** ChangeLog	9 May 2005 12:09:05 -0000	2.8670
--- ChangeLog	10 May 2005 10:18:08 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
+ 
+ 	* crtstuff.c: Revert part of 2005-05-08 Change.
+ 	(IN_LIBGCC2): Define.
+ 
  2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
  
  	* config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
Index: crtstuff.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/crtstuff.c,v
retrieving revision 1.72
diff -c -3 -p -r1.72 crtstuff.c
*** crtstuff.c	8 May 2005 10:13:16 -0000	1.72
--- crtstuff.c	10 May 2005 10:18:09 -0000
*************** Software Foundation, 59 Temple Place - S
*** 51,56 ****
--- 51,59 ----
  
     This file must be compiled with gcc.  */
  
+ /* Target machine header files require this define. */
+ #define IN_LIBGCC2
+ 
  #include "tconfig.h"
  #include "tsystem.h"
  #include "coretypes.h"

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