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: <dan...@us...> - 2009-06-21 09:41:16
|
Revision: 1342 http://cegcc.svn.sourceforge.net/cegcc/?rev=1342&view=rev Author: dannybackx Date: 2009-06-21 09:40:21 +0000 (Sun, 21 Jun 2009) Log Message: ----------- Add new files to support setjmp and longjmp on x86, CE doesn't provide them. This stuff is copied from newlib. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/setjmp.h Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/wince/i386/ trunk/cegcc/src/mingw/mingwex/wince/i386/i386mach.h trunk/cegcc/src/mingw/mingwex/wince/i386/setjmp.S Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-06-17 19:30:45 UTC (rev 1341) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-06-21 09:40:21 UTC (rev 1342) @@ -1,3 +1,10 @@ +2009-06-21 Danny Backx <dan...@us...> + + * mingwex/wince/i386/setjmp.S,i386mach.h : New files, implement setjmp + and longjmp on i386 because the CE support is absent. + * include/setjmp.h (_JBLEN) : Set the right size for jmp_buf. + * mingwex/Makefile.in : Build the new sources on i386 only. + 2009-05-20 Vincent Richomme <fo...@sm...> * Makefile.in : replace COREDLL by coredll.dll in definition of Modified: trunk/cegcc/src/mingw/include/setjmp.h =================================================================== --- trunk/cegcc/src/mingw/include/setjmp.h 2009-06-17 19:30:45 UTC (rev 1341) +++ trunk/cegcc/src/mingw/include/setjmp.h 2009-06-21 09:40:21 UTC (rev 1342) @@ -29,7 +29,13 @@ * contents could be different on an Alpha or something else. */ #if defined (__i386__) +#if defined(__MINGW32CE__) + /* Definition for the assembler setjmp/longjmp copied from newlib into mingwex */ +# define _JBLEN 20 +#else + /* Native (?) windows ce longjmp */ # define _JBLEN 16 +#endif #elif defined (__arm__) # define _JBLEN 11 #endif Added: trunk/cegcc/src/mingw/mingwex/wince/i386/i386mach.h =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/i386/i386mach.h (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/i386/i386mach.h 2009-06-21 09:40:21 UTC (rev 1342) @@ -0,0 +1,83 @@ +/* This file was based on the modified setjmp.S performed by + * Joel Sherill (jo...@OA...) which specified the use + * of the __USER_LABEL_PREFIX__ and __REGISTER_PREFIX__ macros. + ** + ** This file is distributed WITHOUT ANY WARRANTY; without even the implied + ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/* These are predefined by new versions of GNU cpp. */ + +#ifndef __USER_LABEL_PREFIX__ +#define __USER_LABEL_PREFIX__ _ +#endif + +#define __REG_PREFIX__ % + +/* ANSI concatenation macros. */ + +#define CONCAT1(a, b) CONCAT2(a, b) +#define CONCAT2(a, b) a##b + +/* Use the right prefix for global labels. */ + +#define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) + +/* Use the right prefix for registers. */ + +#define REG(x) CONCAT1(__REG_PREFIX__, x) + +#define eax REG(eax) +#define ebx REG(ebx) +#define ecx REG(ecx) +#define edx REG(edx) +#define esi REG(esi) +#define edi REG(edi) +#define ebp REG(ebp) +#define esp REG(esp) + +#define st0 REG(st) +#define st1 REG(st(1)) +#define st2 REG(st(2)) +#define st3 REG(st(3)) +#define st4 REG(st(4)) +#define st5 REG(st(5)) +#define st6 REG(st(6)) +#define st7 REG(st(7)) + +#define ax REG(ax) +#define bx REG(bx) +#define cx REG(cx) +#define dx REG(dx) + +#define ah REG(ah) +#define bh REG(bh) +#define ch REG(ch) +#define dh REG(dh) + +#define al REG(al) +#define bl REG(bl) +#define cl REG(cl) +#define dl REG(dl) + +#define mm1 REG(mm1) +#define mm2 REG(mm2) +#define mm3 REG(mm3) +#define mm4 REG(mm4) +#define mm5 REG(mm5) +#define mm6 REG(mm6) +#define mm7 REG(mm7) + +#ifdef _I386MACH_NEED_SOTYPE_FUNCTION +#define SOTYPE_FUNCTION(sym) .type SYM(sym),@function +#else +#define SOTYPE_FUNCTION(sym) +#endif + +#ifdef _I386MACH_ALLOW_HW_INTERRUPTS +#define __CLI +#define __STI +#else +#define __CLI cli +#define __STI sti +#endif Property changes on: trunk/cegcc/src/mingw/mingwex/wince/i386/i386mach.h ___________________________________________________________________ Added: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/i386/setjmp.S =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/i386/setjmp.S (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/i386/setjmp.S 2009-06-21 09:40:21 UTC (rev 1342) @@ -0,0 +1,87 @@ +/* This is file is a merger of SETJMP.S and LONGJMP.S */ +/* + * This file was modified to use the __USER_LABEL_PREFIX__ and + * __REGISTER_PREFIX__ macros defined by later versions of GNU cpp by + * Joel Sherrill (jo...@OA...) + * Slight change: now includes i386mach.h for this (Werner Almesberger) + * + * Copyright (C) 1991 DJ Delorie + * All rights reserved. + * + * Redistribution and use in source and binary forms is permitted + * provided that the above copyright notice and following paragraph are + * duplicated in all such forms. + * + * This file is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + + /* + ** jmp_buf: + ** eax ebx ecx edx esi edi ebp esp eip + ** 0 4 8 12 16 20 24 28 32 + */ + + #include "i386mach.h" + + .global SYM (setjmp) + .global SYM (longjmp) + SOTYPE_FUNCTION(setjmp) + SOTYPE_FUNCTION(longjmp) + +SYM (setjmp): + + pushl ebp + movl esp,ebp + + pushl edi + movl 8 (ebp),edi + + movl eax,0 (edi) + movl ebx,4 (edi) + movl ecx,8 (edi) + movl edx,12 (edi) + movl esi,16 (edi) + + movl -4 (ebp),eax + movl eax,20 (edi) + + movl 0 (ebp),eax + movl eax,24 (edi) + + movl esp,eax + addl $12,eax + movl eax,28 (edi) + + movl 4 (ebp),eax + movl eax,32 (edi) + + popl edi + movl $0,eax + leave + ret + +SYM (longjmp): + pushl ebp + movl esp,ebp + + movl 8(ebp),edi /* get jmp_buf */ + movl 12(ebp),eax /* store retval in j->eax */ + movl eax,0(edi) + + movl 24(edi),ebp + + __CLI + movl 28(edi),esp + + pushl 32(edi) + + movl 0(edi),eax + movl 4(edi),ebx + movl 8(edi),ecx + movl 12(edi),edx + movl 16(edi),esi + movl 20(edi),edi + __STI + + ret This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-17 19:30:46
|
Revision: 1341 http://cegcc.svn.sourceforge.net/cegcc/?rev=1341&view=rev Author: dannybackx Date: 2009-06-17 19:30:45 +0000 (Wed, 17 Jun 2009) Log Message: ----------- Define libgcc startup function for x86 like on ARM. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-06-15 16:25:17 UTC (rev 1340) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-06-17 19:30:45 UTC (rev 1341) @@ -1,3 +1,8 @@ +2009-06-17 Danny Backx <dan...@us...> + + * gcc/config/i386/mingw32ce.h (NAME__MAIN, SYMBOL__MAIN): Define like + in the ARM world. + 2009-06-15 Danny Backx <dan...@us...> * configure : Regenerate. Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h 2009-06-15 16:25:17 UTC (rev 1340) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h 2009-06-17 19:30:45 UTC (rev 1341) @@ -203,3 +203,14 @@ #undef REAL_LIBGCC_SPEC #define REAL_LIBGCC_SPEC SHARED_LIBGCC_SPEC + +/* Emit code to check the stack when allocating more than 4000 + bytes in one go. */ +#ifdef CHECK_STACK_LIMIT +#warning CHECK_STACK_LIMIT +#undef CHECK_STACK_LIMIT +#endif + +/* Define these to be in sync with the arm-mingw32ce and arm-cegcc world */ +#define NAME__MAIN "__gccmain" +#define SYMBOL__MAIN __gccmain This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-15 16:26:35
|
Revision: 1340 http://cegcc.svn.sourceforge.net/cegcc/?rev=1340&view=rev Author: dannybackx Date: 2009-06-15 16:25:17 +0000 (Mon, 15 Jun 2009) Log Message: ----------- Grmbl, also need to commit the regenerated configure script. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/configure Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-06-14 13:30:50 UTC (rev 1339) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-06-15 16:25:17 UTC (rev 1340) @@ -1,3 +1,7 @@ +2009-06-15 Danny Backx <dan...@us...> + + * configure : Regenerate. + 2009-06-14 Danny Backx <dan...@us...> * configure.ac : Replace entries referencing winsup by ones that match Modified: trunk/cegcc/src/gcc-4.4.0/configure =================================================================== --- trunk/cegcc/src/gcc-4.4.0/configure 2009-06-14 13:30:50 UTC (rev 1339) +++ trunk/cegcc/src/gcc-4.4.0/configure 2009-06-15 16:25:17 UTC (rev 1340) @@ -6315,6 +6315,9 @@ ;; esac case "$target" in +*-mingw32ce*) + # Special case for building for CE - no winsup + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/../mingw/include -isystem $$s/../w32api/include' ;; *-mingw*) # Can't be handled as Cygwin above since Mingw does not use newlib. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-14 14:15:10
|
Revision: 1339 http://cegcc.svn.sourceforge.net/cegcc/?rev=1339&view=rev Author: dannybackx Date: 2009-06-14 13:30:50 +0000 (Sun, 14 Jun 2009) Log Message: ----------- Add a tool to verify presence of a function in a DLL. Modified Paths: -------------- trunk/cegcc/tools/dll/Makefile Added Paths: ----------- trunk/cegcc/tools/dll/testapi.c Modified: trunk/cegcc/tools/dll/Makefile =================================================================== --- trunk/cegcc/tools/dll/Makefile 2009-06-14 12:50:57 UTC (rev 1338) +++ trunk/cegcc/tools/dll/Makefile 2009-06-14 13:30:50 UTC (rev 1339) @@ -6,10 +6,13 @@ ADEF= ${SRC}/w32api/libce/aygshell.def CFLAGS= -D_WIN32_WCE=0x0600 -D_WIN32_IE=0x0600 -all:: dllverify.exe +all:: dllverify.exe testapi.exe dllverify.exe: dllverify.c ${CC} -o $@ $< +testapi.exe: testapi.c + ${CC} -o $@ $< + clean: -rm -f *.o dllverify.exe Added: trunk/cegcc/tools/dll/testapi.c =================================================================== --- trunk/cegcc/tools/dll/testapi.c (rev 0) +++ trunk/cegcc/tools/dll/testapi.c 2009-06-14 13:30:50 UTC (rev 1339) @@ -0,0 +1,38 @@ +#include <windows.h> +#include <stdio.h> +#include <stdlib.h> + +void (WINAPI *fun)(void); + +int main(int argc, char *argv[]) +{ + int i; + HINSTANCE dll; + wchar_t dllname[64], wapi[64]; + + + if (argc < 3) { + printf("Usage : %s dll-name api-name [api-name ..]\n", argv[0]); + exit(0); + } + + mbstowcs(dllname, argv[1], 64); + dll = LoadLibrary(dllname); + if (! dll) { + DWORD e = GetLastError(); + printf("LoadLibrary(%s) : cannot load DLL -> error %d\n", argv[1], e); + exit(1); + } + for (i=2; i<argc; i++) { + mbstowcs(wapi, argv[i], 64); + *(FARPROC *)&fun = GetProcAddress(dll, wapi); + if (fun) { + printf("\t%s implements %s\n", argv[1], argv[i]); + } else { + DWORD e = GetLastError(); + printf("%s doesn't know about %s\n", argv[1], argv[i]); + } + } + + exit(0); +} Property changes on: trunk/cegcc/tools/dll/testapi.c ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-14 12:51:42
|
Revision: 1338 http://cegcc.svn.sourceforge.net/cegcc/?rev=1338&view=rev Author: dannybackx Date: 2009-06-14 12:50:57 +0000 (Sun, 14 Jun 2009) Log Message: ----------- Fix the build problem reported by Johnny. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/configure.ac Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-06-11 19:42:38 UTC (rev 1337) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-06-14 12:50:57 UTC (rev 1338) @@ -1,3 +1,8 @@ +2009-06-14 Danny Backx <dan...@us...> + + * configure.ac : Replace entries referencing winsup by ones that match + the cegcc directory structure. + 2009-06-02 Danny Backx <dan...@us...> * gcc/config/i386/mingw32ce.h, gcc/config/arm/wince-cegcc.h, Modified: trunk/cegcc/src/gcc-4.4.0/configure.ac =================================================================== --- trunk/cegcc/src/gcc-4.4.0/configure.ac 2009-06-11 19:42:38 UTC (rev 1337) +++ trunk/cegcc/src/gcc-4.4.0/configure.ac 2009-06-14 12:50:57 UTC (rev 1338) @@ -2616,6 +2616,9 @@ ;; esac case "$target" in +*-mingw32ce*) + # Special case for building for CE - no winsup + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/../mingw/include -isystem $$s/../w32api/include' ;; *-mingw*) # Can't be handled as Cygwin above since Mingw does not use newlib. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-11 19:42:47
|
Revision: 1337 http://cegcc.svn.sourceforge.net/cegcc/?rev=1337&view=rev Author: dannybackx Date: 2009-06-11 19:42:38 +0000 (Thu, 11 Jun 2009) Log Message: ----------- Define struct _SHELLEXECUTEINFO instead of struct _SHELLEXECUTEINFOA and struct _SHELLEXECUTEINFOW. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/shellapi.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-06-11 18:05:52 UTC (rev 1336) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-06-11 19:42:38 UTC (rev 1337) @@ -1,3 +1,8 @@ +2009-06-11 Danny Backx <dan...@us...> + + * include/shellapi.h (struct _SHELLEXECUTEINFO) : Define instead of + its struct _SHELLEXECUTEINFO(A|W) brothers. + 2009-06-11 Vincent Richomme <fo...@sm...> * include/mapidefs.h, include/pimstore.h : New files. Modified: trunk/cegcc/src/w32api/include/shellapi.h =================================================================== --- trunk/cegcc/src/w32api/include/shellapi.h 2009-06-11 18:05:52 UTC (rev 1336) +++ trunk/cegcc/src/w32api/include/shellapi.h 2009-06-11 19:42:38 UTC (rev 1337) @@ -213,40 +213,43 @@ #endif } NOTIFYICONDATAW,*PNOTIFYICONDATAW; -typedef struct _SHELLEXECUTEINFOA { +#ifdef UNICODE +typedef struct _SHELLEXECUTEINFO { DWORD cbSize; ULONG fMask; HWND hwnd; - LPCSTR lpVerb; - LPCSTR lpFile; - LPCSTR lpParameters; - LPCSTR lpDirectory; + LPCWSTR lpVerb; + LPCWSTR lpFile; + LPCWSTR lpParameters; + LPCWSTR lpDirectory; int nShow; HINSTANCE hInstApp; PVOID lpIDList; - LPCSTR lpClass; + LPCWSTR lpClass; HKEY hkeyClass; DWORD dwHotKey; HANDLE hIcon; HANDLE hProcess; -} SHELLEXECUTEINFOA,*LPSHELLEXECUTEINFOA; -typedef struct _SHELLEXECUTEINFOW { +} SHELLEXECUTEINFOW,*LPSHELLEXECUTEINFOW; +#else +typedef struct _SHELLEXECUTEINFO { DWORD cbSize; ULONG fMask; HWND hwnd; - LPCWSTR lpVerb; - LPCWSTR lpFile; - LPCWSTR lpParameters; - LPCWSTR lpDirectory; + LPCSTR lpVerb; + LPCSTR lpFile; + LPCSTR lpParameters; + LPCSTR lpDirectory; int nShow; HINSTANCE hInstApp; PVOID lpIDList; - LPCWSTR lpClass; + LPCSTR lpClass; HKEY hkeyClass; DWORD dwHotKey; HANDLE hIcon; HANDLE hProcess; -} SHELLEXECUTEINFOW,*LPSHELLEXECUTEINFOW; +} SHELLEXECUTEINFOA,*LPSHELLEXECUTEINFOA; +#endif typedef struct _SHFILEOPSTRUCTA { HWND hwnd; UINT wFunc; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-11 18:06:05
|
Revision: 1336 http://cegcc.svn.sourceforge.net/cegcc/?rev=1336&view=rev Author: dannybackx Date: 2009-06-11 18:05:52 +0000 (Thu, 11 Jun 2009) Log Message: ----------- Add files contributed by Vincent R Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce Added Paths: ----------- trunk/cegcc/src/w32api/include/mapidefs.h trunk/cegcc/src/w32api/include/pimstore.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-06-06 19:02:03 UTC (rev 1335) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-06-11 18:05:52 UTC (rev 1336) @@ -1,3 +1,7 @@ +2009-06-11 Vincent Richomme <fo...@sm...> + + * include/mapidefs.h, include/pimstore.h : New files. + 2009-06-06 Danny Backx <dan...@us...> * include/winbase.h (ExitProcess) : Change type of parameter to UINT. Added: trunk/cegcc/src/w32api/include/mapidefs.h =================================================================== --- trunk/cegcc/src/w32api/include/mapidefs.h (rev 0) +++ trunk/cegcc/src/w32api/include/mapidefs.h 2009-06-11 18:05:52 UTC (rev 1336) @@ -0,0 +1,18 @@ +#ifndef _MAPIDEFS_H +#define _MAPIDEFS_H +#if __GNUC__ >=3 +#pragma GCC system_header +#endif + +/* +* http://msdn.microsoft.com/en-us/library/ms862955.aspx (PROP_ID) +* http://msdn.microsoft.com/en-us/library/ms862956.aspx (PROP_TAG) +* http://msdn.microsoft.com/en-us/library/ms862957.aspx (PROP_TYPE) +*/ + +#define PROP_TYPE(ulPropTag) (((ULONG)(ulPropTag))& 0x0000FFFF) +#define PROP_ID(ulPropTag) (((ULONG)(ulPropTag)) >> 16) +#define PROP_TAG(ulPropType,ulPropID) ((((ULONG)(ulPropID)) << 16)|((ULONG)(ulPropType))) + + +#endif /* Not _MAPIDEFS_H */ \ No newline at end of file Property changes on: trunk/cegcc/src/w32api/include/mapidefs.h ___________________________________________________________________ Added: svn:eol-style + native Added: trunk/cegcc/src/w32api/include/pimstore.h =================================================================== --- trunk/cegcc/src/w32api/include/pimstore.h (rev 0) +++ trunk/cegcc/src/w32api/include/pimstore.h 2009-06-11 18:05:52 UTC (rev 1336) @@ -0,0 +1,104 @@ +#ifndef _PIMSTORE_H +#define _PIMSTORE_H + +#if __GNUC__ >= 3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#include <windows.h> +#include <basetyps.h> /* Make sure we have a CLSID definition */ +#include <mapidefs.h> + +/* +* http://msdn.microsoft.com/en-us/library/aa917573.aspx +* http://msdn.microsoft.com/en-us/library/bb446009.aspx +* http://msdn.microsoft.com/en-us/library/bb415504.aspx +*/ + +#define CEVT_PIM_STREAM (100) +#define CEVT_PIM_AUTO_I4 (102) + + + +#define PIMPR_ACCOUNT_NAME PROP_TAG( CEVT_LPWSTR, 0x00AB) +#define PIMPR_ANNIVERSARY PROP_TAG( CEVT_FILETIME, 0x00F1) +#define PIMPR_ASSISTANT_NAME PROP_TAG( CEVT_LPWSTR, 0x008F) +#define PIMPR_ASSISTANT_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x00A1) +#define PIMPR_BIRTHDAY PROP_TAG( CEVT_FILETIME, 0x00F0) +#define PIMPR_BUSINESS_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x10C0) +#define PIMPR_BUSINESS_ADDRESS_CITY PROP_TAG( CEVT_LPWSTR, 0x00C2) +#define PIMPR_BUSINESS_ADDRESS_COUNTRY PROP_TAG( CEVT_LPWSTR, 0x00C5) +#define PIMPR_BUSINESS_ADDRESS_POSTAL_CODE PROP_TAG( CEVT_LPWSTR, 0x00C4) +#define PIMPR_BUSINESS_ADDRESS_STATE PROP_TAG( CEVT_LPWSTR, 0x00C3) +#define PIMPR_BUSINESS_ADDRESS_STREET PROP_TAG( CEVT_LPWSTR, 0x00C1) +#define PIMPR_BUSINESS_FAX_NUMBER PROP_TAG( CEVT_LPWSTR, 0x009B) +#define PIMPR_BUSINESS_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x0097) +#define PIMPR_BUSINESS2_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x0098) +#define PIMPR_CAR_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x009E) +#define PIMPR_CHILDREN PROP_TAG( CEVT_LPWSTR, 0x00A6) +#define PIMPR_COMPANY_NAME PROP_TAG( CEVT_LPWSTR, 0x008A) +#define PIMPR_COMPANY_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x00A0) +#define PIMPR_CONTACT_TYPE PROP_TAG( CEVT_UI4, 0x0102) +#define PIMPR_CUSTOMERID PROP_TAG( CEVT_LPWSTR, 0x00A9) +#define PIMPR_DEPARTMENT PROP_TAG( CEVT_LPWSTR, 0x008B) +#define PIMPR_DISPLAY_NAME PROP_TAG( CEVT_LPWSTR, 0x10A4) +#define PIMPR_EMAIL1_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x0090) +#define PIMPR_EMAIL2_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x0091) +#define PIMPR_EMAIL3_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x0092) +#define PIMPR_FILEAS PROP_TAG( CEVT_LPWSTR, 0x0080) +#define PIMPR_FIRST_NAME PROP_TAG( CEVT_LPWSTR, 0x0082) +#define PIMPR_GOVERNMENTID PROP_TAG( CEVT_LPWSTR, 0x00AA) +#define PIMPR_HOME_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x10D0) +#define PIMPR_HOME_ADDRESS_CITY PROP_TAG( CEVT_LPWSTR, 0x00D2) +#define PIMPR_HOME_ADDRESS_COUNTRY PROP_TAG( CEVT_LPWSTR, 0x00D5) +#define PIMPR_HOME_ADDRESS_POSTAL_CODE PROP_TAG( CEVT_LPWSTR, 0x00D4) +#define PIMPR_HOME_ADDRESS_STATE PROP_TAG( CEVT_LPWSTR, 0x00D3) +#define PIMPR_HOME_ADDRESS_STREET PROP_TAG( CEVT_LPWSTR, 0x00D1) +#define PIMPR_HOME_FAX_NUMBER PROP_TAG( CEVT_LPWSTR, 0x009C) +#define PIMPR_HOME_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x0099) +#define PIMPR_HOME2_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x009A) +#define PIMPR_IM1_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x0093) +#define PIMPR_IM2_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x0094) +#define PIMPR_IM3_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x0095) +#define PIMPR_JOB_TITLE PROP_TAG( CEVT_LPWSTR, 0x008C) +#define PIMPR_LAST_NAME PROP_TAG( CEVT_LPWSTR, 0x0084) +#define PIMPR_MANAGER PROP_TAG( CEVT_LPWSTR, 0x008D) +#define PIMPR_MIDDLE_NAME PROP_TAG( CEVT_LPWSTR, 0x0083) +#define PIMPR_MMS PROP_TAG( CEVT_LPWSTR, 0x10A3) +#define PIMPR_MOBILE_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x0096) +#define PIMPR_NICKNAME PROP_TAG( CEVT_LPWSTR, 0x0086) +#define PIMPR_OFFICE_LOCATION PROP_TAG( CEVT_LPWSTR, 0x008E) +#define PIMPR_OTHER_ADDRESS PROP_TAG( CEVT_LPWSTR, 0x10E0) +#define PIMPR_OTHER_ADDRESS_CITY PROP_TAG( CEVT_LPWSTR, 0x00E2) +#define PIMPR_OTHER_ADDRESS_COUNTRY PROP_TAG( CEVT_LPWSTR, 0x00E5) +#define PIMPR_OTHER_ADDRESS_POSTAL_CODE PROP_TAG( CEVT_LPWSTR, 0x00E4) +#define PIMPR_OTHER_ADDRESS_STATE PROP_TAG( CEVT_LPWSTR, 0x00E3) +#define PIMPR_OTHER_ADDRESS_STREET PROP_TAG( CEVT_LPWSTR, 0x00E1) +#define PIMPR_PAGER_NUMBER PROP_TAG( CEVT_LPWSTR, 0x009D) +#define PIMPR_PICTURE PROP_TAG( CEVT_PIM_STREAM,0x00FF) +#define PIMPR_RADIO_TELEPHONE_NUMBER PROP_TAG( CEVT_LPWSTR, 0x009F) +#define PIMPR_RINGTONE PROP_TAG( CEVT_LPWSTR, 0x00A8) +#define PIMPR_SIM_PHONE PROP_TAG( CEVT_LPWSTR, 0x0003) +#define PIMPR_SMARTPROP PROP_TAG( CEVT_UI4, 0x00F8) +#define PIMPR_SMS PROP_TAG( CEVT_LPWSTR, 0x10A2) +#define PIMPR_SPOUSE PROP_TAG( CEVT_LPWSTR, 0x00A5) +#define PIMPR_SUFFIX PROP_TAG( CEVT_LPWSTR, 0x0085) +#define PIMPR_TITLE PROP_TAG( CEVT_LPWSTR, 0x0081) +#define PIMPR_WEB_PAGE PROP_TAG( CEVT_LPWSTR, 0x00A7) +#define PIMPR_YOMI_COMPANY PROP_TAG( CEVT_LPWSTR, 0x0089) +#define PIMPR_YOMI_FILEAS PROP_TAG( CEVT_LPWSTR, 0x0101) +#define PIMPR_YOMI_FIRSTNAME PROP_TAG( CEVT_LPWSTR, 0x0087) +#define PIMPR_YOMI_LASTNAME PROP_TAG( CEVT_LPWSTR, 0x0088) + + + + +#ifdef __cplusplus +} +#endif + +#endif /* _PIMSTORE_H */ Property changes on: trunk/cegcc/src/w32api/include/pimstore.h ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-06 19:02:05
|
Revision: 1335 http://cegcc.svn.sourceforge.net/cegcc/?rev=1335&view=rev Author: dannybackx Date: 2009-06-06 19:02:03 +0000 (Sat, 06 Jun 2009) Log Message: ----------- for stack manipulation Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winbase.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-06-03 20:26:12 UTC (rev 1334) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-06-06 19:02:03 UTC (rev 1335) @@ -1,4 +1,10 @@ -2009-05-39 Danny Backx <dan...@us...> +2009-06-06 Danny Backx <dan...@us...> + + * include/winbase.h (ExitProcess) : Change type of parameter to UINT. + * include/winbase.h (STACK_SIZE_PARAM_IS_A_RESERVATION) : Define with + the value found on MSDN. + +2009-05-29 Danny Backx <dan...@us...> * include/winnt.h (DLL_PROCESS_EXITING, DLL_SYSTEM_STARTED, FILE_ATTRIBUTE_ROMMODULE, FILE_ATTRIBUTE_INROM) : Define. Modified: trunk/cegcc/src/w32api/include/winbase.h =================================================================== --- trunk/cegcc/src/w32api/include/winbase.h 2009-06-03 20:26:12 UTC (rev 1334) +++ trunk/cegcc/src/w32api/include/winbase.h 2009-06-06 19:02:03 UTC (rev 1335) @@ -1349,6 +1349,7 @@ WINBASEAPI BOOL WINAPI CreateTimerQueueTimer(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,DWORD,DWORD,ULONG); #endif WINBASEAPI HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,PVOID,DWORD,PDWORD); +#define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000 WINBASEAPI HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR); WINBASEAPI HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR); #if (_WIN32_WINNT >= 0x0501) @@ -1419,7 +1420,7 @@ WINBASEAPI BOOL WINAPI TerminateProcess(HANDLE,UINT); #include <kfuncs.h> #ifdef _WIN32_WCE -static inline void ExitProcess(int code) +static inline void ExitProcess(UINT code) { TerminateProcess(GetCurrentProcess(), code); while (1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-03 20:26:13
|
Revision: 1334 http://cegcc.svn.sourceforge.net/cegcc/?rev=1334&view=rev Author: dannybackx Date: 2009-06-03 20:26:12 +0000 (Wed, 03 Jun 2009) Log Message: ----------- Remove -lgcc_s Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/mingwdll/libstdc++/Makefile Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-06-03 19:56:09 UTC (rev 1333) +++ trunk/cegcc/src/ChangeLog 2009-06-03 20:26:12 UTC (rev 1334) @@ -1,3 +1,8 @@ +2009-06-03 Danny Backx <dan...@us...> + + * mingwdll/libstdc++/Makefile : Remove -lgcc_s flag. No longer + required with the recent gcc-4.4.0 fix inspired by Dave Korn. + 2009-05-31 Danny Backx <dan...@us...> * mingwdll/get-version : Deal with other directory than src/gcc . Modified: trunk/cegcc/src/mingwdll/libstdc++/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-06-03 19:56:09 UTC (rev 1333) +++ trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-06-03 20:26:12 UTC (rev 1334) @@ -15,7 +15,7 @@ DLLVERSION= `${BASE_DIRECTORY}/mingwdll/get-version` -DLL_LIBS= -lgcc -lgcc_s # -lws2 +DLL_LIBS= -lgcc GCC_VERSION= `${TARGET}-gcc --version | head -1 | awk '{print $$3;}'` This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-03 19:56:23
|
Revision: 1333 http://cegcc.svn.sourceforge.net/cegcc/?rev=1333&view=rev Author: dannybackx Date: 2009-06-03 19:56:09 +0000 (Wed, 03 Jun 2009) Log Message: ----------- Replace tail syntax Modified Paths: -------------- trunk/cegcc/src/scripts/ChangeLog trunk/cegcc/src/scripts/build-cegcc.sh trunk/cegcc/src/scripts/build-mingw32ce.sh trunk/cegcc/src/scripts/build-x86.sh Modified: trunk/cegcc/src/scripts/ChangeLog =================================================================== --- trunk/cegcc/src/scripts/ChangeLog 2009-06-02 19:15:55 UTC (rev 1332) +++ trunk/cegcc/src/scripts/ChangeLog 2009-06-03 19:56:09 UTC (rev 1333) @@ -1,3 +1,8 @@ +2009-06-03 Vincent Richomme <fo...@sm...> + + * build-{mingw32ce,cegcc,x86}.sh : Replace tail --lines=+$L2 by tail + -n $L2. This is said to be more portable. + 2009-05-31 Danny Backx <dan...@us...> * build-x86.sh : Copy Stefans patch to this script. Modified: trunk/cegcc/src/scripts/build-cegcc.sh =================================================================== --- trunk/cegcc/src/scripts/build-cegcc.sh 2009-06-02 19:15:55 UTC (rev 1332) +++ trunk/cegcc/src/scripts/build-cegcc.sh 2009-06-03 19:56:09 UTC (rev 1333) @@ -12,7 +12,7 @@ ac_default_prefix="/opt/cegcc" ac_default_destdir="${BUILD_DIR}/install" -gcc_src=gcc +export gcc_src=gcc-4.4.0 # The list of components, in build order. There's a build_FOO # function for each of these components @@ -280,7 +280,7 @@ echo "#define __CEGCC_VERSION_MINOR__ " $CEGCC_VERSION_MINOR >> ${DESTFILE} echo "#define __CEGCC_VERSION_PATCHLEVEL__ " $CEGCC_VERSION_PATCHLEVEL >> ${DESTFILE} echo "#define __CEGCC_BUILD_DATE__" `date +%Y%m%d` >> ${DESTFILE} - tail +$L2 ${INCFILE} >>${DESTFILE} + tail -n +$L2 ${INCFILE} >>${DESTFILE} cd ${BUILD_DIR} } @@ -457,7 +457,7 @@ done export TARGET="arm-cegcc" -export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` +export BUILD=`sh ${BASE_DIRECTORY}/${gcc_src}/config.guess` export PATH=${PREFIX}/bin:${PATH} if [ "x${host}" != "x" ]; then Modified: trunk/cegcc/src/scripts/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-06-02 19:15:55 UTC (rev 1332) +++ trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-06-03 19:56:09 UTC (rev 1333) @@ -277,7 +277,7 @@ echo "#define __CEGCC_VERSION_MINOR__ " $CEGCC_VERSION_MINOR >> ${DESTFILE} echo "#define __CEGCC_VERSION_PATCHLEVEL__ " $CEGCC_VERSION_PATCHLEVEL >> ${DESTFILE} echo "#define __CEGCC_BUILD_DATE__" `date +%Y%m%d` >> ${DESTFILE} - tail --lines=+$L2 ${INCFILE} >>${DESTFILE} + tail -n +$L2 ${INCFILE} >>${DESTFILE} cd ${BUILD_DIR} } Modified: trunk/cegcc/src/scripts/build-x86.sh =================================================================== --- trunk/cegcc/src/scripts/build-x86.sh 2009-06-02 19:15:55 UTC (rev 1332) +++ trunk/cegcc/src/scripts/build-x86.sh 2009-06-03 19:56:09 UTC (rev 1333) @@ -281,7 +281,7 @@ echo "#define __CEGCC_VERSION_MINOR__ " $CEGCC_VERSION_MINOR >> ${DESTFILE} echo "#define __CEGCC_VERSION_PATCHLEVEL__ " $CEGCC_VERSION_PATCHLEVEL >> ${DESTFILE} echo "#define __CEGCC_BUILD_DATE__" `date +%Y%m%d` >> ${DESTFILE} - tail --lines=+$L2 ${INCFILE} >>${DESTFILE} + tail -n +$L2 ${INCFILE} >>${DESTFILE} cd ${BUILD_DIR} } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-02 19:15:57
|
Revision: 1332 http://cegcc.svn.sourceforge.net/cegcc/?rev=1332&view=rev Author: dannybackx Date: 2009-06-02 19:15:55 +0000 (Tue, 02 Jun 2009) Log Message: ----------- Inspired on Dave Korn's comments : fix libgcc DLL support. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/mingw32.h trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/wince-cegcc.h trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-06-01 15:48:44 UTC (rev 1331) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-06-02 19:15:55 UTC (rev 1332) @@ -1,3 +1,11 @@ +2009-06-02 Danny Backx <dan...@us...> + + * gcc/config/i386/mingw32ce.h, gcc/config/arm/wince-cegcc.h, + gcc/config/arm/mingw32.h (LIBGCC_SPEC) : Remove, replace by + * gcc/config/i386/mingw32ce.h, gcc/config/arm/wince-cegcc.h, + gcc/config/arm/mingw32.h (SHARED_LIBGCC_SPEC, REAL_LIBGCC_SPEC) : New + macros that support the shared libgcc. + 2009-05-30 Danny Backx <dan...@us...> * gcc/config/i386/mingw32ce.h : Use _DllMainCRTStartup with underscore. Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/mingw32.h =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/mingw32.h 2009-06-01 15:48:44 UTC (rev 1331) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/mingw32.h 2009-06-02 19:15:55 UTC (rev 1332) @@ -47,11 +47,6 @@ %{static:-Bstatic} %{!static:-Bdynamic} \ %{shared|mdll: -e DllMainCRTStartup}" -/* Include in the mingw32 libraries with libgcc */ -#undef LIBGCC_SPEC -#define LIBGCC_SPEC \ - "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lceoldname -lmingwex -lcoredll" - #undef STARTFILE_SPEC #define STARTFILE_SPEC "%{shared|mdll:dllcrt3%O%s} \ %{!shared:%{!mdll:crt3%O%s}} %{pg:gcrt3%O%s}" @@ -91,3 +86,40 @@ \ putc ('\"', asm_file); \ } while (0) + +/* + * See the message from Dave Korn dated 2009/06/01 15:44 on the cegcc mailing + * list, and the gcc ChangeLog entry dated 2009-01-21, also by Dave. + * + * Based on that, we're replacing LIBGCC_SPEC by SHARED_LIBGCC_SPEC and + * REAL_GCC_SPEC. This is based on cygwin's definition, which we extend + * with the other libraries we need. + * + * The old definition : + "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lceoldname -lmingwex -lcoredll" + * + */ +#undef LIBGCC_SPEC + +#undef SHARED_LIBGCC_SPEC +#ifdef ENABLE_SHARED_LIBGCC +#define SHARED_LIBGCC_SPEC " \ + %{mthreads:-lmingwthrd} -lmingw32 \ + %{static|static-libgcc:-lgcc -lgcc_eh} \ + %{!static: \ + %{!static-libgcc: \ + %{!shared: \ + %{!shared-libgcc:-lgcc -lgcc_eh} \ + %{shared-libgcc:-lgcc_s -lgcc} \ + } \ + %{shared:-lgcc_s -lgcc} \ + } \ + } \ + -lceoldname -lmingwex -lcoredll" +#else +#define SHARED_LIBGCC_SPEC \ + "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lceoldname -lmingwex -lcoredll" +#endif + +#undef REAL_LIBGCC_SPEC +#define REAL_LIBGCC_SPEC SHARED_LIBGCC_SPEC Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/wince-cegcc.h =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/wince-cegcc.h 2009-06-01 15:48:44 UTC (rev 1331) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/arm/wince-cegcc.h 2009-06-02 19:15:55 UTC (rev 1332) @@ -43,10 +43,6 @@ %{pg: gcrt3%O%s} \ " -#undef LIBGCC_SPEC -#define LIBGCC_SPEC \ - "%{mthreads:-lcegccthrd} %{!static: -lcegcc } -lgcc" - /* We have to dynamic link to get to the system DLLs. All of libc, libm, the Unix stuff is in cegcc.dll. The import library is called 'libcegcc.dll.a'. For Windows applications, include more libraries, but @@ -65,3 +61,39 @@ %{static:-Bstatic} %{!static:-Bdynamic} \ %{shared|mdll: -e DllMainCRTStartup} \ " + + +/* + * See the message from Dave Korn dated 2009/06/01 15:44 on the cegcc mailing + * list, and the gcc ChangeLog entry dated 2009-01-21, also by Dave. + * + * Based on that, we're replacing LIBGCC_SPEC by SHARED_LIBGCC_SPEC and + * REAL_GCC_SPEC. This is based on cygwin's definition, which we extend + * with the other libraries we need. + * + * The old definition : + * "%{mthreads:-lcegccthrd} %{!static: -lcegcc } -lgcc" + */ +#undef LIBGCC_SPEC + +#undef SHARED_LIBGCC_SPEC +#ifdef ENABLE_SHARED_LIBGCC +#define SHARED_LIBGCC_SPEC " \ + %{mthreads:-lcegccthrd} \ + %{!static: -lcegcc } \ + %{static|static-libgcc:-lgcc -lgcc_eh} \ + %{!static: \ + %{!static-libgcc: \ + %{!shared: \ + %{!shared-libgcc:-lgcc -lgcc_eh} \ + %{shared-libgcc:-lgcc_s -lgcc} \ + } \ + %{shared:-lgcc_s -lgcc} \ + } \ + } " +#else +#define SHARED_LIBGCC_SPEC "%{mthreads:-lcegccthrd} %{!static: -lcegcc } -lgcc" +#endif + +#undef REAL_LIBGCC_SPEC +#define REAL_LIBGCC_SPEC SHARED_LIBGCC_SPEC Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h 2009-06-01 15:48:44 UTC (rev 1331) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h 2009-06-02 19:15:55 UTC (rev 1332) @@ -95,11 +95,6 @@ %{!shared:%{!mdll:crt3%O%s}} %{pg:gcrt3%O%s}" -/* Include in the mingw32 libraries with libgcc */ -#undef LIBGCC_SPEC -#define LIBGCC_SPEC \ - "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lceoldname -lmingwex" - /* One entry from cygming.h, the other one is cegcc exception handling */ #ifdef SUBTARGET_ATTRIBUTE_TABLE #undef SUBTARGET_ATTRIBUTE_TABLE @@ -172,3 +167,39 @@ #undef SHLIB_LC #define SHLIB_LC "-lmingw32 -lmingwex -lmsvcrt" + +/* + * See the message from Dave Korn dated 2009/06/01 15:44 on the cegcc mailing + * list, and the gcc ChangeLog entry dated 2009-01-21, also by Dave. + * + * Based on that, we're replacing LIBGCC_SPEC by SHARED_LIBGCC_SPEC and + * REAL_GCC_SPEC. This is based on cygwin's definition, which we extend + * with the other libraries we need (our list was -lmingw32 -lgcc -lceoldname + * -lmingwex prior to this). + * + * The REAL_LIBGCC_SPEC only contained support for the -mno-cygwin flag, + * which is why there's no difference with SHARED_LIBGCC_SPEC here. + */ +#undef LIBGCC_SPEC + +#undef SHARED_LIBGCC_SPEC +#ifdef ENABLE_SHARED_LIBGCC +#define SHARED_LIBGCC_SPEC " \ + %{mthreads:-lmingwthrd} -lmingw32 \ + %{static|static-libgcc:-lgcc -lgcc_eh} \ + %{!static: \ + %{!static-libgcc: \ + %{!shared: \ + %{!shared-libgcc:-lgcc -lgcc_eh} \ + %{shared-libgcc:-lgcc_s -lgcc} \ + } \ + %{shared:-lgcc_s -lgcc} \ + } \ + } \ + -lceoldname -lmingwex" +#else +#define SHARED_LIBGCC_SPEC " -lmingw32 -lgcc -lceoldname -lmingwex " +#endif + +#undef REAL_LIBGCC_SPEC +#define REAL_LIBGCC_SPEC SHARED_LIBGCC_SPEC This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-01 15:48:45
|
Revision: 1331 http://cegcc.svn.sourceforge.net/cegcc/?rev=1331&view=rev Author: dannybackx Date: 2009-06-01 15:48:44 +0000 (Mon, 01 Jun 2009) Log Message: ----------- The tool to compare our .def files with the real DLL. Added Paths: ----------- trunk/cegcc/tools/dll/ trunk/cegcc/tools/dll/Makefile trunk/cegcc/tools/dll/dllverify.c Added: trunk/cegcc/tools/dll/Makefile =================================================================== --- trunk/cegcc/tools/dll/Makefile (rev 0) +++ trunk/cegcc/tools/dll/Makefile 2009-06-01 15:48:44 UTC (rev 1331) @@ -0,0 +1,15 @@ +ARCH= i386-mingw32ce + +CC= ${ARCH}-gcc +SRC= ../../src +CDEF= ${SRC}/mingw/coredll.def +ADEF= ${SRC}/w32api/libce/aygshell.def +CFLAGS= -D_WIN32_WCE=0x0600 -D_WIN32_IE=0x0600 + +all:: dllverify.exe + +dllverify.exe: dllverify.c + ${CC} -o $@ $< + +clean: + -rm -f *.o dllverify.exe Property changes on: trunk/cegcc/tools/dll/Makefile ___________________________________________________________________ Added: svn:eol-style + native Added: trunk/cegcc/tools/dll/dllverify.c =================================================================== --- trunk/cegcc/tools/dll/dllverify.c (rev 0) +++ trunk/cegcc/tools/dll/dllverify.c 2009-06-01 15:48:44 UTC (rev 1331) @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2009 by Danny Backx + * + * This file is part of cegcc. + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 3, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING3. If not see + * <http://www.gnu.org/licenses/>. + */ + +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <string.h> + +#include <windows.h> +#include <winbase.h> + +#define LINELEN 512 +#define SYMLEN 64 + +BOOL (WINAPI *fun)(SYSTEM_POWER_STATUS_EX *, BOOL); +BOOL r; +SYSTEM_POWER_STATUS_EX st; +HINSTANCE dll = 0; + +int main(int argc, char *argv[]) +{ + char bf[LINELEN], lib[LINELEN], name[SYMLEN]; + wchar_t *libname, wname[SYMLEN]; + int len, rr, lineno, id; + int nfail = 0, nsuccess = 0, nexports = 0, nempty = 0; + FILE *f; + + if (argc != 2) { + printf("Usage : %s libname.def\n", argv[0]); + exit(1); + } + + f = fopen(argv[1], "r"); + if (!f) { + fprintf(stderr, "Cannot open %s\n", argv[1]); + exit(1); + } + + lineno = 0; + while (! feof(f)) { + if (fgets(bf, LINELEN, f) == 0) + break; + lineno++; + + if (bf[0] == '\0' || bf[0] == ';') { + nempty++; + } else if (strncasecmp(bf, "library", 7) == 0) { + rr = sscanf(bf+8, "%[^ \t\r\n]", lib); + + len = strlen(lib); + libname = calloc(len+1, sizeof(wchar_t)); + mbstowcs(libname, lib, len); + libname[len] = 0; + + printf("Loading DLL [%s]\n", lib); + + dll = LoadLibrary(libname); + if (! dll) { + DWORD e = GetLastError(); + printf("\tLoadLibrary -> error %d\n", e); + exit(1); + } + } else if (strncasecmp(bf, "exports", 7) == 0) { + nexports++; /* Do nothing */ + } else if (dll) { + rr = sscanf(bf, "%[^ \t\r\n]", &name); + + if (rr == 1) { + mbstowcs(wname, name, strlen(name)+1); + + *(FARPROC *)&fun = GetProcAddress(dll, wname); + if (fun == NULL) { + printf("##### %s not found\n", name); + nfail++; + } else { +// printf("\tbf %s\t%s ok\n", bf, name); + nsuccess++; + } + } + } + } + + fclose(f); + + printf("Results\n\t%d lines read\n\t%d failures\n" + "\t%d success\n\t%d export lines\n\t%d empty lines\n", + lineno, + nfail, + nsuccess, nexports, nempty); + exit(0); +} + +/* +LIBRARY AYGSHELL +EXPORTS +SHImListPopup +SHInitDialog @56 ; described on MSDN, published by name and number +SHInitExtraControls +Shell_RegAllocString +StrStrI +SubClassThisWindow +; +; These are NONAME but confirmed somehow +; +SHHandleWMSettingChange @83 NONAME ; described as NONAME on MSDN +SHHandleWMActivate @84 NONAME ; described as NONAME on MSDN +SHSendBackToFocusWindow @97 NONAME ; http://groups.google.hu/group/microsoft.public.windowsce.embedded/msg/e407143ac07929b9 +; +*/ Property changes on: trunk/cegcc/tools/dll/dllverify.c ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-31 18:31:39
|
Revision: 1330 http://cegcc.svn.sourceforge.net/cegcc/?rev=1330&view=rev Author: dannybackx Date: 2009-05-31 18:31:34 +0000 (Sun, 31 May 2009) Log Message: ----------- Another one Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/mingwdll/Makefile Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-05-31 18:29:06 UTC (rev 1329) +++ trunk/cegcc/src/ChangeLog 2009-05-31 18:31:34 UTC (rev 1330) @@ -3,6 +3,7 @@ * mingwdll/get-version : Deal with other directory than src/gcc . * mingwdll/libstdc++/Makefile : Fix typo in variable name, use the right compiler, use the right set of libraries. + * mingwdll/Makefile : Don't build anything in libsupc++ 2009-05-26 Vincent Richomme <fo...@sm...> Modified: trunk/cegcc/src/mingwdll/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/Makefile 2009-05-31 18:29:06 UTC (rev 1329) +++ trunk/cegcc/src/mingwdll/Makefile 2009-05-31 18:31:34 UTC (rev 1330) @@ -1,4 +1,5 @@ -SUBDIRS= libstdc++ libsupc++ +#SUBDIRS= libstdc++ libsupc++ +SUBDIRS= libstdc++ all:: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-31 18:29:14
|
Revision: 1329 http://cegcc.svn.sourceforge.net/cegcc/?rev=1329&view=rev Author: dannybackx Date: 2009-05-31 18:29:06 +0000 (Sun, 31 May 2009) Log Message: ----------- Forgotten commit Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/mingwdll/get-version trunk/cegcc/src/mingwdll/libstdc++/Makefile Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-05-31 14:53:08 UTC (rev 1328) +++ trunk/cegcc/src/ChangeLog 2009-05-31 18:29:06 UTC (rev 1329) @@ -1,3 +1,9 @@ +2009-05-31 Danny Backx <dan...@us...> + + * mingwdll/get-version : Deal with other directory than src/gcc . + * mingwdll/libstdc++/Makefile : Fix typo in variable name, use the + right compiler, use the right set of libraries. + 2009-05-26 Vincent Richomme <fo...@sm...> * scripts/build-*.sh : Change syntax of tail command. Modified: trunk/cegcc/src/mingwdll/get-version =================================================================== --- trunk/cegcc/src/mingwdll/get-version 2009-05-31 14:53:08 UTC (rev 1328) +++ trunk/cegcc/src/mingwdll/get-version 2009-05-31 18:29:06 UTC (rev 1329) @@ -2,7 +2,10 @@ if [ "x$BASE_DIRECTORY" = "x" ]; then BASE_DIRECTORY=/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src fi -LIBVER=$(grep libtool_VERSION= ${BASE_DIRECTORY}/gcc/libstdc++-v3/configure | sed -e 's/libtool_VERSION=//') +if [ "x$gcc_src" = "x" ]; then + gcc_src=gcc-4.4.0 +fi +LIBVER=$(grep libtool_VERSION= ${BASE_DIRECTORY}/${gcc_src}/libstdc++-v3/configure | sed -e 's/libtool_VERSION=//') LIBVER_c=$(echo $LIBVER | awk -F: '{print $1}') LIBVER_r=$(echo $LIBVER | awk -F: '{print $2}') LIBVER_a=$(echo $LIBVER | awk -F: '{print $3}') Modified: trunk/cegcc/src/mingwdll/libstdc++/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-05-31 14:53:08 UTC (rev 1328) +++ trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-05-31 18:29:06 UTC (rev 1329) @@ -15,7 +15,7 @@ DLLVERSION= `${BASE_DIRECTORY}/mingwdll/get-version` -DLL_LIBS= # -lws2 +DLL_LIBS= -lgcc -lgcc_s # -lws2 GCC_VERSION= `${TARGET}-gcc --version | head -1 | awk '{print $$3;}'` @@ -23,10 +23,10 @@ mkdir -p ${BUILD_DIR}/${MYDIR} ${TARGET}-dlltool --output-def ${BUILD_DIR}/${MYDIR}/${ME}.def \ --export-all ${PREFIX}/${TARGET}/lib/${ME}.a - cd ${BUILD_DIR}/${MYDIR}; ${TARGET}-gcc --shared \ + cd ${BUILD_DIR}/${MYDIR}; ${TARGET}-g++ --shared \ -o ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll \ -Wl,--out-implib,${ME}.dll.a ${BUILD_DIR}/${MYDIR}/${ME}.def \ - ${PREFIX}/${TARGET}/lib/${ME}.a ${DLL-LIBS} + ${PREFIX}/${TARGET}/lib/${ME}.a ${DLL_LIBS} -rm -f ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped ${TARGET}-strip ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-31 14:53:10
|
Revision: 1328 http://cegcc.svn.sourceforge.net/cegcc/?rev=1328&view=rev Author: dannybackx Date: 2009-05-31 14:53:08 +0000 (Sun, 31 May 2009) Log Message: ----------- Typo Modified Paths: -------------- trunk/cegcc/src/scripts/build-x86.sh Modified: trunk/cegcc/src/scripts/build-x86.sh =================================================================== --- trunk/cegcc/src/scripts/build-x86.sh 2009-05-31 12:18:29 UTC (rev 1327) +++ trunk/cegcc/src/scripts/build-x86.sh 2009-05-31 14:53:08 UTC (rev 1328) @@ -326,6 +326,7 @@ --without-newlib \ --enable-checking \ --with-headers + ;; gcc-*) ${BASE_DIRECTORY}/${gcc_src}/configure \ --with-gcc \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-31 13:22:13
|
Revision: 1327 http://cegcc.svn.sourceforge.net/cegcc/?rev=1327&view=rev Author: dannybackx Date: 2009-05-31 12:18:29 +0000 (Sun, 31 May 2009) Log Message: ----------- Copy Stefans patch Modified Paths: -------------- trunk/cegcc/src/scripts/ChangeLog trunk/cegcc/src/scripts/build-x86.sh Modified: trunk/cegcc/src/scripts/ChangeLog =================================================================== --- trunk/cegcc/src/scripts/ChangeLog 2009-05-30 19:48:42 UTC (rev 1326) +++ trunk/cegcc/src/scripts/ChangeLog 2009-05-31 12:18:29 UTC (rev 1327) @@ -1,3 +1,7 @@ +2009-05-31 Danny Backx <dan...@us...> + + * build-x86.sh : Copy Stefans patch to this script. + 2009-05-27 Stefan Klug <Klu...@gm...> * build-mingw32ce.sh : Get the old gcc to build if gcc_src=gcc is Modified: trunk/cegcc/src/scripts/build-x86.sh =================================================================== --- trunk/cegcc/src/scripts/build-x86.sh 2009-05-30 19:48:42 UTC (rev 1326) +++ trunk/cegcc/src/scripts/build-x86.sh 2009-05-31 12:18:29 UTC (rev 1327) @@ -14,7 +14,9 @@ ac_default_prefix="/opt/x86mingw32ce" -export gcc_src=gcc-4.4.0 +if [ -z "${gcc_src}" ]; then + export gcc_src=gcc-4.4.0 +fi # The list of components, in build order. There's a build_FOO # function for each of these components @@ -220,18 +222,26 @@ --without-newlib \ --enable-checking - make ${PARALLELISM} all-gcc || exit 1 - make install-gcc || exit 1 - make configure-target-libgcc || exit 1 - cd ${TARGET}/libgcc || exit 1 - make ${PARALLELLISM} libgcc.a crtbegin.o crtend.o crtfastmath.o || exit 1 - /usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 - /usr/bin/install -c -m 644 crtbegin.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 - /usr/bin/install -c -m 644 crtend.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 - /usr/bin/install -c -m 644 crtfastmath.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + case ${gcc_src} in + gcc) + make ${PARALLELISM} all-gcc || exit 1 + make install-gcc || exit 1 + ;; + gcc-*) + make ${PARALLELISM} all-gcc || exit 1 + make install-gcc || exit 1 + make configure-target-libgcc || exit 1 + cd ${TARGET}/libgcc || exit 1 + make ${PARALLELLISM} libgcc.a crtbegin.o crtend.o crtfastmath.o || exit 1 + /usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + /usr/bin/install -c -m 644 crtbegin.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + /usr/bin/install -c -m 644 crtend.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + /usr/bin/install -c -m 644 crtfastmath.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + ;; + esac + cd ${BUILD_DIR} -# HOST_LIBGCC2_CFLAGS="-I${BASE_DIRECTORY}/mingw/include -I${BASE_DIRECTORY}/w32api/include" } build_w32api() @@ -297,23 +307,46 @@ mkdir -p gcc cd gcc - ${BASE_DIRECTORY}/${gcc_src}/configure \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --target=${TARGET} \ - --build=${BUILD} \ - --host=${HOST} \ - --prefix=${PREFIX} \ - --enable-threads=win32 \ - --disable-nls \ - --enable-languages=c,c++ \ - --disable-win32-registry \ - --disable-multilib \ - --disable-interwork \ - --without-newlib \ - --enable-checking \ - --with-headers + case ${gcc_src} in + gcc) + ${BASE_DIRECTORY}/${gcc_src}/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --target=${TARGET} \ + --build=${BUILD} \ + --host=${HOST} \ + --prefix=${PREFIX} \ + --enable-threads=win32 \ + --disable-nls \ + --enable-languages=c,c++ \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --without-newlib \ + --enable-checking \ + --with-headers + gcc-*) + ${BASE_DIRECTORY}/${gcc_src}/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --target=${TARGET} \ + --build=${BUILD} \ + --host=${HOST} \ + --prefix=${PREFIX} \ + --enable-threads=win32 \ + --disable-nls \ + --enable-languages=c,c++ \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --without-newlib \ + --enable-checking \ + --with-headers \ + --disable-__cxa_atexit + ;; + esac # we build libstdc++ as dll, so we don't need this. # --enable-fully-dynamic-string \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-30 19:49:03
|
Revision: 1326 http://cegcc.svn.sourceforge.net/cegcc/?rev=1326&view=rev Author: dannybackx Date: 2009-05-30 19:48:42 +0000 (Sat, 30 May 2009) Log Message: ----------- Move macro definitions to a place where they work. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-05-30 18:28:50 UTC (rev 1325) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-05-30 19:48:42 UTC (rev 1326) @@ -1,6 +1,8 @@ 2009-05-30 Danny Backx <dan...@us...> * gcc/config/i386/mingw32ce.h : Use _DllMainCRTStartup with underscore. + * gcc/config/i386/mingw32ce.h (_WIN32,WIN32,WINNT) : Define in + CPP_SPEC instead of EXTRA_OS_CPP_BUILTINS. 2009-05-21 Danny Backx <dan...@us...> Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h 2009-05-30 18:28:50 UTC (rev 1325) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h 2009-05-30 19:48:42 UTC (rev 1326) @@ -22,6 +22,8 @@ the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if 0 +/* This appears to be obsolete */ /* Same as for cygwin but without the MSVCRT */ #undef EXTRA_OS_CPP_BUILTINS #define EXTRA_OS_CPP_BUILTINS() \ @@ -33,10 +35,12 @@ builtin_define_std ("WINNT"); \ } \ while (0) +#endif #undef CPP_SPEC #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \ -D__COREDLL__ -D__MINGW32__ -D__MINGW32CE__ -D__CEGCC_VERSION__ \ +-D_WIN32 -DWIN32 -DWINNT \ %{!nostdinc: -idirafter ../include/w32api%s -idirafter ../../include/w32api%s }" #undef TARGET_OS_CPP_BUILTINS This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-30 18:29:02
|
Revision: 1325 http://cegcc.svn.sourceforge.net/cegcc/?rev=1325&view=rev Author: dannybackx Date: 2009-05-30 18:28:50 +0000 (Sat, 30 May 2009) Log Message: ----------- Prepend an underscore to the DllMainCRTStartup symbol Modified Paths: -------------- trunk/cegcc/src/gcc/gcc/ChangeLog.ce trunk/cegcc/src/gcc/gcc/config/i386/mingw32ce.h trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h Modified: trunk/cegcc/src/gcc/gcc/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2009-05-30 12:50:38 UTC (rev 1324) +++ trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2009-05-30 18:28:50 UTC (rev 1325) @@ -1,3 +1,7 @@ +2009-05-30 Danny Backx <dan...@us...> + + * config/i386/mingw32ce.h : Use _DllMainCRTStartup with underscore. + 2009-04-29 Ismail Khatib <ik...@im...> * config/rs6000/host-darwin.c : small changes for MacOS X 10.5. Modified: trunk/cegcc/src/gcc/gcc/config/i386/mingw32ce.h =================================================================== --- trunk/cegcc/src/gcc/gcc/config/i386/mingw32ce.h 2009-05-30 12:50:38 UTC (rev 1324) +++ trunk/cegcc/src/gcc/gcc/config/i386/mingw32ce.h 2009-05-30 18:28:50 UTC (rev 1325) @@ -75,7 +75,7 @@ %{shared: %{mdll: %eshared and mdll are not compatible}} \ %{shared: --shared} %{mdll:--dll} \ %{static:-Bstatic} %{!static:-Bdynamic} \ - %{shared|mdll: -e DllMainCRTStartup} \ + %{shared|mdll: -e _DllMainCRTStartup} \ " #undef STARTFILE_SPEC @@ -87,3 +87,77 @@ #undef LIBGCC_SPEC #define LIBGCC_SPEC \ "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lceoldname -lmingwex" + +#if 0 +/* One entry from cygming.h, the other one is cegcc exception handling */ +#ifdef SUBTARGET_ATTRIBUTE_TABLE +#undef SUBTARGET_ATTRIBUTE_TABLE +#endif +#define SUBTARGET_ATTRIBUTE_TABLE \ + /* { name, min_len, max_len, decl_req, type_req, fn_type_req, handler } */ \ + { "selectany", 0, 0, true, false, false, ix86_handle_selectany_attribute }, \ + { "exception_handler", 1, 2, true, false, false, i386_handle_exception_handler_attribute }, \ + { "dft_exception_handler", 1, 2, true, false, false, i386_dft_handle_exception_handler_attribute } + +/* Write the extra assembler code needed to declare a function + properly. If we are generating SDB debugging information, this + will happen automatically, so we only need to handle other cases. */ + +/* + * Note this is the structure of the PDATA entry created : + * Offset Size Field Description + * 0 4 Begin Address Virtual address of the corresponding function. + * 4 4 End Address Virtual address of the end of the function. + * 8 4 Exception Handler Pointer to the exception handler to be executed. + * 12 4 Handler Data Pointer to additional information to be passed to the handler. + * 16 4 Prolog End Address Virtual address of the end of the function prolog. + */ +#undef ASM_DECLARE_FUNCTION_NAME +#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ + do \ + { \ + char *eh; \ + if (i386_pe_dllexport_name_p (NAME)) \ + i386_pe_record_exported_symbol (NAME, 0); \ + eh = i386_exception_handler(FILE, NAME, DECL); \ + if (eh) { \ + asm_fprintf (FILE, "# %s has exception hander %s\n", \ + NAME, eh); \ + asm_fprintf (FILE, "\t.section .pdata\n"); \ + asm_fprintf (FILE, "\t.long _%s\n", NAME); \ + asm_fprintf (FILE, "\t.long .L%s_end\n", NAME); \ + asm_fprintf (FILE, "\t.long _%s\n", eh); \ + asm_fprintf (FILE, "\t.long 0 /* .L%s_handler_data */\n", NAME); \ + asm_fprintf (FILE, "\t.long 0 /* .L%s_prolog_end */\n", NAME); \ + asm_fprintf (FILE, "\t.text\n"); \ + asm_fprintf (FILE, "\t.L%s_data:\n", NAME); \ + } \ + /* UWIN binutils bug workaround. */ \ + if (0 && write_symbols != SDB_DEBUG) \ + i386_pe_declare_function_type (FILE, NAME, TREE_PUBLIC (DECL)); \ + ASM_OUTPUT_LABEL (FILE, NAME); \ + } \ + while (0) + +/* + * An ARM specific trailer for function declarations. + * + * This one is needed for exception handlers : the entry in the pdata section + * needs to know the size of the function for which we handle exceptions. + */ +#undef ASM_DECLARE_FUNCTION_SIZE +#define ASM_DECLARE_FUNCTION_SIZE(STREAM, NAME, DECL) \ + { \ + if (i386_exception_handler(STREAM, NAME, DECL)) \ + asm_fprintf (STREAM, ".L%s_end:\n", NAME); \ + } + +/* + * New macro to denote prologue end + */ +#undef ASM_X86_PROLOGUE_END +#define ASM_X86_PROLOGUE_END(FILE, NAME) \ + { \ + asm_fprintf (FILE, "# End of prologue\n"); \ + } +#endif Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-05-30 12:50:38 UTC (rev 1324) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-05-30 18:28:50 UTC (rev 1325) @@ -1,3 +1,7 @@ +2009-05-30 Danny Backx <dan...@us...> + + * gcc/config/i386/mingw32ce.h : Use _DllMainCRTStartup with underscore. + 2009-05-21 Danny Backx <dan...@us...> * libgcc/config.host, gcc/config.gcc : Define i?86*-mingw32ce as a Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h 2009-05-30 12:50:38 UTC (rev 1324) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/mingw32ce.h 2009-05-30 18:28:50 UTC (rev 1325) @@ -75,7 +75,7 @@ %{shared: %{mdll: %eshared and mdll are not compatible}} \ %{shared: --shared} %{mdll:--dll} \ %{static:-Bstatic} %{!static:-Bdynamic} \ - %{shared|mdll: -e DllMainCRTStartup} \ + %{shared|mdll: -e _DllMainCRTStartup} \ " /* in mingw32.h : This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-30 12:59:08
|
Revision: 1324 http://cegcc.svn.sourceforge.net/cegcc/?rev=1324&view=rev Author: dannybackx Date: 2009-05-30 12:50:38 +0000 (Sat, 30 May 2009) Log Message: ----------- New file, with a couple of macros. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/windows.h Added Paths: ----------- trunk/cegcc/src/w32api/include/dbgapi.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-30 10:35:28 UTC (rev 1323) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-30 12:50:38 UTC (rev 1324) @@ -2,6 +2,10 @@ * include/winnt.h (DLL_PROCESS_EXITING, DLL_SYSTEM_STARTED, FILE_ATTRIBUTE_ROMMODULE, FILE_ATTRIBUTE_INROM) : Define. + * include/dbgapi.h : New file. + * include/dbgapi (DEBUGREGISTER, RETAILREGISTERZONES, DEBUGCHK, + RETAILMSG, ASSERT) : Define. + * include/windows.h (dbgapi.h) : Include. 2009-05-27 Stefan Klug <Klu...@gm...> Added: trunk/cegcc/src/w32api/include/dbgapi.h =================================================================== --- trunk/cegcc/src/w32api/include/dbgapi.h (rev 0) +++ trunk/cegcc/src/w32api/include/dbgapi.h 2009-05-30 12:50:38 UTC (rev 1324) @@ -0,0 +1,31 @@ +#ifndef __DBGAPI_H_ +#define __DBGAPI_H_ + +#if __GNUC__ >= 3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if _WIN32_WCE >= 0x0200 + +/* + * Macros that should behave differently depending on production or debug build. + * + * This implementation only provides for production build behaviour, for now. + */ +#define DEBUGREGISTER(x) /* ?? */ +#define RETAILREGISTERZONES(x) /* ?? */ +#define DEBUGCHK(x) /* ?? */ +#define RETAILMSG(x,y) /* ?? */ +#define ASSERT(x) /* ?? */ + +#endif /* _WIN32_WCE */ + +#ifdef __cplusplus +} +#endif + +#endif /* __DBGAPI_H_ */ Property changes on: trunk/cegcc/src/w32api/include/dbgapi.h ___________________________________________________________________ Added: svn:eol-style + native Modified: trunk/cegcc/src/w32api/include/windows.h =================================================================== --- trunk/cegcc/src/w32api/include/windows.h 2009-05-30 10:35:28 UTC (rev 1323) +++ trunk/cegcc/src/w32api/include/windows.h 2009-05-30 12:50:38 UTC (rev 1324) @@ -71,6 +71,8 @@ #include <winsvc.h> #endif +#include <dbgapi.h> + #ifndef WIN32_LEAN_AND_MEAN #include <cderr.h> #include <dde.h> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-30 10:35:29
|
Revision: 1323 http://cegcc.svn.sourceforge.net/cegcc/?rev=1323&view=rev Author: dannybackx Date: 2009-05-30 10:35:28 +0000 (Sat, 30 May 2009) Log Message: ----------- Define a few macros. Sources for the values : http://msmobiles.com/news.php/6991.html cegcc/tools/PipeLib/PipeDev.cpp Google Code ... Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winnt.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-27 19:49:38 UTC (rev 1322) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-30 10:35:28 UTC (rev 1323) @@ -1,3 +1,8 @@ +2009-05-39 Danny Backx <dan...@us...> + + * include/winnt.h (DLL_PROCESS_EXITING, DLL_SYSTEM_STARTED, + FILE_ATTRIBUTE_ROMMODULE, FILE_ATTRIBUTE_INROM) : Define. + 2009-05-27 Stefan Klug <Klu...@gm...> * include/winuser.h : Define the right GetProp function, this was Modified: trunk/cegcc/src/w32api/include/winnt.h =================================================================== --- trunk/cegcc/src/w32api/include/winnt.h 2009-05-27 19:49:38 UTC (rev 1322) +++ trunk/cegcc/src/w32api/include/winnt.h 2009-05-30 10:35:28 UTC (rev 1323) @@ -275,6 +275,7 @@ #define FILE_ATTRIBUTE_DIRECTORY 0x00000010 #define FILE_ATTRIBUTE_ARCHIVE 0x00000020 #define FILE_ATTRIBUTE_DEVICE 0x00000040 +#define FILE_ATTRIBUTE_INROM 0x00000040 #define FILE_ATTRIBUTE_NORMAL 0x00000080 #define FILE_ATTRIBUTE_TEMPORARY 0x00000100 #define FILE_ATTRIBUTE_SPARSE_FILE 0x00000200 @@ -282,6 +283,7 @@ #define FILE_ATTRIBUTE_COMPRESSED 0x00000800 #define FILE_ATTRIBUTE_OFFLINE 0x00001000 #define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000 +#define FILE_ATTRIBUTE_ROMMODULE 0x00002000 #define FILE_ATTRIBUTE_ENCRYPTED 0x00004000 #define FILE_ATTRIBUTE_VALID_FLAGS 0x00007fb7 #define FILE_ATTRIBUTE_VALID_SET_FLAGS 0x000031a7 @@ -1584,6 +1586,10 @@ #define DLL_PROCESS_ATTACH 1 #define DLL_THREAD_ATTACH 2 #define DLL_THREAD_DETACH 3 +#ifdef _WIN32_WCE +#define DLL_PROCESS_EXITING 4 +#define DLL_SYSTEM_STARTED 5 +#endif #define DBG_CONTINUE 0x10002 #define DBG_TERMINATE_THREAD 0x40010003 #define DBG_TERMINATE_PROCESS 0x40010004 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-27 19:50:39
|
Revision: 1322 http://cegcc.svn.sourceforge.net/cegcc/?rev=1322&view=rev Author: dannybackx Date: 2009-05-27 19:49:38 +0000 (Wed, 27 May 2009) Log Message: ----------- Stefan's fix for GetProp Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winuser.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-27 19:47:05 UTC (rev 1321) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-27 19:49:38 UTC (rev 1322) @@ -1,3 +1,8 @@ +2009-05-27 Stefan Klug <Klu...@gm...> + + * include/winuser.h : Define the right GetProp function, this was + omitted in the 2009-04-28 fix. + 2009-05-22 Danny Backx <dan...@us...> * include/winsock2.h (DSCP_TRAFFIC_TYPE) : Add typedef for enum. Modified: trunk/cegcc/src/w32api/include/winuser.h =================================================================== --- trunk/cegcc/src/w32api/include/winuser.h 2009-05-27 19:47:05 UTC (rev 1321) +++ trunk/cegcc/src/w32api/include/winuser.h 2009-05-27 19:49:38 UTC (rev 1322) @@ -3752,8 +3752,12 @@ WINUSERAPI HWND WINAPI GetOpenClipboardWindow(void); WINUSERAPI HWND WINAPI GetParent(HWND); WINUSERAPI int WINAPI GetPriorityClipboardFormat(UINT*,int); +#ifdef _WIN32_WCE +WINUSERAPI HANDLE WINAPI GetProp(HWND, LPCWSTR); +#else WINUSERAPI HANDLE WINAPI GetPropA(HWND,LPCSTR); WINUSERAPI HANDLE WINAPI GetPropW(HWND,LPCWSTR); +#endif #if (_WIN32_WINNT >= 0x0501) WINUSERAPI UINT WINAPI GetRawInputBuffer(PRAWINPUT,PUINT,UINT); WINUSERAPI UINT WINAPI GetRawInputData(HRAWINPUT,UINT,LPVOID,PUINT,UINT); @@ -4271,7 +4275,9 @@ #define GetMenuString GetMenuStringW #define GetMessage GetMessageW #define GetMonitorInfo GetMonitorInfoW +#ifndef _WIN32_WCE #define GetProp GetPropW +#endif #define GetRawInputDeviceInfo GetRawInputDeviceInfoW #define GetTabbedTextExtent GetTabbedTextExtentW #define GetUserObjectInformation GetUserObjectInformationW This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-27 19:48:06
|
Revision: 1321 http://cegcc.svn.sourceforge.net/cegcc/?rev=1321&view=rev Author: dannybackx Date: 2009-05-27 19:47:05 +0000 (Wed, 27 May 2009) Log Message: ----------- Stefan Klug's patch to get the old build to work again if the right parameter is supplied. Modified Paths: -------------- trunk/cegcc/src/scripts/ChangeLog trunk/cegcc/src/scripts/build-mingw32ce.sh Modified: trunk/cegcc/src/scripts/ChangeLog =================================================================== --- trunk/cegcc/src/scripts/ChangeLog 2009-05-26 18:37:43 UTC (rev 1320) +++ trunk/cegcc/src/scripts/ChangeLog 2009-05-27 19:47:05 UTC (rev 1321) @@ -1,3 +1,8 @@ +2009-05-27 Stefan Klug <Klu...@gm...> + + * build-mingw32ce.sh : Get the old gcc to build if gcc_src=gcc is + supplied. + 2009-05-15 Danny Backx <dan...@us...> * build-cegcc.sh, build-x86.sh: Apply Geoffroys work on these scripts too. Modified: trunk/cegcc/src/scripts/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-05-26 18:37:43 UTC (rev 1320) +++ trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-05-27 19:47:05 UTC (rev 1321) @@ -14,7 +14,9 @@ ac_default_prefix="/opt/mingw32ce" -export gcc_src=gcc-4.4.0 +if test -z "${gcc_src}"; then + export gcc_src=gcc-4.4.0 +fi # The list of components, in build order. There's a build_FOO # function for each of these components @@ -220,13 +222,21 @@ --without-newlib \ --enable-checking || exit 1 - make ${PARALLELISM} all-gcc || exit 1 - make configure-target-libgcc || exit 1 - make install-gcc || exit 1 - cd ${TARGET}/libgcc || exit 1 - make ${PARALLELLISM} libgcc.a || exit 1 - /usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 - + case ${gcc_src} in + gcc) + make ${PARALLELISM} all-gcc || exit 1 + make install-gcc || exit 1 + ;; + gcc-*) + make ${PARALLELISM} all-gcc || exit 1 + make configure-target-libgcc || exit 1 + make install-gcc || exit 1 + cd ${TARGET}/libgcc || exit 1 + make ${PARALLELLISM} libgcc.a || exit 1 + /usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + ;; + esac + cd ${BUILD_DIR} } @@ -293,24 +303,48 @@ mkdir -p gcc cd gcc - ${BASE_DIRECTORY}/${gcc_src}/configure \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --build=${BUILD} \ - --target=${TARGET} \ - --host=${HOST} \ - --prefix=${PREFIX} \ - --enable-threads=win32 \ - --disable-nls \ - --enable-languages=c,c++ \ - --disable-win32-registry \ - --disable-multilib \ - --disable-interwork \ - --without-newlib \ - --enable-checking \ - --with-headers \ - --disable-__cxa_atexit + case ${gcc_src} in + gcc) + ${BASE_DIRECTORY}/${gcc_src}/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --build=${BUILD} \ + --target=${TARGET} \ + --host=${HOST} \ + --prefix=${PREFIX} \ + --enable-threads=win32 \ + --disable-nls \ + --enable-languages=c,c++ \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --without-newlib \ + --enable-checking \ + --with-headers + ;; + gcc-*) + ${BASE_DIRECTORY}/${gcc_src}/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --build=${BUILD} \ + --target=${TARGET} \ + --host=${HOST} \ + --prefix=${PREFIX} \ + --enable-threads=win32 \ + --disable-nls \ + --enable-languages=c,c++ \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --without-newlib \ + --enable-checking \ + --with-headers \ + --disable-__cxa_atexit + ;; + esac + # we build libstdc++ as dll, so we don't need this. # --enable-fully-dynamic-string \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-26 18:38:57
|
Revision: 1320 http://cegcc.svn.sourceforge.net/cegcc/?rev=1320&view=rev Author: dannybackx Date: 2009-05-26 18:37:43 +0000 (Tue, 26 May 2009) Log Message: ----------- Change syntax of tail command. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/scripts/build-mingw32ce.sh trunk/cegcc/src/scripts/build-x86.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-05-22 12:46:28 UTC (rev 1319) +++ trunk/cegcc/src/ChangeLog 2009-05-26 18:37:43 UTC (rev 1320) @@ -1,3 +1,7 @@ +2009-05-26 Vincent Richomme <fo...@sm...> + + * scripts/build-*.sh : Change syntax of tail command. + 2009-05-19 Danny Backx <dan...@us...> * gcc-4.4.0 : New import. Modified: trunk/cegcc/src/scripts/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-05-22 12:46:28 UTC (rev 1319) +++ trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-05-26 18:37:43 UTC (rev 1320) @@ -267,7 +267,7 @@ echo "#define __CEGCC_VERSION_MINOR__ " $CEGCC_VERSION_MINOR >> ${DESTFILE} echo "#define __CEGCC_VERSION_PATCHLEVEL__ " $CEGCC_VERSION_PATCHLEVEL >> ${DESTFILE} echo "#define __CEGCC_BUILD_DATE__" `date +%Y%m%d` >> ${DESTFILE} - tail +$L2 ${INCFILE} >>${DESTFILE} + tail --lines=+$L2 ${INCFILE} >>${DESTFILE} cd ${BUILD_DIR} } Modified: trunk/cegcc/src/scripts/build-x86.sh =================================================================== --- trunk/cegcc/src/scripts/build-x86.sh 2009-05-22 12:46:28 UTC (rev 1319) +++ trunk/cegcc/src/scripts/build-x86.sh 2009-05-26 18:37:43 UTC (rev 1320) @@ -271,7 +271,7 @@ echo "#define __CEGCC_VERSION_MINOR__ " $CEGCC_VERSION_MINOR >> ${DESTFILE} echo "#define __CEGCC_VERSION_PATCHLEVEL__ " $CEGCC_VERSION_PATCHLEVEL >> ${DESTFILE} echo "#define __CEGCC_BUILD_DATE__" `date +%Y%m%d` >> ${DESTFILE} - tail +$L2 ${INCFILE} >>${DESTFILE} + tail --lines=+$L2 ${INCFILE} >>${DESTFILE} cd ${BUILD_DIR} } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-22 13:22:25
|
Revision: 1318 http://cegcc.svn.sourceforge.net/cegcc/?rev=1318&view=rev Author: dannybackx Date: 2009-05-22 12:25:51 +0000 (Fri, 22 May 2009) Log Message: ----------- Define some macros using "old" / winsock 1.1 values for CE. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/ws2tcpip.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-22 09:56:06 UTC (rev 1317) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-22 12:25:51 UTC (rev 1318) @@ -2,6 +2,8 @@ * include/winsock2.h (DSCP_TRAFFIC_TYPE) : Add typedef for enum. * include/winsock2.h (AF_BT) : Add, copy of AF_BTH. + * include/ws2tcpip.h : Define some macros using "old" winsock 1.1 + values for CE. 2009-05-18 Danny Backx <dan...@us...> Modified: trunk/cegcc/src/w32api/include/ws2tcpip.h =================================================================== --- trunk/cegcc/src/w32api/include/ws2tcpip.h 2009-05-22 09:56:06 UTC (rev 1317) +++ trunk/cegcc/src/w32api/include/ws2tcpip.h 2009-05-22 12:25:51 UTC (rev 1318) @@ -42,6 +42,17 @@ * These are also be defined in winsock.h, * but values have changed for WinSock2 interface */ +#ifdef UNDER_CE +/* Looks like CE needs the "old" values */ +#define IP_TOS 8 +#define IP_TTL 7 +#define IP_MULTICAST_IF 2 +#define IP_MULTICAST_TTL 3 +#define IP_MULTICAST_LOOP 4 +#define IP_ADD_MEMBERSHIP 5 +#define IP_DROP_MEMBERSHIP 6 +#define IP_DONTFRAGMENT 9 +#else #define IP_TOS 3 /* old (winsock 1.1) value 8 */ #define IP_TTL 4 /* old value 7 */ #define IP_MULTICAST_IF 9 /* old value 2 */ @@ -50,6 +61,7 @@ #define IP_ADD_MEMBERSHIP 12 /* old value 5 */ #define IP_DROP_MEMBERSHIP 13 /* old value 6 */ #define IP_DONTFRAGMENT 14 /* old value 9 */ +#endif #define IP_ADD_SOURCE_MEMBERSHIP 15 #define IP_DROP_SOURCE_MEMBERSHIP 16 #define IP_BLOCK_SOURCE 17 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-22 12:46:29
|
Revision: 1319 http://cegcc.svn.sourceforge.net/cegcc/?rev=1319&view=rev Author: dannybackx Date: 2009-05-22 12:46:28 +0000 (Fri, 22 May 2009) Log Message: ----------- Also separate IP_HDRINCL Modified Paths: -------------- trunk/cegcc/src/w32api/include/ws2tcpip.h Modified: trunk/cegcc/src/w32api/include/ws2tcpip.h =================================================================== --- trunk/cegcc/src/w32api/include/ws2tcpip.h 2009-05-22 12:25:51 UTC (rev 1318) +++ trunk/cegcc/src/w32api/include/ws2tcpip.h 2009-05-22 12:46:28 UTC (rev 1319) @@ -37,7 +37,6 @@ /* This is also defined in winsock.h; value hasn't changed */ #define IP_OPTIONS 1 -#define IP_HDRINCL 2 /* * These are also be defined in winsock.h, * but values have changed for WinSock2 interface @@ -52,6 +51,7 @@ #define IP_ADD_MEMBERSHIP 5 #define IP_DROP_MEMBERSHIP 6 #define IP_DONTFRAGMENT 9 +#define IP_HDRINCL 9 #else #define IP_TOS 3 /* old (winsock 1.1) value 8 */ #define IP_TTL 4 /* old value 7 */ @@ -61,6 +61,7 @@ #define IP_ADD_MEMBERSHIP 12 /* old value 5 */ #define IP_DROP_MEMBERSHIP 13 /* old value 6 */ #define IP_DONTFRAGMENT 14 /* old value 9 */ +#define IP_HDRINCL 2 #endif #define IP_ADD_SOURCE_MEMBERSHIP 15 #define IP_DROP_SOURCE_MEMBERSHIP 16 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |