From: <dan...@us...> - 2009-09-01 08:52:34
|
Revision: 1365 http://cegcc.svn.sourceforge.net/cegcc/?rev=1365&view=rev Author: dannybackx Date: 2009-09-01 08:52:21 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Add three more macros, these help PocketPuTTY. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/tchar.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-08-30 06:40:31 UTC (rev 1364) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-01 08:52:21 UTC (rev 1365) @@ -1,3 +1,7 @@ +2009-09-01 Danny Backx <dan...@us...> + + * include/tchar.h (_tcsnccpy, _tcsncpy, _tcsclen) : Define. + 2009-08-27 Vincent Torri <vt...@un...> Danny Backx <dan...@us...> Modified: trunk/cegcc/src/mingw/include/tchar.h =================================================================== --- trunk/cegcc/src/mingw/include/tchar.h 2009-08-30 06:40:31 UTC (rev 1364) +++ trunk/cegcc/src/mingw/include/tchar.h 2009-09-01 08:52:21 UTC (rev 1365) @@ -416,5 +416,17 @@ #define _TEXT(x) __TEXT(x) #define _T(x) __TEXT(x) +/* + */ +#ifdef _UNICODE +#define _tcsnccpy wcsncpy +#define _tcsncpy wcsncpy +#define _tcsclen wcslen +#else +#define _tcsnccpy strncpy +#define _tcsncpy strncpy +#define _tcsclen strlen +#endif + #endif /* Not _TCHAR_H_ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2009-09-06 20:35:21
|
Revision: 1370 http://cegcc.svn.sourceforge.net/cegcc/?rev=1370&view=rev Author: pedroalves Date: 2009-09-06 20:35:09 +0000 (Sun, 06 Sep 2009) Log Message: ----------- * abort.c (abort): Exit with exit code 1 instead of 0. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/abort.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-06 20:32:07 UTC (rev 1369) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-06 20:35:09 UTC (rev 1370) @@ -1,3 +1,7 @@ +2009-02-08 Pedro Alves <ped...@us...> + + * abort.c (abort): Exit with exit code 1 instead of 0. + 2009-09-01 Danny Backx <dan...@us...> * include/tchar.h (_tcsnccpy, _tcsncpy, _tcsclen): Define. Modified: trunk/cegcc/src/mingw/abort.c =================================================================== --- trunk/cegcc/src/mingw/abort.c 2009-09-06 20:32:07 UTC (rev 1369) +++ trunk/cegcc/src/mingw/abort.c 2009-09-06 20:35:09 UTC (rev 1370) @@ -4,6 +4,6 @@ void abort(void) { - TerminateProcess (GetCurrentProcess(), 0); + TerminateProcess (GetCurrentProcess(), 1); while (1); /* Kill 'noreturn function does return' warning. */ } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2009-09-06 23:23:14
|
Revision: 1372 http://cegcc.svn.sourceforge.net/cegcc/?rev=1372&view=rev Author: pedroalves Date: 2009-09-06 21:23:17 +0000 (Sun, 06 Sep 2009) Log Message: ----------- * Makefile.in (libceoldname.a): Specify COREDLL.dll as dll name, not coredll.dll. (libcoredll6.a): Remove rule. (lib%.a): Don't pass --dllname to dlltool if the .def file already specifies one with LIBRARY. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/Makefile.in Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-06 20:50:57 UTC (rev 1371) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-06 21:23:17 UTC (rev 1372) @@ -1,5 +1,13 @@ -2009-02-08 Pedro Alves <ped...@us...> +2009-09-06 Pedro Alves <ped...@us...> + * Makefile.in (libceoldname.a): Specify COREDLL.dll as dll name, + not coredll.dll. + (libcoredll6.a): Remove rule. + (lib%.a): Don't pass --dllname to dlltool if the .def file already + specifies one with LIBRARY. + +2009-09-06 Pedro Alves <ped...@us...> + * abort.c (abort): Exit with exit code 1 instead of 0. 2009-09-01 Danny Backx <dan...@us...> Modified: trunk/cegcc/src/mingw/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/Makefile.in 2009-09-06 20:50:57 UTC (rev 1371) +++ trunk/cegcc/src/mingw/Makefile.in 2009-09-06 21:23:17 UTC (rev 1372) @@ -366,7 +366,7 @@ libceoldname.a: moldname-coredll.def $(MOLD_OBJS) $(DLLTOOL) --as $(AS) -k -U \ - --dllname coredll.dll \ + --dllname COREDLL.dll \ --def moldname-coredll.def \ --output-lib $@ $(AR) rc $@ $(MOLD_OBJS) @@ -619,11 +619,12 @@ MINGW_REPL_FUNCS = printf fprintf sprintf vprintf vfprintf vsprintf -libcoredll6.a: coredll6.def - $(DLLTOOL) --as=$(AS) -k --dllname coredll.dll --output-lib $@ --def $< - +# If the .def file specifies an explicit LIBRARY name, then don't +# override it with --dllname. lib%.a: %.def - $(DLLTOOL) --as=$(AS) -k --dllname $*.dll --output-lib $@ --def $< + grep -q "^LIBRARY " $< 2>&1 1>/dev/null \ + && $(DLLTOOL) --as=$(AS) -k --output-lib $@ --def $< \ + || $(DLLTOOL) --as=$(AS) -k --dllname $*.dll --output-lib $@ --def $< for key in $(MINGW_REPL_FUNCS); do \ src=`$(NM_LOOKUP)`; \ if test -n "$$src"; then \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-09-07 17:27:33
|
Revision: 1378 http://cegcc.svn.sourceforge.net/cegcc/?rev=1378&view=rev Author: dannybackx Date: 2009-09-07 17:27:25 +0000 (Mon, 07 Sep 2009) Log Message: ----------- Sync with w32api Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/coredll.def trunk/cegcc/src/mingw/coredll6.def Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-07 17:16:24 UTC (rev 1377) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-07 17:27:25 UTC (rev 1378) @@ -1,3 +1,7 @@ +2009-09-07 Danny Backx <dan...@us...> + + * coredll.def, coredll6.def : Sync with w32api. + 2009-09-06 Pedro Alves <ped...@us...> Merge from upstream (at 3.16 + patches). @@ -14,6 +18,7 @@ * abort.c (abort): Exit with exit code 1 instead of 0. +>>>>>>> .r1377 2009-09-01 Danny Backx <dan...@us...> * include/tchar.h (_tcsnccpy, _tcsncpy, _tcsclen): Define. Modified: trunk/cegcc/src/mingw/coredll.def =================================================================== --- trunk/cegcc/src/mingw/coredll.def 2009-09-07 17:16:24 UTC (rev 1377) +++ trunk/cegcc/src/mingw/coredll.def 2009-09-07 17:27:25 UTC (rev 1378) @@ -1,5 +1,6 @@ ; PLEASE KEEP THE MINGW/COREDLL.DEF AND W32API/LIBCE/COREDLL.DEF ; FILES IN SYNC. +; this is the mingw/coredll.def file LIBRARY COREDLL EXPORTS @@ -290,6 +291,7 @@ EnumCalendarInfoW EnumClipboardFormats EnumDateFormatsW +EnumDeviceInterfaces EnumDevices EnumDisplayDevices EnumDisplayMonitors @@ -326,7 +328,9 @@ FindFirstChangeNotificationW FindFirstFileExW FindFirstFileW +FindFirstDevice FindNextChangeNotification +FindNextDevice FindNextFileW FindResource FindResourceW @@ -393,6 +397,8 @@ GetDesktopWindow GetDeviceByIndex GetDeviceCaps +GetDeviceInformationByDeviceHandle +GetDeviceInformationByFileHandle GetDeviceKeys GetDevicePower GetDialogBaseUnits Modified: trunk/cegcc/src/mingw/coredll6.def =================================================================== --- trunk/cegcc/src/mingw/coredll6.def 2009-09-07 17:16:24 UTC (rev 1377) +++ trunk/cegcc/src/mingw/coredll6.def 2009-09-07 17:27:25 UTC (rev 1378) @@ -290,6 +290,7 @@ EnumCalendarInfoW EnumClipboardFormats EnumDateFormatsW +EnumDeviceInterfaces EnumDevices EnumDisplayDevices EnumDisplayMonitors @@ -326,7 +327,9 @@ FindFirstChangeNotificationW FindFirstFileExW FindFirstFileW +FindFirstDevice FindNextChangeNotification +FindNextDevice FindNextFileW FindResource FindResourceW @@ -393,6 +396,8 @@ GetDesktopWindow GetDeviceByIndex GetDeviceCaps +GetDeviceInformationByDeviceHandle +GetDeviceInformationByFileHandle GetDeviceKeys GetDevicePower GetDialogBaseUnits This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Pedro A. <alv...@gm...> - 2009-09-07 20:53:08
|
On Monday 07 September 2009 18:27:26, dan...@us... wrote: > Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce > =================================================================== > --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-07 17:16:24 UTC (rev 1377) > +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-07 17:27:25 UTC (rev 1378) > @@ -1,3 +1,7 @@ > +2009-09-07 Danny Backx <dan...@us...> > + > + * coredll.def, coredll6.def : Sync with w32api. Thanks, but, please stop adding this extra space ^ before the ':'. I've been through the changelogs before several times fixing those... See rev 1371 and 1369, and http://www.gnu.org/prep/standards/standards.html#Change-Logs if you haven't yet. > > +>>>>>>> .r1377 ^^^^^^ This should not go in. -- Pedro Alves |
From: Danny B. <dan...@sc...> - 2009-09-08 16:39:58
|
On Mon, 2009-09-07 at 21:52 +0100, Pedro Alves wrote: > On Monday 07 September 2009 18:27:26, dan...@us... wrote: > > Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce > > =================================================================== > > --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-07 17:16:24 UTC (rev 1377) > > +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-07 17:27:25 UTC (rev 1378) > > @@ -1,3 +1,7 @@ > > +2009-09-07 Danny Backx <dan...@us...> > > + > > + * coredll.def, coredll6.def : Sync with w32api. > > Thanks, but, please stop adding this extra space ^ before the ':'. > I've been through the changelogs before several times fixing those... See > rev 1371 and 1369, and http://www.gnu.org/prep/standards/standards.html#Change-Logs > if you haven't yet. > > > > > +>>>>>>> .r1377 > > ^^^^^^ This should not go in. Oops :-) -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info |
From: <ped...@us...> - 2009-09-06 23:23:18
|
Revision: 1373 http://cegcc.svn.sourceforge.net/cegcc/?rev=1373&view=rev Author: pedroalves Date: 2009-09-06 23:23:06 +0000 (Sun, 06 Sep 2009) Log Message: ----------- Merge from upstream (at 3.16 + patches). Modified Paths: -------------- trunk/cegcc/src/mingw/CRT_fp10.c trunk/cegcc/src/mingw/CRT_fp8.c trunk/cegcc/src/mingw/CVS/Entries trunk/cegcc/src/mingw/ChangeLog trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/Makefile.in trunk/cegcc/src/mingw/configure trunk/cegcc/src/mingw/configure.in trunk/cegcc/src/mingw/cpu_features.c trunk/cegcc/src/mingw/crt1.c trunk/cegcc/src/mingw/include/CVS/Entries trunk/cegcc/src/mingw/include/_mingw.h trunk/cegcc/src/mingw/include/inttypes.h trunk/cegcc/src/mingw/include/math.h trunk/cegcc/src/mingw/include/stdint.h trunk/cegcc/src/mingw/include/stdio.h trunk/cegcc/src/mingw/include/stdlib.h trunk/cegcc/src/mingw/include/string.h trunk/cegcc/src/mingw/include/unistd.h trunk/cegcc/src/mingw/include/wchar.h trunk/cegcc/src/mingw/mingwex/CVS/Entries trunk/cegcc/src/mingw/mingwex/Makefile.in trunk/cegcc/src/mingw/mingwex/gdtoa/CVS/Entries trunk/cegcc/src/mingw/mingwex/gdtoa/README trunk/cegcc/src/mingw/mingwex/gdtoa/dmisc.c trunk/cegcc/src/mingw/mingwex/gdtoa/dtoa.c trunk/cegcc/src/mingw/mingwex/gdtoa/g__fmt.c trunk/cegcc/src/mingw/mingwex/gdtoa/g_dfmt.c trunk/cegcc/src/mingw/mingwex/gdtoa/g_ffmt.c trunk/cegcc/src/mingw/mingwex/gdtoa/g_xfmt.c trunk/cegcc/src/mingw/mingwex/gdtoa/gd_arith.h trunk/cegcc/src/mingw/mingwex/gdtoa/gdtoa.c trunk/cegcc/src/mingw/mingwex/gdtoa/gdtoa.h trunk/cegcc/src/mingw/mingwex/gdtoa/gdtoaimp.h trunk/cegcc/src/mingw/mingwex/gdtoa/gethex.c trunk/cegcc/src/mingw/mingwex/gdtoa/gmisc.c trunk/cegcc/src/mingw/mingwex/gdtoa/hd_init.c trunk/cegcc/src/mingw/mingwex/gdtoa/hexnan.c trunk/cegcc/src/mingw/mingwex/gdtoa/misc.c trunk/cegcc/src/mingw/mingwex/gdtoa/qnan.c trunk/cegcc/src/mingw/mingwex/gdtoa/smisc.c trunk/cegcc/src/mingw/mingwex/gdtoa/strtodg.c trunk/cegcc/src/mingw/mingwex/gdtoa/strtodnrp.c trunk/cegcc/src/mingw/mingwex/gdtoa/strtof.c trunk/cegcc/src/mingw/mingwex/gdtoa/strtopx.c trunk/cegcc/src/mingw/mingwex/gdtoa/sum.c trunk/cegcc/src/mingw/mingwex/gdtoa/ulp.c trunk/cegcc/src/mingw/mingwex/getopt.c trunk/cegcc/src/mingw/mingwex/math/CVS/Entries trunk/cegcc/src/mingw/mingwex/math/cephes_mconf.h trunk/cegcc/src/mingw/mingwex/math/erfl.c trunk/cegcc/src/mingw/mingwex/math/fminf.c trunk/cegcc/src/mingw/mingwex/math/lgamma.c trunk/cegcc/src/mingw/mingwex/math/lgammal.c trunk/cegcc/src/mingw/mingwex/math/powl.c trunk/cegcc/src/mingw/mingwex/math/sinhl.c trunk/cegcc/src/mingw/mingwex/math/tanhl.c trunk/cegcc/src/mingw/mingwex/math/tgamma.c trunk/cegcc/src/mingw/mingwex/math/tgammal.c trunk/cegcc/src/mingw/mingwex/stdio/CVS/Entries trunk/cegcc/src/mingw/mingwex/stdio/pformat.c trunk/cegcc/src/mingw/mingwex/usleep.c trunk/cegcc/src/mingw/msvcrt.def.in trunk/cegcc/src/mingw/profile/CVS/Entries trunk/cegcc/src/mingw/profile/Makefile.in trunk/cegcc/src/mingw/pseudo-reloc.c Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/gdtoa/README.mingw trunk/cegcc/src/mingw/mingwex/gdtoa/gdtoa_fltrnds.h Removed Paths: ------------- trunk/cegcc/src/mingw/mingwex/aclocal.m4 trunk/cegcc/src/mingw/mingwex/configure trunk/cegcc/src/mingw/mingwex/configure.in trunk/cegcc/src/mingw/profile/aclocal.m4 Modified: trunk/cegcc/src/mingw/CRT_fp10.c =================================================================== --- trunk/cegcc/src/mingw/CRT_fp10.c 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/CRT_fp10.c 2009-09-06 23:23:06 UTC (rev 1373) @@ -15,6 +15,8 @@ void _fpreset (void) { __asm__ ( "fninit" ) ;} +#if defined(__PCC__) +void _Pragma("alias _fpreset") fpreset(void); +#else void __attribute__ ((alias ("_fpreset"))) fpreset(void); - #endif Modified: trunk/cegcc/src/mingw/CRT_fp8.c =================================================================== --- trunk/cegcc/src/mingw/CRT_fp8.c 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/CRT_fp8.c 2009-09-06 23:23:06 UTC (rev 1373) @@ -17,4 +17,8 @@ void _fpreset (void) { (*__IMP(_fpreset))(); } +#if defined(__PCC__) +void _Pragma("alias _fpreset") fpreset(void); +#else void __attribute__ ((alias ("_fpreset"))) fpreset(void); +#endif Modified: trunk/cegcc/src/mingw/CVS/Entries =================================================================== --- trunk/cegcc/src/mingw/CVS/Entries 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/CVS/Entries 2009-09-06 23:23:06 UTC (rev 1373) @@ -6,28 +6,19 @@ D/mingwex//// D/profile//// D/samples//// -/CRT_fp10.c/1.2/Wed Aug 23 23:25:48 2006// -/CRT_fp8.c/1.2/Wed Aug 23 23:25:48 2006// /dllcrt1.c/1.4/Wed Aug 23 23:25:50 2006/-ko/ -/pseudo-reloc.c/1.1/Wed Aug 23 23:25:50 2006// /CONTRIBUTORS/1.1/Fri Feb 8 14:20:02 2008// /CRT_noglob.c/1.2/Fri Feb 8 14:20:02 2008/-ko/ /CRTfmode.c/1.6/Thu Feb 5 07:28:02 2009/-ko/ /CRTglob.c/1.2/Fri Feb 8 14:20:02 2008/-ko/ /CRTinit.c/1.2/Fri Feb 8 14:20:02 2008/-ko/ -/ChangeLog/1.427/Thu Feb 5 07:28:03 2009/-ko/ /DISCLAIMER/1.2/Fri Feb 8 14:20:02 2008// -/Makefile.in/1.88/Result of merge+Thu Feb 5 07:28:03 2009/-ko/ /README/1.2/Fri Feb 8 14:20:02 2008// /TODO/1.1/Fri Feb 8 14:20:02 2008// /aclocal.m4/1.6/Thu Feb 5 07:28:03 2009// /binmode.c/1.1/Fri Feb 8 14:20:02 2008// /config.guess/1.2/Fri Feb 8 14:20:02 2008// -/configure/1.23/Result of merge+Thu Feb 5 07:28:03 2009/-ko/ -/configure.in/1.19/Result of merge/-ko/ -/cpu_features.c/1.2/Result of merge// /cpu_features.h/1.1/Fri Feb 8 14:20:02 2008// -/crt1.c/1.12/Thu Feb 5 07:28:04 2009/-ko/ /crtdll.def/1.3/Fri Feb 8 14:20:02 2008/-ko/ /crtmt.c/1.1.1.1/Fri Feb 8 14:20:02 2008/-ko/ /crtst.c/1.1.1.1/Fri Feb 8 14:20:02 2008/-ko/ @@ -40,7 +31,6 @@ /main.c/1.2/Fri Feb 8 14:20:02 2008/-ko/ /mkinstalldirs/1.1/Fri Feb 8 14:20:02 2008// /moldname.def.in/1.8/Result of merge/-ko/ -/msvcrt.def.in/1.10/Thu Feb 5 07:28:04 2009// /mthr.c/1.2/Fri Feb 8 14:20:02 2008/-ko/ /mthr_init.c/1.2/Fri Feb 8 14:20:02 2008/-ko/ /mthr_stub.c/1.3/Fri Feb 8 14:20:02 2008/-ko/ @@ -53,3 +43,13 @@ /txtmode.c/1.1/Fri Feb 8 14:20:02 2008// /wcscmpi.c/1.2/Fri Feb 8 14:20:02 2008// D/man//// +/CRT_fp10.c/1.3/Result of merge+Sun Sep 6 22:43:02 2009// +/CRT_fp8.c/1.3/Result of merge// +/ChangeLog/1.448/Sun Sep 6 22:43:02 2009/-ko/ +/Makefile.in/1.89/Result of merge+Sun Sep 6 22:43:02 2009/-ko/ +/configure/1.24/Result of merge+Sun Sep 6 22:43:03 2009/-ko/ +/configure.in/1.20/Result of merge+Sun Sep 6 22:43:03 2009/-ko/ +/cpu_features.c/1.3/Result of merge// +/crt1.c/1.13/Sun Sep 6 22:43:03 2009/-ko/ +/msvcrt.def.in/1.11/Sun Sep 6 22:43:03 2009// +/pseudo-reloc.c/1.2/Result of merge+Sun Sep 6 22:43:03 2009// Modified: trunk/cegcc/src/mingw/ChangeLog =================================================================== --- trunk/cegcc/src/mingw/ChangeLog 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/ChangeLog 2009-09-06 23:23:06 UTC (rev 1373) @@ -1,3 +1,169 @@ +2009-09-01 Keith Marshall <kei...@us...> + + Avoid multiple link time definitions of _printf() for C++; + (problem reported by Alexander Shaduri, via MinGW-users ML). + + * include/stdio.h [__USE_MINGW_ANSI_STDIO]: + (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword. + +2009-08-14 Chris Sutcliffe <ir0...@us...> + + * include/_mingw.h: Increment version to 3.16. + +2009-08-08 Danny Smith <dan...@us...> + + * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit, + __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf, + __fp_unordered_compare): Add prototypes. + * include/stdio.h (vsnwprintf): Add prototype. + * include/wchar.h (vsnwprintf): Add prototype. + * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__. + * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard. + +2009-07-29 Keith Marshall <kei...@us...> + + Correct disposition of wchar_t output in printf(). + + * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of... + (argval): ...this, in inner scope, with singular type `wchar_t'; use + it to pass one wchar to __pformat_wputchars(), for output. + +2009-07-27 Chris Sutcliffe <ir0...@us...> + + * mingwex/stdio/pformat.c: Implement better fix for type punned warning. + +2009-07-27 Keith Marshall <kei...@us...> + + Convert to monolithic configuration procedure. + + * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments. + (AC_SUBST): Use its 2nd argument to initialise MinGW default settings. + (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate. + (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'. + (CRT0S): Relocate from `profile'; define it as appropriate. + (LIBM_A): Define and AC_SUBST it unconditionally. + (AC_CONFIG_SUBDIRS): Remove; none to configure. + (AC_OUTPUT_FILES): Add `Makefile' for each of... + (mingwex, profile): ...these subdirectories. + + * configure: Regenerated. + + * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them. + (top_srcdir, top_builddir): New macros; let AC_SUBST define them. + (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it. + (SUBDIRS): Define explicitly, to run recursive `make' in... + (mingwex, profile): ...these; simplify build commands... + (rootme, rootsrc): ...without these shell variables. + (all, subdirs): Delete redundant build commands. + (FIXME): Flag various issues for follow up. + + * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to... + (top_srcdir): ...this new macro; let AC_SUBST define it. + (top_builddir, datarootdir): New macros; let AC_SUBST define them. + (Makefile): Make it depend on... + (top_builddir/config.status): ...this, itself depending on... + (top_srcdir/configure): ...this. + (FIXME): Flag various issues for follow up. + + * mingwex/aclocal.m4: File no longer required; delete it. + * mingwex/configure mingwex/configure.in: Likewise. + + * profile/Makefile.in (INCLUDES): Redefined macro; refer it to... + (top_srcdir): ...this new macro; let AC_SUBST define it. + (top_builddir, datarootdir): New macros; let AC_SUBST define them. + (Makefile): Make it depend on... + (top_builddir/config.status): ...this, itself depending on... + (top_srcdir/configure): ...this. + (FIXME): Flag various issues for follow up. + + * profile/aclocal.m4: File no longer required; delete it. + * profile/configure profile/configure.in: Likewise. + +2009-07-23 Chris Sutcliffe <ir0...@us...> + + * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due + to complaints that it causes issues. + +2009-07-23 Jacky Lai <cra...@us...> + + * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan(). + +2009-07-18 Gregory McGarry <gre...@us...> + + * include/inttypes.h include/math.h include/stdio.h include/stdlib.h + include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard + to all inline functions. + +2009-07-18 Gregory McGarry <gre...@us...> + + * CRT_fp8.c: Add PCC alternative to GCC-specific constructs. + * CRT_fp10.c: Ditto. + +2009-07-18 Gregory McGarry <gre...@us...> + + * cpu_features.c: replace gcc-specific construct with portable alternative + and match the code a few lines above. + * crt1.c: remove gcc-specific noreturn attribute with mingw alternative + +2009-07-18 Gregory McGarry <gre...@us...> + + * include/_mingw.h: Changes required for PCC compiler. + +2009-07-18 Jeff Lu <jl...@ya...> + + * mingwex/usleep.c: round up to next ms + +2009-07-17 Chris Sutcliffe <ir0...@us...> + + * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c + mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c + mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on + the fixes from the mingw-w64 code tree, fixed strict-aliasing issues. + +2009-07-12 Chris Sutcliffe <ir0...@us...> + + * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0. + +2009-06-28 Ozkan Sezer <se...@us...> + + * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files. + * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c + mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c + mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h + mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h + mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c + mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c + mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c + mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c + mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org + sources as of Apr. 20, 2009. Update further to match the sources in + the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX + code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the + double/ulong union from U to dbl_union for better grepping and white- + space tidy-ups. + +2009-06-16 Chris Sutcliffe <ir0...@us...> + + * include/stdlib.h (_wtof): Define. + +2009-04-11 Danny Smith <dan...@us...> + + * include/stdint.h (int_fast8_t): Specify as signed char. + (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int. + (INT32_C, UINT32_C): Remove 'L' type specifier on constant. + +2009-03-05 Kai Tietz <kai...@on...> + + * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2. + +2009-02-08 Keith Marshall <kei...@us...> + + MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile. + (Requested by Robert Riebisch) + + * mingwex/getopt.c (getopt_parse): Track external increments of... + (optind): ...this global variable. + 2009-01-10 Chris Sutcliffe <ir0...@us...> * include/_mingw.h: Increment version to 3.15.2. Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-06 23:23:06 UTC (rev 1373) @@ -1,5 +1,9 @@ 2009-09-06 Pedro Alves <ped...@us...> + Merge from upstream (at 3.16 + patches). + +2009-09-06 Pedro Alves <ped...@us...> + * Makefile.in (libceoldname.a): Specify COREDLL.dll as dll name, not coredll.dll. (libcoredll6.a): Remove rule. Modified: trunk/cegcc/src/mingw/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/Makefile.in 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/Makefile.in 2009-09-06 23:23:06 UTC (rev 1373) @@ -17,11 +17,17 @@ # This makefile requires GNU make. +PACKAGE = @PACKAGE_TARNAME@ VERSION = @PACKAGE_VERSION@ CYGRELEASE = 1 VPATH = @srcdir@ srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +top_builddir = @top_builddir@ + +# FIXME: I see no reason to define `objdir'; +# it appears to be unused, and could be removed. objdir = . build = @build@ @@ -33,20 +39,27 @@ with_cross_host = @with_cross_host@ prefix = @prefix@ conf_prefix = @prefix@ -# FIXME: this needs an appropriate AC_SUBST -host_os = mingw32 +host_os = @host_os@ -ifneq (,$(findstring cygwin, $(target_alias))) -PACKAGE = mingw-runtime -else -PACKAGE = mingwrt -endif - +datarootdir = @datarootdir@ program_transform_name = @program_transform_name@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ + ifneq (,$(findstring cygwin,$(target_alias))) +# +# FIXME: What is the purpose of such logic, testing `target_alias'? +# +# Firstly, there is no code generator being built here. The concept +# of `target' is meaningless, and there is no valid reason to expect +# that `target_alias' would be anything other than an empty string. +# Thus, the validity of such tests is extremely suspect. +# +# Secondly, the decisions being taken, on the basis of these tests, +# rightfully belong in the configure script; all this logic should be +# removed, and properly implemented in `configure.in'. +# mandir = $(prefix)/share/man mansection = mingw else @@ -67,6 +80,15 @@ infodir = @infodir@ includedir = @includedir@ ifneq (,$(findstring cygwin,$(host_alias))) +# +# FIXME: Doubtful use of `target_alias', again. +# +# Here we not only have a dubious test, based on `target_alias', +# but we also assign local alternatives for the standard autoconf +# installation path macros. This should not be necessary; the +# configure script should simply assign appropriate values to +# the standard macros, which should be used herein. +# inst_bindir:=$(tooldir)/bin inst_includedir:=$(tooldir)/include/mingw inst_libdir:=$(tooldir)/lib/mingw @@ -79,6 +101,14 @@ inst_docdir:=$(prefix)/share/doc/mingw-runtime else ifneq (,$(with_cross_host)) +# +# FIXME: What is the intended purpose of `with_cross_host'? +# +# Notwithstanding that this conforms to no known standard, and +# is completely undocumented, it does not belong here; every one +# of these settings is the prerogative of the configure script, +# and they should use standard names, as noted above. +# inst_bindir:=$(tooldir)/bin inst_includedir:=$(tooldir)/include inst_libdir:=$(tooldir)/lib @@ -105,6 +135,14 @@ CC := @CC@ ifneq (,$(findstring cygwin,$(host_alias))) +# +# FIXME: What is the purpose of this hideous kludge? +# +# Again, we have a dubious use of `target_alias'. Worse, `CC' +# should have been appropriately set by the configure script; to +# mess with it, in this fashion, should neither be necessary, +# nor accepted. +# override CC := ${filter-out -L% -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\) *[^ ]*\( \|$$\)% %g'}} endif # FIXME: Which is it, CC or CC_FOR_TARGET? @@ -116,6 +154,10 @@ # compiling with Cygwin? NO_CYGWIN := @NO_CYGWIN@ ifdef NO_CYGWIN +# +# FIXME: Again, this should have been resolved by `configure', +# and this kludge should be unnecessary. +# override CC := ${NO_CYGWIN} $(firstword ${CC}) endif @@ -158,8 +200,10 @@ TARFLAGS = z TARFILEEXT = .tar.gz -SUBDIRS := @subdirs@ +SUBDIRS = mingwex profile +# FIXME: Most of these are either redundant, or should be set +# directly in the subdirectories' Makefiles, by `configure'. FLAGS_TO_PASS:=\ AS="$(AS)" \ CC="$(CC)" \ @@ -259,7 +303,6 @@ install_dlls_host = @install_dlls_host@ all: $(CRT0S) $(LIBS) $(all_dlls_host) - @$(MAKE) subdirs DO=$@ $(FLAGS_TO_PASS) all_dlls_host: $(DLLS) @@ -308,12 +351,11 @@ $(AR) rc $@ $(MINGW_OBJS) $(RANLIB) $@ -msvcrt.def msvcrtd.def \ +msvcrt.def msvcrtd.def \ msvcr70.def msvcr70d.def \ msvcr71.def msvcr71d.def \ msvcr80.def msvcr80d.def \ -msvcr90.def msvcr90d.def \ -: msvcrt.def.in +msvcr90.def msvcr90d.def: msvcrt.def.in $(CC) -DRUNTIME=$(basename $(notdir $@)) \ -D__$(basename $(notdir $@))__=1 \ -D__MSVCRT__ -C -E -P \ @@ -372,7 +414,8 @@ $(AR) rc $@ $(MOLD_OBJS) $(RANLIB) $@ -# The special rules are necessary. +# These special rules are necessary... +# crt1.o dllcrt1.o: $(CC) -c -D__CRTDLL__ -U__MSVCRT__ $(ALL_CFLAGS) $< -o $@ @@ -426,6 +469,12 @@ endif ifneq (,$(findstring cygwin, $(target_alias))) +# +# FIXME: Dubious use of `target_alias', yet again. +# +# Once more, the default settings for these macros could be +# more productively determined by `configure'. +# TARFLAGS = j TARFILEEXT = .tar.bz2 dist_prefix = $(conf_prefix) @@ -553,22 +602,10 @@ @$(MAKE) subdirs DO=$@ $(FLAGS_TO_PASS) subdirs: $(SUBDIRS) - @true +$(SUBDIRS): force + @test -n "$(DO)" && g="$(DO)" || g=all; echo "Making \`$$g' in \`$@'" + @cd $@; $(MAKE) $(FLAGS_TO_PASS) $(DO) -# The . is here because SUBDIRS may be empty - -. $(SUBDIRS): force - @if [ -d ./$@ ]; then \ - echo "Making $(DO) in $@..." ; \ - if (rootme=`pwd`/ ; export rootme ; \ - rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \ - cd ./$@; \ - $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ - else exit 1 ; \ - fi ; \ - else true ; \ - fi - force: # @@ -646,3 +683,4 @@ .c.o: $(CC) -c $(ALL_CFLAGS) $< -o $@ +# $RCSfile$: end of file Modified: trunk/cegcc/src/mingw/configure =================================================================== --- trunk/cegcc/src/mingw/configure 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/configure 2009-09-06 23:23:06 UTC (rev 1373) @@ -601,21 +601,20 @@ PACKAGE_BUGREPORT='http://mingw.org/reporting_bugs' ac_unique_file="include/_mingw.h" -enable_option_checking=no ac_subst_vars='LTLIBOBJS LIBOBJS mingw_manpage_transform INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +MKINSTALLDIRS +LIBM_A +THREAD_DLL +CRT0S +LIBGMON_A W32API_INCLUDE HEADER_SUBDIR -LIBGMON_A -LIBM_A NO_CYGWIN -MKINSTALLDIRS -THREAD_DLL -subdirs WINDRES DLLWRAP DLLTOOL @@ -697,8 +696,8 @@ LDFLAGS LIBS CPPFLAGS' -ac_subdirs_all='mingwex' + # Initialize some variables set by options. ac_init_help= ac_init_version=false @@ -3756,31 +3755,30 @@ fi -#AC_ALLOCA -#AC_CANONICAL_SYSTEM -#AC_CONFIG_SUBDIRS([profile mingwex]) -subdirs="$subdirs mingwex" +W32API_INCLUDE='-I ${top_srcdir}/../w32api/include' -HEADER_SUBDIR="" +# The following are used by the GCC profiling hooks... +# LIBGMON_A=libgmon.a -W32API_INCLUDE='-I $(srcdir)/../w32api/include' +CRT0S="gcrt1.o gcrt2.o" + +# FIXME: Why is this case determined on `target_os'? +# There is no code generator to be built here, so `target_os' +# should be irrelevant. Should it not rather be `host_os'? +# case "$target_os" in *cygwin*) - NO_CYGWIN="$(cd ${srcdir}/../utils; pwd)/mingw" - LIBM_A=libm.a + PACKAGE_TARNAME="mingw-runtime" + NO_CYGWIN="`cd ${srcdir}/../utils; pwd`/mingw" # Install mingw headers in mingw subdirectory. HEADER_SUBDIR="mingw" + CRT0S="gcrt0.o" ;; -*) - # Build it for MSVCRT by default. - NO_CYGWIN= - LIBM_A=libm.a - ;; esac # THREAD_DLL used to be set within the above case and was mingwc for CRTDLL. @@ -3791,14 +3789,16 @@ THREAD_DLL=mingwm -MKINSTALLDIRS=$ac_aux_dir/mkinstalldirs +# LIBM_A also used be set in the preceding case statement; it had the +# exact same assignment, (libm.a), in every case, so we may just as well +# assign it unconditionally, (making the default case redundant). +# +LIBM_A=libm.a +MKINSTALLDIRS=$ac_aux_dir/mkinstalldirs - - - # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -3904,7 +3904,7 @@ mingw_manpage_transform=${mingw_manpage_transform-'s,x,x,'} -ac_config_files="$ac_config_files Makefile" +ac_config_files="$ac_config_files Makefile mingwex/Makefile profile/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -4516,6 +4516,8 @@ do case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "mingwex/Makefile") CONFIG_FILES="$CONFIG_FILES mingwex/Makefile" ;; + "profile/Makefile") CONFIG_FILES="$CONFIG_FILES profile/Makefile" ;; *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} @@ -5018,193 +5020,6 @@ # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi - -# -# CONFIG_SUBDIRS section. -# -if test "$no_recursion" != yes; then - - # Remove --cache-file, --srcdir, and --disable-option-checking arguments - # so they do not pile up. - ac_sub_configure_args= - ac_prev= - eval "set x $ac_configure_args" - shift - for ac_arg - do - if test -n "$ac_prev"; then - ac_prev= - continue - fi - case $ac_arg in - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ - | --c=*) - ;; - --config-cache | -C) - ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - ;; - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - ;; - --disable-option-checking) - ;; - *) - case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; - esac - done - - # Always prepend --prefix to ensure using the same prefix - # in subdir configurations. - ac_arg="--prefix=$prefix" - case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" - - # Pass --silent - if test "$silent" = yes; then - ac_sub_configure_args="--silent $ac_sub_configure_args" - fi - - # Always prepend --disable-option-checking to silence warnings, since - # different subdirs can have different --enable and --with options. - ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" - - ac_popdir=`pwd` - for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. - test -d "$srcdir/$ac_dir" || continue - - ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - $as_echo "$as_me:$LINENO: $ac_msg" >&5 - $as_echo "$ac_msg" >&6 - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - cd "$ac_dir" - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f "$ac_srcdir/configure.gnu"; then - ac_sub_configure=$ac_srcdir/configure.gnu - elif test -f "$ac_srcdir/configure"; then - ac_sub_configure=$ac_srcdir/configure - elif test -f "$ac_srcdir/configure.in"; then - # This should be Cygnus configure. - ac_sub_configure=$ac_aux_dir/configure - else - { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 -$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} - ac_sub_configure= - fi - - # The recursion is here. - if test -n "$ac_sub_configure"; then - # Make the cache file name correct relative to the subdirectory. - case $cache_file in - [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; - *) # Relative name. - ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; - esac - - { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} - # The eval makes quoting arguments work. - eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ - --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || - { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 -$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} - { (exit 1); exit 1; }; } - fi - - cd "$ac_popdir" - done -fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} Modified: trunk/cegcc/src/mingw/configure.in =================================================================== --- trunk/cegcc/src/mingw/configure.in 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/configure.in 2009-09-06 23:23:06 UTC (rev 1373) @@ -32,38 +32,37 @@ AC_SUBST([all_dlls_host]) AC_SUBST([install_dlls_host]) -AC_CHECK_TOOL([AR], [ar], [ar]) -AC_CHECK_TOOL([AS], [as], [as]) -AC_CHECK_TOOL([RANLIB], [ranlib], [ranlib]) -AC_CHECK_TOOL([LD], [ld], [ld]) -AC_CHECK_TOOL([NM], [nm], [nm]) +AC_CHECK_TOOL([AR], [ar], [ar]) +AC_CHECK_TOOL([AS], [as], [as]) +AC_CHECK_TOOL([RANLIB], [ranlib], [ranlib]) +AC_CHECK_TOOL([LD], [ld], [ld]) +AC_CHECK_TOOL([NM], [nm], [nm]) AC_CHECK_TOOL([OBJCOPY], [objcopy], [objcopy]) AC_CHECK_TOOL([DLLTOOL], [dlltool], [dlltool]) AC_CHECK_TOOL([DLLWRAP], [dlltool], [dlltool]) AC_CHECK_TOOL([WINDRES], [windres], [windres]) -#AC_ALLOCA -#AC_CANONICAL_SYSTEM -#AC_CONFIG_SUBDIRS([profile mingwex]) -AC_CONFIG_SUBDIRS(mingwex) -HEADER_SUBDIR="" +AC_SUBST([NO_CYGWIN]) +AC_SUBST([HEADER_SUBDIR]) +AC_SUBST([W32API_INCLUDE], ['-I ${top_srcdir}/../w32api/include']) -LIBGMON_A=libgmon.a +# The following are used by the GCC profiling hooks... +# +AC_SUBST([LIBGMON_A], [libgmon.a]) +AC_SUBST([CRT0S], ["gcrt1.o gcrt2.o"]) -W32API_INCLUDE='-I $(srcdir)/../w32api/include' - +# FIXME: Why is this case determined on `target_os'? +# There is no code generator to be built here, so `target_os' +# should be irrelevant. Should it not rather be `host_os'? +# case "$target_os" in *cygwin*) - NO_CYGWIN="$(cd ${srcdir}/../utils; pwd)/mingw" - LIBM_A=libm.a + PACKAGE_TARNAME="mingw-runtime" + NO_CYGWIN="`cd ${srcdir}/../utils; pwd`/mingw" # Install mingw headers in mingw subdirectory. HEADER_SUBDIR="mingw" + CRT0S="gcrt0.o" ;; -*) - # Build it for MSVCRT by default. - NO_CYGWIN= - LIBM_A=libm.a - ;; esac # THREAD_DLL used to be set within the above case and was mingwc for CRTDLL. @@ -73,17 +72,18 @@ # to match the libmingwthrd.a name. AC_SUBST([THREAD_DLL], [mingwm]) +# LIBM_A also used be set in the preceding case statement; it had the +# exact same assignment, (libm.a), in every case, so we may just as well +# assign it unconditionally, (making the default case redundant). +# +AC_SUBST([LIBM_A], [libm.a]) + AC_SUBST([MKINSTALLDIRS], [$ac_aux_dir/mkinstalldirs]) -AC_SUBST([NO_CYGWIN]) -AC_SUBST([LIBM_A]) -AC_SUBST([LIBGMON_A]) -AC_SUBST([HEADER_SUBDIR]) -AC_SUBST([W32API_INCLUDE]) AC_PROG_INSTALL MINGW_AC_MANPAGE_TRANSFORM -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile mingwex/Makefile profile/Makefile]) AC_OUTPUT # $RCSfile$: end of file Modified: trunk/cegcc/src/mingw/cpu_features.c =================================================================== --- trunk/cegcc/src/mingw/cpu_features.c 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/cpu_features.c 2009-09-06 23:23:06 UTC (rev 1373) @@ -21,7 +21,7 @@ #define EDX_LM (1 << 29) /*LONG MODE */ #define __cpuid(level,a,b,c,d) \ - __asm__ __volatile__ ("cpuid;" \ + asm volatile ("cpuid;" \ : "=a" (a), "=b" (b), "=c" (c), "=d" (d)\ : "0" (level)) Modified: trunk/cegcc/src/mingw/crt1.c =================================================================== --- trunk/cegcc/src/mingw/crt1.c 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/crt1.c 2009-09-06 23:23:06 UTC (rev 1373) @@ -181,7 +181,7 @@ /* * The function mainCRTStartup is the entry point for all console programs. */ -static void __attribute__((noreturn)) +static void __MINGW_ATTRIB_NORETURN __mingw_CRTStartup (void) { int nRet; Modified: trunk/cegcc/src/mingw/include/CVS/Entries =================================================================== --- trunk/cegcc/src/mingw/include/CVS/Entries 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/CVS/Entries 2009-09-06 23:23:06 UTC (rev 1373) @@ -1,6 +1,4 @@ D/sys//// -/_mingw.h/1.56/Result of merge/-ko/ -/assert.h/1.7/Result of merge+Thu Feb 5 07:28:04 2009/-ko/ /complex.h/1.6/Result of merge// /conio.h/1.6/Result of merge+Thu Feb 5 07:28:05 2009/-ko/ /ctype.h/1.16/Result of merge+Thu Feb 5 07:28:05 2009/-ko/ @@ -12,14 +10,11 @@ /fcntl.h/1.9/Thu Feb 5 07:28:06 2009/-ko/ /fenv.h/1.7/Result of merge+Thu Feb 5 07:28:06 2009// /float.h/1.7/Thu Feb 5 07:28:06 2009/-ko/ -/getopt.h/1.4/Result of merge+Thu Feb 5 07:28:06 2009// -/inttypes.h/1.6/Result of merge+Thu Feb 5 07:28:06 2009// /io.h/1.21/Result of merge+Thu Feb 5 07:28:06 2009/-ko/ /libgen.h/1.2/Thu Feb 5 07:28:06 2009// /limits.h/1.6/Fri Feb 8 14:20:00 2008/-ko/ /locale.h/1.7/Result of merge/-ko/ /malloc.h/1.14/Result of merge+Thu Feb 5 07:28:07 2009/-ko/ -/math.h/1.35/Result of merge/-ko/ /mbctype.h/1.3/Result of merge// /mbstring.h/1.4/Result of merge// /mem.h/1.2/Fri Feb 8 14:20:00 2008/-ko/ @@ -28,18 +23,23 @@ /setjmp.h/1.7/Result of merge/-ko/ /share.h/1.5/Fri Feb 8 14:20:00 2008/-ko/ /signal.h/1.6/Result of merge/-ko/ -/stdint.h/1.8/Thu Feb 5 07:28:08 2009// -/stdio.h/1.38/Result of merge+Thu Feb 5 07:28:08 2009/-ko/ -/stdlib.h/1.37/Result of merge+Thu Feb 5 07:28:08 2009/-ko/ -/string.h/1.19/Result of merge+Thu Feb 5 07:28:09 2009/-ko/ /strings.h/1.1/Fri Feb 8 14:20:00 2008// /tchar.h/1.24/Thu Feb 5 07:28:09 2009/-ko/ /time.h/1.16/Result of merge+Thu Feb 5 07:28:09 2009/-ko/ -/unistd.h/1.8/Result of merge+Thu Feb 5 07:28:09 2009/-ko/ /utime.h/1.1/Fri Feb 8 14:20:00 2008// /values.h/1.1.1.1/Fri Feb 8 14:20:00 2008/-ko/ /varargs.h/1.4/Fri Feb 8 14:20:00 2008/-ko/ -/wchar.h/1.32/Result of merge+Thu Feb 5 07:28:09 2009/-ko/ /wctype.h/1.13/Result of merge+Thu Feb 5 07:28:10 2009/-ko/ /search.h/1.3/Thu Feb 5 16:33:32 2009// /dirent.h/1.9/Sat Feb 7 18:19:20 2009/-ko/ +/_mingw.h/1.58/Result of merge/-ko/ +/assert.h/1.7/Thu Feb 5 15:25:48 2009/-ko/ +/getopt.h/1.4/Thu Feb 5 16:31:12 2009// +/inttypes.h/1.7/Result of merge+Sun Sep 6 22:43:03 2009// +/math.h/1.37/Result of merge+Sun Sep 6 22:43:03 2009/-ko/ +/stdint.h/1.9/Sun Sep 6 22:43:04 2009// +/stdio.h/1.41/Result of merge/-ko/ +/stdlib.h/1.40/Result of merge+Sun Sep 6 22:43:04 2009/-ko/ +/string.h/1.20/Result of merge/-ko/ +/unistd.h/1.10/Sun Sep 6 22:43:04 2009/-ko/ +/wchar.h/1.34/Result of merge/-ko/ Modified: trunk/cegcc/src/mingw/include/_mingw.h =================================================================== --- trunk/cegcc/src/mingw/include/_mingw.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/_mingw.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -22,10 +22,10 @@ */ #define __MINGW_H -#define __MINGW32_VERSION 3.15.2 +#define __MINGW32_VERSION 3.16 #define __MINGW32_MAJOR_VERSION 3 -#define __MINGW32_MINOR_VERSION 15 -#define __MINGW32_PATCHLEVEL 2 +#define __MINGW32_MINOR_VERSION 16 +#define __MINGW32_PATCHLEVEL 0 #if __GNUC__ >= 3 #pragma GCC system_header @@ -76,16 +76,46 @@ /* Try to avoid problems with outdated checks for GCC __attribute__ support. */ #undef __attribute__ -#ifndef __GNUC__ +#if defined (__PCC__) +# undef __DECLSPEC_SUPPORTED # ifndef __MINGW_IMPORT -# define __MINGW_IMPORT __declspec(dllimport) +# define __MINGW_IMPORT extern # endif # ifndef _CRTIMP -# define _CRTIMP __declspec(dllimport) +# define _CRTIMP # endif -# define __DECLSPEC_SUPPORTED -# define __attribute__(x) /* nothing */ -#else /* __GNUC__ */ +# ifndef __cdecl +# define __cdecl _Pragma("cdecl") +# endif +# ifndef __stdcall +# define __stdcall _Pragma("stdcall") +# endif +# ifndef __int64 +# define __int64 long long +# endif +# ifndef __int32 +# define __int32 long +# endif +# ifndef __int16 +# define __int16 short +# endif +# ifndef __int8 +# define __int8 char +# endif +# ifndef __small +# define __small char +# endif +# ifndef __hyper +# define __hyper long long +# endif +# ifndef __volatile__ +# define __volatile__ volatile +# endif +# ifndef __restrict__ +# define __restrict__ restrict +# endif +# define NONAMELESSUNION +#elif defined(__GNUC__) # ifdef __declspec # ifndef __MINGW_IMPORT /* Note the extern. This is needed to work around GCC's @@ -107,12 +137,11 @@ # define _CRTIMP # endif # endif /* __declspec */ - /* - The next two defines can cause problems if user code adds the __cdecl attribute - like so: - void __attribute__ ((__cdecl)) foo(void); -*/ + * The next two defines can cause problems if user code adds the + * __cdecl attribute like so: + * void __attribute__ ((__cdecl)) foo(void); + */ # ifndef __cdecl # define __cdecl __attribute__ ((__cdecl__)) # endif @@ -137,7 +166,16 @@ # ifndef __hyper # define __hyper long long # endif -#endif /* __GNUC__ */ +#else /* ! __GNUC__ && ! __PCC__ */ +# ifndef __MINGW_IMPORT +# define __MINGW_IMPORT __declspec(dllimport) +# endif +# ifndef _CRTIMP +# define _CRTIMP __declspec(dllimport) +# endif +# define __DECLSPEC_SUPPORTED +# define __attribute__(x) /* nothing */ +#endif #if defined (__GNUC__) && defined (__GNUC_MINOR__) #define __MINGW_GNUC_PREREQ(major, minor) \ Modified: trunk/cegcc/src/mingw/include/inttypes.h =================================================================== --- trunk/cegcc/src/mingw/include/inttypes.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/inttypes.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -255,11 +255,12 @@ #endif /* !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) */ +intmax_t __cdecl __MINGW_NOTHROW imaxabs (intmax_t j); +#ifndef __NO_INLINE__ __CRT_INLINE intmax_t __cdecl __MINGW_NOTHROW imaxabs (intmax_t j) {return (j >= 0 ? j : -j);} - +#endif #ifndef __COREDLL__ - imaxdiv_t __cdecl __MINGW_NOTHROW imaxdiv (intmax_t numer, intmax_t denom); /* 7.8.2 Conversion functions for greatest-width integer types */ Modified: trunk/cegcc/src/mingw/include/math.h =================================================================== --- trunk/cegcc/src/mingw/include/math.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/math.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -332,7 +332,6 @@ #endif /* 7.12.3.1 */ - /* Return values for fpclassify. These are based on Intel x87 fpu condition codes @@ -359,12 +358,14 @@ extern int __cdecl __fpclassifyl (long double); #ifdef __i386__ +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __fpclassifyl (long double x){ unsigned short sw; __asm__ ("fxam; fstsw %%ax;" : "=a" (sw): "t" (x)); return sw & (FP_NAN | FP_NORMAL | FP_ZERO ); } #endif +#endif #define fpclassify(x) (sizeof (x) == sizeof (float) ? __fpclassifyf (x) \ : sizeof (x) == sizeof (double) ? __fpclassify (x) \ @@ -383,6 +384,11 @@ #ifdef __i386__ /* The isnan define could be implemented in terms of fpclassify. It would compile to the same thing. */ +extern int __cdecl __isnan (double); +extern int __cdecl __isnanf (float); +extern int __cdecl __isnanl (long double); +#ifndef __NO_INLINE__ + __CRT_INLINE int __cdecl __isnan (double _x) { unsigned short sw; @@ -409,6 +415,7 @@ return (sw & (FP_NAN | FP_NORMAL | FP_INFINITE | FP_ZERO | FP_SUBNORMAL)) == FP_NAN; } +#endif #define isnan(x) (sizeof (x) == sizeof (float) ? __isnanf (x) \ : sizeof (x) == sizeof (double) ? __isnan (x) \ @@ -438,6 +445,10 @@ #ifdef __i386__ /* 7.12.3.6 The signbit macro */ +extern int __cdecl __signbit (double); +extern int __cdecl __signbitf (float); +extern int __cdecl __signbitl (long double); +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __signbit (double x) { unsigned short stw; __asm__ ( "fxam; fstsw %%ax;": "=a" (stw) : "t" (x)); @@ -455,6 +466,7 @@ __asm__ ("fxam; fstsw %%ax;": "=a" (stw) : "t" (x)); return (stw & 0x0200) != 0; } +#endif #define signbit(x) (sizeof (x) == sizeof (float) ? __signbitf (x) \ : sizeof (x) == sizeof (double) ? __signbit (x) \ @@ -484,16 +496,25 @@ extern long double __cdecl atan2l (long double, long double); /* 7.12.5 Hyperbolic functions: Double in C89 */ +extern float __cdecl sinhf (float); +#ifndef __NO_INLINE__ __CRT_INLINE float __cdecl sinhf (float x) {return (float) sinh (x);} +#endif extern long double __cdecl sinhl (long double); +extern float __cdecl coshf (float); +#ifndef __NO_INLINE__ __CRT_INLINE float __cdecl coshf (float x) {return (float) cosh (x);} +#endif extern long double __cdecl coshl (long double); +extern float __cdecl tanhf (float); +#ifndef __NO_INLINE__ __CRT_INLINE float __cdecl tanhf (float x) {return (float) tanh (x);} +#endif extern long double __cdecl tanhl (long double); /* Inverse hyperbolic trig functions */ @@ -514,8 +535,11 @@ /* Exponentials and logarithms */ /* 7.12.6.1 Double in C89 */ +extern float __cdecl expf (float); +#ifndef __NO_INLINE__ __CRT_INLINE float __cdecl expf (float x) {return (float) exp (x);} +#endif extern long double __cdecl expl (long double); /* 7.12.6.2 */ @@ -530,8 +554,11 @@ extern long double __cdecl expm1l(long double); /* 7.12.6.4 Double in C89 */ +extern float __cdecl frexpf (float, int*); +#ifndef __NO_INLINE__ __CRT_INLINE float __cdecl frexpf (float x, int* expn) {return (float) frexp (x, expn);} +#endif extern long double __cdecl frexpl (long double, int*); /* 7.12.6.5 */ @@ -542,8 +569,11 @@ extern int __cdecl ilogbl (long double); /* 7.12.6.6 Double in C89 */ +extern float __cdecl ldexpf (float, int); +#ifndef __NO_INLINE__ __CRT_INLINE float __cdecl ldexpf (float x, int expn) {return (float) ldexp (x, expn);} +#endif extern long double __cdecl ldexpl (long double, int); /* 7.12.6.7 Double in C89 */ @@ -571,6 +601,7 @@ /* Inline versions. GCC-4.0+ can do a better fast-math optimization with __builtins. */ +#ifndef __NO_INLINE__ #if !(__MINGW_GNUC_PREREQ (4, 0) && defined __FAST_MATH__ ) && defined __i386__ __CRT_INLINE double __cdecl logb (double x) { @@ -596,6 +627,7 @@ return res; } #endif /* !defined __FAST_MATH__ || !__MINGW_GNUC_PREREQ (4, 0) && __i386__ */ +#endif /* !defined __NO_INLINE__ */ /* 7.12.6.12 Double in C89 */ extern float __cdecl modff (float, float*); @@ -622,13 +654,19 @@ /* 7.12.7.3 */ extern double __cdecl hypot (double, double); /* in libmoldname.a */ +extern float __cdecl hypotf (float, float); +#ifndef __NO_INLINE__ __CRT_INLINE float __cdecl hypotf (float x, float y) { return (float) hypot (x, y);} +#endif extern long double __cdecl hypotl (long double, long double); /* 7.12.7.4 The pow functions. Double in C89 */ +extern float __cdecl powf (float, float); +#ifndef __NO_INLINE__ __CRT_INLINE float __cdecl powf (float x, float y) {return (float) pow (x, y);} +#endif extern long double __cdecl powl (long double, long double); /* 7.12.7.5 The sqrt functions. Double in C89. */ @@ -685,6 +723,7 @@ /* Inline versions of above. GCC 4.0+ can do a better fast-math job with __builtins. */ +#ifndef __NO_INLINE__ #if !(__MINGW_GNUC_PREREQ (4, 0) && defined __FAST_MATH__ ) && defined __i386__ __CRT_INLINE double __cdecl rint (double x) { @@ -755,6 +794,7 @@ return retval; } #endif /* !__FAST_MATH__ || !__MINGW_GNUC_PREREQ (4,0) && __i386__ */ +#endif /* !defined __NO_INLINE */ /* 7.12.9.6 */ /* round away from zero, regardless of fpu control word settings */ @@ -865,6 +905,8 @@ #else /* helper */ +extern int __cdecl __fp_unordered_compare (long double, long double); +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __fp_unordered_compare (long double x, long double y){ unsigned short retval; @@ -872,6 +914,7 @@ "fnstsw;": "=a" (retval) : "t" (x), "u" (y)); return retval; } +#endif #define isgreater(x, y) ((__fp_unordered_compare(x, y) \ & 0x4500) == 0) Modified: trunk/cegcc/src/mingw/include/stdint.h =================================================================== --- trunk/cegcc/src/mingw/include/stdint.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/stdint.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -47,7 +47,7 @@ * Not actually guaranteed to be fastest for all purposes * Here we use the exact-width types for 8 and 16-bit ints. */ -typedef char int_fast8_t; +typedef signed char int_fast8_t; typedef unsigned char uint_fast8_t; typedef short int_fast16_t; typedef unsigned short uint_fast16_t; @@ -187,13 +187,13 @@ *expression* with *promoted* type." */ -#define INT8_C(val) ((int8_t) + (val)) -#define UINT8_C(val) ((uint8_t) + (val##U)) -#define INT16_C(val) ((int16_t) + (val)) -#define UINT16_C(val) ((uint16_t) + (val##U)) +#define INT8_C(val) val +#define UINT8_C(val) val +#define INT16_C(val) val +#define UINT16_C(val) val -#define INT32_C(val) val##L -#define UINT32_C(val) val##UL +#define INT32_C(val) val +#define UINT32_C(val) val##U #define INT64_C(val) val##LL #define UINT64_C(val) val##ULL Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/stdio.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -262,7 +262,7 @@ * For C++ we use inline implementations, to avoid interference * with namespace qualification, which may result from using #defines. */ -# define __mingw_stdio_redirect__ static inline __cdecl __MINGW_NOTHROW +# define __mingw_stdio_redirect__ inline __cdecl __MINGW_NOTHROW # elif defined __GNUC__ /* @@ -693,9 +693,12 @@ #ifndef __NO_ISOCEXT /* externs in libmingwex.a */ int __cdecl __MINGW_NOTHROW snwprintf (wchar_t* s, size_t n, const wchar_t* format, ...); +int __cdecl __MINGW_NOTHROW vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg); +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __MINGW_NOTHROW vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg) { return _vsnwprintf ( s, n, format, arg);} +#endif int __cdecl __MINGW_NOTHROW vwscanf (const wchar_t * __restrict__, __VALIST); int __cdecl __MINGW_NOTHROW vfwscanf (FILE * __restrict__, const wchar_t * __restrict__, __VALIST); Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/stdlib.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -328,6 +328,7 @@ _CRTIMP long __cdecl __MINGW_NOTHROW atol (const char*); #if !defined (__STRICT_ANSI__) #if !defined (__COREDLL__) +_CRTIMP double __cdecl __MINGW_NOTHROW _wtof (const wchar_t *); _CRTIMP int __cdecl __MINGW_NOTHROW _wtoi (const wchar_t *); _CRTIMP long __cdecl __MINGW_NOTHROW _wtol (const wchar_t *); #endif @@ -546,7 +547,7 @@ /* C99 name for _exit */ void __cdecl __MINGW_NOTHROW _Exit(int) __MINGW_ATTRIB_NORETURN; -#ifndef __STRICT_ANSI__ /* inline using non-ansi functions */ +#if !defined __NO_INLINE__ && !defined __STRICT_ANSI__ __CRT_INLINE void __cdecl __MINGW_NOTHROW _Exit(int __status) { _exit (__status); } #endif @@ -556,16 +557,14 @@ lldiv_t __cdecl __MINGW_NOTHROW lldiv (long long, long long) __MINGW_ATTRIB_CONST; long long __cdecl __MINGW_NOTHROW llabs(long long); +#ifndef __NO_INLINE__ __CRT_INLINE long long __cdecl __MINGW_NOTHROW llabs(long long _j) {return (_j >= 0 ? _j : -_j);} +#endif long long __cdecl __MINGW_NOTHROW strtoll (const char* __restrict__, char** __restrict, int); unsigned long long __cdecl __MINGW_NOTHROW strtoull (const char* __restrict__, char** __restrict__, int); -/* C99 addition, this used to be blocked by __STRICT_ANSI__ (see below). */ -__CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) - { return _atoi64 (_c); } - #if defined (__MSVCRT__) /* these are stubs for MS _i64 versions */ #if !defined (__STRICT_ANSI__) @@ -576,6 +575,9 @@ wchar_t* __cdecl __MINGW_NOTHROW ulltow (unsigned long long, wchar_t *, int); /* inline using non-ansi functions */ +#ifndef __NO_INLINE__ +__CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) + { return _atoi64 (_c); } __CRT_INLINE char* __cdecl __MINGW_NOTHROW lltoa (long long _n, char * _c, int _i) { return _i64toa (_n, _c, _i); } __CRT_INLINE char* __cdecl __MINGW_NOTHROW ulltoa (unsigned long long _n, char * _c, int _i) @@ -586,6 +588,7 @@ { return _i64tow (_n, _w, _i); } __CRT_INLINE wchar_t* __cdecl __MINGW_NOTHROW ulltow (unsigned long long _n, wchar_t * _w, int _i) { return _ui64tow (_n, _w, _i); } +#endif /* (__NO_INLINE__) */ #endif /* (__STRICT_ANSI__) */ #endif /* __MSVCRT__ */ Modified: trunk/cegcc/src/mingw/include/string.h =================================================================== --- trunk/cegcc/src/mingw/include/string.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/string.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -101,17 +101,21 @@ _CRTIMP char* __cdecl __MINGW_NOTHROW strdup (const char*) __MINGW_ATTRIB_MALLOC; _CRTIMP int __cdecl __MINGW_NOTHROW strcmpi (const char*, const char*); _CRTIMP int __cdecl __MINGW_NOTHROW stricmp (const char*, const char*); -__CRT_INLINE int __cdecl __MINGW_NOTHROW strcasecmp (const char*, const char *); +int __cdecl __MINGW_NOTHROW strcasecmp (const char*, const char *); +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __MINGW_NOTHROW strcasecmp (const char * __sz1, const char * __sz2) {return _stricmp (__sz1, __sz2);} +#endif _CRTIMP int __cdecl __MINGW_NOTHROW stricoll (const char*, const char*); _CRTIMP char* __cdecl __MINGW_NOTHROW strlwr (char*); _CRTIMP int __cdecl __MINGW_NOTHROW strnicmp (const char*, const char*, size_t); -__CRT_INLINE int __cdecl __MINGW_NOTHROW strncasecmp (const char *, const char *, size_t); +int __cdecl __MINGW_NOTHROW strncasecmp (const char *, const char *, size_t); +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __MINGW_NOTHROW strncasecmp (const char * __sz1, const char * __sz2, size_t __sizeMaxCompare) {return _strnicmp (__sz1, __sz2, __sizeMaxCompare);} +#endif _CRTIMP char* __cdecl __MINGW_NOTHROW strnset (char*, int, size_t); _CRTIMP char* __cdecl __MINGW_NOTHROW strrev (char*); _CRTIMP char* __cdecl __MINGW_NOTHROW strset (char*, int); @@ -182,9 +186,11 @@ #ifndef _NO_OLDNAMES /* NOTE: There is no _wcscmpi, but this is for compatibility. */ int __cdecl __MINGW_NOTHROW wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2); +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __MINGW_NOTHROW wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2) {return _wcsicmp (__ws1, __ws2);} +#endif _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsdup (const wchar_t*); _CRTIMP int __cdecl __MINGW_NOTHROW wcsicmp (const wchar_t*, const wchar_t*); _CRTIMP int __cdecl __MINGW_NOTHROW wcsicoll (const wchar_t*, const wchar_t*); Modified: trunk/cegcc/src/mingw/include/unistd.h =================================================================== --- trunk/cegcc/src/mingw/include/unistd.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/unistd.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -39,10 +39,12 @@ /* This is defined as a real library function to allow autoconf to verify its existence. */ int ftruncate(int, off_t); +#ifndef __NO_INLINE__ __CRT_INLINE int ftruncate(int __fd, off_t __length) { return _chsize (__fd, __length); } +#endif #ifdef __cplusplus } Modified: trunk/cegcc/src/mingw/include/wchar.h =================================================================== --- trunk/cegcc/src/mingw/include/wchar.h 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/include/wchar.h 2009-09-06 23:23:06 UTC (rev 1373) @@ -152,10 +152,13 @@ #endif #ifndef __NO_ISOCEXT /* externs in libmingwex.a */ -int __cdecl __MINGW_NOTHROW snwprintf (wchar_t* s, size_t n, const wchar_t* format, ...); +int __cdecl __MINGW_NOTHROW snwprintf (wchar_t*, size_t, const wchar_t*, ...); +int __cdecl __MINGW_NOTHROW vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST); +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __MINGW_NOTHROW vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg) { return _vsnwprintf ( s, n, format, arg);} +#endif int __cdecl __MINGW_NOTHROW vwscanf (const wchar_t * __restrict__, __VALIST); int __cdecl __MINGW_NOTHROW vfwscanf (FILE * __restrict__, const wchar_t * __restrict__, __VALIST); @@ -262,9 +265,12 @@ #ifndef _NO_OLDNAMES /* NOTE: There is no _wcscmpi, but this is for compatibility. */ +int __cdecl __MINGW_NOTHROW wcscmpi (const wchar_t *, const wchar_t *); +#ifndef __NO_INLINE__ __CRT_INLINE int __cdecl __MINGW_NOTHROW wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2) {return _wcsicmp (__ws1, __ws2);} +#endif _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsdup (const wchar_t*); _CRTIMP int __cdecl __MINGW_NOTHROW wcsicmp (const wchar_t*, const wchar_t*); _CRTIMP int __cdecl __MINGW_NOTHROW wcsicoll (const wchar_t*, const wchar_t*); Modified: trunk/cegcc/src/mingw/mingwex/CVS/Entries =================================================================== --- trunk/cegcc/src/mingw/mingwex/CVS/Entries 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/mingwex/CVS/Entries 2009-09-06 23:23:06 UTC (rev 1373) @@ -17,14 +17,10 @@ /wdirent.c/1.3/Result of merge+Sun Feb 4 20:14:40 2007// D/gdtoa//// /wcstold.c/1.2/Tue Feb 6 22:15:34 2007// -/Makefile.in/1.46/Result of merge+Thu Feb 5 07:28:11 2009// /_Exit.c/1.2/Fri Feb 8 14:19:59 2008// -/aclocal.m4/1.1/Fri Feb 8 14:19:59 2008// /atoll.c/1.2/Fri Feb 8 14:19:59 2008// /basename.c/1.2/Result of merge+Thu Feb 5 07:28:11 2009// /btowc.c/1.2/Fri Feb 8 14:19:59 2008// -/configure/1.7/Thu Feb 5 07:28:11 2009// -/configure.in/1.7/Thu Feb 5 07:28:11 2009// /dirname.c/1.2/Result of merge// /feclearexcept.c/1.5/Fri Feb 8 14:19:59 2008// /fegetenv.c/1.7/Fri Feb 8 14:19:59 2008// @@ -39,7 +35,6 @@ /feupdateenv.c/1.5/Fri Feb 8 14:19:59 2008// /ftruncate.c/1.1/Fri Feb 8 14:19:59 2008// /fwide.c/1.4/Thu Feb 5 07:28:12 2009// -/getopt.c/1.8/Result of merge+Thu Feb 5 07:28:12 2009// /imaxabs.c/1.2/Fri Feb 8 14:19:59 2008// /imaxdiv.c/1.2/Fri Feb 8 14:19:59 2008// /iswblank.c/1.1/Fri Feb 8 14:19:59 2008// @@ -57,7 +52,6 @@ /twalk.c/1.1/Fri Jun 22 10:09:20 2007// /ulltoa.c/1.2/Fri Feb 8 14:19:59 2008// /ulltow.c/1.2/Fri Feb 8 14:19:59 2008// -/usleep.c/1.1/Sun May 4 12:18:52 2008// /wctrans.c/1.1/Fri Feb 8 14:19:59 2008// /wctype.c/1.1/Fri Feb 8 14:19:59 2008// /wmemchr.c/1.2/Fri Feb 8 14:19:59 2008// @@ -65,3 +59,6 @@ /wmemcpy.c/1.2/Fri Feb 8 14:19:59 2008// /wmemset.c/1.2/Fri Feb 8 14:19:59 2008// /wtoll.c/1.3/Fri Feb 8 14:19:59 2008// +/Makefile.in/1.47/Result of merge+Sun Sep 6 22:43:04 2009// +/getopt.c/1.9/Result of merge// +/usleep.c/1.2/Result of merge// Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2009-09-06 23:23:06 UTC (rev 1373) @@ -4,15 +4,23 @@ # This makefile requires GNU make. srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = $(srcdir):$(srcdir)/math:$(srcdir)/stdio:$(srcdir)/complex $(srcdir)/gdtoa + +# FIXME: I see no reason to define `objdir'; +# it appears to be unused, and could be removed. objdir = . host_alias = @host_alias@ prefix = @prefix@ +datarootdir = @datarootdir@ program_transform_name = @program_transform_name@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ +# FIXME: Use of `target_alias' is extremely suspect here; +# (see relevant note in top level Makefile). tooldir = $(exec_prefix)/$(host_alias) datadir = @datadir@ infodir = @infodir@ @@ -131,11 +139,18 @@ # compiling with Cygwin? NO_CYGWIN := @NO_CYGWIN@ ifdef NO_CYGWIN +# +# FIXME: What is the purpose of this hideous kludge? +# +# `CC' should have been appropriately set by the configure script; +# to mess with it, in this fashion, should neither be necessary, +# nor accepted. +# override CC := ${NO_CYGWIN} $(firstword $(filter-out ${NO_CYGWIN},${CC})) endif W32API_INCLUDE = @W32API_INCLUDE@ -INCLUDES = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../include \ +INCLUDES = -I${srcdir} -I${top_srcdir} -I${top_srcdir}/include \ -nostdinc \ -iwithprefixbefore include ALL_CFLAGS = $(CFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) $(W32API_INCLUDE) $(MATHCE_FLAGS) @@ -300,12 +315,14 @@ -D FUNCTION=$* $(srcdir)/math/lround_generic.c endif -Makefile: Makefile.in config.status configure - $(SHELL) config.status +top_builddir = @top_builddir@ -config.status: configure - $(SHELL) config.status --recheck +Makefile: Makefile.in ${top_builddir}/config.status ${top_srcdir}/configure + cd ${top_builddir}; $(SHELL) config.status +${top_builddir}/config.status: ${top_srcdir}/configure + cd ${top_builddir}; $(SHELL) config.status --recheck + info: info-html: @@ -414,3 +431,5 @@ setjmp.o: $(CC) -c -I$(srcdir)/wince/i386 $(srcdir)/wince/i386/setjmp.S endif + +# $RCSfile: Makefile.in,v $: end of file Deleted: trunk/cegcc/src/mingw/mingwex/aclocal.m4 =================================================================== --- trunk/cegcc/src/mingw/mingwex/aclocal.m4 2009-09-06 21:23:17 UTC (rev 1372) +++ trunk/cegcc/src/mingw/mingwex/aclocal.m4 2009-09-06 23:23:06 UTC (rev 1373) @@ -1,831 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.4-p6 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -# lib-prefix.m4 serial 4 (gettext-0.14.2) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribut... [truncated message content] |
From: <dan...@us...> - 2009-09-08 20:22:35
|
Revision: 1381 http://cegcc.svn.sourceforge.net/cegcc/?rev=1381&view=rev Author: dannybackx Date: 2009-09-08 20:22:25 +0000 (Tue, 08 Sep 2009) Log Message: ----------- Don't build the profile directory. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/Makefile.in trunk/cegcc/src/mingw/configure trunk/cegcc/src/mingw/configure.in Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-08 16:39:33 UTC (rev 1380) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-09-08 20:22:25 UTC (rev 1381) @@ -1,6 +1,11 @@ +2009-09-08 Danny Backx <dan...@us...> + + * configure.in, Makefile.in: Don't build profile directory. + * configure: Regenerate. + 2009-09-07 Danny Backx <dan...@us...> - * coredll.def, coredll6.def : Sync with w32api. + * coredll.def, coredll6.def: Sync with w32api. 2009-09-06 Pedro Alves <ped...@us...> Modified: trunk/cegcc/src/mingw/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/Makefile.in 2009-09-08 16:39:33 UTC (rev 1380) +++ trunk/cegcc/src/mingw/Makefile.in 2009-09-08 20:22:25 UTC (rev 1381) @@ -200,7 +200,7 @@ TARFLAGS = z TARFILEEXT = .tar.gz -SUBDIRS = mingwex profile +SUBDIRS = mingwex # FIXME: Most of these are either redundant, or should be set # directly in the subdirectories' Makefiles, by `configure'. Modified: trunk/cegcc/src/mingw/configure =================================================================== --- trunk/cegcc/src/mingw/configure 2009-09-08 16:39:33 UTC (rev 1380) +++ trunk/cegcc/src/mingw/configure 2009-09-08 20:22:25 UTC (rev 1381) @@ -3904,7 +3904,7 @@ mingw_manpage_transform=${mingw_manpage_transform-'s,x,x,'} -ac_config_files="$ac_config_files Makefile mingwex/Makefile profile/Makefile" +ac_config_files="$ac_config_files Makefile mingwex/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -4517,7 +4517,6 @@ case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "mingwex/Makefile") CONFIG_FILES="$CONFIG_FILES mingwex/Makefile" ;; - "profile/Makefile") CONFIG_FILES="$CONFIG_FILES profile/Makefile" ;; *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} Modified: trunk/cegcc/src/mingw/configure.in =================================================================== --- trunk/cegcc/src/mingw/configure.in 2009-09-08 16:39:33 UTC (rev 1380) +++ trunk/cegcc/src/mingw/configure.in 2009-09-08 20:22:25 UTC (rev 1381) @@ -83,7 +83,7 @@ AC_PROG_INSTALL MINGW_AC_MANPAGE_TRANSFORM -AC_CONFIG_FILES([Makefile mingwex/Makefile profile/Makefile]) +AC_CONFIG_FILES([Makefile mingwex/Makefile]) AC_OUTPUT # $RCSfile$: end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-10-29 19:51:27
|
Revision: 1399 http://cegcc.svn.sourceforge.net/cegcc/?rev=1399&view=rev Author: dannybackx Date: 2009-10-29 19:51:15 +0000 (Thu, 29 Oct 2009) Log Message: ----------- Apply fix by Pierre Ynard. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdlib.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-10-25 18:39:01 UTC (rev 1398) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-10-29 19:51:15 UTC (rev 1399) @@ -1,3 +1,9 @@ +2009-10-29 Pierre Ynard <lin...@ya...> + + * include/stdlib.h: Apply the atoll change again, this disappeared + with the latest merge : "Move atoll definition out of __STRICT_ANSI__, + see bug #2821869." + 2009-09-08 Danny Backx <dan...@us...> * configure.in, Makefile.in: Don't build profile directory. Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2009-10-25 18:39:01 UTC (rev 1398) +++ trunk/cegcc/src/mingw/include/stdlib.h 2009-10-29 19:51:15 UTC (rev 1399) @@ -574,10 +574,12 @@ wchar_t* __cdecl __MINGW_NOTHROW lltow (long long, wchar_t *, int); wchar_t* __cdecl __MINGW_NOTHROW ulltow (unsigned long long, wchar_t *, int); +/* C99 addition, this used to be blocked by __STRICT_ANSI__ (see below). */ +__CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) + { return _atoi64 (_c); } + /* inline using non-ansi functions */ #ifndef __NO_INLINE__ -__CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) - { return _atoi64 (_c); } __CRT_INLINE char* __cdecl __MINGW_NOTHROW lltoa (long long _n, char * _c, int _i) { return _i64toa (_n, _c, _i); } __CRT_INLINE char* __cdecl __MINGW_NOTHROW ulltoa (unsigned long long _n, char * _c, int _i) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-10-31 10:13:46
|
Revision: 1400 http://cegcc.svn.sourceforge.net/cegcc/?rev=1400&view=rev Author: dannybackx Date: 2009-10-31 10:13:39 +0000 (Sat, 31 Oct 2009) Log Message: ----------- Fix the fix Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdlib.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-10-29 19:51:15 UTC (rev 1399) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-10-31 10:13:39 UTC (rev 1400) @@ -1,3 +1,7 @@ +2009-10-31 Danny Backx <dan...@us...> + + * include/stdlib.h: Do the fix below right this time. + 2009-10-29 Pierre Ynard <lin...@ya...> * include/stdlib.h: Apply the atoll change again, this disappeared Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2009-10-29 19:51:15 UTC (rev 1399) +++ trunk/cegcc/src/mingw/include/stdlib.h 2009-10-31 10:13:39 UTC (rev 1400) @@ -562,6 +562,10 @@ {return (_j >= 0 ? _j : -_j);} #endif +/* C99 addition, this used to be blocked by __STRICT_ANSI__ (see below). */ +__CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) + { return _atoi64 (_c); } + long long __cdecl __MINGW_NOTHROW strtoll (const char* __restrict__, char** __restrict, int); unsigned long long __cdecl __MINGW_NOTHROW strtoull (const char* __restrict__, char** __restrict__, int); @@ -574,10 +578,6 @@ wchar_t* __cdecl __MINGW_NOTHROW lltow (long long, wchar_t *, int); wchar_t* __cdecl __MINGW_NOTHROW ulltow (unsigned long long, wchar_t *, int); -/* C99 addition, this used to be blocked by __STRICT_ANSI__ (see below). */ -__CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) - { return _atoi64 (_c); } - /* inline using non-ansi functions */ #ifndef __NO_INLINE__ __CRT_INLINE char* __cdecl __MINGW_NOTHROW lltoa (long long _n, char * _c, int _i) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2009-12-10 12:52:37
|
Revision: 1405 http://cegcc.svn.sourceforge.net/cegcc/?rev=1405&view=rev Author: pedroalves Date: 2009-12-10 12:52:26 +0000 (Thu, 10 Dec 2009) Log Message: ----------- * mingwex/wince/stat.c (_fstat): Return -1 if GetFileInformationByHandle returns false. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/stat.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-12-10 11:31:39 UTC (rev 1404) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-12-10 12:52:26 UTC (rev 1405) @@ -1,3 +1,8 @@ +2009-12-10 Pedro Alves <ped...@us...> + + * mingwex/wince/stat.c (_fstat): Return -1 if + GetFileInformationByHandle returns false. + 2009-10-31 Danny Backx <dan...@us...> * include/stdlib.h: Do the fix below right this time. Modified: trunk/cegcc/src/mingw/mingwex/wince/stat.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/stat.c 2009-12-10 11:31:39 UTC (rev 1404) +++ trunk/cegcc/src/mingw/mingwex/wince/stat.c 2009-12-10 12:52:26 UTC (rev 1405) @@ -96,7 +96,8 @@ BY_HANDLE_FILE_INFORMATION fi; struct stat_file_info_t sfi; - GetFileInformationByHandle ((HANDLE)fd, &fi); + if (!GetFileInformationByHandle ((HANDLE) fd, &fi)) + return -1; TO_STAT_FILE_INFO (&sfi, &fi); return __stat_by_file_info (&sfi, st, 0); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2009-12-10 12:55:43
|
Revision: 1406 http://cegcc.svn.sourceforge.net/cegcc/?rev=1406&view=rev Author: pedroalves Date: 2009-12-10 12:55:31 +0000 (Thu, 10 Dec 2009) Log Message: ----------- * mingwex/wince/stat.c: Fix indentation. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/stat.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-12-10 12:52:26 UTC (rev 1405) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-12-10 12:55:31 UTC (rev 1406) @@ -1,5 +1,9 @@ 2009-12-10 Pedro Alves <ped...@us...> + * mingwex/wince/stat.c: Fix indentation. + +2009-12-10 Pedro Alves <ped...@us...> + * mingwex/wince/stat.c (_fstat): Return -1 if GetFileInformationByHandle returns false. Modified: trunk/cegcc/src/mingw/mingwex/wince/stat.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/stat.c 2009-12-10 12:52:26 UTC (rev 1405) +++ trunk/cegcc/src/mingw/mingwex/wince/stat.c 2009-12-10 12:55:31 UTC (rev 1406) @@ -27,19 +27,19 @@ DWORD nFileSizeLow; }; -#define COPY_MEMBER(DEST, SRC, MEMBER) \ -do { \ - (DEST)->MEMBER = (SRC)->MEMBER; \ -} while (0) +#define COPY_MEMBER(DEST, SRC, MEMBER) \ + do { \ + (DEST)->MEMBER = (SRC)->MEMBER; \ + } while (0) -#define TO_STAT_FILE_INFO(DEST, SRC) \ -do { \ - COPY_MEMBER (DEST, SRC, dwFileAttributes); \ - COPY_MEMBER (DEST, SRC, ftLastWriteTime); \ - COPY_MEMBER (DEST, SRC, ftCreationTime); \ - COPY_MEMBER (DEST, SRC, ftLastAccessTime); \ - COPY_MEMBER (DEST, SRC, nFileSizeLow); \ -} while (0) +#define TO_STAT_FILE_INFO(DEST, SRC) \ + do { \ + COPY_MEMBER (DEST, SRC, dwFileAttributes); \ + COPY_MEMBER (DEST, SRC, ftLastWriteTime); \ + COPY_MEMBER (DEST, SRC, ftCreationTime); \ + COPY_MEMBER (DEST, SRC, ftLastAccessTime); \ + COPY_MEMBER (DEST, SRC, nFileSizeLow); \ + } while (0) static int __stat_by_file_info (struct stat_file_info_t *fi, struct _stat *st, int exec) @@ -71,21 +71,21 @@ /* Looks like the code below is never triggered. Windows CE always only keeps the LastWriteTime, and - copies it to the CreationTime and LastAccessTime fields. */ + copies it to the CreationTime and LastAccessTime fields. */ if (st->st_ctime == 0) st->st_ctime = st->st_mtime; if (st->st_atime == 0) { - /* On XP, at least, the st_atime is always set to the same - as the st_mtime, except the hour/min/sec == 00:00:00. */ - SYSTEMTIME s; - FILETIME f = fi->ftLastWriteTime; - FileTimeToSystemTime (&f, &s); - s.wHour = 0; s.wMinute = 0; - s.wSecond = 0; s.wMilliseconds = 0; - SystemTimeToFileTime (&s, &f); - st->st_atime = __FILETIME_to_time_t (&f); - /* st->st_atime = st->st_mtime; */ + /* On XP, at least, the st_atime is always set to the same as + the st_mtime, except the hour/min/sec == 00:00:00. */ + SYSTEMTIME s; + FILETIME f = fi->ftLastWriteTime; + FileTimeToSystemTime (&f, &s); + s.wHour = 0; s.wMinute = 0; + s.wSecond = 0; s.wMilliseconds = 0; + SystemTimeToFileTime (&s, &f); + st->st_atime = __FILETIME_to_time_t (&f); + /* st->st_atime = st->st_mtime; */ } return 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2009-12-11 11:50:09
|
Revision: 1407 http://cegcc.svn.sourceforge.net/cegcc/?rev=1407&view=rev Author: pedroalves Date: 2009-12-11 11:50:03 +0000 (Fri, 11 Dec 2009) Log Message: ----------- 2009-12-11 Pedro Alves <ped...@us...> SF #2901705 * winmain_ce.c (_parse_tokens, __mainArgs): Fix memory allocation and properly null terminate argv. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/winmain_ce.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-12-10 12:55:31 UTC (rev 1406) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-12-11 11:50:03 UTC (rev 1407) @@ -1,3 +1,10 @@ +2009-12-11 Pedro Alves <ped...@us...> + + SF #2901705 + + * winmain_ce.c (_parse_tokens, __mainArgs): Fix memory allocation + and properly null terminate argv. + 2009-12-10 Pedro Alves <ped...@us...> * mingwex/wince/stat.c: Fix indentation. Modified: trunk/cegcc/src/mingw/winmain_ce.c =================================================================== --- trunk/cegcc/src/mingw/winmain_ce.c 2009-12-10 12:55:31 UTC (rev 1406) +++ trunk/cegcc/src/mingw/winmain_ce.c 2009-12-11 11:50:03 UTC (rev 1407) @@ -23,22 +23,24 @@ extern int main (int, char **, char **); +/* Extract whitespace- and quotes- delimited tokens from the given + * string and put them into the tokens array. Returns number of tokens + * extracted. Length specifies the current size of tokens[], not + * counting for the NULL terminator. THIS METHOD MODIFIES string. + */ static int _parse_tokens(char* string, char*** tokens, int length) { - /* Extract whitespace- and quotes- delimited tokens from the given string - and put them into the tokens array. Returns number of tokens - extracted. Length specifies the current size of tokens[]. - THIS METHOD MODIFIES string. */ - const char* whitespace = " \t\r\n"; char* tokenEnd; const char* quoteCharacters = "\"\'"; - char* end = string + strlen (string); + char* end; if (string == NULL) return length; + end = string + strlen (string); + while (1) { const char* q; @@ -68,20 +70,15 @@ *tokenEnd = '\0'; - { - char** new_tokens; - int newlen = length + 1; - new_tokens = realloc (*tokens, sizeof (char**) * newlen); - if (!new_tokens) - { - /* Out of memory. */ - return -1; - } + length++; + *tokens = realloc (*tokens, sizeof (char**) * (length + 1)); + if (!*tokens) + { + /* Out of memory. */ + return -1; + } - *tokens = new_tokens; - (*tokens)[length] = string; - length = newlen; - } + (*tokens)[length - 1] = string; if (tokenEnd == end) break; string = tokenEnd + 1; @@ -101,7 +98,8 @@ /* argv[0] is the path of invoked program - get this from CE. */ cmdnameBufW[0] = 0; - modlen = GetModuleFileNameW(NULL, cmdnameBufW, sizeof (cmdnameBufW)/sizeof (cmdnameBufW[0])); + modlen = GetModuleFileNameW(NULL, cmdnameBufW, + sizeof (cmdnameBufW)/sizeof (cmdnameBufW[0])); if (!cmdlinePtrW) cmdlineLen = 0; @@ -112,14 +110,16 @@ if (!__cmdlinebuf) ExitProcess(-1); - *argv = malloc (sizeof (char**) * 1); + /* Add one to account for argv[0] */ + (*argc)++; + + /* + 1 accounts for the null terminator. */ + *argv = malloc (sizeof (char**) * (*argc + 1)); if (!*argv) ExitProcess(-1); (*argv)[0] = __cmdlinebuf; wcstombs((*argv)[0], cmdnameBufW, wcslen(cmdnameBufW) + 1); - /* Add one to account for argv[0] */ - (*argc)++; if (cmdlineLen > 0) { @@ -129,7 +129,7 @@ if (*argc < 0) ExitProcess(-1); } - (*argv)[*argc] = 0; + (*argv)[*argc] = NULL; return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-01 14:53:18
|
Revision: 1425 http://cegcc.svn.sourceforge.net/cegcc/?rev=1425&view=rev Author: pedroalves Date: 2010-01-01 14:53:12 +0000 (Fri, 01 Jan 2010) Log Message: ----------- 2010-01-01 Pedro Alves <ped...@us...> * pseudo-reloc.c (__text_start__): Declare. (_pei386_runtime_relocator): On CE, don't reference &__image_base__; get at the image base through __text_start__ - 0x1000 instead. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/pseudo-reloc.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 09:49:12 UTC (rev 1424) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 14:53:12 UTC (rev 1425) @@ -1,3 +1,10 @@ +2010-01-01 Pedro Alves <ped...@us...> + + * pseudo-reloc.c (__text_start__): Declare. + (_pei386_runtime_relocator): On CE, don't reference + &__image_base__; get at the image base through __text_start__ - + 0x1000 instead. + 2009-12-11 Pedro Alves <ped...@us...> SF #2901705 Modified: trunk/cegcc/src/mingw/pseudo-reloc.c =================================================================== --- trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-01 09:49:12 UTC (rev 1424) +++ trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-01 14:53:12 UTC (rev 1425) @@ -20,12 +20,12 @@ #include <stdlib.h> #include <string.h> #include <assert.h> -#include <stddef.h> extern char __RUNTIME_PSEUDO_RELOC_LIST__; extern char __RUNTIME_PSEUDO_RELOC_LIST_END__; - extern char __U(_image_base__); - + extern char _image_base__; + extern char __text_start__; + typedef struct { DWORD addend; DWORD target; @@ -172,10 +172,36 @@ _pei386_runtime_relocator () { static int was_init = 0; +#ifdef UNDER_CE + static volatile void *text_start; + static volatile int pe_header_size; +#endif + void *image_base; if (was_init) return; ++was_init; + +#ifndef UNDER_CE + image_base = _image_base__; +#else + /* The loader of Windows Mobile 6.1 and above refuses to apply base + relocations if the resulting RVA falls out of the image. + __image_base__ happens to be one such symbol, as most other ld + magic symbols (__dll__, __major_image_version__, etc.). + Basically, symbols that end up on the absolute section. As an + alternative to get at the image base, we relocate against the + __text_start__ symbol, and subtract the PE header from that. In + practice, this gives us the image base. We go through volatile + globals to make sure gcc doesn't fold the 0x1000 subtraction into + the relocatable address, as that would be the same as relocating + against __image_base__ in the first place, exactly what we need + to avoid. */ + text_start = &__text_start__; + pe_header_size = 0x1000; + image_base = (char *) text_start - pe_header_size; +#endif + do_pseudo_reloc (&__RUNTIME_PSEUDO_RELOC_LIST__, &__RUNTIME_PSEUDO_RELOC_LIST_END__, - &__U(_image_base__)); + image_base); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-01 16:29:12
|
Revision: 1426 http://cegcc.svn.sourceforge.net/cegcc/?rev=1426&view=rev Author: pedroalves Date: 2010-01-01 16:29:01 +0000 (Fri, 01 Jan 2010) Log Message: ----------- 2010-01-01 Pedro Alves <ped...@us...> * pseudo-reloc.c: Put back include of stddef.h. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/pseudo-reloc.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 14:53:12 UTC (rev 1425) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 16:29:01 UTC (rev 1426) @@ -1,5 +1,9 @@ 2010-01-01 Pedro Alves <ped...@us...> + * pseudo-reloc.c: Put back include of stddef.h. + +2010-01-01 Pedro Alves <ped...@us...> + * pseudo-reloc.c (__text_start__): Declare. (_pei386_runtime_relocator): On CE, don't reference &__image_base__; get at the image base through __text_start__ - Modified: trunk/cegcc/src/mingw/pseudo-reloc.c =================================================================== --- trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-01 14:53:12 UTC (rev 1425) +++ trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-01 16:29:01 UTC (rev 1426) @@ -20,6 +20,7 @@ #include <stdlib.h> #include <string.h> #include <assert.h> +#include <stddef.h> extern char __RUNTIME_PSEUDO_RELOC_LIST__; extern char __RUNTIME_PSEUDO_RELOC_LIST_END__; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-01 23:48:06
|
Revision: 1427 http://cegcc.svn.sourceforge.net/cegcc/?rev=1427&view=rev Author: pedroalves Date: 2010-01-01 23:47:59 +0000 (Fri, 01 Jan 2010) Log Message: ----------- * mingwex/wince/freopen.c, mingwex/wince/unlink.c, mingwex/wince/open.c, mingwex/wince/ctime.c, mingwex/wince/tempnam.c, mingwex/wince/close.c, mingwex/wince/isalnum.c, mingwex/wince/read.c, mingwex/wince/fdopen.c, mingwex/wince/isalpha.c, mingwex/wince/wcsftime.c, mingwex/wince/gmtime.c, mingwex/wince/utime.c, mingwex/wince/isxdigit.c, mingwex/wince/mktime.c, mingwex/wince/isupper.c, mingwex/wince/isgraph.c, mingwex/wince/_toupper.c, mingwex/wince/time.c, mingwex/wince/lseek.c, mingwex/wince/rename.c, mingwex/wince/localtime.c, mingwex/wince/iscntrl.c, mingwex/wince/islower.c, mingwex/wince/ispunct.c, mingwex/wince/asctime.c, mingwex/wince/isspace.c, mingwex/wince/isprint.c, mingwex/wince/futime.c, mingwex/wince/_tolower.c, mingwex/wince/chmod.c, mingwex/wince/write.c: Add explicit public domain header. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/_tolower.c trunk/cegcc/src/mingw/mingwex/wince/_toupper.c trunk/cegcc/src/mingw/mingwex/wince/asctime.c trunk/cegcc/src/mingw/mingwex/wince/chmod.c trunk/cegcc/src/mingw/mingwex/wince/close.c trunk/cegcc/src/mingw/mingwex/wince/ctime.c trunk/cegcc/src/mingw/mingwex/wince/fdopen.c trunk/cegcc/src/mingw/mingwex/wince/freopen.c trunk/cegcc/src/mingw/mingwex/wince/futime.c trunk/cegcc/src/mingw/mingwex/wince/gmtime.c trunk/cegcc/src/mingw/mingwex/wince/isalnum.c trunk/cegcc/src/mingw/mingwex/wince/isalpha.c trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c trunk/cegcc/src/mingw/mingwex/wince/isgraph.c trunk/cegcc/src/mingw/mingwex/wince/islower.c trunk/cegcc/src/mingw/mingwex/wince/isprint.c trunk/cegcc/src/mingw/mingwex/wince/ispunct.c trunk/cegcc/src/mingw/mingwex/wince/isspace.c trunk/cegcc/src/mingw/mingwex/wince/isupper.c trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c trunk/cegcc/src/mingw/mingwex/wince/localtime.c trunk/cegcc/src/mingw/mingwex/wince/lseek.c trunk/cegcc/src/mingw/mingwex/wince/mktime.c trunk/cegcc/src/mingw/mingwex/wince/open.c trunk/cegcc/src/mingw/mingwex/wince/read.c trunk/cegcc/src/mingw/mingwex/wince/rename.c trunk/cegcc/src/mingw/mingwex/wince/tempnam.c trunk/cegcc/src/mingw/mingwex/wince/time.c trunk/cegcc/src/mingw/mingwex/wince/unlink.c trunk/cegcc/src/mingw/mingwex/wince/utime.c trunk/cegcc/src/mingw/mingwex/wince/wcsftime.c trunk/cegcc/src/mingw/mingwex/wince/write.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,5 +1,25 @@ 2010-01-01 Pedro Alves <ped...@us...> + * mingwex/wince/freopen.c, mingwex/wince/unlink.c, + mingwex/wince/open.c, mingwex/wince/ctime.c, + mingwex/wince/tempnam.c, mingwex/wince/close.c, + mingwex/wince/isalnum.c, mingwex/wince/read.c, + mingwex/wince/fdopen.c, mingwex/wince/isalpha.c, + mingwex/wince/wcsftime.c, mingwex/wince/gmtime.c, + mingwex/wince/utime.c, mingwex/wince/isxdigit.c, + mingwex/wince/mktime.c, mingwex/wince/isupper.c, + mingwex/wince/isgraph.c, mingwex/wince/_toupper.c, + mingwex/wince/time.c, mingwex/wince/lseek.c, + mingwex/wince/rename.c, mingwex/wince/localtime.c, + mingwex/wince/iscntrl.c, mingwex/wince/islower.c, + mingwex/wince/ispunct.c, mingwex/wince/asctime.c, + mingwex/wince/isspace.c, mingwex/wince/isprint.c, + mingwex/wince/futime.c, mingwex/wince/_tolower.c, + mingwex/wince/chmod.c, mingwex/wince/write.c: Add explicit public + domain header. + +2010-01-01 Pedro Alves <ped...@us...> + * pseudo-reloc.c: Put back include of stddef.h. 2010-01-01 Pedro Alves <ped...@us...> Modified: trunk/cegcc/src/mingw/mingwex/wince/_tolower.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/_tolower.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/_tolower.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * _tolower.c: _tolower implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/_toupper.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/_toupper.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/_toupper.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * _toupper.c: _toupper implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/asctime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/asctime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/asctime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * asctime.c: asctime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <stdio.h> #include <time.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/chmod.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/chmod.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/chmod.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * chmod.c: chmod implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <wchar.h> #include <windows.h> #include <io.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/close.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/close.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/close.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * close.c: close implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <unistd.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/ctime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/ctime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/ctime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * ctime.c: ctime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <time.h> char * Modified: trunk/cegcc/src/mingw/mingwex/wince/fdopen.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * fdopen.c: fdopen and _fdopen implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <stdio.h> #include <string.h> #include <stdlib.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/freopen.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/freopen.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/freopen.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * freopen.c: freopen implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <stdio.h> #include <stdlib.h> #include <string.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/futime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/futime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/futime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * futime.c: _futime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <sys/utime.h> #include "timeutil.h" Modified: trunk/cegcc/src/mingw/mingwex/wince/gmtime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/gmtime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/gmtime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * gmtime.c: gmtime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include "timeutil.h" struct tm * Modified: trunk/cegcc/src/mingw/mingwex/wince/isalnum.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isalnum.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isalnum.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isalnum.c: isalnum implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isalpha.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isalpha.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isalpha.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isalpha.c: isalpha implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * iscntrl.c: iscntrl implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isgraph.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isgraph.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isgraph.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isgraph.c: isgraph implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/islower.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/islower.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/islower.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * islower.c: islower implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isprint.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isprint.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isprint.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isprint.c: isprint implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/ispunct.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/ispunct.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/ispunct.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * ispunct.c: ispunct implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isspace.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isspace.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isspace.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isspace.c: isspace implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isupper.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isupper.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isupper.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isupper.c: isupper implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * isxdigit.c: isxdigit implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <ctype.h> int Modified: trunk/cegcc/src/mingw/mingwex/wince/localtime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/localtime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/localtime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * localtime.c: localtime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include "timeutil.h" struct tm * Modified: trunk/cegcc/src/mingw/mingwex/wince/lseek.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * lseek.c: lseek implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <unistd.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/mktime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/mktime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/mktime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * mktime.c: mktime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include "timeutil.h" time_t Modified: trunk/cegcc/src/mingw/mingwex/wince/open.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/open.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/open.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * open.c: open, _open and_wopen implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <unistd.h> #include <fcntl.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/read.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/read.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/read.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * read.c: read and _read implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> #include <unistd.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/rename.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/rename.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/rename.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * rename.c: rename implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <windows.h> /* We return an error if the TO file already exists, Modified: trunk/cegcc/src/mingw/mingwex/wince/tempnam.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/tempnam.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/tempnam.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * tempname.c: tempname, _tempname and _wtempnam implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <stdio.h> #include <windows.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/time.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/time.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/time.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * time.c: time implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include "timeutil.h" time_t Modified: trunk/cegcc/src/mingw/mingwex/wince/unlink.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/unlink.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/unlink.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * unlink.c: unlink and _unlink implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <stdio.h> #include <windows.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/utime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/utime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/utime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * utime.c: utime and _utime implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <sys/utime.h> #include <fcntl.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/wcsftime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/wcsftime.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/wcsftime.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,14 @@ +/* + * wcsftime.c: wcsftime implementation for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ + #include <string.h> #include <stdlib.h> #include <time.h> Modified: trunk/cegcc/src/mingw/mingwex/wince/write.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/write.c 2010-01-01 16:29:01 UTC (rev 1426) +++ trunk/cegcc/src/mingw/mingwex/wince/write.c 2010-01-01 23:47:59 UTC (rev 1427) @@ -1,3 +1,13 @@ +/* + * write.c: write and _write implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> Feb 2007 + * + */ #include <windows.h> #include <unistd.h> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-02 00:53:16
|
Revision: 1428 http://cegcc.svn.sourceforge.net/cegcc/?rev=1428&view=rev Author: pedroalves Date: 2010-01-02 00:53:05 +0000 (Sat, 02 Jan 2010) Log Message: ----------- * include/stdlib.h (atoll): Don't define the inline version with __NO_INLINE__ is defined. Don't define or declare if __STRICT_ANSI__ is defined, unless compiling for C99 or above. Add missing declaration for out-of-line copy. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdlib.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 23:47:59 UTC (rev 1427) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-02 00:53:05 UTC (rev 1428) @@ -1,3 +1,10 @@ +2010-01-02 Pedro Alves <ped...@us...> + + * include/stdlib.h (atoll): Don't define the inline version with + __NO_INLINE__ is defined. Don't define or declare if + __STRICT_ANSI__ is defined, unless compiling for C99 or above. + Add missing declaration for out-of-line copy. + 2010-01-01 Pedro Alves <ped...@us...> * mingwex/wince/freopen.c, mingwex/wince/unlink.c, Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2010-01-01 23:47:59 UTC (rev 1427) +++ trunk/cegcc/src/mingw/include/stdlib.h 2010-01-02 00:53:05 UTC (rev 1428) @@ -562,13 +562,27 @@ {return (_j >= 0 ? _j : -_j);} #endif -/* C99 addition, this used to be blocked by __STRICT_ANSI__ (see below). */ +#ifndef __NO_INLINE__ +#if (!defined (__STRICT_ANSI__) \ + || (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)) __CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) { return _atoi64 (_c); } +#endif +#endif long long __cdecl __MINGW_NOTHROW strtoll (const char* __restrict__, char** __restrict, int); unsigned long long __cdecl __MINGW_NOTHROW strtoull (const char* __restrict__, char** __restrict__, int); +/* these are stubs for MS _i64 versions */ +#if defined (__MSVCRT__) || defined (__COREDLL__) + +#if (!defined (__STRICT_ANSI__) \ + || (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)) +long long __cdecl __MINGW_NOTHROW atoll (const char * _c); +#endif + +#endif + #if defined (__MSVCRT__) /* these are stubs for MS _i64 versions */ #if !defined (__STRICT_ANSI__) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2010-01-02 01:20:39
|
Revision: 1429 http://cegcc.svn.sourceforge.net/cegcc/?rev=1429&view=rev Author: pedroalves Date: 2010-01-02 01:20:33 +0000 (Sat, 02 Jan 2010) Log Message: ----------- 2010-01-02 Pedro Alves <ped...@us...> Partially revert: 2009-05-18 Danny Backx <dan...@us...> * include/stdio.h (fileno, _fileno): Define as void* instead of int. Now: * include/stdio.h (fileno): Revert back to returning int. (_fileno): Non-CE versions return int. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdio.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-02 00:53:05 UTC (rev 1428) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-02 01:20:33 UTC (rev 1429) @@ -1,5 +1,15 @@ 2010-01-02 Pedro Alves <ped...@us...> + Partially revert: + 2009-05-18 Danny Backx <dan...@us...> + * include/stdio.h (fileno, _fileno): Define as void* instead of int. + + Now: + * include/stdio.h (fileno): Revert back to returning int. + (_fileno): Non-CE versions return int. + +2010-01-02 Pedro Alves <ped...@us...> + * include/stdlib.h (atoll): Don't define the inline version with __NO_INLINE__ is defined. Don't define or declare if __STRICT_ANSI__ is defined, unless compiling for C99 or above. Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2010-01-02 00:53:05 UTC (rev 1428) +++ trunk/cegcc/src/mingw/include/stdio.h 2010-01-02 01:20:33 UTC (rev 1429) @@ -561,11 +561,10 @@ _CRTIMP FILE* __cdecl __MINGW_NOTHROW _fsopen (const char*, const char*, int); #endif #ifdef __COREDLL__ -/* Define _fileno as a void * which appears to be the sensible thing to do, - * even though MSDN claims otherwise. */ +/* See declaration of fileno below. */ _CRTIMP void * __cdecl __MINGW_NOTHROW _fileno (FILE*); #else -_CRTIMP void * __cdecl __MINGW_NOTHROW _fileno (FILE*); +_CRTIMP int __cdecl __MINGW_NOTHROW _fileno (FILE*); #endif _CRTIMP int __cdecl __MINGW_NOTHROW _fcloseall (void); #ifdef __MSVCRT__ @@ -588,11 +587,14 @@ #ifndef __COREDLL__ _CRTIMP int __cdecl __MINGW_NOTHROW fgetchar (void); _CRTIMP int __cdecl __MINGW_NOTHROW fputchar (int); -_CRTIMP void * __cdecl __MINGW_NOTHROW fileno (FILE*); +_CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*); #else -/* Define fileno as a void * which appears to be the sensible thing to do, - * even though MSDN claims otherwise. */ -_CRTIMP void * __cdecl __MINGW_NOTHROW fileno (FILE*); + /* Microsoft defines _fileno as returning a void* (HANDLE), since + file descriptors are really HANDLES, but, that is so annoying for + portability, that we define fileno (no underscore) as returning + int, which is OK on arm (32-bit). The underscored version + (_fileno) is left returning void*. */ +_CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*); #endif #endif /* Not _NO_OLDNAMES */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-01-09 13:38:34
|
Revision: 1435 http://cegcc.svn.sourceforge.net/cegcc/?rev=1435&view=rev Author: dannybackx Date: 2010-01-09 13:38:28 +0000 (Sat, 09 Jan 2010) Log Message: ----------- Redefine __text_start__ as __U(_text_start__) to have the right number of underscores. This fixes the i386 build. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/pseudo-reloc.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-07 12:21:46 UTC (rev 1434) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-09 13:38:28 UTC (rev 1435) @@ -1,3 +1,8 @@ +2010-01-09 Danny Backx <dan...@us...> + + * pseudo-reloc.c (__text_start__): Redefine as __U(_text_start__) to + prepend the right number of underscores. + 2010-01-02 Pedro Alves <ped...@us...> Partially revert: Modified: trunk/cegcc/src/mingw/pseudo-reloc.c =================================================================== --- trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-07 12:21:46 UTC (rev 1434) +++ trunk/cegcc/src/mingw/pseudo-reloc.c 2010-01-09 13:38:28 UTC (rev 1435) @@ -25,7 +25,7 @@ extern char __RUNTIME_PSEUDO_RELOC_LIST__; extern char __RUNTIME_PSEUDO_RELOC_LIST_END__; extern char _image_base__; - extern char __text_start__; + extern char __U(_text_start__); typedef struct { DWORD addend; @@ -197,7 +197,7 @@ the relocatable address, as that would be the same as relocating against __image_base__ in the first place, exactly what we need to avoid. */ - text_start = &__text_start__; + text_start = &__U(_text_start__); pe_header_size = 0x1000; image_base = (char *) text_start - pe_header_size; #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |