From: <dan...@us...> - 2009-04-11 12:31:32
|
Revision: 1233 http://cegcc.svn.sourceforge.net/cegcc/?rev=1233&view=rev Author: dannybackx Date: 2009-04-11 12:31:23 +0000 (Sat, 11 Apr 2009) Log Message: ----------- Stuff to get the gcc-bootstrap for x86 going. Modified Paths: -------------- trunk/cegcc/src/gcc/gcc/ChangeLog.ce trunk/cegcc/src/gcc/gcc/config/i386/gthr-win32.c trunk/cegcc/src/gcc/gcc/config/i386/t-cygming Modified: trunk/cegcc/src/gcc/gcc/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2009-04-11 09:38:42 UTC (rev 1232) +++ trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2009-04-11 12:31:23 UTC (rev 1233) @@ -1,3 +1,9 @@ +2009-04-11 Danny Backx <dan...@us...> + + * gcc/config/i386/t-cygming : Include the src/mingw/include tree so + libgcc2 can be compiled. + * gcc/config/i386/gthr-win32.c : Use ERROR_INVALID_FUNCTION, not EINVAL. + 2007-12-25 Pedro Alves <ped...@po...> * libgcov.c (gcov_exit) [UNDER_CE]: Fix mbstowcs/wcstombs Modified: trunk/cegcc/src/gcc/gcc/config/i386/gthr-win32.c =================================================================== --- trunk/cegcc/src/gcc/gcc/config/i386/gthr-win32.c 2009-04-11 09:38:42 UTC (rev 1232) +++ trunk/cegcc/src/gcc/gcc/config/i386/gthr-win32.c 2009-04-11 12:31:23 UTC (rev 1233) @@ -73,8 +73,13 @@ int __gthr_win32_once (__gthread_once_t *once, void (*func) (void)) { - if (once == NULL || func == NULL) + if (once == NULL || func == NULL) { +#ifdef EINVAL return EINVAL; +#else + return ERROR_INVALID_FUNCTION; +#endif + } if (! once->done) { Modified: trunk/cegcc/src/gcc/gcc/config/i386/t-cygming =================================================================== --- trunk/cegcc/src/gcc/gcc/config/i386/t-cygming 2009-04-11 09:38:42 UTC (rev 1232) +++ trunk/cegcc/src/gcc/gcc/config/i386/t-cygming 2009-04-11 12:31:23 UTC (rev 1233) @@ -8,7 +8,15 @@ # If we are building next to winsup, this will let us find the real # limits.h when building libgcc2. Otherwise, winsup must be installed # first. -LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include +# +# For CeGCC, don't point to winsup (we don't have that) but to the +# src/mingw/include tree. +# +LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include \ + -I$(prefix)/$(target)/include \ + -I$(srcdir)/../../w32api/include \ + -I$(srcdir)/../../mingw/include \ + -I$(prefix)/i386-mingw32ce/include winnt.o: $(srcdir)/config/i386/winnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |