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]

gcc-3.2 powerpc cross compile patch


gcc-3.2 wouldn't build for me due to a problem with
inhibit_libc not taking effect.

The following now works, and builds a working
compiler:

./configure --host=i686-linux --target=powerpc-linux
--enable-shared --enable-threads
--enable-languages=c,c++ --with-cpu=405 --without-fp

Patch is attached.

Regards,
Brian


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
diff -urwN gcc-3.2.orig/gcc-3.2/gcc/config/rs6000/linux.h gcc-3.2.new/gcc-3.2/gcc/config/rs6000/linux.h
--- gcc-3.2.orig/gcc-3.2/gcc/config/rs6000/linux.h	Sun Dec  2 16:49:41 2001
+++ gcc-3.2.new/gcc-3.2/gcc/config/rs6000/linux.h	Mon Sep 23 22:25:31 2002
@@ -77,6 +77,7 @@
 /* Do code reading to identify a signal frame, and set the frame
    state data appropriately.  See unwind-dw2.c for the structs.  */
 
+#ifndef inhibit_libc
 #ifdef IN_LIBGCC2
 #include <signal.h>
 #include <sys/ucontext.h>
@@ -128,3 +129,4 @@
     goto SUCCESS;							\
   } 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]