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]

[patch] inhibit_libc in config/rs6000/linux.h


When building the cross compiler for a linux powerpc the header files
might not be around yet. This patch allows the compiler to build the
basic compiler before the library has been built. The patch is attached
to the mail and the changelog entry is below. Okay to apply? -Will

2001-09-07  Will Cohen  <wcohen@redhat.com>

        * config/rs6000/linux.h: Inhibit includes when inhibit_libc
defined.
        
-- 
Will Cohen, GCC Engineer                         ------    ,__o
Red Hat, 2600 Meridian pkwy, Durham, NC 27713   ------   _-\_<,
Office (919)-547-0012 x390  Fax (919)-547-0024 ------   (*)/'(*)
Index: linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux.h,v
retrieving revision 1.29
diff -c -2 -p -r1.29 linux.h
*** linux.h	2001/08/06 13:04:29	1.29
--- linux.h	2001/09/11 13:24:54
*************** Boston, MA 02111-1307, USA.  */
*** 70,73 ****
--- 70,74 ----
  #define ASM_APP_OFF "#NO_APP\n"
  
+ #ifndef inhibit_libc
  /* Do code reading to identify a signal frame, and set the frame
     state data appropriately.  See unwind-dw2.c for the structs.  */
*************** enum { SIGNAL_FRAMESIZE = 64 };
*** 124,125 ****
--- 125,127 ----
    } while (0)
  
+ #endif /* inhibit_libc */

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