You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(16) |
Aug
(203) |
Sep
(142) |
Oct
(113) |
Nov
(73) |
Dec
(27) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(7) |
Feb
(38) |
Mar
(6) |
Apr
(1) |
May
(9) |
Jun
(104) |
Jul
(6) |
Aug
(11) |
Sep
(13) |
Oct
(6) |
Nov
(15) |
Dec
(37) |
2008 |
Jan
(17) |
Feb
(4) |
Mar
(6) |
Apr
(4) |
May
(2) |
Jun
(5) |
Jul
(1) |
Aug
(3) |
Sep
(21) |
Oct
(7) |
Nov
|
Dec
(3) |
2009 |
Jan
(4) |
Feb
(15) |
Mar
|
Apr
(34) |
May
(44) |
Jun
(12) |
Jul
(6) |
Aug
(15) |
Sep
(20) |
Oct
(10) |
Nov
(1) |
Dec
(20) |
2010 |
Jan
(19) |
Feb
(5) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ped...@us...> - 2007-02-12 10:14:29
|
Revision: 899 http://svn.sourceforge.net/cegcc/?rev=899&view=rev Author: pedroalves Date: 2007-02-12 02:13:40 -0800 (Mon, 12 Feb 2007) Log Message: ----------- * VERSIONS : Update w32api and mingw versions. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/VERSIONS Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2007-02-07 01:56:19 UTC (rev 898) +++ trunk/cegcc/src/ChangeLog 2007-02-12 10:13:40 UTC (rev 899) @@ -1,3 +1,7 @@ +2006-12-19 Pedro Alves <ped...@po...> + + * VERSIONS : Update w32api and mingw versions. + 2007-02-04 Danny Backx <dan...@us...> * build-mingw32ce.sh (copy_headers) : Copy includes from the sys Modified: trunk/cegcc/src/VERSIONS =================================================================== --- trunk/cegcc/src/VERSIONS 2007-02-07 01:56:19 UTC (rev 898) +++ trunk/cegcc/src/VERSIONS 2007-02-12 10:13:40 UTC (rev 899) @@ -17,8 +17,8 @@ binutils that works for arm-wince-pe target. cvs -d :pserver:an...@so...:/cvs/src ... -- w32api from cvs, 10 August 2006 +- w32api from cvs, 5 February 2007 cvs -d :pserver:an...@cy...:/cvs/src/winsup/w32api ... -- mingw from cvs, 3 August 2006 +- mingw from cvs, 5 February 2007 cvs -d :pserver:an...@cy...:/cvs/src/winsup/mingw ... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 01:56:22
|
Revision: 898 http://svn.sourceforge.net/cegcc/?rev=898&view=rev Author: pedroalves Date: 2007-02-06 17:56:19 -0800 (Tue, 06 Feb 2007) Log Message: ----------- Committing missing changelog entry for my previous commit, and this missing change too: * mingwex/mathce/math_private.h (_BIG_ENDIAN, _LITTLE_ENDIAN, _BYTE_ORDER): New defines. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/mathce/math_private.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 01:50:50 UTC (rev 897) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 01:56:19 UTC (rev 898) @@ -1,5 +1,21 @@ 2007-02-07 Pedro Alves <ped...@po...> + + * include/math.h: Expose __fpclassifyf, __fpclassify, + __fpclassifyl, and fpclassify. + (_isnanl): Implement on terms of fpclassify. + (isnan): New version for __COREDLL__. + Expose functions that depend on fpclassify. + * mingwex/mathce/_fpmath.h: New. + * mingwex/mathce/fpmath.h: New. + * mingwex/mathce/fpclassify.c: New. + * mingwex/mathce/s_isinf.c: Undefine isinf before + definition. + * mingwex/mathce/math_private.h (_BIG_ENDIAN, _LITTLE_ENDIAN, + _BYTE_ORDER): New defines. + * mingwex/Makefile.in (MATHCE_OBJS): Add fpclassify.o. +2007-02-07 Pedro Alves <ped...@po...> + * mingwex/wince/mb_cur_max.c: New file. * mingwex/Makefile.in (WINCE_OBJS): Add mb_cur_max.o * include/stdlib.h (MB_CUR_MAX): Implement in terms of Modified: trunk/cegcc/src/mingw/mingwex/mathce/math_private.h =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/math_private.h 2007-02-07 01:50:50 UTC (rev 897) +++ trunk/cegcc/src/mingw/mingwex/mathce/math_private.h 2007-02-07 01:56:19 UTC (rev 898) @@ -38,9 +38,12 @@ #define BIG_ENDIAN 0 #define LITTLE_ENDIAN 1 - #define BYTE_ORDER LITTLE_ENDIAN +#define _BIG_ENDIAN BIG_ENDIAN +#define _LITTLE_ENDIAN LITTLE_ENDIAN +#define _BYTE_ORDER BYTE_ORDER + #endif /* __MINGW32CE__ */ /* The original fdlibm code used statements like: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 01:50:52
|
Revision: 897 http://svn.sourceforge.net/cegcc/?rev=897&view=rev Author: pedroalves Date: 2007-02-06 17:50:50 -0800 (Tue, 06 Feb 2007) Log Message: ----------- * include/math.h: Expose __fpclassifyf, __fpclassify, __fpclassifyl, and fpclassify. (_isnanl): Implement on terms of fpclassify. (isnan): New version for __COREDLL__. Expose functions that depend on fpclassify. * mingwex/mathce/_fpmath.h: New. * mingwex/mathce/fpmath.h: New. * mingwex/mathce/fpclassify.c: New. * mingwex/mathce/s_isinf.c: Undefine isinf before definition. * mingwex/Makefile.in (MATHCE_OBJS): Add fpclassify.o. Modified Paths: -------------- trunk/cegcc/src/mingw/include/math.h trunk/cegcc/src/mingw/mingwex/Makefile.in trunk/cegcc/src/mingw/mingwex/mathce/s_isinf.c Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/mathce/_fpmath.h trunk/cegcc/src/mingw/mingwex/mathce/fpclassify.c trunk/cegcc/src/mingw/mingwex/mathce/fpmath.h Modified: trunk/cegcc/src/mingw/include/math.h =================================================================== --- trunk/cegcc/src/mingw/include/math.h 2007-02-07 01:38:30 UTC (rev 896) +++ trunk/cegcc/src/mingw/include/math.h 2007-02-07 01:50:50 UTC (rev 897) @@ -308,8 +308,6 @@ /* 7.12.3.1 */ -#ifdef __i386__ - /* Return values for fpclassify. These are based on Intel x87 fpu condition codes @@ -333,12 +331,15 @@ extern int __cdecl __fpclassifyf (float); extern int __cdecl __fpclassify (double); +extern int __cdecl __fpclassifyl (long double); +#ifdef __i386__ __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 #define fpclassify(x) (sizeof (x) == sizeof (float) ? __fpclassifyf (x) \ : sizeof (x) == sizeof (double) ? __fpclassify (x) \ @@ -350,18 +351,13 @@ /* 7.12.3.3 */ #define isinf(x) (fpclassify(x) == FP_INFINITE) -#else - -extern int isfinite (double x); -extern int isinf (double x); - -#endif - /* 7.12.3.4 */ /* We don't need to worry about truncation here: A NaN stays a NaN. */ #ifdef __i386__ +/* The isnan define could be implemented in terms + of fpclassify. It would compile to the same thing. */ __CRT_INLINE int __cdecl __isnan (double _x) { unsigned short sw; @@ -389,16 +385,26 @@ == FP_NAN; } - #define isnan(x) (sizeof (x) == sizeof (float) ? __isnanf (x) \ : sizeof (x) == sizeof (double) ? __isnan (x) \ : __isnanl (x)) -#else -extern int isnan (double x); -extern int isnanf (float x); -#endif +#endif /* __i386__ */ +#ifdef __COREDLL__ +__CRT_INLINE int __cdecl _isnanl (long double _x) +{ + int sw = fpclassify (_x); + return (sw & (FP_NAN | FP_NORMAL | FP_INFINITE | FP_ZERO | FP_SUBNORMAL)) + == FP_NAN; +} + +#define isnan(x) (sizeof (x) == sizeof (float) ? _isnanf (x) \ + : sizeof (x) == sizeof (double) ? _isnan (x) \ + : _isnanl (x)) + +#endif /* __COREDLL__ */ + /* 7.12.3.5 */ #define isnormal(x) (fpclassify(x) == FP_NORMAL) Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-07 01:38:30 UTC (rev 896) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-07 01:50:50 UTC (rev 897) @@ -230,7 +230,8 @@ s_trunc.o s_truncf.o w_acosf.o w_acosh.o w_acoshf.o w_asinf.o w_atan2f.o \ w_atanh.o w_coshf.o w_expf.o w_hypotf.o w_lgamma.o w_lgammaf.o w_log2.o w_log2f.o \ w_log10f.o w_logf.o w_powf.o w_remainder.o w_remainderf.o w_sinhf.o \ - w_tgamma.o w_tgammaf.o + w_tgamma.o w_tgammaf.o fpclassify.o + GDTOA_OBJS = \ dmisc.o dtoa.o g__fmt.o g_dfmt.o g_ffmt.o g_xfmt.o gdtoa.o \ gethex.o gmisc.o hd_init.o hexnan.o misc.o smisc.o \ Added: trunk/cegcc/src/mingw/mingwex/mathce/_fpmath.h =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/_fpmath.h (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/_fpmath.h 2007-02-07 01:50:50 UTC (rev 897) @@ -0,0 +1,55 @@ +/*- + * Copyright (c) 2002, 2003 David Schultz <da...@Fr...> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD: src/lib/libc/arm/_fpmath.h,v 1.4 2005/03/20 00:53:52 cognet Exp $ + */ + +union IEEEl2bits { + long double e; + struct { +#ifndef __ARMEB__ + unsigned int manl :32; + unsigned int manh :20; + unsigned int exp :11; + unsigned int sign :1; +#else + unsigned int sign :1; + unsigned int exp :11; + unsigned int manh :20; + unsigned int manl :32; +#endif + } bits; +}; + +#define LDBL_NBIT 0 +#define mask_nbit_l(u) ((void)0) + +#define LDBL_MANH_SIZE 32 +#define LDBL_MANL_SIZE 32 + +#define LDBL_TO_ARRAY32(u, a) do { \ + (a)[0] = (uint32_t)(u).bits.manl; \ + (a)[1] = (uint32_t)(u).bits.manh; \ +} while(0) Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/_fpmath.h ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/fpclassify.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/fpclassify.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/fpclassify.c 2007-02-07 01:50:50 UTC (rev 897) @@ -0,0 +1,101 @@ +/*- + * Copyright (c) 2003 Mike Barcroft <mi...@Fr...> + * Copyright (c) 2002, 2003 David Schultz <da...@Fr...> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD: src/lib/libc/gen/fpclassify.c,v 1.2 2005/02/06 03:23:31 das Exp $ + */ + +#ifndef __MINGW32CE__ +#include <sys/endian.h> +#else +#include "math_private.h" +#endif + +#include <math.h> +#include <stdint.h> + +#include "fpmath.h" + +int +__fpclassifyf(float f) +{ + union IEEEf2bits u; + + u.f = f; + if (u.bits.exp == 0) { + if (u.bits.man == 0) + return (FP_ZERO); + return (FP_SUBNORMAL); + } + if (u.bits.exp == 255) { + if (u.bits.man == 0) + return (FP_INFINITE); + return (FP_NAN); + } + return (FP_NORMAL); +} + +int +#ifndef __MINGW32CE__ +__fpclassifyd(double d) +#else +__fpclassify(double d) +#endif +{ + union IEEEd2bits u; + + u.d = d; + if (u.bits.exp == 0) { + if ((u.bits.manl | u.bits.manh) == 0) + return (FP_ZERO); + return (FP_SUBNORMAL); + } + if (u.bits.exp == 2047) { + if ((u.bits.manl | u.bits.manh) == 0) + return (FP_INFINITE); + return (FP_NAN); + } + return (FP_NORMAL); +} + +int +__fpclassifyl(long double e) +{ + union IEEEl2bits u; + + u.e = e; + if (u.bits.exp == 0) { + if ((u.bits.manl | u.bits.manh) == 0) + return (FP_ZERO); + return (FP_SUBNORMAL); + } + mask_nbit_l(u); /* Mask normalization bit if applicable. */ + if (u.bits.exp == 32767) { + if ((u.bits.manl | u.bits.manh) == 0) + return (FP_INFINITE); + return (FP_NAN); + } + return (FP_NORMAL); +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/fpclassify.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/fpmath.h =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/fpmath.h (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/fpmath.h 2007-02-07 01:50:50 UTC (rev 897) @@ -0,0 +1,71 @@ +/*- + * Copyright (c) 2003 Mike Barcroft <mi...@Fr...> + * Copyright (c) 2002 David Schultz <da...@Fr...> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD: src/lib/libc/include/fpmath.h,v 1.3 2005/02/06 03:23:31 das Exp $ + */ + +#ifndef __MINGW32CE__ +#include <sys/endian.h> +#else +#include "math_private.h" +#endif + +#include "_fpmath.h" + +union IEEEf2bits { + float f; + struct { +#if _BYTE_ORDER == _LITTLE_ENDIAN + unsigned int man :23; + unsigned int exp :8; + unsigned int sign :1; +#else /* _BIG_ENDIAN */ + unsigned int sign :1; + unsigned int exp :8; + unsigned int man :23; +#endif + } bits; +}; + +#define DBL_MANH_SIZE 20 +#define DBL_MANL_SIZE 32 + +union IEEEd2bits { + double d; + struct { +#if _BYTE_ORDER == _LITTLE_ENDIAN + unsigned int manl :32; + unsigned int manh :20; + unsigned int exp :11; + unsigned int sign :1; +#else /* _BIG_ENDIAN */ + unsigned int sign :1; + unsigned int exp :11; + unsigned int manh :20; + unsigned int manl :32; +#endif + } bits; +}; Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/fpmath.h ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/cegcc/src/mingw/mingwex/mathce/s_isinf.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/s_isinf.c 2007-02-07 01:38:30 UTC (rev 896) +++ trunk/cegcc/src/mingw/mingwex/mathce/s_isinf.c 2007-02-07 01:50:50 UTC (rev 897) @@ -15,6 +15,8 @@ #include "math.h" #include "math_private.h" +#undef isinf + int isinf(double x) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 01:38:33
|
Revision: 896 http://svn.sourceforge.net/cegcc/?rev=896&view=rev Author: pedroalves Date: 2007-02-06 17:38:30 -0800 (Tue, 06 Feb 2007) Log Message: ----------- Missed the ChangeLog. This fixed it. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 01:37:11 UTC (rev 895) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 01:38:30 UTC (rev 896) @@ -1,5 +1,13 @@ 2007-02-07 Pedro Alves <ped...@po...> + * mingwex/wince/mb_cur_max.c: New file. + * mingwex/Makefile.in (WINCE_OBJS): Add mb_cur_max.o + * include/stdlib.h (MB_CUR_MAX): Implement in terms of + __mb_cur_max. + * include/ctype.h (MB_CUR_MAX): Likewise. + +2007-02-07 Pedro Alves <ped...@po...> + * mingwex/gdtoa/gdtoaimp.h: Wrap errno.h inclusion in NO_ERRNO. 2007-02-07 Pedro Alves <ped...@po...> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 01:37:16
|
Revision: 895 http://svn.sourceforge.net/cegcc/?rev=895&view=rev Author: pedroalves Date: 2007-02-06 17:37:11 -0800 (Tue, 06 Feb 2007) Log Message: ----------- * mingwex/wince/mb_cur_max.c: New file. * mingwex/Makefile.in (WINCE_OBJS): Add mb_cur_max.o * include/stdlib.h (MB_CUR_MAX): Implement in terms of __mb_cur_max. * include/ctype.h (MB_CUR_MAX): Likewise. Modified Paths: -------------- trunk/cegcc/src/mingw/include/ctype.h trunk/cegcc/src/mingw/include/stdlib.h trunk/cegcc/src/mingw/mingwex/Makefile.in Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/wince/mb_cur_max.c Modified: trunk/cegcc/src/mingw/include/ctype.h =================================================================== --- trunk/cegcc/src/mingw/include/ctype.h 2007-02-07 01:08:12 UTC (rev 894) +++ trunk/cegcc/src/mingw/include/ctype.h 2007-02-07 01:37:11 UTC (rev 895) @@ -100,10 +100,8 @@ # define MB_CUR_MAX __mb_cur_max_dll __MINGW_IMPORT int __mb_cur_max_dll; # elif defined (__COREDLL__) - /* No locale support, so we set it to maximum. */ - /* From limits.h. */ - /* #define MB_CUR_MAX MB_LEN_MAX 2 */ -# define MB_CUR_MAX 2 +# define MB_CUR_MAX __mb_cur_max() + _CRTIMP int __mb_cur_max (void); # endif /* __CRTDLL__ */ #else /* ! __DECLSPEC_SUPPORTED */ Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2007-02-07 01:08:12 UTC (rev 894) +++ trunk/cegcc/src/mingw/include/stdlib.h 2007-02-07 01:37:11 UTC (rev 895) @@ -116,10 +116,8 @@ # define MB_CUR_MAX __mb_cur_max_dll __MINGW_IMPORT int __mb_cur_max_dll; # elif defined (__COREDLL__) - /* No locale support, so we set it to maximum. */ - /* From limits.h. */ - /* #define MB_CUR_MAX MB_LEN_MAX 2 */ -# define MB_CUR_MAX 2 +# define MB_CUR_MAX __mb_cur_max() + _CRTIMP int __mb_cur_max (void); # endif /* __CRTDLL__ */ #else /* ! __DECLSPEC_SUPPORTED */ Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-07 01:08:12 UTC (rev 894) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-07 01:37:11 UTC (rev 895) @@ -213,7 +213,8 @@ asctime.o freopen.o gmtime.o localtime.o mktime.o strftime.o time.o \ tempnam.o unlink.o wcsftime.o fdopen.o read.o write.o open.o lseek.o \ close.o isalnum.o isalpha.o iscntrl.o isgraph.o islower.o isprint.o \ - ispunct.o isspace.o isupper.o isxdigit.o _tolower.o _toupper.o + ispunct.o isspace.o isupper.o isxdigit.o _tolower.o _toupper.o mb_cur_max.o + MATHCE_OBJS = \ e_acosf.o e_acosh.o e_acoshf.o e_asinf.o e_atan2f.o e_atanh.o e_coshf.o \ e_expf.o e_gamma_r.o e_gammaf_r.o e_lgamma_r.o e_lgammaf_r.o e_log10f.o \ Added: trunk/cegcc/src/mingw/mingwex/wince/mb_cur_max.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/mb_cur_max.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/mb_cur_max.c 2007-02-07 01:37:11 UTC (rev 895) @@ -0,0 +1,18 @@ +/* MB_CUR_MAX implementation for Windows CE. + * Revision history: + * 6 Feb 2007 Initial version. + * + * Contributor: Pedro Alves <ped...@po...> + */ + + /* This routine has been placed in the public domain. */ + +#include <windows.h> + +int +__mb_cur_max (void) +{ + CPINFO cpinfo; + GetCPInfo (CP_ACP, &cpinfo); + return cpinfo.MaxCharSize; +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/mb_cur_max.c ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 01:08:13
|
Revision: 894 http://svn.sourceforge.net/cegcc/?rev=894&view=rev Author: pedroalves Date: 2007-02-06 17:08:12 -0800 (Tue, 06 Feb 2007) Log Message: ----------- * mingwex/gdtoa/gdtoaimp.h: Wrap errno.h inclusion in NO_ERRNO. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/gdtoa/gdtoaimp.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 01:03:09 UTC (rev 893) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 01:08:12 UTC (rev 894) @@ -1,5 +1,9 @@ 2007-02-07 Pedro Alves <ped...@po...> + * mingwex/gdtoa/gdtoaimp.h: Wrap errno.h inclusion in NO_ERRNO. + +2007-02-07 Pedro Alves <ped...@po...> + * mingwex/wince/fdopen.c (fdopen): Include stdlib.h. 2007-02-07 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/mingw/mingwex/gdtoa/gdtoaimp.h =================================================================== --- trunk/cegcc/src/mingw/mingwex/gdtoa/gdtoaimp.h 2007-02-07 01:03:09 UTC (rev 893) +++ trunk/cegcc/src/mingw/mingwex/gdtoa/gdtoaimp.h 2007-02-07 01:08:12 UTC (rev 894) @@ -202,7 +202,9 @@ #define IEEE_Arith #endif +#ifndef NO_ERRNO #include <errno.h> +#endif #ifdef Bad_float_h #ifdef IEEE_Arith This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 01:03:10
|
Revision: 893 http://svn.sourceforge.net/cegcc/?rev=893&view=rev Author: pedroalves Date: 2007-02-06 17:03:09 -0800 (Tue, 06 Feb 2007) Log Message: ----------- * mingwex/wince/fdopen.c (fdopen): Include stdlib.h. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/fdopen.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 00:59:10 UTC (rev 892) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 01:03:09 UTC (rev 893) @@ -1,5 +1,9 @@ 2007-02-07 Pedro Alves <ped...@po...> + * mingwex/wince/fdopen.c (fdopen): Include stdlib.h. + +2007-02-07 Pedro Alves <ped...@po...> + * mingwex/btowc.c (btowc): get_cp_from_locale was renamed to get_codepage upstream. Update call. Modified: trunk/cegcc/src/mingw/mingwex/wince/fdopen.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2007-02-07 00:59:10 UTC (rev 892) +++ trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2007-02-07 01:03:09 UTC (rev 893) @@ -1,5 +1,6 @@ #include <stdio.h> #include <string.h> +#include <stdlib.h> #define MAX_MODE 64 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 00:59:11
|
Revision: 892 http://svn.sourceforge.net/cegcc/?rev=892&view=rev Author: pedroalves Date: 2007-02-06 16:59:10 -0800 (Tue, 06 Feb 2007) Log Message: ----------- Commit CVS internal file. Modified Paths: -------------- trunk/cegcc/src/mingw/mingwex/CVS/Entries Modified: trunk/cegcc/src/mingw/mingwex/CVS/Entries =================================================================== --- trunk/cegcc/src/mingw/mingwex/CVS/Entries 2007-02-07 00:55:47 UTC (rev 891) +++ trunk/cegcc/src/mingw/mingwex/CVS/Entries 2007-02-07 00:59:10 UTC (rev 892) @@ -59,7 +59,7 @@ /mbrtowc.c/1.3/Result of merge// /wcrtomb.c/1.5/Result of merge// /wcstof.c/1.3/Result of merge+Sun Feb 4 20:14:38 2007// -/wcstold.c/1.2/Result of merge+Sun Feb 4 20:14:40 2007// /wctob.c/1.2/Result of merge// /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// This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 00:55:48
|
Revision: 891 http://svn.sourceforge.net/cegcc/?rev=891&view=rev Author: pedroalves Date: 2007-02-06 16:55:47 -0800 (Tue, 06 Feb 2007) Log Message: ----------- * mingwex/btowc.c (btowc): get_cp_from_locale was renamed to get_codepage upstream. Update call. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/btowc.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 00:49:27 UTC (rev 890) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 00:55:47 UTC (rev 891) @@ -1,5 +1,10 @@ 2007-02-07 Pedro Alves <ped...@po...> + * mingwex/btowc.c (btowc): get_cp_from_locale was renamed to + get_codepage upstream. Update call. + +2007-02-07 Pedro Alves <ped...@po...> + * mingwex/wcstold.c: Update from upstream. (_mbslen): New function. Modified: trunk/cegcc/src/mingw/mingwex/btowc.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/btowc.c 2007-02-07 00:49:27 UTC (rev 890) +++ trunk/cegcc/src/mingw/mingwex/btowc.c 2007-02-07 00:55:47 UTC (rev 891) @@ -12,7 +12,7 @@ { unsigned char ch = c; wchar_t wc = WEOF; - MultiByteToWideChar (get_cp_from_locale(), MB_ERR_INVALID_CHARS, + MultiByteToWideChar (get_codepage(), MB_ERR_INVALID_CHARS, (char*)&ch, 1, &wc, 1); return wc; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 00:49:28
|
Revision: 890 http://svn.sourceforge.net/cegcc/?rev=890&view=rev Author: pedroalves Date: 2007-02-06 16:49:27 -0800 (Tue, 06 Feb 2007) Log Message: ----------- * mingwex/wcstold.c: Update from upstream. (_mbslen): New function. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wcstold.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 00:43:21 UTC (rev 889) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-07 00:49:27 UTC (rev 890) @@ -1,3 +1,8 @@ +2007-02-07 Pedro Alves <ped...@po...> + + * mingwex/wcstold.c: Update from upstream. + (_mbslen): New function. + 2007-02-05 Pedro Alves <ped...@po...> Update from upstream. Note: Upstream version is now 3.11. Modified: trunk/cegcc/src/mingw/mingwex/wcstold.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wcstold.c 2007-02-07 00:43:21 UTC (rev 889) +++ trunk/cegcc/src/mingw/mingwex/wcstold.c 2007-02-07 00:49:27 UTC (rev 890) @@ -1,6 +1,7 @@ /* Wide char wrapper for strtold * Revision history: * 6 Nov 2002 Initial version. + * 25 Aug 2006 Don't use strtold internal functions. * * Contributor: Danny Smith <dan...@us...> */ @@ -15,39 +16,42 @@ #include <wchar.h> #include <stdlib.h> #include <string.h> +#include <mbstring.h> -extern int __asctoe64(const char * __restrict__ ss, - short unsigned int * __restrict__ y); +#include "mb_wc_common.h" +#include <mbstring.h> -static __inline__ unsigned int get_codepage (void) +#ifdef __COREDLL__ +static size_t +_mbslen(const unsigned char *str) { -#ifndef __COREDLL__ - char* cp; + size_t len; - /* - locale :: "lang[_country[.code_page]]" - | ".code_page" - */ - if ((cp = strchr(setlocale(LC_CTYPE, NULL), '.'))) - return atoi( cp + 1); - else -#endif + if(!str) return 0; + + if(MB_CUR_MAX == 1) + return strlen((const char*)str); + + len = 0; + for(; *str; str++) + { + if (IsDBCSLeadByte(*str)) + str++; + len++; + } + return len; } +#endif long double wcstold (const wchar_t * __restrict__ wcs, wchar_t ** __restrict__ wcse) { char * cs; - int i; - int lenldstr; - union - { - unsigned short int us[6]; - long double ld; - } xx; - - unsigned int cp = get_codepage (); + char * cse; + unsigned int i; + long double ret; + const unsigned int cp = get_codepage (); /* Allocate enough room for (possibly) mb chars */ cs = (char *) malloc ((wcslen(wcs)+1) * MB_CUR_MAX); @@ -72,9 +76,17 @@ } cs[mb_len] = '\0'; } - lenldstr = __asctoe64( cs, xx.us); + + ret = strtold (cs, &cse); + + if (wcse) + { + /* Make sure temp mbstring has 0 at cse. */ + *cse = '\0'; + i = _mbslen ((unsigned char*) cs); /* Number of chars, not bytes */ + *wcse = (wchar_t *) wcs + i; + } free (cs); - if (wcse) - *wcse = (wchar_t*) wcs + lenldstr; - return xx.ld; + + return ret; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-07 00:43:52
|
Revision: 889 http://svn.sourceforge.net/cegcc/?rev=889&view=rev Author: pedroalves Date: 2007-02-06 16:43:21 -0800 (Tue, 06 Feb 2007) Log Message: ----------- Remove temporary file. Should never had gone in. Removed Paths: ------------- trunk/cegcc/src/mingw/mingwex/mathce/files.txt Deleted: trunk/cegcc/src/mingw/mingwex/mathce/files.txt =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/files.txt 2007-02-05 02:25:51 UTC (rev 888) +++ trunk/cegcc/src/mingw/mingwex/mathce/files.txt 2007-02-07 00:43:21 UTC (rev 889) @@ -1,96 +0,0 @@ -e_acosf.c -e_acosh.c -e_acoshf.c -e_asinf.c -e_atan2f.c -e_atanh.c -e_coshf.c -e_expf.c -e_gamma_r.c -e_gammaf_r.c -e_lgamma_r.c -e_lgammaf_r.c -e_log10f.c -e_logf.c -e_powf.c -e_rem_pio2.c -e_rem_pio2f.c -e_remainder.c -e_remainderf.c -e_sinhf.c -fdlibm.h -files.txt -ieee.h -k_cos.c -k_cosf.c -k_rem_pio2.c -k_rem_pio2f.c -k_sin.c -k_sinf.c -k_tan.c -k_tanf.c -llround.c -llroundf.c -lround.c -lroundf.c -math_private.h -s_asinh.c -s_asinhf.c -s_atanf.c -s_cbrt.c -s_cbrtf.c -s_copysignf.c -s_cosf.c -s_erf.c -s_erff.c -s_expm1.c -s_expm1f.c -s_frexpf.c -s_ilogb.c -s_ilogbf.c -s_isinf.c -s_isinff.c -s_ldexpf.c -s_llrint.c -s_llrintf.c -s_log1p.c -s_log1pf.c -s_logbf.c -s_lrint.c -s_lrintf.c -s_modff.c -s_nextafterf.c -s_rint.c -s_rintf.c -s_round.c -s_roundf.c -s_scalbn.c -s_scalbnf.c -s_signgam.c -s_sinf.c -s_tanf.c -s_tanh.c -s_tanhf.c -s_trunc.c -s_truncf.c -w_acosf.c -w_acosh.c -w_acoshf.c -w_asinf.c -w_atan2f.c -w_atanh.c -w_coshf.c -w_expf.c -w_hypotf.c -w_lgamma.c -w_lgammaf.c -w_log10f.c -w_log2.c -w_log2f.c -w_logf.c -w_powf.c -w_remainder.c -w_remainderf.c -w_sinhf.c -w_tgamma.c -w_tgammaf.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-05 02:25:52
|
Revision: 888 http://svn.sourceforge.net/cegcc/?rev=888&view=rev Author: pedroalves Date: 2007-02-04 18:25:51 -0800 (Sun, 04 Feb 2007) Log Message: ----------- Missing changelog entry: * libce/Makefile.in: Fix order for 'all' rule. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-05 02:21:38 UTC (rev 887) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-05 02:25:51 UTC (rev 888) @@ -1,5 +1,9 @@ 2007-02-05 Pedro Alves <ped...@po...> + * libce/Makefile.in: Fix order for 'all' rule. + +2007-02-05 Pedro Alves <ped...@po...> + Update from upstream. Note: Upstream version is now 3.8. * configure: Regenerate. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-05 02:21:40
|
Revision: 887 http://svn.sourceforge.net/cegcc/?rev=887&view=rev Author: pedroalves Date: 2007-02-04 18:21:38 -0800 (Sun, 04 Feb 2007) Log Message: ----------- Update from upstream. Note: Upstream version is now 3.8. * configure: Regenerate. Modified Paths: -------------- trunk/cegcc/src/w32api/CVS/Entries trunk/cegcc/src/w32api/ChangeLog trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/Makefile.in trunk/cegcc/src/w32api/configure trunk/cegcc/src/w32api/configure.in trunk/cegcc/src/w32api/include/CVS/Entries trunk/cegcc/src/w32api/include/oleauto.h trunk/cegcc/src/w32api/include/rpc.h trunk/cegcc/src/w32api/include/uxtheme.h trunk/cegcc/src/w32api/include/w32api.h trunk/cegcc/src/w32api/include/winbase.h trunk/cegcc/src/w32api/include/windns.h trunk/cegcc/src/w32api/include/wingdi.h trunk/cegcc/src/w32api/include/winnt.h trunk/cegcc/src/w32api/include/winreg.h trunk/cegcc/src/w32api/include/winuser.h trunk/cegcc/src/w32api/lib/CVS/Entries trunk/cegcc/src/w32api/lib/Makefile.in trunk/cegcc/src/w32api/lib/advapi32.def trunk/cegcc/src/w32api/lib/ddk/CVS/Entries trunk/cegcc/src/w32api/lib/ddk/Makefile.in trunk/cegcc/src/w32api/lib/directx/CVS/Entries trunk/cegcc/src/w32api/lib/directx/Makefile.in trunk/cegcc/src/w32api/lib/rpcrt4.def trunk/cegcc/src/w32api/lib/user32.def trunk/cegcc/src/w32api/lib/ws2_32.def trunk/cegcc/src/w32api/libce/Makefile.in Modified: trunk/cegcc/src/w32api/CVS/Entries =================================================================== --- trunk/cegcc/src/w32api/CVS/Entries 2007-02-05 02:15:18 UTC (rev 886) +++ trunk/cegcc/src/w32api/CVS/Entries 2007-02-05 02:21:38 UTC (rev 887) @@ -1,13 +1,13 @@ -/CONTRIBUTIONS/1.1/Wed Nov 1 01:22:08 2000// -/ChangeLog/1.864/Thu Aug 10 21:06:02 2006/-ko/ -/Makefile.in/1.38/Fri Apr 14 12:52:50 2006/-ko/ -/README.w32api/1.4/Sat Apr 17 13:44:06 2004// /TODO/1.4/Wed Sep 24 08:02:44 2003/-ko/ /aclocal.m4/1.1/Wed May 24 16:59:04 2006// -/config.guess/1.4/Thu Jul 3 15:17:14 2003/-ko/ -/config.sub/1.4/Thu Jul 3 15:17:14 2003/-ko/ -/configure/1.5/Wed May 24 16:59:04 2006/-ko/ -/configure.in/1.5/Wed May 24 16:59:04 2006/-ko/ -/install-sh/1.1.1.1/Thu Feb 17 19:38:32 2000/-ko/ D/include//// D/lib//// +/CONTRIBUTIONS/1.1/Wed Nov 1 02:22:08 2000// +/Makefile.in/1.41/Result of merge/-ko/ +/README.w32api/1.4/Sat Apr 17 14:44:06 2004// +/config.guess/1.4/Thu Jul 3 16:17:14 2003/-ko/ +/config.sub/1.4/Thu Jul 3 16:17:14 2003/-ko/ +/configure/1.6/Result of merge+Sun Feb 4 23:45:14 2007/-ko/ +/configure.in/1.6/Result of merge+Sun Feb 4 23:45:14 2007/-ko/ +/install-sh/1.1.1.1/Thu Feb 17 20:38:32 2000/-ko/ +/ChangeLog/1.886/Sun Feb 4 23:54:06 2007/-ko/ Modified: trunk/cegcc/src/w32api/ChangeLog =================================================================== --- trunk/cegcc/src/w32api/ChangeLog 2007-02-05 02:15:18 UTC (rev 886) +++ trunk/cegcc/src/w32api/ChangeLog 2007-02-05 02:21:38 UTC (rev 887) @@ -1,3 +1,151 @@ +2007-01-11 Gisle Vanem <gi...@us...> + + * include/winbase.h (struct _OVERLAPPED): Change type of + Internal, InternalHigh members to ULONG_PTR. + (PAPCFUNC): Change DWORD parameter to ULONG_PTR. + (CreateIoCompletionPort): Likewise. + (PostQueuedCompletionStatus): Likewise. + (QueueUserAPC): Likewise. + +2007-01-06 Pierre A. Humblet <Pie...@ie...> + + * include/windns.h (DNS_TYPE_RP, DNS_TYPE_AFSDB, DNS_TYPE_X25, + DNS_TYPE_ISDN, DNS_TYPE_RT, DNS_TYPE_NSAP, DNS_TYPE_NSAPPTR, + DNS_TYPE_SIG, DNS_TYPE_KEY, DNS_TYPE_PX, DNS_TYPE_GPOS, + DNS_TYPE_AAAA, DNS_TYPE_LOC, DNS_TYPE_NXT, DNS_TYPE_EID, + DNS_TYPE_NIMLOC, DNS_TYPE_SRV, DNS_TYPE_ATMA, DNS_TYPE_NAPTR, + DNS_TYPE_KX, DNS_TYPE_CERT, DNS_TYPE_A6, DNS_TYPE_DNAME, + DNS_TYPE_SINK, DNS_TYPE_OPT, DNS_TYPE_UINFO, DNS_TYPE_UID, + DNS_TYPE_GID, DNS_TYPE_UNSPEC, DNS_TYPE_ADDRS, DNS_TYPE_TKEY, + DNS_TYPE_TSIG, DNS_TYPE_IXFR, DNS_TYPE_AXFR, DNS_TYPE_MAILB, + DNS_TYPE_MAILA, DNS_TYPE_ALL, DNS_TYPE_ANY): Add enum values. + +2006-11-21 Danny Smith <dan...@us...> + + * Makefile.in: Add aclocal.m4 to source release. + +2006-11-18 Chris Sutcliffe <ir0...@us...> + + * include/w32api.h: Increment version to 3.8. + * Makefile.in: Ditto. + +2006-11-13 Daniel Schlyder <th...@us...> + + * include/winnt.h (VER_SUITE_EMBEDDEDNT, VER_SUITE_SINGLEUSERTS, + VER_SUITE_STORAGE_SERVER, VER_SUITE_COMPUTE_SERVER): Define. + + * include/winuser.h (SM_STARTER, SM_SERVERR2): Define. + +2006-11-02 Danny Smith <dan...@us...> + + * include/winuser.h (LR_DEFAULTSIZE): Remove duplicate. + + * include/winnt.h (GetCurrentFiber): Remove extern declaration. Make + inline static. + (GetFiberData): Likewise. + * lib/kernel32.c: Remove. + * lib/Makefile.in: Remove reference to kernel32.[co]. + +2006-10-31 Corinna Vinschen <co...@vi...> + + * include/winnt.h (SE_RELABEL_NAME): Define. + (SE_INCREASE_WORKING_SET_NAME): Define. + (SE_TIME_ZONE_NAME): Define. + (SE_CREATE_SYMBOLIC_LINK_NAME): Define. + +2006-10-31 Corinna Vinschen <co...@vi...> + + * include/winnt.h (IO_REPARSE_TAG_SYMLINK): Define. + (struct _REPARSE_DATA_BUFFER): Add missing Flags field to + SymbolicLinkReparseBuffer substructure. + +2006-10-29 Daniel Atallah <dat...@us...> + + * lib/ws2_32.def (WSANSPIoctl): Add to lib. + +2006-10-26 Chris Sutcliffe <ir0...@us...> + + * lib/Makefile.in: Fix order for 'all' rule. + +2006-10-12 Danny Smith <dan...@us...> + + * include/winuser.h (LR_DEFAULTSIZE, LR_VGACOLOR): Define. + +2006-10-05 Danny Smith <dan...@us...> + + * include/winreg.h (RegDeleteKeyEx{A|W}): Add prototype and UNICODE + mappings. + (KEY_WOW64_32KEY, KEY_WOW64_64KEY): Define. + * lib/advapi.def (RegDeleteKeyEx{A|W}): Export. + +2006-10-04 Danny Smith <dan...@us...> + + * include/rpc.h: Add whitespace. + * include/winnt.h (C_ASSERT): Define. + +2006-10-04 Danny Smith <dan...@us...> + + [mingw-Bugs-1568067] + * include/winuser.h: (DISP_CHANGE_BADDUALVIEW): Define. + * include/wingdi.h: (DM_POSITION): Define. + +2006-10-03 Danny Smith <dan...@us...> + + * lib/rpcrt4.def: Remove "_imp__"-prefixed export symbols. + * lib/user32.def: Likewise. + +2006-09-11 Chris Sutcliffe <ir0...@us...> + + * lib/Makefile.in: fix typo. + * lib/ddk/Makefile.in: fix typo. + * lib/directx/Makefile.in: fix typo. + + Thanks to Keith Marshall (keithmarshall at users dot sourceforge dot net) + for pointing it out. + +2006-09-10 Chris Sutcliffe <ir0...@us...> + + * Makefile.in: Remove files from lib directory with distclean target + +2006-09-10 Chris Sutcliffe <ir0...@us...> + + * include/winuser.h (CS_DROPSHADOW): Define. + +2006-09-08 Michael Gerdau <mg...@us...> + + * include/uxtheme.h: (TMT_GRADIENTCOLOR4, TMT_GRADIENTCOLOR5, + TMT_SHADOWCOLOR, TMT_GLOWCOLOR, TMT_TEXTBORDERCOLOR, + TMT_TEXTSHADOWCOLOR, TMT_GLYPHTEXTCOLOR, TMT_GLYPHTRANSPARENTCOLOR, + TMT_FILLCOLORHINT, TMT_BORDERCOLORHINT, TMT_ACCENTCOLORHINT): + + Increase each constant by 1. + +2006-09-07 Danny Smith <dan...@us...> + + [mingw-Bugs-1553275] + * include/wingdi.h (SetLayout): Add prototype. + (GetLayout): Likewise. + +2006-09-02 Danny Smith <dan...@us...> + + [mingw-Bugs-1550139] + * include/oleauto.h (GetRecordInfoFromTypeInfo): Add prototype. + Tanks to: Samit Basu <samitbasu at sf dot net> + (GetRecordInfoFromGuids): Add prototype. + +2006-09-01 Danny Smith <dan...@us...> + + * include/winbase.h: Add comment about 'missing' SEM flag. + +2006-08-30 Corinna Vinschen <co...@vi...> + + * configure.in: Substitute with_cross_host in depending files. + * configure: Regenerate. + * lib/Makefile.in: Add with_cross_host to allow more granular checks. + Set installation directories accordingly. + * lib/ddk/Makefile.in: Ditto. + * lib/directx/Makefile.in: Ditto. + 2006-08-10 Danny Smith <dan...@us...> * lib/wtsapi32.def (WTSGetActiveConsoleSessionId). Move from here... @@ -117,64 +265,64 @@ 2006-07-22 ipsoner <ip...@us...> - * include/wincrypt.h (szOID_RSA, szOID_PKCS, szOID_RSA_HASH, - szOID_RSA_ENCRYPT, szOID_PKCS_1, szOID_PKCS_2, szOID_PKCS_3, - szOID_PKCS_4, szOID_PKCS_5, szOID_PKCS_6, szOID_PKCS_7, - szOID_PKCS_8, szOID_PKCS_9, szOID_PKCS_10, szOID_PKCS_12, - szOID_RSA_MD2, szOID_RSA_MD4, szOID_RSA_MD5, szOID_RSA_RSA, - szOID_RSA_MD2RSA, szOID_RSA_MD4RSA, szOID_RSA_MD5RSA, - szOID_RSA_SHA1RSA, szOID_RSA_SETOAEP_RSA, szOID_RSA_DH, - szOID_RSA_data, szOID_RSA_signedData, szOID_RSA_envelopedData, - szOID_RSA_signEnvData, szOID_RSA_digestedData, szOID_RSA_hashedData, - szOID_RSA_encryptedData, szOID_RSA_emailAddr, szOID_RSA_unstructName, - szOID_RSA_contentType, szOID_RSA_messageDigest, szOID_RSA_signingTime, - szOID_RSA_counterSign, szOID_RSA_challengePwd, szOID_RSA_unstructAddr, - szOID_RSA_extCertAttrs, szOID_RSA_SMIMECapabilities, - szOID_RSA_preferSignedData, szOID_RSA_RC2CBC, szOID_RSA_RC4, - szOID_RSA_DES_EDE3_CBC, szOID_RSA_RC5_CBCPad, szOID_ANSI_x942, - szOID_ANSI_x942_DH, szOID_X957, szOID_X957_DSA, szOID_DATA STRUCTURE, - szOID_DS, szOID_DSALG, szOID_DSALG_CRPT, szOID_DSALG_HASH, - szOID_DSALG_SIGN, szOID_DSALG_RSA, szOID_OIW, szOID_OIWSEC, - szOID_OIWSEC_md4RSA, szOID_OIWSEC_md5RSA, szOID_OIWSEC_md4RSA2, - szOID_OIWSEC_desECB, szOID_OIWSEC_desCBC, szOID_OIWSEC_desOFB, - szOID_OIWSEC_desCFB, szOID_OIWSEC_desMAC, szOID_OIWSEC_rsaSign, - szOID_OIWSEC_dsa, szOID_OIWSEC_shaDSA, szOID_OIWSEC_mdc2RSA, - szOID_OIWSEC_shaRSA, szOID_OIWSEC_dhCommMod, szOID_OIWSEC_desEDE, - szOID_OIWSEC_sha, szOID_OIWSEC_mdc2, szOID_OIWSEC_dsaComm, - szOID_OIWSEC_dsaCommSHA, szOID_OIWSEC_rsaXchg, szOID_OIWSEC_keyHashSeal, - szOID_OIWSEC_md2RSASign, szOID_OIWSEC_md5RSASign, szOID_OIWSEC_sha1, - szOID_OIWSEC_dsaSHA1, szOID_OIWSEC_dsaCommSHA1, szOID_OIWSEC_sha1RSASign, - szOID_OIWDIR, szOID_OIWDIR_CRPT, szOID_OIWDIR_HASH, szOID_OIWDIR_SIGN, - szOID_OIWDIR_md2, szOID_OIWDIR_md2RSA, szOID_INFOSEC, - szOID_INFOSEC_sdnsSignature, szOID_INFOSEC_mosaicSignature, - szOID_INFOSEC_sdnsConfidentiality, szOID_INFOSEC_mosaicConfidentiality, - szOID_INFOSEC_sdnsIntegrity, szOID_INFOSEC_mosaicIntegrity, - szOID_INFOSEC_sdnsTokenProtection, szOID_INFOSEC_mosaicTokenProtection, - szOID_INFOSEC_sdnsKeyManagement, szOID_INFOSEC_mosaicKeyManagement, - szOID_INFOSEC_sdnsKMandSig, szOID_INFOSEC_mosaicKMandSig, - szOID_INFOSEC_SuiteASignature, szOID_INFOSEC_SuiteAConfidentiality, - szOID_INFOSEC_SuiteAIntegrity, szOID_INFOSEC_SuiteATokenProtection, - szOID_INFOSEC_SuiteAKeyManagement, szOID_INFOSEC_SuiteAKMandSig, - szOID_INFOSEC_mosaicUpdatedSig, szOID_INFOSEC_mosaicKMandUpdSig, - szOID_INFOSEC_mosaicUpdatedInteg, szOID_PKIX_NO_SIGNATURE, - szOID_COMMON_NAME, szOID_COUNTRY_NAME, szOID_DEVICE_SERIAL_NUMBER, - szOID_DOMAIN_COMPONENT, szOID_RSA_emailAddr, szOID_GIVEN_NAME, - szOID_INITIALS, szOID_LOCALITY_NAME, szOID_ORGANIZATION_NAME, - szOID_ORGANIZATIONAL_UNIT_NAME, szOID_STATE_OR_PROVINCE_NAME, - szOID_STREET_ADDRESS, szOID_SUR_NAME, szOID_TITLE, szOID_RSA_unstructAddr, - szOID_RSA_unstructName, szOID_BASIC_CONSTRAINTS2, - CERT_BASIC_CONSTRAINTS2_INFO, CRYPT_ENCODE_PARA,CertDuplicateStore, - CertEnumCertificatesInStore, CertDuplicateCertificateContext, - CertGetNameStringA, CertGetNameStringW, CertGetNameString, PFXIsPFXBlob, - CertFindExtension, CryptDecodeObject, CertAddCertificateContextToStore, - CertCompareCertificate, PFXVerifyPassword, PFXImportCertStore, - CertDeleteCertificateFromStore): Define. - * lib/crypt32.def (CertDuplicateStore, CertEnumCertificatesInStore, - CertDuplicateCertificateContext, CertGetNameStringA, CertGetNameStringW, - CertGetNameString, PFXIsPFXBlob, CertFindExtension, CryptDecodeObject, - CertAddCertificateContextToStore, CertCompareCertificate, - PFXVerifyPassword, PFXImportCertStore, CertDeleteCertificateFromStore): - Define. + * include/wincrypt.h (szOID_RSA, szOID_PKCS, szOID_RSA_HASH, + szOID_RSA_ENCRYPT, szOID_PKCS_1, szOID_PKCS_2, szOID_PKCS_3, + szOID_PKCS_4, szOID_PKCS_5, szOID_PKCS_6, szOID_PKCS_7, + szOID_PKCS_8, szOID_PKCS_9, szOID_PKCS_10, szOID_PKCS_12, + szOID_RSA_MD2, szOID_RSA_MD4, szOID_RSA_MD5, szOID_RSA_RSA, + szOID_RSA_MD2RSA, szOID_RSA_MD4RSA, szOID_RSA_MD5RSA, + szOID_RSA_SHA1RSA, szOID_RSA_SETOAEP_RSA, szOID_RSA_DH, + szOID_RSA_data, szOID_RSA_signedData, szOID_RSA_envelopedData, + szOID_RSA_signEnvData, szOID_RSA_digestedData, szOID_RSA_hashedData, + szOID_RSA_encryptedData, szOID_RSA_emailAddr, szOID_RSA_unstructName, + szOID_RSA_contentType, szOID_RSA_messageDigest, szOID_RSA_signingTime, + szOID_RSA_counterSign, szOID_RSA_challengePwd, szOID_RSA_unstructAddr, + szOID_RSA_extCertAttrs, szOID_RSA_SMIMECapabilities, + szOID_RSA_preferSignedData, szOID_RSA_RC2CBC, szOID_RSA_RC4, + szOID_RSA_DES_EDE3_CBC, szOID_RSA_RC5_CBCPad, szOID_ANSI_x942, + szOID_ANSI_x942_DH, szOID_X957, szOID_X957_DSA, szOID_DATA STRUCTURE, + szOID_DS, szOID_DSALG, szOID_DSALG_CRPT, szOID_DSALG_HASH, + szOID_DSALG_SIGN, szOID_DSALG_RSA, szOID_OIW, szOID_OIWSEC, + szOID_OIWSEC_md4RSA, szOID_OIWSEC_md5RSA, szOID_OIWSEC_md4RSA2, + szOID_OIWSEC_desECB, szOID_OIWSEC_desCBC, szOID_OIWSEC_desOFB, + szOID_OIWSEC_desCFB, szOID_OIWSEC_desMAC, szOID_OIWSEC_rsaSign, + szOID_OIWSEC_dsa, szOID_OIWSEC_shaDSA, szOID_OIWSEC_mdc2RSA, + szOID_OIWSEC_shaRSA, szOID_OIWSEC_dhCommMod, szOID_OIWSEC_desEDE, + szOID_OIWSEC_sha, szOID_OIWSEC_mdc2, szOID_OIWSEC_dsaComm, + szOID_OIWSEC_dsaCommSHA, szOID_OIWSEC_rsaXchg, szOID_OIWSEC_keyHashSeal, + szOID_OIWSEC_md2RSASign, szOID_OIWSEC_md5RSASign, szOID_OIWSEC_sha1, + szOID_OIWSEC_dsaSHA1, szOID_OIWSEC_dsaCommSHA1, szOID_OIWSEC_sha1RSASign, + szOID_OIWDIR, szOID_OIWDIR_CRPT, szOID_OIWDIR_HASH, szOID_OIWDIR_SIGN, + szOID_OIWDIR_md2, szOID_OIWDIR_md2RSA, szOID_INFOSEC, + szOID_INFOSEC_sdnsSignature, szOID_INFOSEC_mosaicSignature, + szOID_INFOSEC_sdnsConfidentiality, szOID_INFOSEC_mosaicConfidentiality, + szOID_INFOSEC_sdnsIntegrity, szOID_INFOSEC_mosaicIntegrity, + szOID_INFOSEC_sdnsTokenProtection, szOID_INFOSEC_mosaicTokenProtection, + szOID_INFOSEC_sdnsKeyManagement, szOID_INFOSEC_mosaicKeyManagement, + szOID_INFOSEC_sdnsKMandSig, szOID_INFOSEC_mosaicKMandSig, + szOID_INFOSEC_SuiteASignature, szOID_INFOSEC_SuiteAConfidentiality, + szOID_INFOSEC_SuiteAIntegrity, szOID_INFOSEC_SuiteATokenProtection, + szOID_INFOSEC_SuiteAKeyManagement, szOID_INFOSEC_SuiteAKMandSig, + szOID_INFOSEC_mosaicUpdatedSig, szOID_INFOSEC_mosaicKMandUpdSig, + szOID_INFOSEC_mosaicUpdatedInteg, szOID_PKIX_NO_SIGNATURE, + szOID_COMMON_NAME, szOID_COUNTRY_NAME, szOID_DEVICE_SERIAL_NUMBER, + szOID_DOMAIN_COMPONENT, szOID_RSA_emailAddr, szOID_GIVEN_NAME, + szOID_INITIALS, szOID_LOCALITY_NAME, szOID_ORGANIZATION_NAME, + szOID_ORGANIZATIONAL_UNIT_NAME, szOID_STATE_OR_PROVINCE_NAME, + szOID_STREET_ADDRESS, szOID_SUR_NAME, szOID_TITLE, szOID_RSA_unstructAddr, + szOID_RSA_unstructName, szOID_BASIC_CONSTRAINTS2, + CERT_BASIC_CONSTRAINTS2_INFO, CRYPT_ENCODE_PARA,CertDuplicateStore, + CertEnumCertificatesInStore, CertDuplicateCertificateContext, + CertGetNameStringA, CertGetNameStringW, CertGetNameString, PFXIsPFXBlob, + CertFindExtension, CryptDecodeObject, CertAddCertificateContextToStore, + CertCompareCertificate, PFXVerifyPassword, PFXImportCertStore, + CertDeleteCertificateFromStore): Define. + * lib/crypt32.def (CertDuplicateStore, CertEnumCertificatesInStore, + CertDuplicateCertificateContext, CertGetNameStringA, CertGetNameStringW, + CertGetNameString, PFXIsPFXBlob, CertFindExtension, CryptDecodeObject, + CertAddCertificateContextToStore, CertCompareCertificate, + PFXVerifyPassword, PFXImportCertStore, CertDeleteCertificateFromStore): + Define. 2006-07-22 Chris Sutcliffe <ir0...@us...> @@ -425,7 +573,7 @@ * include/winnt.h (SUBLANG_ARABIC_SAUDI_ARABIA): Revert accidental removal. - (SUBLANG_MARATHI_INDIA): Remove duplicate define. + (SUBLANG_MARATHI_INDIA): Remove duplicate define. 2006-05-24 Christopher Faylor <cg...@ti...> Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-05 02:15:18 UTC (rev 886) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-05 02:21:38 UTC (rev 887) @@ -1,3 +1,8 @@ +2007-02-05 Pedro Alves <ped...@po...> + + Update from upstream. Note: Upstream version is now 3.8. + * configure: Regenerate. + 2007-02-04 Pedro Alves <ped...@po...> * libce/Makefile.in (inst_includedir, inst_libdir): Set them Modified: trunk/cegcc/src/w32api/Makefile.in =================================================================== --- trunk/cegcc/src/w32api/Makefile.in 2007-02-05 02:15:18 UTC (rev 886) +++ trunk/cegcc/src/w32api/Makefile.in 2007-02-05 02:21:38 UTC (rev 887) @@ -17,6 +17,7 @@ build_alias = @build@ host_alias = @host@ target_alias = @target@ +with_cross_host = @with_cross_host@ prefix = @prefix@ conf_prefix = @prefix@ @@ -93,11 +94,11 @@ endif PACKAGE = w32api -VERSION = 3.7 +VERSION = 3.8 CYGRELEASE = 1 DIST_FILES = Makefile.in configure.in configure config.guess config.sub \ -install-sh README.w32api ChangeLog TODO CONTRIBUTIONS +aclocal.m4 install-sh README.w32api ChangeLog TODO CONTRIBUTIONS all: $(SUBDIRS) @@ -180,8 +181,10 @@ mostlyclean: mostlyclean-top mostlyclean-subdirs clean: mostlyclean-top clean-subdirs distclean: clean-top + $(MAKE) -C lib/directx distclean + $(MAKE) -C lib/ddk distclean + $(MAKE) -C lib distclean rm -f Makefile config.status config.log config.cache TAGS *~ - $(MAKE) -C lib distclean maintainer-clean: maintainer-clean-subdirs .PHONY: lib libce test Modified: trunk/cegcc/src/w32api/configure =================================================================== --- trunk/cegcc/src/w32api/configure 2007-02-05 02:15:18 UTC (rev 886) +++ trunk/cegcc/src/w32api/configure 2007-02-05 02:21:38 UTC (rev 887) @@ -272,7 +272,7 @@ PACKAGE_BUGREPORT= ac_unique_file="lib/scrnsave.c" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR ac_ct_AR AS ac_ct_AS RANLIB ac_ct_RANLIB LD ac_ct_LD DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES BUILDENV LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC ac_ct_CC CFLAGS with_cross_host AR ac_ct_AR AS ac_ct_AS RANLIB ac_ct_RANLIB LD ac_ct_LD DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES BUILDENV LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -713,22 +713,6 @@ ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias -ac_env_CC_set=${CC+set} -ac_env_CC_value=$CC -ac_cv_env_CC_set=${CC+set} -ac_cv_env_CC_value=$CC -ac_env_CFLAGS_set=${CFLAGS+set} -ac_env_CFLAGS_value=$CFLAGS -ac_cv_env_CFLAGS_set=${CFLAGS+set} -ac_cv_env_CFLAGS_value=$CFLAGS -ac_env_LDFLAGS_set=${LDFLAGS+set} -ac_env_LDFLAGS_value=$LDFLAGS -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} -ac_cv_env_LDFLAGS_value=$LDFLAGS -ac_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_env_CPPFLAGS_value=$CPPFLAGS -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_cv_env_CPPFLAGS_value=$CPPFLAGS # # Report the --help message. @@ -801,17 +785,6 @@ cat <<\_ACEOF -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a - nonstandard directory <lib dir> - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have - headers in a nonstandard directory <include dir> - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - _ACEOF fi @@ -1356,92 +1329,89 @@ NONENONEs,x,x, && program_prefix=${target_alias}- -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then +#LIB_AC_PROG_CC + +# 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: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac done -done -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh fi -done -done - - test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC="gcc" fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -: ${CC:=gcc} -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + +CFLAGS=${CFLAGS-"-O2 -g"} if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 @@ -1505,6 +1475,7 @@ done done + test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC="gcc" fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC @@ -1521,937 +1492,10 @@ CC="$ac_cv_prog_CC" fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$ac_ct_CC" && break -done - - CC=$ac_ct_CC -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO:" \ - "checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 - (eval $ac_compiler --version </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 - (eval $ac_compiler -v </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 - (eval $ac_compiler -V </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 - (eval $ac_link_default) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Find the output, starting from the most likely. This scheme is -# not robust to junk in `.', hence go to wildcards (a.*) only as a last -# resort. - -# Be careful to initialize this variable, since it used to be cached. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. -ac_cv_exeext= -# b.out is created by i960 compilers. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) - ;; - conftest.$ac_ext ) - # This is the source file. - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - # FIXME: I believe we export ac_cv_exeext for Libtool, - # but it would be cool to find out if it's true. Does anybody - # maintain Libtool? --akim. - export ac_cv_exeext - break;; - * ) - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext -echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6 - -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6 - -echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6 - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6 -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_compiler_gnu=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -CFLAGS="-g" -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_prog_cc_g=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_stdc=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <stdarg.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std1 is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std1. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -# Don't try gcc -ansi; that turns off useful extensions and -# breaks some systems' header files. -# AIX -qlanglvl=ansi -# Ultrix and OSF/1 -std1 -# HP-UX 10.20 and later -Ae -# HP-UX older versions -Aa -D_HPUX_SOURCE -# SVR4 -Xc -D__EXTENSIONS__ -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_stdc=$ac_arg -break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext -done -rm -f conftest.$ac_ext conftest.$ac_objext -CC=$ac_save_CC - -fi - -case "x$ac_cv_prog_cc_stdc" in - x|xno) - echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6 ;; - *) - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 - CC="$CC $ac_cv_prog_cc_stdc" ;; -esac - -# Some people use a C++ compiler to compile C. Since we use `exit', -# in C++ we need to declare it. In case someone uses the same compiler -# for both compiling C and C++ we need to have the C++ compiler decide -# the declaration of exit, since it's the most demanding environment. -cat >conftest.$ac_ext <<_ACEOF -#ifndef __cplusplus - choke me -#endif -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ - '' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_declaration -#include <stdlib.h> -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -continue -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -rm -f conftest* -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 -echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} - { (exit 1); exit 1; }; } - - -# 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: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 @@ -3068,10 +2112,9 @@ # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' + # 2. Add them. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs @@ -3607,16 +2650,13 @@ s,@target_cpu@,$target_cpu,;t t s,@target_vendor@,$target_vendor,;t t s,@target_os@,$target_os,;t t -s,@CC@,$CC,;t t -s,@ac_ct_CC@,$ac_ct_CC,;t t -s,@CFLAGS@,$CFLAGS,;t t -s,@LDFLAGS@,$LDFLAGS,;t t -s,@CPPFLAGS@,$CPPFLAGS,;t t -s,@EXEEXT@,$EXEEXT,;t t -s,@OBJEXT@,$OBJEXT,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@CC@,$CC,;t t +s,@ac_ct_CC@,$ac_ct_CC,;t t +s,@CFLAGS@,$CFLAGS,;t t +s,@with_cross_host@,$with_cross_host,;t t s,@AR@,$AR,;t t s,@ac_ct_AR@,$ac_ct_AR,;t t s,@AS@,$AS,;t t Modified: trunk/cegcc/src/w32api/configure.in =================================================================== --- trunk/cegcc/src/w32api/configure.in 2007-02-05 02:15:18 UTC (rev 886) +++ trunk/cegcc/src/w32api/configure.in 2007-02-05 02:21:38 UTC (rev 887) @@ -12,11 +12,18 @@ AC_CANONICAL_SYSTEM -LIB_AC_PROG_CC +#LIB_AC_PROG_CC dnl Find install command AC_PROG_INSTALL +dnl check for cc and CFLAGS +CFLAGS=${CFLAGS-"-O2 -g"} +AC_CHECK_TOOL(CC, gcc, gcc) +AC_SUBST(CC) +AC_SUBST(CFLAGS) +AC_SUBST(with_cross_host) + dnl check for various tools AC_CHECK_TOOL(AR, ar, ar) AC_SUBST(AR) Modified: trunk/cegcc/src/w32api/include/CVS/Entries =================================================================== --- trunk/cegcc/src/w32api/include/CVS/Entries 2007-02-05 02:15:18 UTC (rev 886) +++ trunk/cegcc/src/w32api/include/CVS/Entries 2007-02-05 02:21:38 UTC (rev 887) @@ -98,7 +98,6 @@ /mmsystem.h/1.8/Wed May 10 08:57:46 2006/-ko/ /mpegtype.h/1.1/Wed May 10 08:57:46 2006// /mprapi.h/1.10/Fri May 12 17:12:32 2006// -/mq.h/1.1/Wed Apr 5 10:01:56 2006// /msacm.h/1.2/Fri Apr 30 17:05:28 2004// /mshtml.h/1.6/Tue Jul 25 00:22:20 2006// /mswsock.h/1.5/Wed Mar 12 23:36:54 2003// @@ -124,7 +123,6 @@ /ole2.h/1.2/Sat Mar 9 09:04:10 2002/-ko/ /ole2ver.h/1.2/Sat Mar 9 09:04:10 2002/-ko/ /oleacc.h/1.5/Tue Apr 11 22:56:08 2006// -/oleauto.h/1.12/Wed Mar 3 19:19:36 2004/-ko/ /olectl.h/1.10/Tue Jul 25 00:22:20 2006/-ko/ /olectlid.h/1.3/Fri Jul 26 04:26:26 2002/-ko/ /oledlg.h/1.6/Tue Apr 11 22:56:08 2006/-ko/ @@ -149,7 +147,6 @@ /richedit.h/1.15/Wed Jul 20 11:21:50 2005/-ko/ /richole.h/1.3/Tue Apr 11 22:56:08 2006/-ko/ /routprot.h/1.2/Thu May 11 15:57:12 2006// -/rpc.h/1.5/Sun Apr 18 07:07:56 2004/-ko/ /rpcdce.h/1.9/Mon Jun 12 00:55:06 2006/-ko/ /rpcdce2.h/1.2/Sat Mar 9 09:04:10 2002/-ko/ /rpcdcep.h/1.6/Sun Apr 18 07:07:56 2004/-ko/ @@ -187,38 +184,30 @@ /unknwn.h/1.7/Tue Apr 11 22:56:08 2006/-ko/ /userenv.h/1.2/Sat Mar 9 09:04:10 2002// /usp10.h/1.1/Sat Mar 25 21:43:56 2006// -/uxtheme.h/1.5/Tue Jan 3 09:04:08 2006// /vfw.h/1.4/Tue Jul 25 00:22:20 2006// /vidcap.h/1.1/Wed May 10 08:57:46 2006// /vmr9.h/1.1/Wed May 10 08:57:46 2006// /vptype.h/1.1/Wed May 10 08:57:46 2006// -/w32api.h/1.30/Fri Apr 14 12:52:50 2006// /winable.h/1.9/Fri Sep 26 14:46:34 2003// -/winbase.h/1.86/Fri Apr 28 17:34:02 2006/-ko/ /winber.h/1.1/Fri Aug 1 09:11:38 2003// /wincon.h/1.13/Mon Mar 27 05:34:24 2006/-ko/ /wincrypt.h/1.19/Sat Jul 22 13:31:18 2006/-ko/ /windef.h/1.18/Mon Jun 12 00:55:06 2006/-ko/ -/windns.h/1.2/Fri Apr 23 17:31:32 2004// /windows.h/1.17/Tue Jul 25 00:22:20 2006/-ko/ /windowsx.h/1.3/Sat Mar 9 09:04:10 2002/-ko/ /winerror.h/1.14/Wed Apr 5 07:06:06 2006/-ko/ -/wingdi.h/1.54/Wed May 10 08:04:50 2006/-ko/ /wininet.h/1.15/Sun Mar 5 08:31:58 2006/-ko/ /winioctl.h/1.15/Mon Feb 7 20:40:32 2005/-ko/ /winldap.h/1.3/Sun Jun 19 07:25:12 2005// /winnetwk.h/1.7/Fri Mar 31 09:08:48 2006/-ko/ /winnls.h/1.9/Wed May 10 08:36:06 2006/-ko/ -/winnt.h/1.109/Sat Jul 29 09:25:46 2006/-ko/ /winperf.h/1.2/Sat Mar 9 09:04:10 2002/-ko/ -/winreg.h/1.5/Wed Jan 11 22:49:06 2006/-ko/ /winresrc.h/1.2/Sat Mar 9 09:04:10 2002/-ko/ /winsnmp.h/1.1/Mon Aug 25 09:33:14 2003// /winsock.h/1.16/Thu Apr 6 12:16:50 2006/-ko/ /winsock2.h/1.29/Sun Jan 29 00:52:36 2006/-ko/ /winspool.h/1.13/Thu Mar 30 04:01:44 2006/-ko/ /winsvc.h/1.7/Wed Jan 11 22:49:06 2006/-ko/ -/winuser.h/1.116/Wed Jul 19 21:45:26 2006/-ko/ /winver.h/1.4/Sat Mar 25 21:43:56 2006/-ko/ /ws2spi.h/1.7/Tue Jul 25 00:22:20 2006// /ws2tcpip.h/1.10/Mon Apr 24 11:53:16 2006// @@ -231,3 +220,14 @@ D/GL//// D/ddk//// D/directx//// +/mq.h/1.1/Wed Apr 5 11:01:56 2006// +/oleauto.h/1.13/Result of merge+Sun Feb 4 23:45:14 2007/-ko/ +/rpc.h/1.6/Result of merge+Sun Feb 4 23:45:14 2007/-ko/ +/uxtheme.h/1.6/Result of merge+Sun Feb 4 23:45:14 2007// +/w32api.h/1.31/Result of merge+Sun Feb 4 23:45:14 2007// +/winbase.h/1.88/Result of merge/-ko/ +/windns.h/1.3/Result of merge+Sun Feb 4 23:45:16 2007// +/wingdi.h/1.56/Result of merge/-ko/ +/winnt.h/1.114/Result of merge+Sun Feb 4 23:45:16 2007/-ko/ +/winreg.h/1.6/Result of merge+Sun Feb 4 23:45:16 2007/-ko/ +/winuser.h/1.121/Result of merge/-ko/ Modified: trunk/cegcc/src/w32api/include/oleauto.h =================================================================== --- trunk/cegcc/src/w32api/include/oleauto.h 2007-02-05 02:15:18 UTC (rev 886) +++ trunk/cegcc/src/w32api/include/oleauto.h 2007-02-05 02:21:38 UTC (rev 887) @@ -351,6 +351,8 @@ WINOLEAUTAPI BstrFromVector (SAFEARRAY *, BSTR *); WINOLEAUTAPI VarParseNumFromStr(OLECHAR*,LCID,ULONG,NUMPARSE*,BYTE*); WINOLEAUTAPI VarNumFromParseNum(... [truncated message content] |
From: <ped...@us...> - 2007-02-05 02:16:25
|
Revision: 886 http://svn.sourceforge.net/cegcc/?rev=886&view=rev Author: pedroalves Date: 2007-02-04 18:15:18 -0800 (Sun, 04 Feb 2007) Log Message: ----------- Update from upstream. Note: Upstream version is now 3.11. * configure: Regenerate. Modified Paths: -------------- 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/aclocal.m4 trunk/cegcc/src/mingw/configure trunk/cegcc/src/mingw/configure.in trunk/cegcc/src/mingw/include/CVS/Entries trunk/cegcc/src/mingw/include/_mingw.h trunk/cegcc/src/mingw/include/ctype.h trunk/cegcc/src/mingw/include/io.h trunk/cegcc/src/mingw/include/stdio.h trunk/cegcc/src/mingw/include/stdlib.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/math/CVS/Entries trunk/cegcc/src/mingw/mingwex/mb_wc_common.h trunk/cegcc/src/mingw/mingwex/mbrtowc.c trunk/cegcc/src/mingw/mingwex/wcrtomb.c trunk/cegcc/src/mingw/mingwex/wcstold.c trunk/cegcc/src/mingw/mingwex/wctob.c trunk/cegcc/src/mingw/mingwex/wdirent.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/samples/dirent/CVS/Entries trunk/cegcc/src/mingw/samples/dlltest/CVS/Entries trunk/cegcc/src/mingw/samples/filehand/CVS/Entries trunk/cegcc/src/mingw/samples/fmode/CVS/Entries trunk/cegcc/src/mingw/samples/globbing/CVS/Entries trunk/cegcc/src/mingw/samples/print/CVS/Entries trunk/cegcc/src/mingw/samples/seh/CVS/Entries trunk/cegcc/src/mingw/samples/simpledll/CVS/Entries trunk/cegcc/src/mingw/samples/test/CVS/Entries trunk/cegcc/src/mingw/samples/wintest/CVS/Entries Added Paths: ----------- trunk/cegcc/src/mingw/include/libgen.h trunk/cegcc/src/mingw/mingwex/basename.c trunk/cegcc/src/mingw/mingwex/dirname.c trunk/cegcc/src/mingw/mingwex/gdtoa/ trunk/cegcc/src/mingw/mingwex/gdtoa/CVS/ trunk/cegcc/src/mingw/mingwex/gdtoa/CVS/Entries trunk/cegcc/src/mingw/mingwex/gdtoa/CVS/Repository trunk/cegcc/src/mingw/mingwex/gdtoa/CVS/Root trunk/cegcc/src/mingw/mingwex/gdtoa/README trunk/cegcc/src/mingw/mingwex/gdtoa/arithchk.c 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/gd_qnan.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 Removed Paths: ------------- trunk/cegcc/src/mingw/mingwex/ldtoa.c trunk/cegcc/src/mingw/mingwex/math/cephes_emath.c trunk/cegcc/src/mingw/mingwex/math/cephes_emath.h trunk/cegcc/src/mingw/mingwex/strtof.c trunk/cegcc/src/mingw/mingwex/strtold.c Modified: trunk/cegcc/src/mingw/CVS/Entries =================================================================== --- trunk/cegcc/src/mingw/CVS/Entries 2007-02-04 23:30:24 UTC (rev 885) +++ trunk/cegcc/src/mingw/CVS/Entries 2007-02-05 02:15:18 UTC (rev 886) @@ -1,30 +1,20 @@ -/CONTRIBUTORS/1.1/Tue Apr 20 22:49:32 2004// /CRT_noglob.c/1.2/Tue Apr 20 22:49:32 2004/-ko/ /CRTfmode.c/1.3/Tue Apr 20 22:49:32 2004/-ko/ /CRTglob.c/1.2/Tue Apr 20 22:49:32 2004/-ko/ /CRTinit.c/1.2/Tue Apr 20 22:49:32 2004/-ko/ -/ChangeLog/1.314/Thu Aug 3 21:05:06 2006/-ko/ -/DISCLAIMER/1.2/Thu Apr 22 16:16:24 2004// /README/1.2/Thu Apr 22 16:16:26 2004// /TODO/1.1/Wed Nov 22 01:51:54 2000// -/aclocal.m4/1.1/Wed May 24 16:59:02 2006// /binmode.c/1.1/Sat Oct 19 20:26:26 2002// -/config.guess/1.2/Thu Jul 3 15:15:56 2003// /config.sub/1.2/Thu Jul 3 15:15:56 2003// /cpu_features.h/1.1/Mon Jul 3 10:32:58 2006// -/crtdll.def/1.3/Tue Apr 20 22:49:32 2004/-ko/ /crtmt.c/1.1.1.1/Thu Feb 17 19:38:32 2000/-ko/ /crtst.c/1.1.1.1/Thu Feb 17 19:38:32 2000/-ko/ /dllmain.c/1.2/Tue Apr 20 22:49:32 2004/-ko/ /gccmain.c/1.2/Tue Apr 20 22:49:32 2004/-ko/ -/install-sh/1.1/Wed Nov 22 01:51:54 2000// /isascii.c/1.2/Tue Apr 20 22:49:32 2004// /iscsym.c/1.2/Tue Apr 20 22:49:32 2004// /iscsymf.c/1.2/Tue Apr 20 22:49:32 2004// -/jamfile/1.2/Tue Apr 20 22:49:32 2004/-ko/ -/mkinstalldirs/1.1/Wed Nov 22 01:51:54 2000// /moldname.def.in/1.7/Mon Aug 8 10:22:20 2005/-ko/ -/msvcrt.def.in/1.4/Tue Apr 20 22:49:32 2004// /mthr.c/1.2/Wed Dec 5 15:01:06 2001/-ko/ /mthr_init.c/1.2/Wed Dec 5 15:01:06 2001/-ko/ /mthr_stub.c/1.3/Wed Aug 10 10:05:02 2005/-ko/ @@ -42,12 +32,22 @@ 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// -/Makefile.in/1.63/Wed Aug 23 23:25:48 2006/-ko/ -/configure/1.16/Wed Aug 23 23:25:50 2006/-ko/ -/configure.in/1.12/Wed Aug 23 23:25:50 2006/-ko/ /cpu_features.c/1.1/Wed Aug 23 23:25:50 2006// /crt1.c/1.11/Wed Aug 23 23:25:50 2006/-ko/ /dllcrt1.c/1.4/Wed Aug 23 23:25:50 2006/-ko/ /init.c/1.2/Wed Aug 23 23:25:50 2006/-ko/ /main.c/1.2/Wed Aug 23 23:25:50 2006/-ko/ /pseudo-reloc.c/1.1/Wed Aug 23 23:25:50 2006// +/CONTRIBUTORS/1.1/Tue Apr 20 23:49:32 2004// +/DISCLAIMER/1.2/Thu Apr 22 17:16:24 2004// +/Makefile.in/1.69/Result of merge+Sun Feb 4 20:14:28 2007/-ko/ +/aclocal.m4/1.4/Sun Feb 4 20:14:28 2007// +/config.guess/1.2/Thu Jul 3 16:15:56 2003// +/configure/1.19/Result of merge+Sun Feb 4 20:14:30 2007/-ko/ +/configure.in/1.15/Result of merge+Sun Feb 4 20:14:30 2007/-ko/ +/crtdll.def/1.3/Tue Apr 20 23:49:32 2004/-ko/ +/install-sh/1.1/Wed Nov 22 02:51:54 2000// +/jamfile/1.2/Tue Apr 20 23:49:32 2004/-ko/ +/mkinstalldirs/1.1/Wed Nov 22 02:51:54 2000// +/ChangeLog/1.336/Sun Feb 4 22:12:36 2007/-ko/ +/msvcrt.def.in/1.6/Sun Feb 4 22:19:54 2007// Modified: trunk/cegcc/src/mingw/ChangeLog =================================================================== --- trunk/cegcc/src/mingw/ChangeLog 2007-02-04 23:30:24 UTC (rev 885) +++ trunk/cegcc/src/mingw/ChangeLog 2007-02-05 02:15:18 UTC (rev 886) @@ -1,3 +1,174 @@ +2007-01-27 Danny Smith <dan...@us...> + + Expose some more msvcr80.dll functions. + * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64, + _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes + * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64, + _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs. + +2007-01-26 Danny Smith <dan...@us...> + + Expose some msvcr80.dll functions. + * include/stdlib.h (_set_abort_behavior): Add prototype. + (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for + _set_abort_behavior mask argument. + (_invalid_parameter_handler): Add typedef. + (_set_invalid_parameter_handler): Add prototype. + * include/stdio.h (_get_printf_count_output): Add prototype. + (_set_printf_count_output): Add prototype. + * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output, + _set_abort_behavior, _set_invalid_parameter_handler): Add stubs. + +2007-01-26 Danny Smith <dan...@us...> + + * include/_mingw.h (CRT_INLINE): Correct typo. + +2007-01-24 Danny Smith <dan...@us...> + + * include/io.h (X_OK): Define to F_OK. + +2007-01-19 Danny Smith <dan...@us...> + + * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define + unconditionally. Change comment. + * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define + here too. + * include/io.h (rename): Declare. + (remove): Declare. + +2006-12-31 Keith Marshall <kei...@us...> + + * include/libgen.h: New file; required by... + * mingwex/basename.c, mingwex/dirname.c: New files. + * mingwex/Makefile.in (DISTFILES): Add them... + (POSIX_OBJS): ...with corresponding basename.o, dirname.o + (Dependencies): Typo; s/Dependancies/Dependencies/ + +2006-11-25 Keith Marshall <kei...@us...> + + * Makefile.in (VERSION): Let configure define it. + + * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro. + * configure.in: Use it. + Correct quoting of autoconf macro arguments throughout. + (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax. + (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST. + (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed. + (AC_CONFIG_FILES): Add, to generate Makefile. + + * configure: Regenerated. + +2006-11-21 Danny Smith <dan...@us...> + + * Makefile.in: Add aclocal.m4 to source release. + * mingwex/Makefile.in: Ditto. + * profile/Makefile.in: Ditto. + +2006-11-18 Chris Sutcliffe <ir0...@us...> + + * Include/_mingw.h: Increment version to 3.11. + * Makefile.in: Ditto. + +2006-11-09 Danny Smith <dan...@us...> + + [ mingw-Bugs-1590623 ] + * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute + in C99 mode. + +2006-10-04 Corinna Vinschen <co...@vi...> + + * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now + correctly parenthesized. + +2006-09-19 Danny Smith <dan...@us...> + + * mingwex/mb_wc_common.h (get_codepage): Get it + from __lc_codepage. + +2006-09-18 Danny Smith <dan...@us...> + + * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity. + Use fpclassify. + * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to + void*. + * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with + others. + +2006-09-16 Danny Smith <dan...@us...> + + * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation + of infinity. + +2006-09-11 Christopher Faylor <cg...@ti...> + + * Makefile.in: Semi-revert 2006-08-30 change. + +2006-09-10 Danny Smith <dan...@us...> + + * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define. + (__MINGW_IMPORT): Ansify. + * include/stdlib.h (_sleep, _beep, _seterrormode): Add + __MINGW_ATTRIB_DEPRECATED. + +2006-09-10 Keith Marshall <kei...@us...> + + * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX): + Redundant macros; deleted. + + * configure.in (LIB_AC_PROG_CC): Replaced by... + (AC_PROG_CC): ...this. + + * configure: Regenerated. + +2006-09-06 Danny Smith <dan...@us...> + + * mingwex/gdtoa/misc.c (pow5mult): Restore original code. + * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified. + * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets. + +2006-09-01 Danny Smith <dan...@us...> + + * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c, + g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h, + gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c, + README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c, + ulp.c): New files. + * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files. + * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files. + * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage(). + * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage(). + * mingwex/wcstold.c: Avoid using strtold internals. + * mingwex/wcstof.c: Rewrite. + * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution. + (GDTOA_OBJS): Add to library. + (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h. + (STDLIB_OBJS): Remove. + (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o. + (Q8_OBJS): Add wcstof.o wcstold.o. + * include/stdlib.h (strtof): Remove inline definition. + (wcstof): Likewise. + * include/wchar.h (wcstof): Remove inline definition. + +2006-08-30 Corinna Vinschen <co...@vi...> + + * Makefile.in: Add with_cross_host to allow more granular checks. + Set installation directories accordingly. Override CC setting only + if building a Cygwin target. + * aclocal.m4: Regenerate. + * configure.in: Move AC_CANONICAL_SYSTEM check up. Add + GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files. + Test AC_ALLOCA only if building on a native system. + * configure: Regenerate. + +2006-08-27 Chris Sutcliffe <ir0...@us...> + + * include/ctype.h: Fix typo. + +2006-08-25 Danny Smith <dan...@us...> + + * include/ctype.h: Expose iswblank if __cplusplus. + * include/wctype.h: Expose iswblank if __cplusplus. + 2006-08-03 Danny Smith <dan...@us...> * include/ctype.h: Remove stray ')'; @@ -539,7 +710,6 @@ (mainCRTStartup): Change return to void. (WinMainCRTStartup): Likewise. - 2004-08-15 Danny Smith <dan...@us...> * profile/COPYING: New file. Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 23:30:24 UTC (rev 885) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-05 02:15:18 UTC (rev 886) @@ -1,3 +1,8 @@ +2007-02-05 Pedro Alves <ped...@po...> + + Update from upstream. Note: Upstream version is now 3.11. + * configure: Regenerate. + 2007-02-04 Pedro Alves <ped...@po...> * Makefile.in (LIBS): Add $(LIBM_A). Modified: trunk/cegcc/src/mingw/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/Makefile.in 2007-02-04 23:30:24 UTC (rev 885) +++ trunk/cegcc/src/mingw/Makefile.in 2007-02-05 02:15:18 UTC (rev 886) @@ -18,7 +18,7 @@ # This makefile requires GNU make. PACKAGE = mingw-runtime -VERSION = 3.10 +VERSION = @PACKAGE_VERSION@ CYGRELEASE = 1 VPATH = @srcdir@ @@ -28,6 +28,7 @@ host_alias = @host_alias@ build_alias = @build_alias@ target_alias = @target_alias@ +with_cross_host = @with_cross_host@ prefix = @prefix@ conf_prefix = @prefix@ @@ -59,12 +60,19 @@ inst_libdir:=$(tooldir)/lib inst_docdir:=$(prefix)/share/doc/mingw-runtime else +ifneq (,$(with_cross_host)) +inst_bindir:=$(tooldir)/bin +inst_includedir:=$(tooldir)/include +inst_libdir:=$(tooldir)/lib +inst_docdir:=$(tooldir)/share/doc/mingw-runtime +else inst_bindir:=$(bindir) inst_includedir:=$(includedir) inst_libdir:=$(libdir) inst_docdir:=$(prefix)/doc/mingw-runtime endif endif +endif # The Mingw headers are installed under a subdirectory of # $(tooldir)/include when configuring in Cygwin. @@ -78,7 +86,9 @@ mkinstalldirs = $(SHELL) @MKINSTALLDIRS@ CC := @CC@ +ifneq (,$(findstring cygwin,$(target_alias))) 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? CC_FOR_TARGET = $(CC) AS_FOR_TARGET = $(AS) @@ -205,14 +215,14 @@ SRCDIST_FILES = CRT_noglob.c CRTfmode.c CRTglob.c CRTinit.c ChangeLog \ Makefile.in README TODO config.guess config.sub configure configure.in \ -crt1.c crtdll.def crtmt.c crtst.c dllcrt1.c dllmain.c \ +aclocal.m4 crt1.c crtdll.def crtmt.c crtst.c dllcrt1.c dllmain.c \ gccmain.c init.c install-sh jamfile main.c mkinstalldirs \ moldname.def.in msvcrt.def.in \ mthr.c mthr_init.c mthr_stub.c readme.txt \ isascii.c iscsym.c iscsymf.c toascii.c \ strcasecmp.c strncasecmp.c wcscmpi.c \ CRT_fp8.c CRT_fp10.c test_headers.c txtmode.c binmode.c pseudo-reloc.c \ -pseudo-reloc-list.c cpu_features.c cpu_features.h\ +pseudo-reloc-list.c cpu_features.c cpu_features.h \ DISCLAIMER CONTRIBUTORS Modified: trunk/cegcc/src/mingw/aclocal.m4 =================================================================== --- trunk/cegcc/src/mingw/aclocal.m4 2007-02-04 23:30:24 UTC (rev 885) +++ trunk/cegcc/src/mingw/aclocal.m4 2007-02-05 02:15:18 UTC (rev 886) @@ -1,875 +1,97 @@ -dnl aclocal.m4 generated automatically by aclocal 1.4-p6 +# aclocal.m4 for MinGW Runtime package. -*- Autoconf -*- +# +# This provides configure definitions used by all the winsup +# configure.in files. -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. +# MINGW_AC_CONFIG_SRCDIR( VERSION_TAG, UNIQUE_FILE ) +# -------------------------------------------------- +# Wrapper for AC_CONFIG_SRCDIR; in addition to checking for a +# unique file reference within the source tree, it resolves the +# definition for PACKAGE_VERSION, based on a tagged definition +# within that file, and adjusts PACKAGE_TARNAME to match. +# +AC_DEFUN([MINGW_AC_CONFIG_SRCDIR], +[AC_CONFIG_SRCDIR([$2]) + AC_MSG_CHECKING([package version]) + PACKAGE_VERSION=`awk '$[2] == "'"$1"'" { print $[3] }' ${srcdir}/$2` + PACKAGE_TARNAME=${PACKAGE_NAME}-${PACKAGE_VERSION} + AC_MSG_RESULT([$PACKAGE_VERSION])dnl +]) #MINGW_AC_CONFIG_SRCDIR -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. +# The following is copied from `no-executables.m4', in the top +# `src/config' directory. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. -# 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 distribute it, -dnl with or without modifications, as long as this notice is preserved. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. -dnl From Bruno Haible. +# GCC_NO_EXECUTABLES +# ----------------- +# FIXME: The GCC team has specific needs which the current Autoconf +# framework cannot solve elegantly. This macro implements a dirty +# hack until Autoconf is able to provide the services its users +# need. +# +# Several of the support libraries that are often built with GCC can't +# assume the tool-chain is already capable of linking a program: the +# compiler often expects to be able to link with some of such +# libraries. +# +# In several of these libraries, workarounds have been introduced to +# avoid the AC_PROG_CC_WORKS test, that would just abort their +# configuration. The introduction of AC_EXEEXT, enabled either by +# libtool or by CVS autoconf, have just made matters worse. +# +# Unlike the previous AC_NO_EXECUTABLES, this test does not +# disable link tests at autoconf time, but at configure time. +# This allows AC_NO_EXECUTABLES to be invoked conditionally. +AC_DEFUN_ONCE([GCC_NO_EXECUTABLES], +[m4_divert_push([KILL]) -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) +AC_BEFORE([$0], [_AC_COMPILER_EXEEXT]) +AC_BEFORE([$0], [AC_LINK_IFELSE]) -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/lib" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/lib"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/lib"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -# lib-link.m4 serial 6 (gettext-0.14.3) -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 distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.50) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, -dnl hardcode_direct, hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - libext="$acl_cv_libext" - shlibext="$acl_cv_shlibext" - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - hardcode_direct="$acl_cv_hardcode_direct" - hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib$1-prefix], -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib$1-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/lib" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - if test $use_additional = yes; then - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then - found_dir="$additional_libdir" - found_so="$additional_libdir/lib$name.$shlibext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - else - if test -f "$additional_libdir/lib$name.$libext"; then - found_dir="$additional_libdir" - found_a="$additional_libdir/lib$name.$libext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then - found_dir="$dir" - found_so="$dir/lib$name.$shlibext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - else - if test -f "$dir/lib$name.$libext"; then - found_dir="$dir" - found_a="$dir/lib$name.$libext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */lib | */lib/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/lib"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/lib"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" - done - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 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 Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 </dev/null` in -*GNU* | *'with BFD'*) - acl_cv_prog_gnu_ld=yes ;; -*) - acl_cv_prog_gnu_ld=no ;; -esac]) -with_gnu_ld=$acl_cv_prog_gnu_ld -]) - -dnl From libtool-1.4. Sets the variable LD. -AC_DEFUN([AC_LIB_PROG_LD], -[AC_ARG_WITH(gnu-ld, -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) +m4_define([_AC_COMPILER_EXEEXT], +AC_LANG_CONFTEST([AC_LANG_PROGRAM()]) +# FIXME: Cleanup? +AS_IF([AC_TRY_EVAL(ac_link)], [gcc_no_link=no], [gcc_no_link=yes]) +if test x$gcc_no_link = xyes; then + # Setting cross_compile will disable run tests; it will + # also disable AC_CHECK_FILE but that's generally + # correct if we can't link. + cross_compiling=yes + EXEEXT= else - AC_MSG_CHECKING([for non-GNU ld]) + m4_defn([_AC_COMPILER_EXEEXT])dnl fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) +) + +m4_define([AC_LINK_IFELSE], +if test x$gcc_no_link = xyes; then + AC_MSG_ERROR([Link tests are not allowed after [[$0]].]) fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) +m4_defn([AC_LINK_IFELSE])) -dnl This provides configure definitions used by all the winsup -dnl configure.in files. - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN([LIB_AC_PROG_CC_GNU], -[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc, -[dnl The semicolon is to pacify NeXT's syntax-checking cpp. -cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi])]) - -AC_DEFUN([LIB_AC_PROG_CC], -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_TOOL(CC, gcc, gcc) -: ${CC:=gcc} -AC_PROG_CC -test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -]) - -AC_DEFUN([LIB_AC_PROG_CXX], -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_TOOL(CXX, g++, g++) -if test -z "$CXX"; then - AC_CHECK_TOOL(CXX, g++, c++, , , ) - : ${CXX:=g++} - AC_PROG_CXX - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) +dnl This is a shame. We have to provide a default for some link tests, +dnl similar to the default for run tests. +m4_define([AC_FUNC_MMAP], +if test x$gcc_no_link = xyes; then + if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then + ac_cv_func_mmap_fixed_mapped=no + fi fi +if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then + m4_defn([AC_FUNC_MMAP]) +fi) -CXXFLAGS='$(CFLAGS)' -]) +m4_divert_pop()dnl +])# GCC_NO_EXECUTABLES +# $RCSfile: aclocal.m4,v $: end of file: vim: ft=config Modified: trunk/cegcc/src/mingw/configure =================================================================== --- trunk/cegcc/src/mingw/configure 2007-02-04 23:30:24 UTC (rev 885) +++ trunk/cegcc/src/mingw/configure 2007-02-05 02:15:18 UTC (rev 886) @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59. +# Generated by GNU Autoconf 2.59 for mingw-runtime __MINGW32_VERSION. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation @@ -265,15 +265,15 @@ : ${ac_max_here_lines=38} # Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= +PACKAGE_NAME='mingw-runtime' +PACKAGE_TARNAME='mingw-runtime' +PACKAGE_VERSION='__MINGW32_VERSION' +PACKAGE_STRING='mingw-runtime __MINGW32_VERSION' +PACKAGE_BUGREPORT='' -ac_unique_file="dllmain.c" -ac_subdirs_all="$ac_subdirs_all profile mingwex" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT all_dlls_host install_dlls_host AR ac_ct_AR AS ac_ct_AS RANLIB ac_ct_RANLIB LD ac_ct_LD DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP WINDRES ac_ct_WINDRES ALLOCA CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os subdirs MKINSTALLDIRS MNO_CYGWIN THREAD_DLL LIBM_A LIBGMON_A HEADER_SUBDIR W32API_INCLUDE DLL_ENTRY MINGWEX_DIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS' +ac_unique_file="include/_mingw.h" +ac_subdirs_all="$ac_subdirs_all mingwex" +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT with_cross_host all_dlls_host install_dlls_host AR ac_ct_AR AS ac_ct_AS RANLIB ac_ct_RANLIB LD ac_ct_LD DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP WINDRES ac_ct_WINDRES subdirs THREAD_DLL MKINSTALLDIRS MNO_CYGWIN LIBM_A LIBGMON_A HEADER_SUBDIR W32API_INCLUDE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -730,10 +730,6 @@ ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS -ac_env_CPP_set=${CPP+set} -ac_env_CPP_value=$CPP -ac_cv_env_CPP_set=${CPP+set} -ac_cv_env_CPP_value=$CPP # # Report the --help message. @@ -742,7 +738,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. +\`configure' configures mingw-runtime __MINGW32_VERSION to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -803,7 +799,9 @@ fi if test -n "$ac_init_help"; then - + case $ac_init_help in + short | recursive ) echo "Configuration of mingw-runtime __MINGW32_VERSION:";; + esac cat <<\_ACEOF Some influential environment variables: @@ -813,7 +811,6 @@ nonstandard directory <lib dir> CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> - CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -906,13 +903,15 @@ else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi - cd "$ac_popdir" + cd $ac_popdir done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF +mingw-runtime configure __MINGW32_VERSION +generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation @@ -925,7 +924,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by $as_me, which was +It was created by mingw-runtime $as_me __MINGW32_VERSION, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -1254,87 +1253,129 @@ -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 + + + + + + + + + echo "$as_me:$LINENO: checking package version" >&5 +echo $ECHO_N "checking package version... $ECHO_C... [truncated message content] |
From: <ped...@us...> - 2007-02-04 23:30:25
|
Revision: 885 http://svn.sourceforge.net/cegcc/?rev=885&view=rev Author: pedroalves Date: 2007-02-04 15:30:24 -0800 (Sun, 04 Feb 2007) Log Message: ----------- Ooops, svn diff misguided me. This wasn't suposed to go in. Removed. Removed Paths: ------------- trunk/cegcc/src/w32api/include/sipapi.h trunk/cegcc/src/w32api/include/types.h Deleted: trunk/cegcc/src/w32api/include/sipapi.h =================================================================== Deleted: trunk/cegcc/src/w32api/include/types.h =================================================================== This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-04 23:26:10
|
Revision: 884 http://svn.sourceforge.net/cegcc/?rev=884&view=rev Author: pedroalves Date: 2007-02-04 15:26:09 -0800 (Sun, 04 Feb 2007) Log Message: ----------- Setting eol style native on some files. Added Paths: ----------- trunk/cegcc/src/w32api/include/sipapi.h trunk/cegcc/src/w32api/include/types.h Added: trunk/cegcc/src/w32api/include/sipapi.h =================================================================== Property changes on: trunk/cegcc/src/w32api/include/sipapi.h ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/w32api/include/types.h =================================================================== Property changes on: trunk/cegcc/src/w32api/include/types.h ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-04 23:22:29
|
Revision: 883 http://svn.sourceforge.net/cegcc/?rev=883&view=rev Author: pedroalves Date: 2007-02-04 15:22:28 -0800 (Sun, 04 Feb 2007) Log Message: ----------- * libce/Makefile.in (inst_includedir, inst_libdir): Set them correctly for *wince* cases. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/libce/Makefile.in Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-04 20:08:25 UTC (rev 882) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-04 23:22:28 UTC (rev 883) @@ -1,3 +1,8 @@ +2007-02-04 Pedro Alves <ped...@po...> + + * libce/Makefile.in (inst_includedir, inst_libdir): Set them + correctly for *wince* cases. + 2007-02-01 Nuno Lucas <nt...@gm...> * include/todaycmn.h : Create this file based on MSDN documentation Modified: trunk/cegcc/src/w32api/libce/Makefile.in =================================================================== --- trunk/cegcc/src/w32api/libce/Makefile.in 2007-02-04 20:08:25 UTC (rev 882) +++ trunk/cegcc/src/w32api/libce/Makefile.in 2007-02-04 23:22:28 UTC (rev 883) @@ -43,9 +43,14 @@ inst_includedir:=$(tooldir)/include/w32api inst_libdir:=$(tooldir)/lib/w32api else +ifneq (,$(findstring wince,$(target_alias))) +inst_includedir:=$(tooldir)/include +inst_libdir:=$(tooldir)/lib +else inst_includedir:=$(includedir) inst_libdir:=$(libdir) endif +endif INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-04 20:08:28
|
Revision: 882 http://svn.sourceforge.net/cegcc/?rev=882&view=rev Author: pedroalves Date: 2007-02-04 12:08:25 -0800 (Sun, 04 Feb 2007) Log Message: ----------- * Makefile.in (LIBS): Add $(LIBM_A). 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 2007-02-04 18:05:16 UTC (rev 881) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 20:08:25 UTC (rev 882) @@ -1,5 +1,9 @@ 2007-02-04 Pedro Alves <ped...@po...> + * Makefile.in (LIBS): Add $(LIBM_A). + +2007-02-04 Pedro Alves <ped...@po...> + * include/ctype.h (MB_CUR_MAX): Hardcode as 2. * include/stdlib.h (MB_CUR_MAX): Likewise. * mingwex/Makefile.in (LIB_OBJS): Add $(Q8_OBJS). Modified: trunk/cegcc/src/mingw/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/Makefile.in 2007-02-04 18:05:16 UTC (rev 881) +++ trunk/cegcc/src/mingw/Makefile.in 2007-02-04 20:08:25 UTC (rev 882) @@ -182,6 +182,7 @@ ifneq (,$(findstring wince,$(target_alias))) LIBS = libmingw32.a \ libceoldname.a \ + $(LIBM_A) \ libmingwthrd.a else LIBS = libcrtdll.a \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-04 17:41:01
|
Revision: 880 http://svn.sourceforge.net/cegcc/?rev=880&view=rev Author: pedroalves Date: 2007-02-04 09:41:00 -0800 (Sun, 04 Feb 2007) Log Message: ----------- * include/ctype.h (MB_CUR_MAX): Hardcode as 2. * include/stdlib.h (MB_CUR_MAX): Likewise. * mingwex/Makefile.in (LIB_OBJS): Add $(Q8_OBJS). * mingwex/mb_wc_common.h: Don't include locale.h on * __COREDLL__. (get_cp_from_locale): Always return 0 on __COREDLL__. * mingwex/mbrtowc.c: Don't include errno.h on __COREDLL__. Don't set errno on __COREDLL__ throughout. * mingwex/strtoimax.c: Likewise. * mingwex/strtoumax.c: Likewise. * mingwex/wcrtomb.c: Likewise. * mingwex/wcstoimax.c: Likewise. * mingwex/wcstoumax.c: Likewise. * mingwex/wctob.c: Don't include errno.h * mingwex/wmemmove.c: Likewise. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/ctype.h trunk/cegcc/src/mingw/include/stdlib.h trunk/cegcc/src/mingw/mingwex/Makefile.in trunk/cegcc/src/mingw/mingwex/mb_wc_common.h trunk/cegcc/src/mingw/mingwex/mbrtowc.c trunk/cegcc/src/mingw/mingwex/strtoimax.c trunk/cegcc/src/mingw/mingwex/strtoumax.c trunk/cegcc/src/mingw/mingwex/wcrtomb.c trunk/cegcc/src/mingw/mingwex/wcstoimax.c trunk/cegcc/src/mingw/mingwex/wcstoumax.c trunk/cegcc/src/mingw/mingwex/wctob.c trunk/cegcc/src/mingw/mingwex/wmemmove.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 17:41:00 UTC (rev 880) @@ -1,5 +1,22 @@ 2007-02-04 Pedro Alves <ped...@po...> + * include/ctype.h (MB_CUR_MAX): Hardcode as 2. + * include/stdlib.h (MB_CUR_MAX): Likewise. + * mingwex/Makefile.in (LIB_OBJS): Add $(Q8_OBJS). + * mingwex/mb_wc_common.h: Don't include locale.h on __COREDLL__. + (get_cp_from_locale): Always return 0 on __COREDLL__. + * mingwex/mbrtowc.c: Don't include errno.h on __COREDLL__. + Don't set errno on __COREDLL__ throughout. + * mingwex/strtoimax.c: Likewise. + * mingwex/strtoumax.c: Likewise. + * mingwex/wcrtomb.c: Likewise. + * mingwex/wcstoimax.c: Likewise. + * mingwex/wcstoumax.c: Likewise. + * mingwex/wctob.c: Don't include errno.h + * mingwex/wmemmove.c: Likewise. + +2007-02-04 Pedro Alves <ped...@po...> + * include/complex.h (carg, cargf, cargl): Wrap in #ifdef __i386__. 2007-02-04 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/mingw/include/ctype.h =================================================================== --- trunk/cegcc/src/mingw/include/ctype.h 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/include/ctype.h 2007-02-04 17:41:00 UTC (rev 880) @@ -99,6 +99,11 @@ # elif defined (__CRTDLL__) # define MB_CUR_MAX __mb_cur_max_dll __MINGW_IMPORT int __mb_cur_max_dll; +# elif defined (__COREDLL__) + /* No locale support, so we set it to maximum. */ + /* From limits.h. */ + /* #define MB_CUR_MAX MB_LEN_MAX 2 */ +# define MB_CUR_MAX 2 # endif /* __CRTDLL__ */ #else /* ! __DECLSPEC_SUPPORTED */ Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/include/stdlib.h 2007-02-04 17:41:00 UTC (rev 880) @@ -114,6 +114,11 @@ # elif defined (__CRTDLL__) # define MB_CUR_MAX __mb_cur_max_dll __MINGW_IMPORT int __mb_cur_max_dll; +# elif defined (__COREDLL__) + /* No locale support, so we set it to maximum. */ + /* From limits.h. */ + /* #define MB_CUR_MAX MB_LEN_MAX 2 */ +# define MB_CUR_MAX 2 # endif /* __CRTDLL__ */ #else /* ! __DECLSPEC_SUPPORTED */ Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-04 17:41:00 UTC (rev 880) @@ -225,7 +225,7 @@ MATHCE_FLAGS= ifneq (,$(findstring wince,$(target_alias))) -LIB_OBJS = $(WINCE_OBJS) $(MATHCE_OBJS) +LIB_OBJS = $(WINCE_OBJS) $(MATHCE_OBJS) $(Q8_OBJS) MATHCE_FLAGS=-D_IEEE_LIBM MATHDIR=mathce else Modified: trunk/cegcc/src/mingw/mingwex/mb_wc_common.h =================================================================== --- trunk/cegcc/src/mingw/mingwex/mb_wc_common.h 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/mb_wc_common.h 2007-02-04 17:41:00 UTC (rev 880) @@ -1,4 +1,6 @@ +#ifndef __COREDLL__ #include <locale.h> +#endif #include <string.h> #include <stdlib.h> @@ -12,7 +14,9 @@ */ +#ifndef __COREDLL__ if ((cp_string = strchr(setlocale(LC_CTYPE, NULL), '.'))) return ((unsigned) atoi (cp_string + 1)); +#endif return 0; } Modified: trunk/cegcc/src/mingw/mingwex/mbrtowc.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mbrtowc.c 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/mbrtowc.c 2007-02-04 17:41:00 UTC (rev 880) @@ -1,7 +1,9 @@ #include "mb_wc_common.h" #include <wchar.h> #include <stdlib.h> +#ifndef __COREDLL__ #include <errno.h> +#endif #define WIN32_LEAN_AND_MEAN #include <windows.h> @@ -46,7 +48,9 @@ == 0) { /* An invalid trailing byte */ +#ifndef __COREDLL__ errno = EILSEQ; +#endif return -1; } return 2; @@ -65,7 +69,9 @@ s, 2, pwc, 1) == 0) { +#ifndef __COREDLL__ errno = EILSEQ; +#endif return -1; } return 2; @@ -79,7 +85,9 @@ else if (MultiByteToWideChar (cp, MB_ERR_INVALID_CHARS, s, 1, pwc, 1) == 0) { +#ifndef __COREDLL__ errno = EILSEQ; +#endif return -1; } return 1; Modified: trunk/cegcc/src/mingw/mingwex/strtoimax.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/strtoimax.c 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/strtoimax.c 2007-02-04 17:41:00 UTC (rev 880) @@ -10,7 +10,9 @@ contiguous ascending order; this is true for ASCII but not EBCDIC. */ #include <stdlib.h> +#ifndef __COREDLL__ #include <errno.h> +#endif #include <ctype.h> #include <inttypes.h> @@ -41,7 +43,9 @@ if ( base < 0 || base == 1 || base > 36 ) { +#ifndef __COREDLL__ errno = EDOM; +#endif return 0; /* unspecified behavior */ } @@ -101,7 +105,9 @@ if ( toobig ) { +#ifndef __COREDLL__ errno = ERANGE; +#endif return minus ? INTMAX_MIN : INTMAX_MAX; } else Modified: trunk/cegcc/src/mingw/mingwex/strtoumax.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/strtoumax.c 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/strtoumax.c 2007-02-04 17:41:00 UTC (rev 880) @@ -10,7 +10,9 @@ contiguous ascending order; this is true for ASCII but not EBCDIC. */ #include <stdlib.h> +#ifndef __COREDLL__ #include <errno.h> +#endif #include <ctype.h> #include <inttypes.h> @@ -42,7 +44,9 @@ if ( base < 0 || base == 1 || base > 36 ) { +#ifndef __COREDLL__ errno = EDOM; +#endif return 0; /* unspecified behavior */ } @@ -99,7 +103,9 @@ if ( toobig ) { +#ifndef __COREDLL__ errno = ERANGE; +#endif return UINTMAX_MAX; } else Modified: trunk/cegcc/src/mingw/mingwex/wcrtomb.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wcrtomb.c 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/wcrtomb.c 2007-02-04 17:41:00 UTC (rev 880) @@ -1,7 +1,9 @@ #include "mb_wc_common.h" #include <wchar.h> #include <stdlib.h> +#ifndef __COREDLL__ #include <errno.h> +#endif #include <limits.h> #define WIN32_LEAN_AND_MEAN #include <windows.h> @@ -15,7 +17,9 @@ { if (wc > 255) { +#ifndef __COREDLL__ errno = EILSEQ; +#endif return -1; } *dst = (char) wc; @@ -30,7 +34,9 @@ NULL, &invalid_char); if (size == 0 || invalid_char) { +#ifndef __COREDLL__ errno = EILSEQ; +#endif return -1; } return size; Modified: trunk/cegcc/src/mingw/mingwex/wcstoimax.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wcstoimax.c 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/wcstoimax.c 2007-02-04 17:41:00 UTC (rev 880) @@ -12,7 +12,9 @@ */ #include <wchar.h> +#ifndef __COREDLL__ #include <errno.h> +#endif #include <ctype.h> #include <inttypes.h> @@ -43,7 +45,9 @@ if ( base < 0 || base == 1 || base > 36 ) { +#ifndef __COREDLL__ errno = EDOM; +#endif return 0; /* unspecified behavior */ } @@ -108,7 +112,9 @@ if ( toobig ) { +#ifndef __COREDLL__ errno = ERANGE; +#endif return minus ? INTMAX_MIN : INTMAX_MAX; } else Modified: trunk/cegcc/src/mingw/mingwex/wcstoumax.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wcstoumax.c 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/wcstoumax.c 2007-02-04 17:41:00 UTC (rev 880) @@ -12,7 +12,9 @@ */ #include <wchar.h> +#ifndef __COREDLL__ #include <errno.h> +#endif #include <ctype.h> #include <inttypes.h> @@ -44,7 +46,9 @@ if ( base < 0 || base == 1 || base > 36 ) { +#ifndef __COREDLL__ errno = EDOM; +#endif return 0; /* unspecified behavior */ } @@ -102,7 +106,9 @@ if ( toobig ) { +#ifndef __COREDLL__ errno = ERANGE; +#endif return UINTMAX_MAX; } else Modified: trunk/cegcc/src/mingw/mingwex/wctob.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wctob.c 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/wctob.c 2007-02-04 17:41:00 UTC (rev 880) @@ -2,7 +2,6 @@ #include <wchar.h> #include <stdio.h> #include <stdlib.h> -#include <errno.h> #define WIN32_LEAN_AND_MEAN #include <windows.h> Modified: trunk/cegcc/src/mingw/mingwex/wmemmove.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wmemmove.c 2007-02-04 14:28:12 UTC (rev 879) +++ trunk/cegcc/src/mingw/mingwex/wmemmove.c 2007-02-04 17:41:00 UTC (rev 880) @@ -10,7 +10,6 @@ */ -#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <wchar.h> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-02-04 14:28:21
|
Revision: 879 http://svn.sourceforge.net/cegcc/?rev=879&view=rev Author: dannybackx Date: 2007-02-04 06:28:12 -0800 (Sun, 04 Feb 2007) Log Message: ----------- Copy include files in subdirectories too. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2007-02-04 03:03:53 UTC (rev 878) +++ trunk/cegcc/src/ChangeLog 2007-02-04 14:28:12 UTC (rev 879) @@ -1,3 +1,10 @@ +2007-02-04 Danny Backx <dan...@us...> + + * build-mingw32ce.sh (copy_headers) : Copy includes from the sys + subdirectory too. + * build-cegcc.sh (copy_w32api_headers) : Copy includes from the GL, + directx, ddk subdirectories too. + 2007-02-01 Danny Backx <dan...@us...> * build-mingw32ce.sh, build-cegcc.sh : Add help text to explain Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2007-02-04 03:03:53 UTC (rev 878) +++ trunk/cegcc/src/build-cegcc.sh 2007-02-04 14:28:12 UTC (rev 879) @@ -75,8 +75,11 @@ echo "" echo "" - mkdir -p ${PREFIX}/${TARGET}/include/w32api - cp -rf ${BASE_DIRECTORY}/w32api/include/*.h ${PREFIX}/${TARGET}/include/w32api || exit 1 + mkdir -p ${PREFIX}/${TARGET}/include/w32api/{GL,directx,ddk} + cp -fp ${BASE_DIRECTORY}/w32api/include/*.h ${PREFIX}/${TARGET}/include/w32api || exit 1 + cp -fp ${BASE_DIRECTORY}/w32api/include/GL/*.h ${PREFIX}/${TARGET}/include/w32api/GL || exit 1 + cp -fp ${BASE_DIRECTORY}/w32api/include/directx/*.h ${PREFIX}/${TARGET}/include/w32api/directx || exit 1 + cp -fp ${BASE_DIRECTORY}/w32api/include/ddk/*.h ${PREFIX}/${TARGET}/include/w32api/ddk || exit 1 } function build_dummy_cegccdll() Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2007-02-04 03:03:53 UTC (rev 878) +++ trunk/cegcc/src/build-mingw32ce.sh 2007-02-04 14:28:12 UTC (rev 879) @@ -83,9 +83,10 @@ echo "" echo "" - mkdir -p ${PREFIX}/${TARGET}/include/ - cp -rfp ${BASE_DIRECTORY}/mingw/include/*.h ${PREFIX}/${TARGET}/include/ || exit 1 - cp -rfp ${BASE_DIRECTORY}/w32api/include/*.h ${PREFIX}/${TARGET}/include/ || exit 1 + mkdir -p ${PREFIX}/${TARGET}/include/sys + cp -fp ${BASE_DIRECTORY}/mingw/include/*.h ${PREFIX}/${TARGET}/include/ || exit 1 + cp -fp ${BASE_DIRECTORY}/mingw/include/sys/*.h ${PREFIX}/${TARGET}/include/sys || exit 1 + cp -fp ${BASE_DIRECTORY}/w32api/include/*.h ${PREFIX}/${TARGET}/include/ || exit 1 } function build_bootstrap_gcc() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-04 03:03:55
|
Revision: 878 http://svn.sourceforge.net/cegcc/?rev=878&view=rev Author: pedroalves Date: 2007-02-03 19:03:53 -0800 (Sat, 03 Feb 2007) Log Message: ----------- * include/complex.h (carg, cargf, cargl): Wrap in #ifdef __i386__. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/complex.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 00:41:48 UTC (rev 877) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 03:03:53 UTC (rev 878) @@ -1,5 +1,9 @@ 2007-02-04 Pedro Alves <ped...@po...> + * include/complex.h (carg, cargf, cargl): Wrap in #ifdef __i386__. + +2007-02-04 Pedro Alves <ped...@po...> + * include/_mingw.h (__CRT_INLINE): Expand the comment. 2007-02-04 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/mingw/include/complex.h =================================================================== --- trunk/cegcc/src/mingw/include/complex.h 2007-02-04 00:41:48 UTC (rev 877) +++ trunk/cegcc/src/mingw/include/complex.h 2007-02-04 03:03:53 UTC (rev 878) @@ -133,6 +133,7 @@ return __extension__ ~_Z; } +#ifdef __i386__ __CRT_INLINE double __MINGW_ATTRIB_CONST carg (double _Complex _Z) { double res; @@ -140,8 +141,8 @@ : "=t" (res) : "0" (__real__ _Z), "u" (__imag__ _Z) : "st(1)"); return res; } +#endif - /* float */ __CRT_INLINE float __MINGW_ATTRIB_CONST crealf (float _Complex _Z) { @@ -158,6 +159,7 @@ return __extension__ ~_Z; } +#ifdef __i386__ __CRT_INLINE float __MINGW_ATTRIB_CONST cargf (float _Complex _Z) { float res; @@ -165,6 +167,7 @@ : "=t" (res) : "0" (__real__ _Z), "u" (__imag__ _Z) : "st(1)"); return res; } +#endif /* long double */ __CRT_INLINE long double __MINGW_ATTRIB_CONST creall (long double _Complex _Z) @@ -182,6 +185,7 @@ return __extension__ ~_Z; } +#ifdef __i386__ __CRT_INLINE long double __MINGW_ATTRIB_CONST cargl (long double _Complex _Z) { long double res; @@ -189,6 +193,7 @@ : "=t" (res) : "0" (__real__ _Z), "u" (__imag__ _Z) : "st(1)"); return res; } +#endif #endif /* __GNUC__ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-04 00:41:49
|
Revision: 877 http://svn.sourceforge.net/cegcc/?rev=877&view=rev Author: pedroalves Date: 2007-02-03 16:41:48 -0800 (Sat, 03 Feb 2007) Log Message: ----------- Fix typo. Modified Paths: -------------- trunk/cegcc/src/mingw/include/_mingw.h Modified: trunk/cegcc/src/mingw/include/_mingw.h =================================================================== --- trunk/cegcc/src/mingw/include/_mingw.h 2007-02-04 00:35:41 UTC (rev 876) +++ trunk/cegcc/src/mingw/include/_mingw.h 2007-02-04 00:41:48 UTC (rev 877) @@ -113,7 +113,7 @@ or for -fno-inline. This is still problematic if the user tries to take the address of these functions. We will slowly add out-of-line copies as those cases are found. - Note: We can't use static inline here, as most of there functions + Note: We can't use static inline here, as most of these functions will be declared elsewhere with external linkage, and gcc will barf on that. */ #define __CRT_INLINE extern __inline__ __attribute__((__always_inline__)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-04 00:35:45
|
Revision: 876 http://svn.sourceforge.net/cegcc/?rev=876&view=rev Author: pedroalves Date: 2007-02-03 16:35:41 -0800 (Sat, 03 Feb 2007) Log Message: ----------- * include/_mingw.h (__CRT_INLINE): Expand the comment. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/_mingw.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 00:29:15 UTC (rev 875) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 00:35:41 UTC (rev 876) @@ -1,5 +1,9 @@ 2007-02-04 Pedro Alves <ped...@po...> + * include/_mingw.h (__CRT_INLINE): Expand the comment. + +2007-02-04 Pedro Alves <ped...@po...> + * mingwex/Makefile.in (MATHCE_DISTFILES): New variable. (MATHCE_OBJS): New variable. (MATHCE_FLAGS): New variable. Modified: trunk/cegcc/src/mingw/include/_mingw.h =================================================================== --- trunk/cegcc/src/mingw/include/_mingw.h 2007-02-04 00:29:15 UTC (rev 875) +++ trunk/cegcc/src/mingw/include/_mingw.h 2007-02-04 00:35:41 UTC (rev 876) @@ -110,7 +110,12 @@ #ifdef __COREDLL__ /* There isn't any out-of-line version of most of these functions in coredll.dll, so we need this for -O0, - or for -fno-inline. */ + or for -fno-inline. This is still problematic if the user + tries to take the address of these functions. We will slowly + add out-of-line copies as those cases are found. + Note: We can't use static inline here, as most of there functions + will be declared elsewhere with external linkage, and gcc will + barf on that. */ #define __CRT_INLINE extern __inline__ __attribute__((__always_inline__)) #else #define __CRT_INLINE extern __inline__ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-04 00:29:16
|
Revision: 875 http://svn.sourceforge.net/cegcc/?rev=875&view=rev Author: pedroalves Date: 2007-02-03 16:29:15 -0800 (Sat, 03 Feb 2007) Log Message: ----------- * mingwex/Makefile.in (MATHCE_DISTFILES): New variable. (MATHCE_OBJS): New variable. (MATHCE_FLAGS): New variable. (ALL_CFLAGS, ALL_CXXFLAGS): Use MATHCE_FLAGS. (LIB_OBJS): Add $(MATHCE_OBJS). (MATHDIR): New variable. (VPATH): Add $(MATHDIR). (dist): Handle $(MATHCE_DISTFILES). * mingwex/mathce: New dir. * mingwex/mathce/{e_acosf.c, e_acosh.c, e_acoshf.c, e_asinf.c, e_atan2f.c, e_atanh.c, e_coshf.c, e_expf.c, e_gamma_r.c, e_gammaf_r.c, e_lgamma_r.c, e_lgammaf_r.c, e_log10f.c, e_logf.c, e_powf.c, e_rem_pio2.c, e_rem_pio2f.c, e_remainder.c, e_remainderf.c, e_sinhf.c, fdlibm.h, ieee.h, k_cos.c, k_cosf.c, k_rem_pio2.c, k_rem_pio2f.c, k_sin.c, k_sinf.c, k_tan.c, k_tanf.c, llround.c, llroundf.c, lround.c, lroundf.c, math_private.h, s_asinh.c, s_asinhf.c, s_atanf.c, s_cbrt.c, s_cbrtf.c, s_copysignf.c, s_cosf.c, s_erf.c, s_erff.c, s_expm1.c, s_expm1f.c, s_frexpf.c, s_ilogb.c, s_ilogbf.c, s_isinf.c, s_isinff.c, s_ldexpf.c, s_llrint.c, s_llrintf.c, s_log1p.c, s_log1pf.c, s_logbf.c, s_lrint.c, s_lrintf.c, s_modff.c, s_nextafterf.c, s_rint.c, s_rintf.c, s_round.c, s_roundf.c, s_scalbn.c, s_scalbnf.c, s_signgam.c, s_sinf.c, s_tanf.c, s_tanh.c, s_tanhf.c, s_trunc.c, s_truncf.c, w_acosf.c, w_acosh.c, w_acoshf.c, w_asinf.c, w_atan2f.c, w_atanh.c, w_coshf.c, w_expf.c, w_hypotf.c, w_lgamma.c, w_lgammaf.c, w_log10f.c, w_log2.c, w_log2f.c, w_logf.c, w_powf.c, w_remainder.c, w_remainderf.c, w_sinhf.c, w_tgamma.c, w_tgammaf.c}: New files. * include/math.h (_matherr): Hide on __COREDLL__. Guard i387 only inline functions with __i386__. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/math.h trunk/cegcc/src/mingw/mingwex/Makefile.in Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/mathce/ trunk/cegcc/src/mingw/mingwex/mathce/e_acosf.c trunk/cegcc/src/mingw/mingwex/mathce/e_acosh.c trunk/cegcc/src/mingw/mingwex/mathce/e_acoshf.c trunk/cegcc/src/mingw/mingwex/mathce/e_asinf.c trunk/cegcc/src/mingw/mingwex/mathce/e_atan2f.c trunk/cegcc/src/mingw/mingwex/mathce/e_atanh.c trunk/cegcc/src/mingw/mingwex/mathce/e_coshf.c trunk/cegcc/src/mingw/mingwex/mathce/e_expf.c trunk/cegcc/src/mingw/mingwex/mathce/e_gamma_r.c trunk/cegcc/src/mingw/mingwex/mathce/e_gammaf_r.c trunk/cegcc/src/mingw/mingwex/mathce/e_lgamma_r.c trunk/cegcc/src/mingw/mingwex/mathce/e_lgammaf_r.c trunk/cegcc/src/mingw/mingwex/mathce/e_log10f.c trunk/cegcc/src/mingw/mingwex/mathce/e_logf.c trunk/cegcc/src/mingw/mingwex/mathce/e_powf.c trunk/cegcc/src/mingw/mingwex/mathce/e_rem_pio2.c trunk/cegcc/src/mingw/mingwex/mathce/e_rem_pio2f.c trunk/cegcc/src/mingw/mingwex/mathce/e_remainder.c trunk/cegcc/src/mingw/mingwex/mathce/e_remainderf.c trunk/cegcc/src/mingw/mingwex/mathce/e_sinhf.c trunk/cegcc/src/mingw/mingwex/mathce/fdlibm.h trunk/cegcc/src/mingw/mingwex/mathce/files.txt trunk/cegcc/src/mingw/mingwex/mathce/ieee.h trunk/cegcc/src/mingw/mingwex/mathce/k_cos.c trunk/cegcc/src/mingw/mingwex/mathce/k_cosf.c trunk/cegcc/src/mingw/mingwex/mathce/k_rem_pio2.c trunk/cegcc/src/mingw/mingwex/mathce/k_rem_pio2f.c trunk/cegcc/src/mingw/mingwex/mathce/k_sin.c trunk/cegcc/src/mingw/mingwex/mathce/k_sinf.c trunk/cegcc/src/mingw/mingwex/mathce/k_tan.c trunk/cegcc/src/mingw/mingwex/mathce/k_tanf.c trunk/cegcc/src/mingw/mingwex/mathce/llround.c trunk/cegcc/src/mingw/mingwex/mathce/llroundf.c trunk/cegcc/src/mingw/mingwex/mathce/lround.c trunk/cegcc/src/mingw/mingwex/mathce/lroundf.c trunk/cegcc/src/mingw/mingwex/mathce/math_private.h trunk/cegcc/src/mingw/mingwex/mathce/s_asinh.c trunk/cegcc/src/mingw/mingwex/mathce/s_asinhf.c trunk/cegcc/src/mingw/mingwex/mathce/s_atanf.c trunk/cegcc/src/mingw/mingwex/mathce/s_cbrt.c trunk/cegcc/src/mingw/mingwex/mathce/s_cbrtf.c trunk/cegcc/src/mingw/mingwex/mathce/s_copysignf.c trunk/cegcc/src/mingw/mingwex/mathce/s_cosf.c trunk/cegcc/src/mingw/mingwex/mathce/s_erf.c trunk/cegcc/src/mingw/mingwex/mathce/s_erff.c trunk/cegcc/src/mingw/mingwex/mathce/s_expm1.c trunk/cegcc/src/mingw/mingwex/mathce/s_expm1f.c trunk/cegcc/src/mingw/mingwex/mathce/s_frexpf.c trunk/cegcc/src/mingw/mingwex/mathce/s_ilogb.c trunk/cegcc/src/mingw/mingwex/mathce/s_ilogbf.c trunk/cegcc/src/mingw/mingwex/mathce/s_isinf.c trunk/cegcc/src/mingw/mingwex/mathce/s_isinff.c trunk/cegcc/src/mingw/mingwex/mathce/s_ldexpf.c trunk/cegcc/src/mingw/mingwex/mathce/s_llrint.c trunk/cegcc/src/mingw/mingwex/mathce/s_llrintf.c trunk/cegcc/src/mingw/mingwex/mathce/s_log1p.c trunk/cegcc/src/mingw/mingwex/mathce/s_log1pf.c trunk/cegcc/src/mingw/mingwex/mathce/s_logbf.c trunk/cegcc/src/mingw/mingwex/mathce/s_lrint.c trunk/cegcc/src/mingw/mingwex/mathce/s_lrintf.c trunk/cegcc/src/mingw/mingwex/mathce/s_modff.c trunk/cegcc/src/mingw/mingwex/mathce/s_nextafterf.c trunk/cegcc/src/mingw/mingwex/mathce/s_rint.c trunk/cegcc/src/mingw/mingwex/mathce/s_rintf.c trunk/cegcc/src/mingw/mingwex/mathce/s_round.c trunk/cegcc/src/mingw/mingwex/mathce/s_roundf.c trunk/cegcc/src/mingw/mingwex/mathce/s_scalbn.c trunk/cegcc/src/mingw/mingwex/mathce/s_scalbnf.c trunk/cegcc/src/mingw/mingwex/mathce/s_signgam.c trunk/cegcc/src/mingw/mingwex/mathce/s_sinf.c trunk/cegcc/src/mingw/mingwex/mathce/s_tanf.c trunk/cegcc/src/mingw/mingwex/mathce/s_tanh.c trunk/cegcc/src/mingw/mingwex/mathce/s_tanhf.c trunk/cegcc/src/mingw/mingwex/mathce/s_trunc.c trunk/cegcc/src/mingw/mingwex/mathce/s_truncf.c trunk/cegcc/src/mingw/mingwex/mathce/w_acosf.c trunk/cegcc/src/mingw/mingwex/mathce/w_acosh.c trunk/cegcc/src/mingw/mingwex/mathce/w_acoshf.c trunk/cegcc/src/mingw/mingwex/mathce/w_asinf.c trunk/cegcc/src/mingw/mingwex/mathce/w_atan2f.c trunk/cegcc/src/mingw/mingwex/mathce/w_atanh.c trunk/cegcc/src/mingw/mingwex/mathce/w_coshf.c trunk/cegcc/src/mingw/mingwex/mathce/w_expf.c trunk/cegcc/src/mingw/mingwex/mathce/w_hypotf.c trunk/cegcc/src/mingw/mingwex/mathce/w_lgamma.c trunk/cegcc/src/mingw/mingwex/mathce/w_lgammaf.c trunk/cegcc/src/mingw/mingwex/mathce/w_log10f.c trunk/cegcc/src/mingw/mingwex/mathce/w_log2.c trunk/cegcc/src/mingw/mingwex/mathce/w_log2f.c trunk/cegcc/src/mingw/mingwex/mathce/w_logf.c trunk/cegcc/src/mingw/mingwex/mathce/w_powf.c trunk/cegcc/src/mingw/mingwex/mathce/w_remainder.c trunk/cegcc/src/mingw/mingwex/mathce/w_remainderf.c trunk/cegcc/src/mingw/mingwex/mathce/w_sinhf.c trunk/cegcc/src/mingw/mingwex/mathce/w_tgamma.c trunk/cegcc/src/mingw/mingwex/mathce/w_tgammaf.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-03 23:44:45 UTC (rev 874) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-04 00:29:15 UTC (rev 875) @@ -1,3 +1,35 @@ +2007-02-04 Pedro Alves <ped...@po...> + + * mingwex/Makefile.in (MATHCE_DISTFILES): New variable. + (MATHCE_OBJS): New variable. + (MATHCE_FLAGS): New variable. + (ALL_CFLAGS, ALL_CXXFLAGS): Use MATHCE_FLAGS. + (LIB_OBJS): Add $(MATHCE_OBJS). + (MATHDIR): New variable. + (VPATH): Add $(MATHDIR). + (dist): Handle $(MATHCE_DISTFILES). + * mingwex/mathce: New dir. + * mingwex/mathce/{e_acosf.c, e_acosh.c, e_acoshf.c, e_asinf.c, + e_atan2f.c, e_atanh.c, e_coshf.c, e_expf.c, e_gamma_r.c, + e_gammaf_r.c, e_lgamma_r.c, e_lgammaf_r.c, e_log10f.c, e_logf.c, + e_powf.c, e_rem_pio2.c, e_rem_pio2f.c, e_remainder.c, + e_remainderf.c, e_sinhf.c, fdlibm.h, ieee.h, k_cos.c, k_cosf.c, + k_rem_pio2.c, k_rem_pio2f.c, k_sin.c, k_sinf.c, k_tan.c, k_tanf.c, + llround.c, llroundf.c, lround.c, lroundf.c, math_private.h, + s_asinh.c, s_asinhf.c, s_atanf.c, s_cbrt.c, s_cbrtf.c, + s_copysignf.c, s_cosf.c, s_erf.c, s_erff.c, s_expm1.c, s_expm1f.c, + s_frexpf.c, s_ilogb.c, s_ilogbf.c, s_isinf.c, s_isinff.c, s_ldexpf.c, + s_llrint.c, s_llrintf.c, s_log1p.c, s_log1pf.c, s_logbf.c, s_lrint.c, + s_lrintf.c, s_modff.c, s_nextafterf.c, s_rint.c, s_rintf.c, + s_round.c, s_roundf.c, s_scalbn.c, s_scalbnf.c, s_signgam.c, + s_sinf.c, s_tanf.c, s_tanh.c, s_tanhf.c, s_trunc.c, s_truncf.c, + w_acosf.c, w_acosh.c, w_acoshf.c, w_asinf.c, w_atan2f.c, w_atanh.c, + w_coshf.c, w_expf.c, w_hypotf.c, w_lgamma.c, w_lgammaf.c, w_log10f.c, + w_log2.c, w_log2f.c, w_logf.c, w_powf.c, w_remainder.c, + w_remainderf.c, w_sinhf.c, w_tgamma.c, w_tgammaf.c}: New files. + * include/math.h (_matherr): Hide on __COREDLL__. + Guard i387 only inline functions with __i386__. + 2007-02-03 Pedro Alves <ped...@po...> * dllmain.c: Fix typo. Modified: trunk/cegcc/src/mingw/include/math.h =================================================================== --- trunk/cegcc/src/mingw/include/math.h 2007-02-03 23:44:45 UTC (rev 874) +++ trunk/cegcc/src/mingw/include/math.h 2007-02-04 00:29:15 UTC (rev 875) @@ -222,7 +222,9 @@ _CRTIMP double __cdecl _y0 (double); _CRTIMP double __cdecl _y1 (double); _CRTIMP double __cdecl _yn (int, double); +#ifndef __COREDLL__ _CRTIMP int __cdecl _matherr (struct _exception *); +#endif /* These are also declared in Mingw float.h; needed here as well to work around GCC build issues. */ @@ -305,6 +307,9 @@ #endif /* __MINGW_GNUC_PREREQ(3, 3) */ /* 7.12.3.1 */ + +#ifdef __i386__ + /* Return values for fpclassify. These are based on Intel x87 fpu condition codes @@ -345,10 +350,18 @@ /* 7.12.3.3 */ #define isinf(x) (fpclassify(x) == FP_INFINITE) +#else + +extern int isfinite (double x); +extern int isinf (double x); + +#endif + /* 7.12.3.4 */ -/* We don't need to worry about trucation here: +/* We don't need to worry about truncation here: A NaN stays a NaN. */ +#ifdef __i386__ __CRT_INLINE int __cdecl __isnan (double _x) { unsigned short sw; @@ -381,9 +394,15 @@ : sizeof (x) == sizeof (double) ? __isnan (x) \ : __isnanl (x)) +#else +extern int isnan (double x); +extern int isnanf (float x); +#endif + /* 7.12.3.5 */ #define isnormal(x) (fpclassify(x) == FP_NORMAL) +#ifdef __i386__ /* 7.12.3.6 The signbit macro */ __CRT_INLINE int __cdecl __signbit (double x) { unsigned short stw; @@ -406,6 +425,7 @@ #define signbit(x) (sizeof (x) == sizeof (float) ? __signbitf (x) \ : sizeof (x) == sizeof (double) ? __signbit (x) \ : __signbitl (x)) +#endif /* 7.12.4 Trigonometric functions: Double in C89 */ extern float __cdecl sinf (float); @@ -517,7 +537,7 @@ /* Inline versions. GCC-4.0+ can do a better fast-math optimization with __builtins. */ -#if !(__MINGW_GNUC_PREREQ (4, 0) && defined __FAST_MATH__ ) +#if !(__MINGW_GNUC_PREREQ (4, 0) && defined __FAST_MATH__ ) && defined __i386__ __CRT_INLINE double __cdecl logb (double x) { double res; @@ -541,7 +561,7 @@ "fstp %%st" : "=t" (res) : "0" (x)); return res; } -#endif /* !defined __FAST_MATH__ || !__MINGW_GNUC_PREREQ (4, 0) */ +#endif /* !defined __FAST_MATH__ || !__MINGW_GNUC_PREREQ (4, 0) && __i386__ */ /* 7.12.6.12 Double in C89 */ extern float __cdecl modff (float, float*); @@ -631,7 +651,7 @@ /* Inline versions of above. GCC 4.0+ can do a better fast-math job with __builtins. */ -#if !(__MINGW_GNUC_PREREQ (4, 0) && defined __FAST_MATH__ ) +#if !(__MINGW_GNUC_PREREQ (4, 0) && defined __FAST_MATH__ ) && defined __i386__ __CRT_INLINE double __cdecl rint (double x) { double retval; @@ -700,7 +720,7 @@ ("fistpll %0" : "=m" (retval) : "t" (x) : "st"); return retval; } -#endif /* !__FAST_MATH__ || !__MINGW_GNUC_PREREQ (4,0) */ +#endif /* !__FAST_MATH__ || !__MINGW_GNUC_PREREQ (4,0) && __i386__ */ /* 7.12.9.6 */ /* round away from zero, regardless of fpu control word settings */ Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-03 23:44:45 UTC (rev 874) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-04 00:29:15 UTC (rev 875) @@ -4,7 +4,6 @@ # This makefile requires GNU make. srcdir = @srcdir@ -VPATH = $(srcdir):$(srcdir)/math:$(srcdir)/stdio:$(srcdir)/complex:$(srcdir)/wince objdir = . target_alias = @target_alias@ @@ -89,6 +88,23 @@ close.c isalnum.c isalpha.c iscntrl.c isgraph.c islower.c isprint.c \ ispunct.c isspace.c isupper.c isxdigit.c _tolower.c _toupper.c +MATHCE_DISTFILES = \ + e_acosf.c e_acosh.c e_acoshf.c e_asinf.c e_atan2f.c e_atanh.c e_coshf.c \ + e_expf.c e_gamma_r.c e_gammaf_r.c e_lgamma_r.c e_lgammaf_r.c e_log10f.c \ + e_logf.c e_powf.c e_rem_pio2.c e_rem_pio2f.c e_remainder.c \ + e_remainderf.c e_sinhf.c k_cos.c k_cosf.c k_rem_pio2.c k_rem_pio2f.c \ + k_sin.c k_sinf.c k_tan.c k_tanf.c llround.c llroundf.c \ + lround.c lroundf.c s_asinh.c s_asinhf.c s_atanf.c s_cbrt.c s_cbrtf.c \ + s_copysignf.c s_cosf.c s_erf.c s_erff.c s_expm1.c s_expm1f.c s_frexpf.c \ + s_ilogb.c s_ilogbf.c s_isinf.c s_isinff.c s_ldexpf.c s_llrint.c \ + s_llrintf.c s_log1p.c s_log1pf.c s_logbf.c s_lrint.c s_lrintf.c \ + s_modff.c s_nextafterf.c s_rint.c s_rintf.c s_round.c s_roundf.c \ + s_scalbn.c s_scalbnf.c s_signgam.c s_sinf.c s_tanf.c s_tanh.c s_tanhf.c \ + s_trunc.c s_truncf.c w_acosf.c w_acosh.c w_acoshf.c w_asinf.c w_atan2f.c \ + w_atanh.c w_coshf.c w_expf.c w_hypotf.c w_lgamma.c w_lgammaf.c w_log2.c w_log2f.c \ + w_log10f.c w_logf.c w_powf.c w_remainder.c w_remainderf.c w_sinhf.c \ + w_tgamma.c w_tgammaf.c + CC = @CC@ # FIXME: Which is it, CC or CC_FOR_TARGET? CC_FOR_TARGET = $(CC) @@ -104,8 +120,8 @@ INCLUDES = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../include \ -nostdinc \ -iwithprefixbefore include -ALL_CFLAGS = $(CFLAGS) $(OPTFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN) -ALL_CXXFLAGS = $(CXXFLAGS) $(OPTFLAGS) $(W32API_INCLUDE) $(INCLUDES) -nostdinc++ $(MNO_CYGWIN) +ALL_CFLAGS = $(CFLAGS) $(OPTFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN) $(MATHCE_FLAGS) +ALL_CXXFLAGS = $(CXXFLAGS) $(OPTFLAGS) $(W32API_INCLUDE) $(INCLUDES) -nostdinc++ $(MNO_CYGWIN) $(MATHCE_FLAGS) AS = @AS@ AR = @AR@ @@ -190,16 +206,37 @@ tempnam.o unlink.o wcsftime.o fdopen.o read.o write.o open.o lseek.o \ close.o isalnum.o isalpha.o iscntrl.o isgraph.o islower.o isprint.o \ ispunct.o isspace.o isupper.o isxdigit.o _tolower.o _toupper.o +MATHCE_OBJS = \ + e_acosf.o e_acosh.o e_acoshf.o e_asinf.o e_atan2f.o e_atanh.o e_coshf.o \ + e_expf.o e_gamma_r.o e_gammaf_r.o e_lgamma_r.o e_lgammaf_r.o e_log10f.o \ + e_logf.o e_powf.o e_rem_pio2.o e_rem_pio2f.o e_remainder.o \ + e_remainderf.o e_sinhf.o k_cos.o k_cosf.o k_rem_pio2.o k_rem_pio2f.o \ + k_sin.o k_sinf.o k_tan.o k_tanf.o llround.o llroundf.o \ + lround.o lroundf.o s_asinh.o s_asinhf.o s_atanf.o s_cbrt.o s_cbrtf.o \ + s_copysignf.o s_cosf.o s_erf.o s_erff.o s_expm1.o s_expm1f.o s_frexpf.o \ + s_ilogb.o s_ilogbf.o s_isinf.o s_isinff.o s_ldexpf.o s_llrint.o \ + s_llrintf.o s_log1p.o s_log1pf.o s_logbf.o s_lrint.o s_lrintf.o \ + s_modff.o s_nextafterf.o s_rint.o s_rintf.o s_round.o s_roundf.o \ + s_scalbn.o s_scalbnf.o s_signgam.o s_sinf.o s_tanf.o s_tanh.o s_tanhf.o \ + s_trunc.o s_truncf.o w_acosf.o w_acosh.o w_acoshf.o w_asinf.o w_atan2f.o \ + w_atanh.o w_coshf.o w_expf.o w_hypotf.o w_lgamma.o w_lgammaf.o w_log2.o w_log2f.o \ + w_log10f.o w_logf.o w_powf.o w_remainder.o w_remainderf.o w_sinhf.o \ + w_tgamma.o w_tgammaf.o - +MATHCE_FLAGS= ifneq (,$(findstring wince,$(target_alias))) -LIB_OBJS = $(WINCE_OBJS) +LIB_OBJS = $(WINCE_OBJS) $(MATHCE_OBJS) +MATHCE_FLAGS=-D_IEEE_LIBM +MATHDIR=mathce else LIB_OBJS = $(Q8_OBJS) $(CTYPE_OBJS) $(STDLIB_OBJS) $(STDLIB_STUB_OBJS) \ $(STDIO_OBJS) $(MATH_OBJS) $(FENV_OBJS) \ $(POSIX_OBJS) $(REPLACE_OBJS) $(COMPLEX_OBJS) +MATHDIR=math endif +VPATH = $(srcdir):$(srcdir)/stdio:$(srcdir)/complex:$(srcdir)/wince:$(srcdir)/$(MATHDIR) + LIBS = $(LIBMINGWEX_A) DLLS = @@ -282,4 +319,8 @@ @for i in $(WINCE_DISTFILES); do\ cp -p $(srcdir)/wince/$$i $(distdir)/mingwex/wince/$$i ; \ done - + mkdir $(distdir)/mingwex/mathce + chmod 755 $(distdir)/mingwex/mathce + @for i in $(MATHCE_DISTFILES); do\ + cp -p $(srcdir)/mathce/$$i $(distdir)/mingwex/mathce/$$i ; \ + done Added: trunk/cegcc/src/mingw/mingwex/mathce/e_acosf.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_acosf.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_acosf.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,85 @@ +/* e_acosf.c -- float version of e_acos.c. + * Conversion to float by Ian Lance Taylor, Cygnus Support, ia...@cy.... + */ + +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_acosf.c,v 1.5 1995/05/12 04:57:16 jtc Exp $"; +#endif + +#include "math.h" +#include "math_private.h" + +static const float +one = 1.0000000000e+00, /* 0x3F800000 */ +pi = 3.1415925026e+00, /* 0x40490fda */ +pio2_hi = 1.5707962513e+00, /* 0x3fc90fda */ +pio2_lo = 7.5497894159e-08, /* 0x33a22168 */ +pS0 = 1.6666667163e-01, /* 0x3e2aaaab */ +pS1 = -3.2556581497e-01, /* 0xbea6b090 */ +pS2 = 2.0121252537e-01, /* 0x3e4e0aa8 */ +pS3 = -4.0055535734e-02, /* 0xbd241146 */ +pS4 = 7.9153501429e-04, /* 0x3a4f7f04 */ +pS5 = 3.4793309169e-05, /* 0x3811ef08 */ +qS1 = -2.4033949375e+00, /* 0xc019d139 */ +qS2 = 2.0209457874e+00, /* 0x4001572d */ +qS3 = -6.8828397989e-01, /* 0xbf303361 */ +qS4 = 7.7038154006e-02; /* 0x3d9dc62e */ + +#ifdef __MINGW32CE__ +#define __ieee754_sqrtf sqrtf +#endif + +float +__ieee754_acosf(float x) +{ + float z,p,q,r,w,s,c,df; + int32_t hx,ix; + GET_FLOAT_WORD(hx,x); + ix = hx&0x7fffffff; + if(ix==0x3f800000) { /* |x|==1 */ + if(hx>0) return 0.0; /* acos(1) = 0 */ + else return pi+(float)2.0*pio2_lo; /* acos(-1)= pi */ + } else if(ix>0x3f800000) { /* |x| >= 1 */ + return (x-x)/(x-x); /* acos(|x|>1) is NaN */ + } + if(ix<0x3f000000) { /* |x| < 0.5 */ + if(ix<=0x23000000) return pio2_hi+pio2_lo;/*if|x|<2**-57*/ + z = x*x; + p = z*(pS0+z*(pS1+z*(pS2+z*(pS3+z*(pS4+z*pS5))))); + q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); + r = p/q; + return pio2_hi - (x - (pio2_lo-x*r)); + } else if (hx<0) { /* x < -0.5 */ + z = (one+x)*(float)0.5; + p = z*(pS0+z*(pS1+z*(pS2+z*(pS3+z*(pS4+z*pS5))))); + q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); + s = __ieee754_sqrtf(z); + r = p/q; + w = r*s-pio2_lo; + return pi - (float)2.0*(s+w); + } else { /* x > 0.5 */ + int32_t idf; + z = (one-x)*(float)0.5; + s = __ieee754_sqrtf(z); + df = s; + GET_FLOAT_WORD(idf,df); + SET_FLOAT_WORD(df,idf&0xfffff000); + c = (z-df*df)/(s+df); + p = z*(pS0+z*(pS1+z*(pS2+z*(pS3+z*(pS4+z*pS5))))); + q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); + r = p/q; + w = r*s+c; + return (float)2.0*(df+w); + } +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_acosf.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_acosh.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_acosh.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_acosh.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,66 @@ +/* @(#)e_acosh.c 5.1 93/09/24 */ +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_acosh.c,v 1.9 1995/05/12 04:57:18 jtc Exp $"; +#endif + +/* __ieee754_acosh(x) + * Method : + * Based on + * acosh(x) = log [ x + sqrt(x*x-1) ] + * we have + * acosh(x) := log(x)+ln2, if x is large; else + * acosh(x) := log(2x-1/(sqrt(x*x-1)+x)) if x>2; else + * acosh(x) := log1p(t+sqrt(2.0*t+t*t)); where t=x-1. + * + * Special cases: + * acosh(x) is NaN with signal if x<1. + * acosh(NaN) is NaN without signal. + */ + +#include "math.h" +#include "math_private.h" + +static const double +one = 1.0, +ln2 = 6.93147180559945286227e-01; /* 0x3FE62E42, 0xFEFA39EF */ + +#ifdef __MINGW32CE__ +#define __ieee754_log log +#define __ieee754_sqrt sqrt +#endif + +double +__ieee754_acosh(double x) +{ + double t; + int32_t hx; + u_int32_t lx; + EXTRACT_WORDS(hx,lx,x); + if(hx<0x3ff00000) { /* x < 1 */ + return (x-x)/(x-x); + } else if(hx >=0x41b00000) { /* x > 2**28 */ + if(hx >=0x7ff00000) { /* x is inf of NaN */ + return x+x; + } else + return __ieee754_log(x)+ln2; /* acosh(huge)=log(2x) */ + } else if(((hx-0x3ff00000)|lx)==0) { + return 0.0; /* acosh(1) = 0 */ + } else if (hx > 0x40000000) { /* 2**28 > x > 2 */ + t=x*x; + return __ieee754_log(2.0*x-one/(x+__ieee754_sqrt(t-one))); + } else { /* 1<x<2 */ + t = x-one; + return log1p(t+sqrt(2.0*t+t*t)); + } +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_acosh.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_acoshf.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_acoshf.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_acoshf.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,53 @@ +/* e_acoshf.c -- float version of e_acosh.c. + * Conversion to float by Ian Lance Taylor, Cygnus Support, ia...@cy.... + */ + +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_acoshf.c,v 1.5 1995/05/12 04:57:20 jtc Exp $"; +#endif + +#include "math.h" +#include "math_private.h" + +static const float +one = 1.0, +ln2 = 6.9314718246e-01; /* 0x3f317218 */ + +#ifdef __MINGW32CE__ +#define __ieee754_sqrtf sqrtf +#endif + +float +__ieee754_acoshf(float x) +{ + float t; + int32_t hx; + GET_FLOAT_WORD(hx,x); + if(hx<0x3f800000) { /* x < 1 */ + return (x-x)/(x-x); + } else if(hx >=0x4d800000) { /* x > 2**28 */ + if(hx >=0x7f800000) { /* x is inf of NaN */ + return x+x; + } else + return __ieee754_logf(x)+ln2; /* acosh(huge)=log(2x) */ + } else if (hx==0x3f800000) { + return 0.0; /* acosh(1) = 0 */ + } else if (hx > 0x40000000) { /* 2**28 > x > 2 */ + t=x*x; + return __ieee754_logf((float)2.0*x-one/(x+__ieee754_sqrtf(t-one))); + } else { /* 1<x<2 */ + t = x-one; + return log1pf(t+sqrtf((float)2.0*t+t*t)); + } +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_acoshf.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_asinf.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_asinf.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_asinf.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,88 @@ +/* e_asinf.c -- float version of e_asin.c. + * Conversion to float by Ian Lance Taylor, Cygnus Support, ia...@cy.... + */ + +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_asinf.c,v 1.5 1995/05/12 04:57:25 jtc Exp $"; +#endif + +#include "math.h" +#include "math_private.h" + +static const float +one = 1.0000000000e+00, /* 0x3F800000 */ +huge = 1.000e+30, +pio2_hi = 1.5707962513e+00, /* 0x3fc90fda */ +pio2_lo = 7.5497894159e-08, /* 0x33a22168 */ +pio4_hi = 7.8539818525e-01, /* 0x3f490fdb */ + /* coefficient for R(x^2) */ +pS0 = 1.6666667163e-01, /* 0x3e2aaaab */ +pS1 = -3.2556581497e-01, /* 0xbea6b090 */ +pS2 = 2.0121252537e-01, /* 0x3e4e0aa8 */ +pS3 = -4.0055535734e-02, /* 0xbd241146 */ +pS4 = 7.9153501429e-04, /* 0x3a4f7f04 */ +pS5 = 3.4793309169e-05, /* 0x3811ef08 */ +qS1 = -2.4033949375e+00, /* 0xc019d139 */ +qS2 = 2.0209457874e+00, /* 0x4001572d */ +qS3 = -6.8828397989e-01, /* 0xbf303361 */ +qS4 = 7.7038154006e-02; /* 0x3d9dc62e */ + +#ifdef __MINGW32CE__ +#define __ieee754_sqrtf sqrtf +#endif + +float +__ieee754_asinf(float x) +{ + float t,w,p,q,c,r,s; + int32_t hx,ix; + GET_FLOAT_WORD(hx,x); + ix = hx&0x7fffffff; + if(ix==0x3f800000) { + /* asin(1)=+-pi/2 with inexact */ + return x*pio2_hi+x*pio2_lo; + } else if(ix> 0x3f800000) { /* |x|>= 1 */ + return (x-x)/(x-x); /* asin(|x|>1) is NaN */ + } else if (ix<0x3f000000) { /* |x|<0.5 */ + if(ix<0x32000000) { /* if |x| < 2**-27 */ + if(huge+x>one) return x;/* return x with inexact if x!=0*/ + } else + t = x*x; + p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); + q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); + w = p/q; + return x+x*w; + } + /* 1> |x|>= 0.5 */ + w = one-fabsf(x); + t = w*(float)0.5; + p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); + q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); + s = __ieee754_sqrtf(t); + if(ix>=0x3F79999A) { /* if |x| > 0.975 */ + w = p/q; + t = pio2_hi-((float)2.0*(s+s*w)-pio2_lo); + } else { + int32_t iw; + w = s; + GET_FLOAT_WORD(iw,w); + SET_FLOAT_WORD(w,iw&0xfffff000); + c = (t-w*w)/(s+w); + r = p/q; + p = (float)2.0*s*r-(pio2_lo-(float)2.0*c); + q = pio4_hi-(float)2.0*w; + t = pio4_hi-(p-q); + } + if(hx>0) return t; else return -t; +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_asinf.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_atan2f.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_atan2f.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_atan2f.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,97 @@ +/* e_atan2f.c -- float version of e_atan2.c. + * Conversion to float by Ian Lance Taylor, Cygnus Support, ia...@cy.... + */ + +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_atan2f.c,v 1.4 1995/05/10 20:44:53 jtc Exp $"; +#endif + +#include "math.h" +#include "math_private.h" + +static const float +tiny = 1.0e-30, +zero = 0.0, +pi_o_4 = 7.8539818525e-01, /* 0x3f490fdb */ +pi_o_2 = 1.5707963705e+00, /* 0x3fc90fdb */ +pi = 3.1415925026e+00, /* 0x40490fda */ +pi_lo = 1.5099578832e-07; /* 0x34222168 */ + +float +__ieee754_atan2f(float y, float x) +{ + float z; + int32_t k,m,hx,hy,ix,iy; + + GET_FLOAT_WORD(hx,x); + ix = hx&0x7fffffff; + GET_FLOAT_WORD(hy,y); + iy = hy&0x7fffffff; + if((ix>0x7f800000)|| + (iy>0x7f800000)) /* x or y is NaN */ + return x+y; + if(hx==0x3f800000) return atanf(y); /* x=1.0 */ + m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ + + /* when y = 0 */ + if(iy==0) { + switch(m) { + case 0: + case 1: return y; /* atan(+-0,+anything)=+-0 */ + case 2: return pi+tiny;/* atan(+0,-anything) = pi */ + case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if(ix==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; + + /* when x is INF */ + if(ix==0x7f800000) { + if(iy==0x7f800000) { + switch(m) { + case 0: return pi_o_4+tiny;/* atan(+INF,+INF) */ + case 1: return -pi_o_4-tiny;/* atan(-INF,+INF) */ + case 2: return (float)3.0*pi_o_4+tiny;/*atan(+INF,-INF)*/ + case 3: return (float)-3.0*pi_o_4-tiny;/*atan(-INF,-INF)*/ + } + } else { + switch(m) { + case 0: return zero ; /* atan(+...,+INF) */ + case 1: return -zero ; /* atan(-...,+INF) */ + case 2: return pi+tiny ; /* atan(+...,-INF) */ + case 3: return -pi-tiny ; /* atan(-...,-INF) */ + } + } + } + /* when y is INF */ + if(iy==0x7f800000) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; + + /* compute y/x */ + k = (iy-ix)>>23; + if(k > 60) z=pi_o_2+(float)0.5*pi_lo; /* |y/x| > 2**60 */ + else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */ + else z=atanf(fabsf(y/x)); /* safe to do y/x */ + switch (m) { + case 0: return z ; /* atan(+,+) */ + case 1: { + u_int32_t zh; + GET_FLOAT_WORD(zh,z); + SET_FLOAT_WORD(z,zh ^ 0x80000000); + } + return z ; /* atan(-,+) */ + case 2: return pi-(z-pi_lo);/* atan(+,-) */ + default: /* case 3 */ + return (z-pi_lo)-pi;/* atan(-,-) */ + } +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_atan2f.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_atanh.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_atanh.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_atanh.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,61 @@ +/* @(#)e_atanh.c 5.1 93/09/24 */ +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_atanh.c,v 1.8 1995/05/10 20:44:55 jtc Exp $"; +#endif + +/* __ieee754_atanh(x) + * Method : + * 1.Reduced x to positive by atanh(-x) = -atanh(x) + * 2.For x>=0.5 + * 1 2x x + * atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------) + * 2 1 - x 1 - x + * + * For x<0.5 + * atanh(x) = 0.5*log1p(2x+2x*x/(1-x)) + * + * Special cases: + * atanh(x) is NaN if |x| > 1 with signal; + * atanh(NaN) is that NaN with no signal; + * atanh(+-1) is +-INF with signal. + * + */ + +#include "math.h" +#include "math_private.h" + +static const double one = 1.0, huge = 1e300; +static const double zero = 0.0; + +double +__ieee754_atanh(double x) +{ + double t; + int32_t hx,ix; + u_int32_t lx; + EXTRACT_WORDS(hx,lx,x); + ix = hx&0x7fffffff; + if ((ix|((lx|(-lx))>>31))>0x3ff00000) /* |x|>1 */ + return (x-x)/(x-x); + if(ix==0x3ff00000) + return x/zero; + if(ix<0x3e300000&&(huge+x)>zero) return x; /* x<2**-28 */ + SET_HIGH_WORD(x,ix); + if(ix<0x3fe00000) { /* x < 0.5 */ + t = x+x; + t = 0.5*log1p(t+t*x/(one-x)); + } else + t = 0.5*log1p((x+x)/(one-x)); + if(hx>=0) return t; else return -t; +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_atanh.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_coshf.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_coshf.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_coshf.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,64 @@ +/* e_coshf.c -- float version of e_cosh.c. + * Conversion to float by Ian Lance Taylor, Cygnus Support, ia...@cy.... + */ + +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_coshf.c,v 1.5 1995/05/10 20:45:01 jtc Exp $"; +#endif + +#include "math.h" +#include "math_private.h" + +static const volatile float huge = 1.0e30; +static const float one = 1.0, half=0.5; + +float +__ieee754_coshf(float x) +{ + float t,w; + int32_t ix; + + GET_FLOAT_WORD(ix,x); + ix &= 0x7fffffff; + + /* x is INF or NaN */ + if(ix>=0x7f800000) return x*x; + + /* |x| in [0,0.5*ln2], return 1+expm1(|x|)^2/(2*exp(|x|)) */ + if(ix<0x3eb17218) { + t = expm1f(fabsf(x)); + w = one+t; + if (ix<0x24000000) return w; /* cosh(tiny) = 1 */ + return one+(t*t)/(w+w); + } + + /* |x| in [0.5*ln2,22], return (exp(|x|)+1/exp(|x|)/2; */ + if (ix < 0x41b00000) { + t = __ieee754_expf(fabsf(x)); + return half*t+half/t; + } + + /* |x| in [22, log(maxdouble)] return half*exp(|x|) */ + if (ix < 0x42b17180) return half*__ieee754_expf(fabsf(x)); + + /* |x| in [log(maxdouble), overflowthresold] */ + if (ix<=0x42b2d4fc) { + w = __ieee754_expf(half*fabsf(x)); + t = half*w; + return t*w; + } + + /* |x| > overflowthresold, cosh(x) overflow */ + return huge*huge; +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_coshf.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_expf.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_expf.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_expf.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,96 @@ +/* e_expf.c -- float version of e_exp.c. + * Conversion to float by Ian Lance Taylor, Cygnus Support, ia...@cy.... + */ + +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_expf.c,v 1.5 1995/05/10 20:45:05 jtc Exp $"; +#endif + +#include "math.h" +#include "math_private.h" + +static const volatile float huge = 1.0e+30; + +static const float +one = 1.0, +halF[2] = {0.5,-0.5,}, +twom100 = 7.8886090522e-31, /* 2**-100=0x0d800000 */ +o_threshold= 8.8721679688e+01, /* 0x42b17180 */ +u_threshold= -1.0397208405e+02, /* 0xc2cff1b5 */ +ln2HI[2] ={ 6.9313812256e-01, /* 0x3f317180 */ + -6.9313812256e-01,}, /* 0xbf317180 */ +ln2LO[2] ={ 9.0580006145e-06, /* 0x3717f7d1 */ + -9.0580006145e-06,}, /* 0xb717f7d1 */ +invln2 = 1.4426950216e+00, /* 0x3fb8aa3b */ +P1 = 1.6666667163e-01, /* 0x3e2aaaab */ +P2 = -2.7777778450e-03, /* 0xbb360b61 */ +P3 = 6.6137559770e-05, /* 0x388ab355 */ +P4 = -1.6533901999e-06, /* 0xb5ddea0e */ +P5 = 4.1381369442e-08; /* 0x3331bb4c */ + +float +__ieee754_expf(float x) /* default IEEE double exp */ +{ + float y,hi,lo,c,t; + int32_t k,xsb; + u_int32_t hx; + + GET_FLOAT_WORD(hx,x); + xsb = (hx>>31)&1; /* sign bit of x */ + hx &= 0x7fffffff; /* high word of |x| */ + + /* filter out non-finite argument */ + if(hx >= 0x42b17218) { /* if |x|>=88.721... */ + if(hx>0x7f800000) + return x+x; /* NaN */ + if(hx==0x7f800000) + return (xsb==0)? x:0.0; /* exp(+-inf)={inf,0} */ + if(x > o_threshold) return huge*huge; /* overflow */ + if(x < u_threshold) return twom100*twom100; /* underflow */ + } + + /* argument reduction */ + if(hx > 0x3eb17218) { /* if |x| > 0.5 ln2 */ + if(hx < 0x3F851592) { /* and |x| < 1.5 ln2 */ + hi = x-ln2HI[xsb]; lo=ln2LO[xsb]; k = 1-xsb-xsb; + } else { + k = invln2*x+halF[xsb]; + t = k; + hi = x - t*ln2HI[0]; /* t*ln2HI is exact here */ + lo = t*ln2LO[0]; + } + x = hi - lo; + } + else if(hx < 0x31800000) { /* when |x|<2**-28 */ + if(huge+x>one) return one+x;/* trigger inexact */ + } + else k = 0; + + /* x is now in primary range */ + t = x*x; + c = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5)))); + if(k==0) return one-((x*c)/(c-(float)2.0)-x); + else y = one-((lo-(x*c)/((float)2.0-c))-hi); + if(k >= -125) { + u_int32_t hy; + GET_FLOAT_WORD(hy,y); + SET_FLOAT_WORD(y,hy+(k<<23)); /* add k to y's exponent */ + return y; + } else { + u_int32_t hy; + GET_FLOAT_WORD(hy,y); + SET_FLOAT_WORD(y,hy+((k+100)<<23)); /* add k to y's exponent */ + return y*twom100; + } +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_expf.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_gamma_r.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_gamma_r.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_gamma_r.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,32 @@ + +/* @(#)er_gamma.c 5.1 93/09/24 */ +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + * + */ + +/* __ieee754_gamma_r(x, signgamp) + * Reentrant version of the logarithm of the Gamma function + * with user provide pointer for the sign of Gamma(x). + * + * Method: See __ieee754_lgamma_r + */ + +#include "math.h" +#include "math_private.h" + +#ifdef __MINGW32CE__ +#define __ieee754_exp exp +#endif + +double __ieee754_gamma_r(double x, int *signgamp) +{ + return __ieee754_exp (__ieee754_lgamma_r(x,signgamp)); +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_gamma_r.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_gammaf_r.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_gammaf_r.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_gammaf_r.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,34 @@ +/* erf_gamma.c -- float version of er_gamma.c. + * Conversion to float by Ian Lance Taylor, Cygnus Support, ia...@cy.... + */ + +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + * + */ + +/* __ieee754_gammaf_r(x, signgamp) + * Reentrant version of the logarithm of the Gamma function + * with user provide pointer for the sign of Gamma(x). + * + * Method: See __ieee754_lgammaf_r + */ + +#include "fdlibm.h" + +#ifdef __STDC__ + float __ieee754_gammaf_r(float x, int *signgamp) +#else + float __ieee754_gammaf_r(x,signgamp) + float x; int *signgamp; +#endif +{ + return __ieee754_expf (__ieee754_lgammaf_r(x,signgamp)); +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_gammaf_r.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_lgamma_r.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_lgamma_r.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_lgamma_r.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,300 @@ +/* @(#)er_lgamma.c 5.1 93/09/24 */ +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_lgamma_r.c,v 1.7 1995/05/10 20:45:42 jtc Exp $"; +#endif + +/* __ieee754_lgamma_r(x, signgamp) + * Reentrant version of the logarithm of the Gamma function + * with user provide pointer for the sign of Gamma(x). + * + * Method: + * 1. Argument Reduction for 0 < x <= 8 + * Since gamma(1+s)=s*gamma(s), for x in [0,8], we may + * reduce x to a number in [1.5,2.5] by + * lgamma(1+s) = log(s) + lgamma(s) + * for example, + * lgamma(7.3) = log(6.3) + lgamma(6.3) + * = log(6.3*5.3) + lgamma(5.3) + * = log(6.3*5.3*4.3*3.3*2.3) + lgamma(2.3) + * 2. Polynomial approximation of lgamma around its + * minimun ymin=1.461632144968362245 to maintain monotonicity. + * On [ymin-0.23, ymin+0.27] (i.e., [1.23164,1.73163]), use + * Let z = x-ymin; + * lgamma(x) = -1.214862905358496078218 + z^2*poly(z) + * where + * poly(z) is a 14 degree polynomial. + * 2. Rational approximation in the primary interval [2,3] + * We use the following approximation: + * s = x-2.0; + * lgamma(x) = 0.5*s + s*P(s)/Q(s) + * with accuracy + * |P/Q - (lgamma(x)-0.5s)| < 2**-61.71 + * Our algorithms are based on the following observation + * + * zeta(2)-1 2 zeta(3)-1 3 + * lgamma(2+s) = s*(1-Euler) + --------- * s - --------- * s + ... + * 2 3 + * + * where Euler = 0.5771... is the Euler constant, which is very + * close to 0.5. + * + * 3. For x>=8, we have + * lgamma(x)~(x-0.5)log(x)-x+0.5*log(2pi)+1/(12x)-1/(360x**3)+.... + * (better formula: + * lgamma(x)~(x-0.5)*(log(x)-1)-.5*(log(2pi)-1) + ...) + * Let z = 1/x, then we approximation + * f(z) = lgamma(x) - (x-0.5)(log(x)-1) + * by + * 3 5 11 + * w = w0 + w1*z + w2*z + w3*z + ... + w6*z + * where + * |w - f(z)| < 2**-58.74 + * + * 4. For negative x, since (G is gamma function) + * -x*G(-x)*G(x) = pi/sin(pi*x), + * we have + * G(x) = pi/(sin(pi*x)*(-x)*G(-x)) + * since G(-x) is positive, sign(G(x)) = sign(sin(pi*x)) for x<0 + * Hence, for x<0, signgam = sign(sin(pi*x)) and + * lgamma(x) = log(|Gamma(x)|) + * = log(pi/(|x*sin(pi*x)|)) - lgamma(-x); + * Note: one should avoid compute pi*(-x) directly in the + * computation of sin(pi*(-x)). + * + * 5. Special Cases + * lgamma(2+s) ~ s*(1-Euler) for tiny s + * lgamma(1)=lgamma(2)=0 + * lgamma(x) ~ -log(x) for tiny x + * lgamma(0) = lgamma(inf) = inf + * lgamma(-integer) = +-inf + * + */ + +#include "math.h" +#include "math_private.h" + +static const double +two52= 4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */ +half= 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */ +one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ +pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ +a0 = 7.72156649015328655494e-02, /* 0x3FB3C467, 0xE37DB0C8 */ +a1 = 3.22467033424113591611e-01, /* 0x3FD4A34C, 0xC4A60FAD */ +a2 = 6.73523010531292681824e-02, /* 0x3FB13E00, 0x1A5562A7 */ +a3 = 2.05808084325167332806e-02, /* 0x3F951322, 0xAC92547B */ +a4 = 7.38555086081402883957e-03, /* 0x3F7E404F, 0xB68FEFE8 */ +a5 = 2.89051383673415629091e-03, /* 0x3F67ADD8, 0xCCB7926B */ +a6 = 1.19270763183362067845e-03, /* 0x3F538A94, 0x116F3F5D */ +a7 = 5.10069792153511336608e-04, /* 0x3F40B6C6, 0x89B99C00 */ +a8 = 2.20862790713908385557e-04, /* 0x3F2CF2EC, 0xED10E54D */ +a9 = 1.08011567247583939954e-04, /* 0x3F1C5088, 0x987DFB07 */ +a10 = 2.52144565451257326939e-05, /* 0x3EFA7074, 0x428CFA52 */ +a11 = 4.48640949618915160150e-05, /* 0x3F07858E, 0x90A45837 */ +tc = 1.46163214496836224576e+00, /* 0x3FF762D8, 0x6356BE3F */ +tf = -1.21486290535849611461e-01, /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +tt = -3.63867699703950536541e-18, /* 0xBC50C7CA, 0xA48A971F */ +t0 = 4.83836122723810047042e-01, /* 0x3FDEF72B, 0xC8EE38A2 */ +t1 = -1.47587722994593911752e-01, /* 0xBFC2E427, 0x8DC6C509 */ +t2 = 6.46249402391333854778e-02, /* 0x3FB08B42, 0x94D5419B */ +t3 = -3.27885410759859649565e-02, /* 0xBFA0C9A8, 0xDF35B713 */ +t4 = 1.79706750811820387126e-02, /* 0x3F9266E7, 0x970AF9EC */ +t5 = -1.03142241298341437450e-02, /* 0xBF851F9F, 0xBA91EC6A */ +t6 = 6.10053870246291332635e-03, /* 0x3F78FCE0, 0xE370E344 */ +t7 = -3.68452016781138256760e-03, /* 0xBF6E2EFF, 0xB3E914D7 */ +t8 = 2.25964780900612472250e-03, /* 0x3F6282D3, 0x2E15C915 */ +t9 = -1.40346469989232843813e-03, /* 0xBF56FE8E, 0xBF2D1AF1 */ +t10 = 8.81081882437654011382e-04, /* 0x3F4CDF0C, 0xEF61A8E9 */ +t11 = -5.38595305356740546715e-04, /* 0xBF41A610, 0x9C73E0EC */ +t12 = 3.15632070903625950361e-04, /* 0x3F34AF6D, 0x6C0EBBF7 */ +t13 = -3.12754168375120860518e-04, /* 0xBF347F24, 0xECC38C38 */ +t14 = 3.35529192635519073543e-04, /* 0x3F35FD3E, 0xE8C2D3F4 */ +u0 = -7.72156649015328655494e-02, /* 0xBFB3C467, 0xE37DB0C8 */ +u1 = 6.32827064025093366517e-01, /* 0x3FE4401E, 0x8B005DFF */ +u2 = 1.45492250137234768737e+00, /* 0x3FF7475C, 0xD119BD6F */ +u3 = 9.77717527963372745603e-01, /* 0x3FEF4976, 0x44EA8450 */ +u4 = 2.28963728064692451092e-01, /* 0x3FCD4EAE, 0xF6010924 */ +u5 = 1.33810918536787660377e-02, /* 0x3F8B678B, 0xBF2BAB09 */ +v1 = 2.45597793713041134822e+00, /* 0x4003A5D7, 0xC2BD619C */ +v2 = 2.12848976379893395361e+00, /* 0x40010725, 0xA42B18F5 */ +v3 = 7.69285150456672783825e-01, /* 0x3FE89DFB, 0xE45050AF */ +v4 = 1.04222645593369134254e-01, /* 0x3FBAAE55, 0xD6537C88 */ +v5 = 3.21709242282423911810e-03, /* 0x3F6A5ABB, 0x57D0CF61 */ +s0 = -7.72156649015328655494e-02, /* 0xBFB3C467, 0xE37DB0C8 */ +s1 = 2.14982415960608852501e-01, /* 0x3FCB848B, 0x36E20878 */ +s2 = 3.25778796408930981787e-01, /* 0x3FD4D98F, 0x4F139F59 */ +s3 = 1.46350472652464452805e-01, /* 0x3FC2BB9C, 0xBEE5F2F7 */ +s4 = 2.66422703033638609560e-02, /* 0x3F9B481C, 0x7E939961 */ +s5 = 1.84028451407337715652e-03, /* 0x3F5E26B6, 0x7368F239 */ +s6 = 3.19475326584100867617e-05, /* 0x3F00BFEC, 0xDD17E945 */ +r1 = 1.39200533467621045958e+00, /* 0x3FF645A7, 0x62C4AB74 */ +r2 = 7.21935547567138069525e-01, /* 0x3FE71A18, 0x93D3DCDC */ +r3 = 1.71933865632803078993e-01, /* 0x3FC601ED, 0xCCFBDF27 */ +r4 = 1.86459191715652901344e-02, /* 0x3F9317EA, 0x742ED475 */ +r5 = 7.77942496381893596434e-04, /* 0x3F497DDA, 0xCA41A95B */ +r6 = 7.32668430744625636189e-06, /* 0x3EDEBAF7, 0xA5B38140 */ +w0 = 4.18938533204672725052e-01, /* 0x3FDACFE3, 0x90C97D69 */ +w1 = 8.33333333333329678849e-02, /* 0x3FB55555, 0x5555553B */ +w2 = -2.77777777728775536470e-03, /* 0xBF66C16C, 0x16B02E5C */ +w3 = 7.93650558643019558500e-04, /* 0x3F4A019F, 0x98CF38B6 */ +w4 = -5.95187557450339963135e-04, /* 0xBF4380CB, 0x8C0FE741 */ +w5 = 8.36339918996282139126e-04, /* 0x3F4B67BA, 0x4CDAD5D1 */ +w6 = -1.63092934096575273989e-03; /* 0xBF5AB89D, 0x0B9E43E4 */ + +static const double zero= 0.00000000000000000000e+00; + +#ifdef __MINGW32CE__ +#define __ieee754_log log +#endif + +static double +sin_pi(double x) +{ + double y,z; + int n,ix; + + GET_HIGH_WORD(ix,x); + ix &= 0x7fffffff; + + if(ix<0x3fd00000) return __kernel_sin(pi*x,zero,0); + y = -x; /* x is assume negative */ + + /* + * argument reduction, make sure inexact flag not raised if input + * is an integer + */ + z = floor(y); + if(z!=y) { /* inexact anyway */ + y *= 0.5; + y = 2.0*(y - floor(y)); /* y = |x| mod 2.0 */ + n = (int) (y*4.0); + } else { + if(ix>=0x43400000) { + y = zero; n = 0; /* y must be even */ + } else { + if(ix<0x43300000) z = y+two52; /* exact */ + GET_LOW_WORD(n,z); + n &= 1; + y = n; + n<<= 2; + } + } + switch (n) { + case 0: y = __kernel_sin(pi*y,zero,0); break; + case 1: + case 2: y = __kernel_cos(pi*(0.5-y),zero); break; + case 3: + case 4: y = __kernel_sin(pi*(one-y),zero,0); break; + case 5: + case 6: y = -__kernel_cos(pi*(y-1.5),zero); break; + default: y = __kernel_sin(pi*(y-2.0),zero,0); break; + } + return -y; +} + + +double +__ieee754_lgamma_r(double x, int *signgamp) +{ + double t,y,z,nadj,p,p1,p2,p3,q,r,w; + int i,hx,lx,ix; + + EXTRACT_WORDS(hx,lx,x); + + /* purge off +-inf, NaN, +-0, and negative arguments */ + *signgamp = 1; + ix = hx&0x7fffffff; + if(ix>=0x7ff00000) return x*x; + if((ix|lx)==0) return one/zero; + if(ix<0x3b900000) { /* |x|<2**-70, return -log(|x|) */ + if(hx<0) { + *signgamp = -1; + return -__ieee754_log(-x); + } else return -__ieee754_log(x); + } + if(hx<0) { + if(ix>=0x43300000) /* |x|>=2**52, must be -integer */ + return one/zero; + t = sin_pi(x); + if(t==zero) return one/zero; /* -integer */ + nadj = __ieee754_log(pi/fabs(t*x)); + if(t<zero) *signgamp = -1; + x = -x; + } + + /* purge off 1 and 2 */ + if((((ix-0x3ff00000)|lx)==0)||(((ix-0x40000000)|lx)==0)) r = 0; + /* for x < 2.0 */ + else if(ix<0x40000000) { + if(ix<=0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -__ieee754_log(x); + if(ix>=0x3FE76944) {y = one-x; i= 0;} + else if(ix>=0x3FCDA661) {y= x-(tc-one); i=1;} + else {y = x; i=2;} + } else { + r = zero; + if(ix>=0x3FFBB4C3) {y=2.0-x;i=0;} /* [1.7316,2] */ + else if(ix>=0x3FF3B4C4) {y=x-tc;i=1;} /* [1.23,1.73] */ + else {y=x-one;i=2;} + } + switch(i) { + case 0: + z = y*y; + p1 = a0+z*(a2+z*(a4+z*(a6+z*(a8+z*a10)))); + p2 = z*(a1+z*(a3+z*(a5+z*(a7+z*(a9+z*a11))))); + p = y*p1+p2; + r += (p-0.5*y); break; + case 1: + z = y*y; + w = z*y; + p1 = t0+w*(t3+w*(t6+w*(t9 +w*t12))); /* parallel comp */ + p2 = t1+w*(t4+w*(t7+w*(t10+w*t13))); + p3 = t2+w*(t5+w*(t8+w*(t11+w*t14))); + p = z*p1-(tt-w*(p2+y*p3)); + r += (tf + p); break; + case 2: + p1 = y*(u0+y*(u1+y*(u2+y*(u3+y*(u4+y*u5))))); + p2 = one+y*(v1+y*(v2+y*(v3+y*(v4+y*v5)))); + r += (-0.5*y + p1/p2); + } + } + else if(ix<0x40200000) { /* x < 8.0 */ + i = (int)x; + t = zero; + y = x-(double)i; + p = y*(s0+y*(s1+y*(s2+y*(s3+y*(s4+y*(s5+y*s6)))))); + q = one+y*(r1+y*(r2+y*(r3+y*(r4+y*(r5+y*r6))))); + r = half*y+p/q; + z = one; /* lgamma(1+s) = log(s) + lgamma(s) */ + switch(i) { + case 7: z *= (y+6.0); /* FALLTHRU */ + case 6: z *= (y+5.0); /* FALLTHRU */ + case 5: z *= (y+4.0); /* FALLTHRU */ + case 4: z *= (y+3.0); /* FALLTHRU */ + case 3: z *= (y+2.0); /* FALLTHRU */ + r += __ieee754_log(z); break; + } + /* 8.0 <= x < 2**58 */ + } else if (ix < 0x43900000) { + t = __ieee754_log(x); + z = one/x; + y = z*z; + w = w0+z*(w1+y*(w2+y*(w3+y*(w4+y*(w5+y*w6))))); + r = (x-half)*(t-one)+w; + } else + /* 2**58 <= x <= inf */ + r = x*(__ieee754_log(x)-one); + if(hx<0) r = nadj - r; + return r; +} Property changes on: trunk/cegcc/src/mingw/mingwex/mathce/e_lgamma_r.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/mathce/e_lgammaf_r.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/e_lgammaf_r.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/mathce/e_lgammaf_r.c 2007-02-04 00:29:15 UTC (rev 875) @@ -0,0 +1,232 @@ +/* e_lgammaf_r.c -- float version of e_lgamma_r.c. + * Conversion to float by Ian Lance Taylor, Cygnus Support, ia...@cy.... + */ + +/* + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunPro, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: e_lgammaf_r.c,v 1.3 1995/05/10 20:45:47 jtc Exp $"; +#endif + +#include "math.h" +#include "math_private.h" + +static const float +two23= 8.3886080000e+06, /* 0x4b000000 */ +half= 5.0000000000e-01, /* 0x3f000000 */ +one = 1.0000000000e+00, /* 0x3f800000 */ +pi = 3.1415927410e+00, /* 0x40490fdb */ +a0 = 7.7215664089e-02, /* 0x3d9e233f */ +a1 = 3.2246702909e-01, /* 0x3ea51a66 */ +a2 = 6.7352302372e-02, /* 0x3d89f001 */ +a3 = 2.0580807701e-02, /* 0x3ca89915 */ +a4 = 7.3855509982e-03, /* 0x3bf2027e */ +a5 = 2.8905137442e-03, /* 0x3b3d6ec6 */ +a6 = 1.1927076848e-03, /* 0x3a9c54a1 */ +a7 = 5.1006977446e-04, /* 0x3a05b634 */ +a8 = 2.2086278477e-04, /* 0x39679767 */ +a9 = 1.0801156895e-04, /* 0x38e28445 */ +a10 = 2.5214456400e-05, /* 0x37d383a2 */ +a11 = 4.4864096708e-05, /* 0x383c2c75 */ +tc = 1.4616321325e+00, /* 0x3fbb16c3 */ +tf = -1.2148628384e-01, /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +tt = 6.6971006518e-09, /* 0x31e61c52 */ +t0 = 4.8383611441e-01, /* 0x3ef7b95e */ +t1 = -1.4758771658e-01, /* 0xbe17213c */ +t2 = 6.4624942839e-02, /* 0x3d845a15 */ +t3 = -3.2788541168e-02, /* 0xbd064d47 */ +t4 = 1.7970675603e-02, /* 0x3c93373d */ +t5 = -1.0314224288e-02, /* 0xbc28fcfe */ +t6 = 6.1005386524e-03, /* 0x3bc7e707 */ +t7 = -3.6845202558e-03, /* 0xbb7177fe */ +t8 = 2.2596477065e-03, /* 0x3b141699 */ +t9 = -1.4034647029e-03, /* 0xbab7f476 */ +t10 = 8.8108185446e-04, /* 0x3a66f867 */ +t11 = -5.3859531181e-04, /* 0xba0d3085 */ +t12 = 3.1563205994e-04, /* 0x39a57b6b */ +t13 = -3.1275415677e-04, /* 0xb9a3f927 */ +t14 = 3.3552918467e-04, /* 0x39afe9f7 */ +u0 = -7.7215664089e-02, /* 0xbd9e233f */ +u1 = 6.3282704353e-01, /* 0x3f2200f4 */ +u2 = 1.4549225569e+00, /* 0x3fba3ae7 */ +u3 = 9.7771751881e-01, /* 0x3f7a4bb2 */ +u4 = 2.2896373272e-01, /* 0x3e6a7578 */ +u5 = 1.3381091878e-02, /* 0x3c5b3c5e */ +v1 = 2.4559779167e+00, /* 0x401d2ebe */ +v2 = 2.1284897327e+00, /* 0x4008392d */ +v3 = 7.6928514242e-01, /* 0x3f44efdf */ +v4 = 1.0422264785e-01, /* 0x3dd572af */ +v5 = 3.2170924824e-03, /* 0x3b52d5db */ +s0 = -7.7215664089e-02, /* 0xbd9e233f */ +s1 = 2.1498242021e-01, /* 0x3e5c245a */ +s2 = 3.2577878237e-01, /* 0x3ea6cc7a */ +s3 = 1.4635047317e-01, /* 0x3e15dce6 */ +s4 = 2.6642270386e-02, /* 0x3cda40e4 */ +s5 = 1.8402845599e-03, /* 0x3af135b4 */ +s6 = 3.1947532989e-05, /* 0x3805ff67 */ +r1 = 1.3920053244e+00, /* 0x3fb22d3b */ +r2 = 7.2193557024e-01, /* 0x3f38d0c5 */ +r3 = 1.7193385959e-01, /* 0x3e300f6e */ +r4 = 1.8645919859e-02, /* 0x3c98bf54 */ +r5 = 7.7794247773e-04, /* 0x3a4beed6 */ +r6 = 7.3266842264e-06, /* 0x36f5d7bd */ +w0 = 4.1893854737e-01, /* 0x3ed67f1d */ +w1 = 8.3333335817e-02, /* 0x3daaaaab */ +w2 = -2.7777778450e-03, /* 0xbb360b61 */ +w3 = 7.9365057172e-04, /* 0x3a500cfd */ +w4 = -5.9518753551e-04, /* 0xba1c065c */ +w5 = 8.3633989561e-04, /* 0x3a5b3dd2 */ +w6 = -1.6309292987e-03; /* 0xbad5c4e8 */ + +static const float zero= 0.0000000000e+00; + +static float +sin_pif(float x) +{ + float y,z; + int n,ix; + + GET_FLOAT_WORD(ix,x); + ix &= 0x7fffffff; + + if(ix<0x3e800000) return __kernel_sinf(pi*x,zero,0); + y = -x; /* x is assume negative */ + + /* + * argument reduction, make sure inexact flag not raised if input + * is an integer + */ + z = floorf(y); + if(z!=y) { /* inexact anyway */ + y *= (float)0.5; + y = (float)2.0*(y - floorf(y)); /* y = |x| mod 2.0 */ + n = (int) (y*(float)4.0); + } else { + if(ix>=0x4b800000) { + y = zero; n = 0; /* y must be even */ + } else { + if(ix<0x4b000000) z = y+two23; /* exact */ + GET_FLOAT_WORD(n,z); + n &= 1; + y = n; + n<<= 2; + } + } + switch (n) { + case 0: y = __kernel_sinf(pi*y,zero,0); break; + case 1: + case 2: y = __kernel_cosf(pi*((float)0.5-y),zero); break; + case 3: + case 4: y = __kernel_sinf(pi*(one-y),zero,0); break; + case 5: + case 6: y = -__kernel_cosf(pi*(y-(float)1.5),zero); break; + default: y = __kernel_sinf(pi*(y-(float)2.0),zero,0); break; + } + return -y; +} + + +float +__ieee754_lgammaf_r(float x, int *signgamp) +{ + float t,y,z,nadj,p,p1,p2,p3,q,r,w; + int i,hx,ix; + + GET_FLOAT_WORD(hx,x); + + /* purge off +-inf, NaN, +-0, and negative arguments */ + *signgamp = 1; + ix = hx&0x7fffffff; + if(ix>=0x7f800000) return x*x; + if(ix==0) return one/zero; + if(ix<0x1c800000) { /* |x|<2**-70, return -log(|x|) */ + if(hx<0) { + *signgamp = -1; + return -__ieee754_logf(-x); + } else return -__ieee754_logf(x); + } + if(hx<0) { + if(ix>=0x4b000000) /* |x|>=2**23, must be -integer */ + return one/zero; + t = sin_pif(x); + if(t==zero) return one/zero; /* -integer */ + nadj = __ieee754_logf(pi/fabsf(t*x)); + if(t<zero) *signgamp = -1; + x = -x; + } + + /* purge off 1 and 2 */ + if (ix==0x3f800000||ix==0x40000000) r = 0; + /* for x < 2.0 */ + else if(ix<0x40000000) { + if(ix<=0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -__ieee754_logf(x); + if(ix>=0x3f3b4a20) {y = one-x; i= 0;} + else if(ix>=0x3e6d3308) {y= x-(tc-one); i=1;} + else {y = x; i=2;} + } else { + r = zero; + if(ix>=0x3fdda618) {y=(float)2.0-x;i=0;} /* [1.7316,2] */ + else if(ix>=0x3F9da620) {y=x-tc;i=1;} /* [1.23,1.73] */ + else {y=x-one;i=2;} + } + switch(i) { + case 0: + z = y*y; + p1 = a0+z*(a2+z*(a4+z*(a6+z*(a8+z*a10)))); + p2 = z*(a1+z*(a3+z*(a5+z*(a7+z*(a9+z*a11))))); + p = y*p1+p2; + r += (p-(float)0.5*y); break; + case 1: + z = y*y; + w = z*y; + p1 = t0+w*(t3+w*(t6+w*(t9 +w*t12))); /* parallel comp */ + p2 = t1+w*(t4+w*(t7+w*(t10+w*t13))); + p3 = t2+w*(t5+w*(t8+w*(t11+w*t14))); + p = z*p1-(tt-w*(p2+y*p3)); + r += (tf + p); break; + case 2: + p1 = y*(u0+y*(u1+y*(u2+y*(u3+y*(u4+y*u5))))); + p2 = one+y*(v1+y*(v2+y*(v3+y*(v4+y*v5)))); + r += (-(float)0.5*y + p1/p2); + } + } + else if(ix<0x41000000) { /* x < 8.0 */ + i = (int)x; + t = zero; + y = x-(float)i; + p = y*(s0+y*(s1+y*(s2+y*(s3+y*(s4+y*(s5+y*s6)))))); + q = one+y*(r1+y*(r2+y*(r3+y*(r4+y*(r5+y*r6))))); + r = half*y+p/q; + z = one; /* lgamma(1+s) = log(s) + lgamma(s) */ + switch(i) { + case 7: z *= (y+(float)6.0); /* FALLTHRU */ + case 6: z *= (y+(float)5.0); /* FALLTHRU */ + case 5: z *= (y+(float)4.0); /* FALLTHRU */ + case 4: z *= (y+(float)3.0); /* FALLTHRU */ + case 3: z *= (y+(float)2.0); /* FALLTHRU */ + r += __ieee754_logf(z); break; + } + /* 8.0 <= x < 2**58 */ + } else if (ix < 0x5... [truncated message content] |
From: <ped...@us...> - 2007-02-03 23:44:50
|
Revision: 874 http://svn.sourceforge.net/cegcc/?rev=874&view=rev Author: pedroalves Date: 2007-02-03 15:44:45 -0800 (Sat, 03 Feb 2007) Log Message: ----------- * dllmain.c: Fix typo. * mingwex/Makefile.in (WINCE_DISTFILES): Add isalnum.c, * isalpha.c, iscntrl.c, isgraph.c, islower.c, isprint.c, ispunct.c, * isspace.c, isupper.c, isxdigit.c, _tolower.c and _toupper.c. (WINCE_OBJS): Add isalnum.o, isalpha.o, iscntrl.o, isgraph.o, islower.o, isprint.o, ispunct.o, isspace.o, isupper.o, * isxdigit.o, _tolower.o and _toupper.o. (dist): Fix typo. * include/stdlib.h (itoa, ltoa, ecvt, fcvt, gcvt): Expose on __COREDLL__. * mingwex/wince/isalnum.c: New file. * mingwex/wince/isalpha.c: New file. * mingwex/wince/iscntrl.c: New file. * mingwex/wince/isgraph.c: New file. * mingwex/wince/islower.c: New file. * mingwex/wince/isprint.c: New file. * mingwex/wince/ispunct.c: New file. * mingwex/wince/isspace.c: New file. * mingwex/wince/isupper.c: New file. * mingwex/wince/isxdigit.c: New file. * mingwex/wince/_tolower.c: New file. * mingwex/wince/_toupper.c: New file. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdlib.h trunk/cegcc/src/mingw/mingwex/Makefile.in Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/wince/_tolower.c trunk/cegcc/src/mingw/mingwex/wince/_toupper.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 Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-03 22:42:55 UTC (rev 873) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-03 23:44:45 UTC (rev 874) @@ -1,7 +1,28 @@ 2007-02-03 Pedro Alves <ped...@po...> * dllmain.c: Fix typo. - + * mingwex/Makefile.in (WINCE_DISTFILES): Add isalnum.c, isalpha.c, + iscntrl.c, isgraph.c, islower.c, isprint.c, ispunct.c, isspace.c, + isupper.c, isxdigit.c, _tolower.c and _toupper.c. + (WINCE_OBJS): Add isalnum.o, isalpha.o, iscntrl.o, isgraph.o, + islower.o, isprint.o, ispunct.o, isspace.o, isupper.o, isxdigit.o, + _tolower.o and _toupper.o. + (dist): Fix typo. + * include/stdlib.h (itoa, ltoa, ecvt, fcvt, gcvt): Expose on + __COREDLL__. + * mingwex/wince/isalnum.c: New file. + * mingwex/wince/isalpha.c: New file. + * mingwex/wince/iscntrl.c: New file. + * mingwex/wince/isgraph.c: New file. + * mingwex/wince/islower.c: New file. + * mingwex/wince/isprint.c: New file. + * mingwex/wince/ispunct.c: New file. + * mingwex/wince/isspace.c: New file. + * mingwex/wince/isupper.c: New file. + * mingwex/wince/isxdigit.c: New file. + * mingwex/wince/_tolower.c: New file. + * mingwex/wince/_toupper.c: New file. + 2006-12-30 Danny Backx <dan...@us...> * profile : Create a profile/profile tree as a copy of the Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2007-02-03 22:42:55 UTC (rev 873) +++ trunk/cegcc/src/mingw/include/stdlib.h 2007-02-03 23:44:45 UTC (rev 874) @@ -473,9 +473,9 @@ #ifndef _NO_OLDNAMES #ifndef __COREDLL__ - _CRTIMP int __cdecl putenv (const char*); _CRTIMP void __cdecl searchenv (const char*, const char*, char*); +#endif /* Not __COREDLL__ */ _CRTIMP char* __cdecl itoa (int, char*, int); _CRTIMP char* __cdecl ltoa (long, char*, int); @@ -485,7 +485,6 @@ _CRTIMP char* __cdecl fcvt (double, int, int*, int*); _CRTIMP char* __cdecl gcvt (double, int, char*); #endif /* _UWIN */ -#endif /* Not __COREDLL__ */ #endif /* Not _NO_OLDNAMES */ #endif /* Not __STRICT_ANSI__ */ Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-03 22:42:55 UTC (rev 873) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-03 23:44:45 UTC (rev 874) @@ -85,7 +85,9 @@ WINCE_DISTFILES = \ asctime.c freopen.c gmtime.c localtime.c mktime.c strftime.c time.c \ - tempnam.c unlink.c wcsftime.c fdopen.c read.c write.c open.c lseek.c close.c + tempnam.c unlink.c wcsftime.c fdopen.c read.c write.c open.c lseek.c \ + close.c isalnum.c isalpha.c iscntrl.c isgraph.c islower.c isprint.c \ + ispunct.c isspace.c isupper.c isxdigit.c _tolower.c _toupper.c CC = @CC@ # FIXME: Which is it, CC or CC_FOR_TARGET? @@ -186,8 +188,10 @@ WINCE_OBJS = \ asctime.o freopen.o gmtime.o localtime.o mktime.o strftime.o time.o \ tempnam.o unlink.o wcsftime.o fdopen.o read.o write.o open.o lseek.o \ - close.o + close.o isalnum.o isalpha.o iscntrl.o isgraph.o islower.o isprint.o \ + ispunct.o isspace.o isupper.o isxdigit.o _tolower.o _toupper.o + ifneq (,$(findstring wince,$(target_alias))) LIB_OBJS = $(WINCE_OBJS) else @@ -276,6 +280,6 @@ mkdir $(distdir)/mingwex/wince chmod 755 $(distdir)/mingwex/wince @for i in $(WINCE_DISTFILES); do\ - cp -p $(srcdir)/complex/$$i $(distdir)/mingwex/wince/$$i ; \ + cp -p $(srcdir)/wince/$$i $(distdir)/mingwex/wince/$$i ; \ done Added: trunk/cegcc/src/mingw/mingwex/wince/_tolower.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/_tolower.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/_tolower.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +_tolower(int c) +{ + return (c -'A'+'a'); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/_tolower.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/_toupper.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/_toupper.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/_toupper.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +_toupper(int c) +{ + return (c -'a'+'A'); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/_toupper.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/isalnum.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isalnum.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/isalnum.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +isalnum(int c) +{ + return __ISCTYPE (c, (_ALPHA|_DIGIT)); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/isalnum.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/isalpha.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isalpha.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/isalpha.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +isalpha(int c) +{ + return __ISCTYPE (c, _ALPHA); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/isalpha.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + + int +iscntrl(int c) +{ + return __ISCTYPE (c, _CONTROL); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/iscntrl.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/isgraph.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isgraph.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/isgraph.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +isgraph(int c) +{ + return __ISCTYPE (c, (_PUNCT|_ALPHA|_DIGIT)); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/isgraph.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/islower.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/islower.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/islower.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +islower(int c) +{ + return __ISCTYPE (c, _LOWER); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/islower.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/isprint.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isprint.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/isprint.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +isprint(int c) +{ + return __ISCTYPE (c, (_BLANK|_PUNCT|_ALPHA|_DIGIT)); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/isprint.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/ispunct.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/ispunct.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/ispunct.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +ispunct(int c) +{ + return __ISCTYPE (c, _PUNCT); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/ispunct.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/isspace.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isspace.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/isspace.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +isspace(int c) +{ + return __ISCTYPE (c, _SPACE); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/isspace.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/isupper.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isupper.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/isupper.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +isupper(int c) +{ + return __ISCTYPE (c, _UPPER); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/isupper.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c 2007-02-03 23:44:45 UTC (rev 874) @@ -0,0 +1,7 @@ +#include <ctype.h> + +int +isxdigit(int c) +{ + return __ISCTYPE (c, _HEX); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/isxdigit.c ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |