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...> - 2006-11-12 20:31:01
|
Revision: 797 http://svn.sourceforge.net/cegcc/?rev=797&view=rev Author: pedroalves Date: 2006-11-12 12:30:41 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * include/commctrl.h (IMAGELISTDRAWPARAMS): There are no fState, Frame or crEffect members in CE version. (ImageList_Duplicate, ImageList_SetImageCount, ImageList_Copy, ImageList_DrawIndirect): Enable on Windows CE >= 2. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/commctrl.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-12 20:09:43 UTC (rev 796) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-12 20:30:41 UTC (rev 797) @@ -1,7 +1,16 @@ +2006-11-12 Pedro Alves <ped...@po...> + + * include/commctrl.h (IMAGELISTDRAWPARAMS): There are no fState, + Frame or crEffect members in CE version. + (ImageList_Duplicate, ImageList_SetImageCount, ImageList_Copy, + ImageList_DrawIndirect): Enable on Windows CE >= 2. + 2006-11-12 Kevin O'Connor <ke...@ko...> + * include/winuser.h (SPI_GETOEMINFO, SPI_GETPLATFORMTYPE): Define. 2006-11-12 Kevin O'Connor <ke...@ko...> + * include/tlhelp32.h (CloseToolhelp32Snapshot): Define. CE's Toolhelp functions/structures although wide, don't take the W suffix. Adapt. Modified: trunk/cegcc/src/w32api/include/commctrl.h =================================================================== --- trunk/cegcc/src/w32api/include/commctrl.h 2006-11-12 20:09:43 UTC (rev 796) +++ trunk/cegcc/src/w32api/include/commctrl.h 2006-11-12 20:30:41 UTC (rev 797) @@ -2854,7 +2854,7 @@ typedef REBARBANDINFOW const *LPCREBARBANDINFOW; #define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA,wID) #define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID) -#if (_WIN32_IE >= 0x0300) +#if (_WIN32_IE >= 0x0300) || (_WIN32_WCE >= 0x0200) typedef struct tagIMAGELISTDRAWPARAMS { DWORD cbSize; HIMAGELIST himl; @@ -2870,13 +2870,13 @@ COLORREF rgbFg; UINT fStyle; DWORD dwRop; -#if (_WIN32_WINNT >= 0x0501) +#if (_WIN32_WINNT >= 0x0501) && !defined (_WIN32_WCE) DWORD fState; DWORD Frame; COLORREF crEffect; #endif } IMAGELISTDRAWPARAMS,*LPIMAGELISTDRAWPARAMS; -#endif /* (_WIN32_IE >= 0x0300) */ +#endif /* (_WIN32_IE >= 0x0300) || (_WIN32_WCE >= 0x0200) */ #if (_WIN32_IE >= 0x0400) typedef struct tagNMREBARCHILDSIZE { NMHDR hdr; @@ -3076,7 +3076,7 @@ HIMAGELIST WINAPI ImageList_Read(LPSTREAM); BOOL WINAPI ImageList_Write(HIMAGELIST,LPSTREAM); #endif -#if (_WIN32_IE >= 0x0400) +#if (_WIN32_IE >= 0x0400) || (_WIN32_WCE >= 0x0200) HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST himl); #endif void WINAPI InitCommonControls(void); @@ -3303,9 +3303,13 @@ #define ListView_SetIconSpacing(w,x,y) (DWORD)SNDMSG((w),LVM_SETICONSPACING,0,MAKELONG(x,y)) #define ListView_SubItemHitTest(w,p) (INT)SNDMSG((w),LVM_SUBITEMHITTEST,0,(LPARAM)(LPLVHITTESTINFO)(p)) #define ListView_SetItemCountEx(w,i,f) (void)SNDMSG((w),LVM_SETITEMCOUNT,(WPARAM)(i),(LPARAM)(f)) +#endif +#if (_WIN32_IE >= 0x0300) || (_WIN32_WCE >= 0x200) WINBOOL WINAPI ImageList_SetImageCount(HIMAGELIST,UINT); WINBOOL WINAPI ImageList_Copy(HIMAGELIST,int,HIMAGELIST,int,UINT); WINBOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*); +#endif +#if (_WIN32_IE >= 0x0300) #define TabCtrl_SetMinTabWidth(hwnd,x) SNDMSG((hwnd),TCM_SETMINTABWIDTH,0,x) #define TabCtrl_DeselectAll(hwnd,fExcludeFocus) SNDMSG((hwnd),TCM_DESELECTALL,fExcludeFocus,0) #define TreeView_GetToolTips(w) (HWND)SNDMSG((w),TVM_GETTOOLTIPS,0,0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 20:10:11
|
Revision: 796 http://svn.sourceforge.net/cegcc/?rev=796&view=rev Author: pedroalves Date: 2006-11-12 12:09:43 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * include/winuser.h (SPI_GETOEMINFO, SPI_GETPLATFORMTYPE): Define. 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 2006-11-12 19:50:24 UTC (rev 795) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-12 20:09:43 UTC (rev 796) @@ -1,4 +1,7 @@ 2006-11-12 Kevin O'Connor <ke...@ko...> + * include/winuser.h (SPI_GETOEMINFO, SPI_GETPLATFORMTYPE): Define. + +2006-11-12 Kevin O'Connor <ke...@ko...> * include/tlhelp32.h (CloseToolhelp32Snapshot): Define. CE's Toolhelp functions/structures although wide, don't take the W suffix. Adapt. Modified: trunk/cegcc/src/w32api/include/winuser.h =================================================================== --- trunk/cegcc/src/w32api/include/winuser.h 2006-11-12 19:50:24 UTC (rev 795) +++ trunk/cegcc/src/w32api/include/winuser.h 2006-11-12 20:09:43 UTC (rev 796) @@ -1204,6 +1204,8 @@ #define SPI_GETMOUSESPEED 0x0070 #define SPI_GETMOUSETRAILS 0x005E #define SPI_GETNONCLIENTMETRICS 0x0029 +#define SPI_GETOEMINFO 0x0102 +#define SPI_GETPLATFORMTYPE 0x0101 #define SPI_GETPOWEROFFACTIVE 0x0054 #define SPI_GETPOWEROFFTIMEOUT 0x0050 #define SPI_GETSCREENREADER 0x0046 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 19:50:39
|
Revision: 795 http://svn.sourceforge.net/cegcc/?rev=795&view=rev Author: pedroalves Date: 2006-11-12 11:50:24 -0800 (Sun, 12 Nov 2006) Log Message: ----------- The previous commit missed the ChangeLog.ce file... * include/tlhelp32.h (CloseToolhelp32Snapshot): Define. CE's Toolhelp functions/structures although wide, don't take the W suffix. Adapt. * include/winnt.h (PAGE_PHYSICAL): Define. * include/winbase.h (GetStoreInformation, CeSetThreadQuantum, LockResource): Define. * include/winuser.h (CheckDlgButton): Define in terms of SendDlgItemMessage. (CreateDialogParamW): Define using CreateDialogIndirectParamW. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-12 19:44:25 UTC (rev 794) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-12 19:50:24 UTC (rev 795) @@ -1,3 +1,14 @@ +2006-11-12 Kevin O'Connor <ke...@ko...> + * include/tlhelp32.h (CloseToolhelp32Snapshot): Define. + CE's Toolhelp functions/structures although wide, don't take the + W suffix. Adapt. + * include/winnt.h (PAGE_PHYSICAL): Define. + * include/winbase.h (GetStoreInformation, CeSetThreadQuantum, + LockResource): Define. + * include/winuser.h (CheckDlgButton): Define in terms of + SendDlgItemMessage. + (CreateDialogParamW): Define using CreateDialogIndirectParamW. + 2006-11-12 Pedro Alves <ped...@po...> * include/winnt.h (_M_ARM, ARM): Translate from gcc target defines. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 19:45:09
|
Revision: 794 http://svn.sourceforge.net/cegcc/?rev=794&view=rev Author: pedroalves Date: 2006-11-12 11:44:25 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * include/tlhelp32.h (CloseToolhelp32Snapshot): Define. CE's Toolhelp functions/structures although wide, don't take the W suffix. Adapt. * include/winnt.h (PAGE_PHYSICAL): Define. * include/winbase.h (GetStoreInformation, CeSetThreadQuantum, LockResource): Define. * include/winuser.h (CheckDlgButton): Define in terms of SendDlgItemMessage. (CreateDialogParamW): Define using CreateDialogIndirectParamW. Modified Paths: -------------- trunk/cegcc/src/w32api/include/tlhelp32.h trunk/cegcc/src/w32api/include/winbase.h trunk/cegcc/src/w32api/include/winnt.h trunk/cegcc/src/w32api/include/winuser.h Modified: trunk/cegcc/src/w32api/include/tlhelp32.h =================================================================== --- trunk/cegcc/src/w32api/include/tlhelp32.h 2006-11-12 18:22:09 UTC (rev 793) +++ trunk/cegcc/src/w32api/include/tlhelp32.h 2006-11-12 19:44:25 UTC (rev 794) @@ -70,7 +70,11 @@ DWORD th32ParentProcessID; LONG pcPriClassBase; DWORD dwFlags; - CHAR szExeFile[MAX_PATH]; +#ifdef _WIN32_WCE + WCHAR szExeFile[MAX_PATH]; +#else + CHAR szExeFile[MAX_PATH]; +#endif } PROCESSENTRY32,*PPROCESSENTRY32,*LPPROCESSENTRY32; typedef struct tagTHREADENTRY32 { DWORD dwSize; @@ -102,8 +106,13 @@ BYTE *modBaseAddr; DWORD modBaseSize; HMODULE hModule; - char szModule[MAX_MODULE_NAME32 + 1]; - char szExePath[MAX_PATH]; +#ifdef _WIN32_WCE + WCHAR szModule[MAX_MODULE_NAME32 + 1]; + WCHAR szExePath[MAX_PATH]; +#else + CHAR szModule[MAX_MODULE_NAME32 + 1]; + CHAR szExePath[MAX_PATH]; +#endif } MODULEENTRY32,*PMODULEENTRY32,*LPMODULEENTRY32; BOOL WINAPI Heap32First(LPHEAPENTRY32,DWORD,DWORD); BOOL WINAPI Heap32ListFirst(HANDLE,LPHEAPLIST32); @@ -121,7 +130,10 @@ BOOL WINAPI Thread32Next(HANDLE,LPTHREADENTRY32); BOOL WINAPI Toolhelp32ReadProcessMemory(DWORD,LPCVOID,LPVOID,DWORD,LPDWORD); HANDLE WINAPI CreateToolhelp32Snapshot(DWORD,DWORD); -#ifdef UNICODE +#if (_WIN32_WCE >= 0x200) +BOOL WINAPI CloseToolhelp32Snapshot(HANDLE hSnapshot); +#endif +#if defined(UNICODE) && !defined(_WIN32_WCE) #define LPMODULEENTRY32 LPMODULEENTRY32W #define LPPROCESSENTRY32 LPPROCESSENTRY32W #define MODULEENTRY32 MODULEENTRY32W @@ -132,7 +144,7 @@ #define PROCESSENTRY32 PROCESSENTRY32W #define Process32First Process32FirstW #define Process32Next Process32NextW -#endif /* UNICODE */ +#endif /* UNICODE && !_WIN32_WCE */ #ifdef __cplusplus } #endif Modified: trunk/cegcc/src/w32api/include/winbase.h =================================================================== --- trunk/cegcc/src/w32api/include/winbase.h 2006-11-12 18:22:09 UTC (rev 793) +++ trunk/cegcc/src/w32api/include/winbase.h 2006-11-12 19:44:25 UTC (rev 794) @@ -1728,7 +1728,11 @@ WINBASEAPI BOOL WINAPI LocalUnlock(HLOCAL); WINBASEAPI BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD); WINBASEAPI BOOL WINAPI LockFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPOVERLAPPED); +#ifdef _WIN32_WCE +#define LockResource(h) ((PVOID)(h)) +#else WINBASEAPI PVOID WINAPI LockResource(HGLOBAL); +#endif #define LockSegment(w) GlobalFix((HANDLE)(w)) /* Obsolete: Has no effect. */ WINBASEAPI BOOL WINAPI LogonUserA(LPSTR,LPSTR,LPSTR,DWORD,DWORD,PHANDLE); WINBASEAPI BOOL WINAPI LogonUserW(LPWSTR,LPWSTR,LPWSTR,DWORD,DWORD,PHANDLE); @@ -2040,6 +2044,18 @@ WINBASEAPI BOOL WINAPI MapUserPhysicalPagesScatter(PVOID*,ULONG_PTR,PULONG_PTR); #endif +#ifdef _WIN32_WCE +typedef struct STORE_INFORMATION { + DWORD dwStoreSize; + DWORD dwFreeSize; +} STORE_INFORMATION, *LPSTORE_INFORMATION; +WINBASEAPI BOOL GetStoreInformation(LPSTORE_INFORMATION lpsi); +#endif + +#if (_WIN32_WCE >= 0x300) +WINBASEAPI BOOL CeSetThreadQuantum(HANDLE hThread, DWORD dwTime); +#endif + #ifdef UNICODE typedef STARTUPINFOW STARTUPINFO,*LPSTARTUPINFO; typedef WIN32_FIND_DATAW WIN32_FIND_DATA,*PWIN32_FIND_DATA,*LPWIN32_FIND_DATA; Modified: trunk/cegcc/src/w32api/include/winnt.h =================================================================== --- trunk/cegcc/src/w32api/include/winnt.h 2006-11-12 18:22:09 UTC (rev 793) +++ trunk/cegcc/src/w32api/include/winnt.h 2006-11-12 19:44:25 UTC (rev 794) @@ -1015,6 +1015,7 @@ #define PAGE_EXECUTE_WRITECOPY 0x0080 #define PAGE_GUARD 0x0100 #define PAGE_NOCACHE 0x0200 +#define PAGE_PHYSICAL 0x0400 #define MEM_COMMIT 0x1000 #define MEM_RESERVE 0x2000 #define MEM_DECOMMIT 0x4000 Modified: trunk/cegcc/src/w32api/include/winuser.h =================================================================== --- trunk/cegcc/src/w32api/include/winuser.h 2006-11-12 18:22:09 UTC (rev 793) +++ trunk/cegcc/src/w32api/include/winuser.h 2006-11-12 19:44:25 UTC (rev 794) @@ -3396,7 +3396,11 @@ WINUSERAPI LPWSTR WINAPI CharUpperW(LPWSTR); WINUSERAPI DWORD WINAPI CharUpperBuffA(LPSTR,DWORD); WINUSERAPI DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD); +#ifdef _WIN32_WCE +#define CheckDlgButton(h,i,c) SendDlgItemMessageW(h, i, BM_SETCHECK, (WPARAM)(c), 0) +#else WINUSERAPI BOOL WINAPI CheckDlgButton(HWND,int,UINT); +#endif WINUSERAPI DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT); WINUSERAPI BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT); WINUSERAPI BOOL WINAPI CheckRadioButton(HWND,int,int,int); @@ -3429,8 +3433,12 @@ #define CreateDialogIndirectW(h,t,w,f) CreateDialogIndirectParamW(h,t,w,f,0) WINUSERAPI HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM); WINUSERAPI HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM); +#ifdef _WIN32_WCE +#define CreateDialogParamW(h,n,w,f,p) CreateDialogIndirectParamW(h, (LPCDLGTEMPLATE)LoadResource(h, FindResource(h, n, RT_DIALOG)), w, f, p) +#else WINUSERAPI HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM); WINUSERAPI HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM); +#endif WINUSERAPI HICON WINAPI CreateIcon(HINSTANCE,int,int,BYTE,BYTE,const BYTE*,const BYTE*); WINUSERAPI HICON WINAPI CreateIconFromResource(PBYTE,DWORD,BOOL,DWORD); WINUSERAPI HICON WINAPI CreateIconFromResourceEx(PBYTE,DWORD,BOOL,DWORD,int,int,UINT); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 18:22:24
|
Revision: 793 http://svn.sourceforge.net/cegcc/?rev=793&view=rev Author: pedroalves Date: 2006-11-12 10:22:09 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * include/winnt.h (_M_ARM, ARM): Translate from gcc target defines. 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 2006-11-12 18:10:58 UTC (rev 792) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-12 18:22:09 UTC (rev 793) @@ -1,3 +1,7 @@ +2006-11-12 Pedro Alves <ped...@po...> + + * include/winnt.h (_M_ARM, ARM): Translate from gcc target defines. + 2006-11-11 Danny Backx <dan...@us...> * include/aygshell.h (WC_SIPPREF): Define. Modified: trunk/cegcc/src/w32api/include/winnt.h =================================================================== --- trunk/cegcc/src/w32api/include/winnt.h 2006-11-12 18:10:58 UTC (rev 792) +++ trunk/cegcc/src/w32api/include/winnt.h 2006-11-12 18:22:09 UTC (rev 793) @@ -15,6 +15,30 @@ #elif defined(__i386__) && !defined(_M_IX86) #define _M_IX86 300 #endif + +#if !defined(_M_ARM) +#if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__) +#define _M_ARM 4 +#elif defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) \ + || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) +#define _M_ARM 5 +#elif defined (__ARM_ARCH_6J__) || defined (__ARM_ARCH_6ZK__) \ + || defined (__ARM_ARCH_6K__) +#define _M_ARM 6 +#endif +#endif /* !defined(_M_ARM) */ + +#if !defined(_M_ARMT) +#if defined (__ARM_ARCH_4T__) +#define _M_ARMT 4 +#elif defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) +#define _M_ARMT 5 +#elif defined (__ARM_ARCH_6J__) || defined (__ARM_ARCH_6ZK__) \ + || defined (__ARM_ARCH_6K__) +#define _M_ARMT 6 +#endif +#endif /* !defined(_M_ARMT) */ + #if defined(_M_IX86) && !defined(_X86_) #define _X86_ #elif defined(_M_ALPHA) && !defined(_ALPHA_) @@ -25,6 +49,8 @@ #define _MIPS_ #elif defined(_M_M68K) && !defined(_68K_) #define _68K_ +#elif defined(_M_ARM) && !defined(ARM) +#define ARM #endif #ifdef __cplusplus This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 18:11:13
|
Revision: 792 http://svn.sourceforge.net/cegcc/?rev=792&view=rev Author: pedroalves Date: 2006-11-12 10:10:58 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * config/arm/wince-pe.h (TARGET_OS_CPP_BUILTINS): Delete _M_ARM and ARM. Modified Paths: -------------- trunk/cegcc/src/gcc/gcc/ChangeLog.ce trunk/cegcc/src/gcc/gcc/config/arm/wince-pe.h Modified: trunk/cegcc/src/gcc/gcc/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2006-11-12 17:56:49 UTC (rev 791) +++ trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2006-11-12 18:10:58 UTC (rev 792) @@ -1,3 +1,8 @@ +2006-11-12 Pedro Alves <ped...@po...> + + * config/arm/wince-pe.h (TARGET_OS_CPP_BUILTINS): Delete _M_ARM + and ARM. + 2006-11-08 Pedro Alves <ped...@po...> * config/arm/wince-pe.h (DEFAULT_SIGNED_CHAR): Define to 1. Modified: trunk/cegcc/src/gcc/gcc/config/arm/wince-pe.h =================================================================== --- trunk/cegcc/src/gcc/gcc/config/arm/wince-pe.h 2006-11-12 17:56:49 UTC (rev 791) +++ trunk/cegcc/src/gcc/gcc/config/arm/wince-pe.h 2006-11-12 18:10:58 UTC (rev 792) @@ -73,9 +73,7 @@ #define TARGET_OS_CPP_BUILTINS() \ do \ { \ - builtin_define ("_M_ARM=1"); \ - builtin_define ("ARM=1"); \ - /* We currently defined UNDER_CE to a non-value, and it seems \ + /* We currently define UNDER_CE to a non-value, as it seems \ MSVC2005 does the same. */ \ builtin_define_std ("UNDER_CE"); \ builtin_define ("_UNICODE"); \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 17:41:55
|
Revision: 790 http://svn.sourceforge.net/cegcc/?rev=790&view=rev Author: pedroalves Date: 2006-11-12 09:41:27 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * include/unistd.h: Hide ftruncate. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/unistd.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-12 16:11:47 UTC (rev 789) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-12 17:41:27 UTC (rev 790) @@ -1,5 +1,9 @@ 2006-11-12 Pedro Alves <ped...@po...> + * include/unistd.h: Hide ftruncate. + +2006-11-12 Pedro Alves <ped...@po...> + * mingwex/wince/lseek.c: Handle invalid whence. 2006-11-12 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/mingw/include/unistd.h =================================================================== --- trunk/cegcc/src/mingw/include/unistd.h 2006-11-12 16:11:47 UTC (rev 789) +++ trunk/cegcc/src/mingw/include/unistd.h 2006-11-12 17:41:27 UTC (rev 790) @@ -18,6 +18,7 @@ extern "C" { #endif +#ifndef __COREDLL__ /* This is defined as a real library function to allow autoconf to verify its existence. */ int ftruncate(int, off_t); @@ -25,6 +26,7 @@ { return _chsize (__fd, __length); } +#endif #ifdef __cplusplus } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 16:12:05
|
Revision: 789 http://svn.sourceforge.net/cegcc/?rev=789&view=rev Author: pedroalves Date: 2006-11-12 08:11:47 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * mingwex/wince/lseek.c: Handle invalid whence. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/lseek.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-12 16:04:51 UTC (rev 788) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-12 16:11:47 UTC (rev 789) @@ -1,5 +1,9 @@ 2006-11-12 Pedro Alves <ped...@po...> + * mingwex/wince/lseek.c: Handle invalid whence. + +2006-11-12 Pedro Alves <ped...@po...> + * mingwex/wince/close.c: New file. * mingwex/Makefile.in (WINCE_DISTFILES): Add close.c. (WINCE_OBJS): Add close.o. Modified: trunk/cegcc/src/mingw/mingwex/wince/lseek.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2006-11-12 16:04:51 UTC (rev 788) +++ trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2006-11-12 16:11:47 UTC (rev 789) @@ -4,7 +4,7 @@ long _lseek (int fildes, long offset, int whence) { - DWORD mode = 0; + DWORD mode; switch (whence) { case SEEK_SET: @@ -16,6 +16,9 @@ case SEEK_END: mode = FILE_END; break; + default: + /* Specify an invalid mode so SetFilePointer catches it. */ + mode = (DWORD)-1; } return (long) SetFilePointer ((HANDLE) fildes, offset, NULL, mode); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 16:05:13
|
Revision: 788 http://svn.sourceforge.net/cegcc/?rev=788&view=rev Author: pedroalves Date: 2006-11-12 08:04:51 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * mingwex/wince/close.c: New file. * mingwex/Makefile.in (WINCE_DISTFILES): Add close.c. (WINCE_OBJS): Add close.o. Modified Paths: -------------- trunk/cegcc/src/mingw/mingwex/Makefile.in Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2006-11-12 16:03:30 UTC (rev 787) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2006-11-12 16:04:51 UTC (rev 788) @@ -85,7 +85,7 @@ 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 + tempnam.c unlink.c wcsftime.c fdopen.c read.c write.c open.c lseek.c close.c CC = @CC@ # FIXME: Which is it, CC or CC_FOR_TARGET? @@ -185,7 +185,8 @@ ctan.o ctanf.o ctanl.o ctanh.o ctanhf.o ctanhl.o 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 + tempnam.o unlink.o wcsftime.o fdopen.o read.o write.o open.o lseek.o \ + close.o ifneq (,$(findstring wince,$(target_alias))) LIB_OBJS = $(WINCE_OBJS) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-12 16:03:54
|
Revision: 787 http://svn.sourceforge.net/cegcc/?rev=787&view=rev Author: pedroalves Date: 2006-11-12 08:03:30 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * mingwex/wince/close.c: New file. * mingwex/Makefile.in (WINCE_DISTFILES): Add close.c. (WINCE_OBJS): Add close.o. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/wince/close.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-12 12:47:32 UTC (rev 786) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-12 16:03:30 UTC (rev 787) @@ -1,3 +1,9 @@ +2006-11-12 Pedro Alves <ped...@po...> + + * mingwex/wince/close.c: New file. + * mingwex/Makefile.in (WINCE_DISTFILES): Add close.c. + (WINCE_OBJS): Add close.o. + 2006-11-11 Pedro Alves <ped...@po...> * mingwex/wince/open.c (open): Rename to _open. Added: trunk/cegcc/src/mingw/mingwex/wince/close.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/close.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/close.c 2006-11-12 16:03:30 UTC (rev 787) @@ -0,0 +1,10 @@ +#include <windows.h> +#include <unistd.h> + +int +_close (int fildes) +{ + if (CloseHandle ((HANDLE) fildes)) + return 0; + return -1; +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/close.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...> - 2006-11-12 12:48:12
|
Revision: 786 http://svn.sourceforge.net/cegcc/?rev=786&view=rev Author: pedroalves Date: 2006-11-12 04:47:32 -0800 (Sun, 12 Nov 2006) Log Message: ----------- * mingwex/wince/open.c (open): Rename to _open. * mingwex/wince/lseek.c (lseek): Rename to _lseek. * mingwex/wince/fdopen.c (fdopen): Rename to _fdopen. * mingwex/wince/read.c (read): Rename to _read. * mingwex/wince/write.c (write): Rename to _write. * include/fcntl.h: Enable file. * include/io.h (_open, open, lseek, _lseek, read, _read, write, _write): Unhide. * include/stdio.h (fdopen, _fdopen): Unhide. * include/unistd.h: Enable file. * moldname.def.in (open, lseek, read, write): Unhide. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/fcntl.h trunk/cegcc/src/mingw/include/io.h trunk/cegcc/src/mingw/include/stdio.h trunk/cegcc/src/mingw/include/unistd.h trunk/cegcc/src/mingw/mingwex/wince/fdopen.c trunk/cegcc/src/mingw/mingwex/wince/lseek.c trunk/cegcc/src/mingw/mingwex/wince/open.c trunk/cegcc/src/mingw/mingwex/wince/read.c trunk/cegcc/src/mingw/mingwex/wince/write.c trunk/cegcc/src/mingw/moldname.def.in Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-12 12:47:32 UTC (rev 786) @@ -1,5 +1,19 @@ 2006-11-11 Pedro Alves <ped...@po...> + * mingwex/wince/open.c (open): Rename to _open. + * mingwex/wince/lseek.c (lseek): Rename to _lseek. + * mingwex/wince/fdopen.c (fdopen): Rename to _fdopen. + * mingwex/wince/read.c (read): Rename to _read. + * mingwex/wince/write.c (write): Rename to _write. + * include/fcntl.h: Enable file. + * include/io.h (_open, open, lseek, _lseek, + read, _read, write, _write): Unhide. + * include/stdio.h (fdopen, _fdopen): Unhide. + * include/unistd.h: Enable file. + * moldname.def.in (open, lseek, read, write): Unhide. + +2006-11-11 Pedro Alves <ped...@po...> + * mingwex/Makefile.in (WINCE_DISTFILES): Add fdopen.c, read.c, write.c, open.c and lseek.c. (WINCE_OBJS): Add fdopen.o, read.o, write.o, open.o and lseek.o. Modified: trunk/cegcc/src/mingw/include/fcntl.h =================================================================== --- trunk/cegcc/src/mingw/include/fcntl.h 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/include/fcntl.h 2006-11-12 12:47:32 UTC (rev 786) @@ -8,10 +8,6 @@ * in sys/stat.h (ick). * */ -#ifdef __COREDLL__ -# include_next <fcntl.h> -#else /* __COREDLL__ */ - #ifndef _FCNTL_H_ #define _FCNTL_H_ @@ -71,5 +67,3 @@ #endif /* Not _NO_OLDNAMES */ #endif /* Not _FCNTL_H_ */ - -#endif /* Not __COREDLL__ */ Modified: trunk/cegcc/src/mingw/include/io.h =================================================================== --- trunk/cegcc/src/mingw/include/io.h 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/include/io.h 2006-11-12 12:47:32 UTC (rev 786) @@ -200,10 +200,11 @@ #endif #ifndef __COREDLL__ - _CRTIMP int __cdecl _access (const char*, int); _CRTIMP int __cdecl _chsize (int, long); +#endif /* __COREDLL__ */ _CRTIMP int __cdecl _close (int); +#ifndef __COREDLL__ _CRTIMP int __cdecl _commit(int); /* NOTE: The only significant bit in unPermissions appears to be bit 7 (0x80), @@ -227,15 +228,19 @@ /* LK_... locking commands defined in sys/locking.h. */ _CRTIMP int __cdecl _locking (int, int, long); +#endif /* __COREDLL__ */ _CRTIMP long __cdecl _lseek (int, long, int); /* Optional third argument is unsigned unPermissions. */ _CRTIMP int __cdecl _open (const char*, int, ...); +#ifndef __COREDLL__ _CRTIMP int __cdecl _open_osfhandle (long, int); _CRTIMP int __cdecl _pipe (int *, unsigned int, int); +#endif /* __COREDLL__ */ _CRTIMP int __cdecl _read (int, void*, unsigned int); +#ifndef __COREDLL__ _CRTIMP int __cdecl _setmode (int, int); /* SH_... flags for nShFlags defined in share.h @@ -247,9 +252,7 @@ _CRTIMP int __cdecl _umask (int); #endif /* __COREDLL__ */ _CRTIMP int __cdecl _unlink (const char*); -#ifndef __COREDLL__ _CRTIMP int __cdecl _write (int, const void*, unsigned int); -#endif /* __COREDLL__ */ /* Wide character versions. Also declared in wchar.h. */ /* Not in crtdll.dll */ @@ -284,25 +287,27 @@ #ifndef __COREDLL__ _CRTIMP int __cdecl access (const char*, int); _CRTIMP int __cdecl chsize (int, long ); +#endif /* __COREDLL__ */ _CRTIMP int __cdecl close (int); +#ifndef __COREDLL__ _CRTIMP int __cdecl creat (const char*, int); _CRTIMP int __cdecl dup (int); _CRTIMP int __cdecl dup2 (int, int); _CRTIMP int __cdecl eof (int); _CRTIMP long __cdecl filelength (int); _CRTIMP int __cdecl isatty (int); +#endif /* __COREDLL__ */ _CRTIMP long __cdecl lseek (int, long, int); _CRTIMP int __cdecl open (const char*, int, ...); _CRTIMP int __cdecl read (int, void*, unsigned int); +#ifndef __COREDLL__ _CRTIMP int __cdecl setmode (int, int); _CRTIMP int __cdecl sopen (const char*, int, int, ...); _CRTIMP long __cdecl tell (int); _CRTIMP int __cdecl umask (int); #endif /* __COREDLL__ */ _CRTIMP int __cdecl unlink (const char*); -#ifndef __COREDLL__ _CRTIMP int __cdecl write (int, const void*, unsigned int); -#endif /* __COREDLL__ */ #endif /* _UWIN */ /* Wide character versions. Also declared in wchar.h. */ Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/include/stdio.h 2006-11-12 12:47:32 UTC (rev 786) @@ -419,7 +419,9 @@ #ifndef __COREDLL__ _CRTIMP int __cdecl _fgetchar (void); _CRTIMP int __cdecl _fputchar (int); +#endif _CRTIMP FILE* __cdecl _fdopen (int, const char*); +#ifndef __COREDLL__ _CRTIMP FILE* __cdecl _fsopen(const char*, const char*, int); _CRTIMP int __cdecl _fileno (FILE*); #else @@ -432,10 +434,10 @@ #endif #ifndef _NO_OLDNAMES +_CRTIMP FILE* __cdecl fdopen (int, const char*); #ifndef __COREDLL__ _CRTIMP int __cdecl fgetchar (void); _CRTIMP int __cdecl fputchar (int); -_CRTIMP FILE* __cdecl fdopen (int, const char*); _CRTIMP int __cdecl fileno (FILE*); #else _CRTIMP void* __cdecl fileno (FILE*); Modified: trunk/cegcc/src/mingw/include/unistd.h =================================================================== --- trunk/cegcc/src/mingw/include/unistd.h 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/include/unistd.h 2006-11-12 12:47:32 UTC (rev 786) @@ -4,11 +4,6 @@ * unistd.h maps (roughly) to io.h */ -#ifdef __COREDLL__ -/* No such file on Windows CE. */ -# include_next <unistd.h> -#else /* __COREDLL__ */ - #ifndef _UNISTD_H #define _UNISTD_H @@ -36,5 +31,3 @@ #endif #endif /* _UNISTD_H */ - -#endif /* __COREDLL__ */ Modified: trunk/cegcc/src/mingw/mingwex/wince/fdopen.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2006-11-12 12:47:32 UTC (rev 786) @@ -4,7 +4,7 @@ #define MAX_MODE 64 FILE * -fdopen (int fildes, const char *mode) +_fdopen (int fildes, const char *mode) { FILE *f; wchar_t wmode[MAX_MODE]; Modified: trunk/cegcc/src/mingw/mingwex/wince/lseek.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2006-11-12 12:47:32 UTC (rev 786) @@ -2,7 +2,7 @@ #include <unistd.h> long -lseek (int fildes, long offset, int whence) +_lseek (int fildes, long offset, int whence) { DWORD mode = 0; switch (whence) Modified: trunk/cegcc/src/mingw/mingwex/wince/open.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/open.c 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/mingwex/wince/open.c 2006-11-12 12:47:32 UTC (rev 786) @@ -3,7 +3,7 @@ #include <fcntl.h> int -open (const char *path, int oflag, ...) +_open (const char *path, int oflag, ...) { wchar_t wpath[MAX_PATH]; DWORD fileaccess; Modified: trunk/cegcc/src/mingw/mingwex/wince/read.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/read.c 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/mingwex/wince/read.c 2006-11-12 12:47:32 UTC (rev 786) @@ -2,7 +2,7 @@ #include <unistd.h> int -read (int fildes, void *buf, unsigned int bufsize) +_read (int fildes, void *buf, unsigned int bufsize) { DWORD NumberOfBytesRead; if (bufsize > 0x7fffffff) Modified: trunk/cegcc/src/mingw/mingwex/wince/write.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/write.c 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/mingwex/wince/write.c 2006-11-12 12:47:32 UTC (rev 786) @@ -2,7 +2,7 @@ #include <unistd.h> int -write (int fildes, const void *buf, unsigned int bufsize) +_write (int fildes, const void *buf, unsigned int bufsize) { DWORD NumberOfBytesWritten; if (bufsize > 0x7fffffff) Modified: trunk/cegcc/src/mingw/moldname.def.in =================================================================== --- trunk/cegcc/src/mingw/moldname.def.in 2006-11-12 08:57:39 UTC (rev 785) +++ trunk/cegcc/src/mingw/moldname.def.in 2006-11-12 12:47:32 UTC (rev 786) @@ -29,7 +29,9 @@ chdir chmod chsize +#endif /* __COREDLL__ */ close +#ifndef __COREDLL__ creat cwait #endif /* __COREDLL__ */ @@ -83,21 +85,25 @@ kbhit lfind lsearch +#endif /* __COREDLL__ */ lseek -#endif /* __COREDLL__ */ ltoa memccpy memicmp #ifndef __COREDLL__ mkdir mktemp +#endif /* __COREDLL__ */ open +#ifndef __COREDLL__ pclose popen putch putenv putw +#endif /* __COREDLL__ */ read +#ifndef __COREDLL__ rmdir rmtmp searchenv @@ -160,9 +166,7 @@ #if (__MSVCRT__) wpopen #endif -#ifndef __COREDLL__ write -#endif /* __COREDLL__ */ ; non-ANSI functions declared in math.h j0 j1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-12 08:57:54
|
Revision: 785 http://svn.sourceforge.net/cegcc/?rev=785&view=rev Author: dannybackx Date: 2006-11-12 00:57:39 -0800 (Sun, 12 Nov 2006) Log Message: ----------- Creating private work branch. We've agreed that changes I do which might require review, or which are work in progress, stay out of the trunk temporarily. This branch is where they will be. Added Paths: ----------- branches/danny/ Copied: branches/danny (from rev 784, trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-11 23:04:28
|
Revision: 784 http://svn.sourceforge.net/cegcc/?rev=784&view=rev Author: pedroalves Date: 2006-11-11 15:03:29 -0800 (Sat, 11 Nov 2006) Log Message: ----------- * mingwex/Makefile.in (WINCE_DISTFILES): Add fdopen.c, read.c, write.c, open.c and lseek.c. (WINCE_OBJS): Add fdopen.o, read.o, write.o, open.o and lseek.o. * mingwex/wince/open.c: New file. * mingwex/wince/lseek.c: New file. * mingwex/wince/fdopen.c: New file. * mingwex/wince/read.c: New file. * mingwex/wince/write.c: New file. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/Makefile.in Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/wince/fdopen.c trunk/cegcc/src/mingw/mingwex/wince/lseek.c trunk/cegcc/src/mingw/mingwex/wince/open.c trunk/cegcc/src/mingw/mingwex/wince/read.c trunk/cegcc/src/mingw/mingwex/wince/write.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-11 15:28:54 UTC (rev 783) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-11 23:03:29 UTC (rev 784) @@ -1,3 +1,14 @@ +2006-11-11 Pedro Alves <ped...@po...> + + * mingwex/Makefile.in (WINCE_DISTFILES): Add fdopen.c, read.c, write.c, + open.c and lseek.c. + (WINCE_OBJS): Add fdopen.o, read.o, write.o, open.o and lseek.o. + * mingwex/wince/open.c: New file. + * mingwex/wince/lseek.c: New file. + * mingwex/wince/fdopen.c: New file. + * mingwex/wince/read.c: New file. + * mingwex/wince/write.c: New file. + 2006-11-03 Danny Backx <dan...@us...> * profile/gmon.c : Use the executable file name under CE to cook up Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2006-11-11 15:28:54 UTC (rev 783) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2006-11-11 23:03:29 UTC (rev 784) @@ -85,7 +85,7 @@ WINCE_DISTFILES = \ asctime.c freopen.c gmtime.c localtime.c mktime.c strftime.c time.c \ - tempnam.c unlink.c wcsftime.c + tempnam.c unlink.c wcsftime.c fdopen.c read.c write.c open.c lseek.c CC = @CC@ # FIXME: Which is it, CC or CC_FOR_TARGET? @@ -185,7 +185,7 @@ ctan.o ctanf.o ctanl.o ctanh.o ctanhf.o ctanhl.o WINCE_OBJS = \ asctime.o freopen.o gmtime.o localtime.o mktime.o strftime.o time.o \ - tempnam.o unlink.o wcsftime.o + tempnam.o unlink.o wcsftime.o fdopen.o read.o write.o open.o lseek.o ifneq (,$(findstring wince,$(target_alias))) LIB_OBJS = $(WINCE_OBJS) Added: trunk/cegcc/src/mingw/mingwex/wince/fdopen.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/fdopen.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/fdopen.c 2006-11-11 23:03:29 UTC (rev 784) @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <string.h> + +#define MAX_MODE 64 + +FILE * +fdopen (int fildes, const char *mode) +{ + FILE *f; + wchar_t wmode[MAX_MODE]; + size_t sizem = strlen (mode) + 1; + if (sizem > MAX_MODE) + return NULL; + mbstowcs (wmode, mode, sizem); + f = _wfdopen (fildes, wmode); + return f; +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/fdopen.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/lseek.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/lseek.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/lseek.c 2006-11-11 23:03:29 UTC (rev 784) @@ -0,0 +1,21 @@ +#include <windows.h> +#include <unistd.h> + +long +lseek (int fildes, long offset, int whence) +{ + DWORD mode = 0; + switch (whence) + { + case SEEK_SET: + mode = FILE_BEGIN; + break; + case SEEK_CUR: + mode = FILE_CURRENT; + break; + case SEEK_END: + mode = FILE_END; + break; + } + return (long) SetFilePointer ((HANDLE) fildes, offset, NULL, mode); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/lseek.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/open.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/open.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/open.c 2006-11-11 23:03:29 UTC (rev 784) @@ -0,0 +1,74 @@ +#include <windows.h> +#include <unistd.h> +#include <fcntl.h> + +int +open (const char *path, int oflag, ...) +{ + wchar_t wpath[MAX_PATH]; + DWORD fileaccess; + DWORD fileshare; + DWORD filecreate; + DWORD fileattrib; + HANDLE hnd; + + size_t path_len = strlen (path); + if (path_len >= MAX_PATH) + return -1; + + switch (oflag & (O_RDONLY | O_WRONLY | O_RDWR)) + { + case O_RDONLY: + fileaccess = GENERIC_READ; + break; + case O_WRONLY: + fileaccess = GENERIC_WRITE; + break; + case O_RDWR: + fileaccess = GENERIC_READ | GENERIC_WRITE; + break; + default: + return -1; + } + + switch (oflag & (O_CREAT | O_EXCL | O_TRUNC)) + { + case 0: + case O_EXCL: /* ignore EXCL w/o CREAT */ + filecreate = OPEN_EXISTING; + break; + case O_CREAT: + filecreate = OPEN_ALWAYS; + break; + case O_CREAT | O_EXCL: + case O_CREAT | O_TRUNC | O_EXCL: + filecreate = CREATE_NEW; + break; + + case O_TRUNC: + case O_TRUNC | O_EXCL: /* ignore EXCL w/o CREAT */ + filecreate = TRUNCATE_EXISTING; + break; + case O_CREAT | O_TRUNC: + filecreate = CREATE_ALWAYS; + break; + default: + /* this can't happen ... all cases are covered */ + return -1; + } + + mbstowcs (wpath, path, path_len + 1); + + fileshare = FILE_SHARE_READ | FILE_SHARE_WRITE; + fileattrib = FILE_ATTRIBUTE_NORMAL; + + hnd = CreateFileW (wpath, fileaccess, fileshare, NULL, filecreate, + fileattrib, NULL); + if (hnd == INVALID_HANDLE_VALUE) + return -1; + + if (oflag & O_APPEND) + SetFilePointer (hnd, 0, NULL, FILE_END); + + return (int) hnd; +} Added: trunk/cegcc/src/mingw/mingwex/wince/read.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/read.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/read.c 2006-11-11 23:03:29 UTC (rev 784) @@ -0,0 +1,13 @@ +#include <windows.h> +#include <unistd.h> + +int +read (int fildes, void *buf, unsigned int bufsize) +{ + DWORD NumberOfBytesRead; + if (bufsize > 0x7fffffff) + bufsize = 0x7fffffff; + if (!ReadFile ((HANDLE) fildes, buf, bufsize, &NumberOfBytesRead, NULL)) + return -1; + return (int) NumberOfBytesRead; +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/read.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/write.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/write.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/write.c 2006-11-11 23:03:29 UTC (rev 784) @@ -0,0 +1,13 @@ +#include <windows.h> +#include <unistd.h> + +int +write (int fildes, const void *buf, unsigned int bufsize) +{ + DWORD NumberOfBytesWritten; + if (bufsize > 0x7fffffff) + bufsize = 0x7fffffff; + if (!WriteFile ((HANDLE) fildes, buf, bufsize, &NumberOfBytesWritten, NULL)) + return -1; + return (int) NumberOfBytesWritten; +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/write.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: <dan...@us...> - 2006-11-11 15:29:03
|
Revision: 783 http://svn.sourceforge.net/cegcc/?rev=783&view=rev Author: dannybackx Date: 2006-11-11 07:28:54 -0800 (Sat, 11 Nov 2006) Log Message: ----------- Clean up the contents of todaycmn.h because it is tainted. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/todaycmn.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-11 15:24:35 UTC (rev 782) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-11 15:28:54 UTC (rev 783) @@ -1,6 +1,9 @@ 2006-11-11 Danny Backx <dan...@us...> * include/aygshell.h (WC_SIPPREF): Define. + * include/todaycmn.h : Clear the contents of this file, + it was tainted. We must do clean work to create a file + such as this one, so I'm leaving the (empty) file as a placeholder. 2006-11-06 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/w32api/include/todaycmn.h =================================================================== --- trunk/cegcc/src/w32api/include/todaycmn.h 2006-11-11 15:24:35 UTC (rev 782) +++ trunk/cegcc/src/w32api/include/todaycmn.h 2006-11-11 15:28:54 UTC (rev 783) @@ -9,73 +9,6 @@ extern "C" { #endif -/* List item types */ -typedef enum _TODAYLISTITEMTYPE -{ - tlitOwnerInfo = 0, - tlitAppointments, - tlitMail, - tlitTasks, - tlitCustom, - tlitNil /* sentinel */ -} TODAYLISTITEMTYPE; - -#define MAX_ITEMNAME 32 - -/* Information for a single today item */ -typedef struct _TODAYLISTITEM -{ - TCHAR szName[MAX_ITEMNAME]; - TODAYLISTITEMTYPE tlit; - DWORD dwOrder; - DWORD cyp; - BOOL fEnabled; - BOOL fOptions; - DWORD grfFlags; - TCHAR szDLLPath[MAX_PATH]; - HINSTANCE hinstDLL; - HWND hwndCustom; - BOOL fSizeOnDraw; - BYTE *prgbCachedData; - DWORD cbCachedData; -} TODAYLISTITEM; - -/* Maximum number of today items */ -#define k_cTodayItemsMax 12 - -/* Custom DLL resources */ -#define IDI_ICON 128 -#define IDD_TODAY_CUSTOM 500 - -/* Custom DLL functions */ -#define ORDINAL_INITIALIZEITEM 240 -typedef HWND (*PFNCUSTOMINITIALIZEITEM)(TODAYLISTITEM *, HWND); -#define ORDINAL_OPTIONSDIALOGPROC 241 -typedef BOOL (*PFNCUSTOMOPTIONSDLGPROC)(HWND, UINT, UINT, LONG); - -/* Custom DLL messages */ -#define WM_TODAYCUSTOM_CLEARCACHE (WM_USER + 242) -#define WM_TODAYCUSTOM_QUERYREFRESHCACHE (WM_USER + 243) -#define WM_TODAYCUSTOM_RECEIVEDSELECTION (WM_USER + 244) -#define WM_TODAYCUSTOM_LOSTSELECTION (WM_USER + 245) -#define WM_TODAYCUSTOM_USERNAVIGATION (WM_USER + 246) -#define WM_TODAYCUSTOM_ACTION (WM_USER + 247) - -/* Messages to parent window */ -#define TODAYM_DRAWWATERMARK (WM_USER + 101) -#define TODAYM_TOOKSELECTION (WM_USER + 102) - -/* Today screen system colors */ -#define TODAYCOLOR_HIGHLIGHT (0x10000022) -#define TODAYCOLOR_HIGHLIGHTEDTEXT (0x10000023) - -/* Watermark drawing info */ -typedef struct { - HDC hdc; - RECT rc; - HWND hwnd; -} TODAYDRAWWATERMARKINFO; - #ifdef __cplusplus } #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-11 15:24:41
|
Revision: 782 http://svn.sourceforge.net/cegcc/?rev=782&view=rev Author: dannybackx Date: 2006-11-11 07:24:35 -0800 (Sat, 11 Nov 2006) Log Message: ----------- Follow guidelines more closely Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-11 12:53:30 UTC (rev 781) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-11 15:24:35 UTC (rev 782) @@ -1,6 +1,6 @@ 2006-11-11 Danny Backx <dan...@us...> - * include/aygshell.h : Define WC_SIPPREF. + * include/aygshell.h (WC_SIPPREF): Define. 2006-11-06 Pedro Alves <ped...@po...> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-11 12:53:44
|
Revision: 781 http://svn.sourceforge.net/cegcc/?rev=781&view=rev Author: dannybackx Date: 2006-11-11 04:53:30 -0800 (Sat, 11 Nov 2006) Log Message: ----------- Define WC_SIPPREF as indicated in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/_cerefwc_sippref.asp . Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/aygshell.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-08 12:42:26 UTC (rev 780) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-11 12:53:30 UTC (rev 781) @@ -1,3 +1,7 @@ +2006-11-11 Danny Backx <dan...@us...> + + * include/aygshell.h : Define WC_SIPPREF. + 2006-11-06 Pedro Alves <ped...@po...> * include/commctrl.h (LVCF_IMAGE, LVCF_ORDER) : Also declare on Modified: trunk/cegcc/src/w32api/include/aygshell.h =================================================================== --- trunk/cegcc/src/w32api/include/aygshell.h 2006-11-08 12:42:26 UTC (rev 780) +++ trunk/cegcc/src/w32api/include/aygshell.h 2006-11-11 12:53:30 UTC (rev 781) @@ -151,6 +151,14 @@ #define SHFS_SHOWSTARTICON 16 #define SHFS_HIDESTARTICON 32 +/* + * SIPPREF appears to be some magic control to automatically display the SIP. + * Use with + * CONTROL "",-1,WC_SIPPREF, NOT WS_VISIBLE,-10,-10,5,5 + * See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/_cerefwc_sippref.asp + */ +#define WC_SIPPREF L"SIPPREF" + #ifdef __cplusplus } #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-08 12:42:44
|
Revision: 780 http://svn.sourceforge.net/cegcc/?rev=780&view=rev Author: pedroalves Date: 2006-11-08 04:42:26 -0800 (Wed, 08 Nov 2006) Log Message: ----------- * config/arm/wince-pe.h (DEFAULT_SIGNED_CHAR): Define to 1. Modified Paths: -------------- trunk/cegcc/src/gcc/gcc/ChangeLog.ce trunk/cegcc/src/gcc/gcc/config/arm/wince-pe.h Modified: trunk/cegcc/src/gcc/gcc/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2006-11-06 23:27:38 UTC (rev 779) +++ trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2006-11-08 12:42:26 UTC (rev 780) @@ -1,6 +1,10 @@ -2006-11-04 Danny Backx <dan...@us...> +2006-11-08 Pedro Alves <ped...@po...> - * config/arm/pe.h (PROFILE_HOOK) : Remove, it looks like we don't need + * config/arm/wince-pe.h (DEFAULT_SIGNED_CHAR): Define to 1. + +2006-11-04 Danny Backx <dan...@us...> + + * config/arm/pe.h (PROFILE_HOOK): Remove, it looks like we don't need it to get profiling to work. 2006-10-30 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/gcc/gcc/config/arm/wince-pe.h =================================================================== --- trunk/cegcc/src/gcc/gcc/config/arm/wince-pe.h 2006-11-06 23:27:38 UTC (rev 779) +++ trunk/cegcc/src/gcc/gcc/config/arm/wince-pe.h 2006-11-08 12:42:26 UTC (rev 780) @@ -125,6 +125,9 @@ /* Define types for compatibility with MS runtime. */ +#undef DEFAULT_SIGNED_CHAR +#define DEFAULT_SIGNED_CHAR 1 + #undef SIZE_TYPE #define SIZE_TYPE "unsigned int" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-06 23:29:16
|
Revision: 779 http://svn.sourceforge.net/cegcc/?rev=779&view=rev Author: pedroalves Date: 2006-11-06 15:27:38 -0800 (Mon, 06 Nov 2006) Log Message: ----------- Fix date. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-06 23:25:15 UTC (rev 778) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-06 23:27:38 UTC (rev 779) @@ -1,4 +1,4 @@ -2006-11-16 Pedro Alves <ped...@po...> +2006-11-06 Pedro Alves <ped...@po...> * include/commctrl.h (LVCF_IMAGE, LVCF_ORDER) : Also declare on Windows CE >= 2. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2006-11-06 23:26:52
|
Revision: 778 http://svn.sourceforge.net/cegcc/?rev=778&view=rev Author: pedroalves Date: 2006-11-06 15:25:15 -0800 (Mon, 06 Nov 2006) Log Message: ----------- * include/commctrl.h (LVCF_IMAGE, LVCF_ORDER) : Also declare on Windows CE >= 2. (LVCOLUMNW) : Use the version with iImage and iOrder on Windows CE >= 2. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/commctrl.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-03 18:00:58 UTC (rev 777) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-06 23:25:15 UTC (rev 778) @@ -1,3 +1,10 @@ +2006-11-16 Pedro Alves <ped...@po...> + + * include/commctrl.h (LVCF_IMAGE, LVCF_ORDER) : Also declare on + Windows CE >= 2. + (LVCOLUMNW) : Use the version with iImage and iOrder + on Windows CE >= 2. + 2006-11-02 Kevin O'Connor <ke...@ko...> * include/winuser.h (DialogBoxParamW) : Implement on terms of Modified: trunk/cegcc/src/w32api/include/commctrl.h =================================================================== --- trunk/cegcc/src/w32api/include/commctrl.h 2006-11-03 18:00:58 UTC (rev 777) +++ trunk/cegcc/src/w32api/include/commctrl.h 2006-11-06 23:25:15 UTC (rev 778) @@ -1147,7 +1147,7 @@ #define LVCF_WIDTH 2 #define LVCF_TEXT 4 #define LVCF_SUBITEM 8 -#if (_WIN32_IE >= 0x0300) +#if (_WIN32_IE >= 0x0300) || (_WIN32_WCE >= 0x200) #define LVCF_IMAGE 16 #define LVCF_ORDER 32 #endif @@ -2504,7 +2504,7 @@ LPWSTR pszText; int cchTextMax; int iSubItem; -#if (_WIN32_IE >= 0x0300) +#if (_WIN32_IE >= 0x0300) || (_WIN32_WCE >= 0x200) int iImage; int iOrder; #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-03 18:01:06
|
Revision: 777 http://svn.sourceforge.net/cegcc/?rev=777&view=rev Author: dannybackx Date: 2006-11-03 10:00:58 -0800 (Fri, 03 Nov 2006) Log Message: ----------- More documentation Modified Paths: -------------- trunk/cegcc/docs/build-toolchain.html trunk/cegcc/docs/using.html trunk/cegcc/docs/what.html Modified: trunk/cegcc/docs/build-toolchain.html =================================================================== --- trunk/cegcc/docs/build-toolchain.html 2006-11-03 16:17:39 UTC (rev 776) +++ trunk/cegcc/docs/build-toolchain.html 2006-11-03 18:00:58 UTC (rev 777) @@ -121,8 +121,7 @@ There is nothing out of the ordinary in the tools you need to build cegcc, most free software packages require the same : <ul> - <li> a working C compiler for your platform, only tested with gcc - <li> (the above requirement already assumes binutils) + <li> a working C and C++ compiler for your platform, only tested with gcc <li> make <li> (if you're building an RPM) the rpmbuild tool </ul> Modified: trunk/cegcc/docs/using.html =================================================================== --- trunk/cegcc/docs/using.html 2006-11-03 16:17:39 UTC (rev 776) +++ trunk/cegcc/docs/using.html 2006-11-03 18:00:58 UTC (rev 777) @@ -84,11 +84,11 @@ for consistency. <p> <table border=1> - <tr><td>arm-wince-cegcc-addr2line</td><td>arm-wince-mingw32ce-addr2line</td><td></td></tr> + <tr><td>arm-wince-cegcc-addr2line</td><td>arm-wince-mingw32ce-addr2line</td><td>Convert addresses into source program file/line number</td></tr> <tr><td>arm-wince-cegcc-ar</td><td>arm-wince-mingw32ce-ar</td><td>archive library management tool</td></tr> <tr><td>arm-wince-cegcc-as</td><td>arm-wince-mingw32ce-as</td><td>the GNU assembler</td></tr> <tr><td>arm-wince-cegcc-c++</td><td>arm-wince-mingw32ce-c++</td><td>the C++ compiler</td></tr> - <tr><td>arm-wince-cegcc-c++filt</td><td>arm-wince-mingw32ce-c++filt</td><td></td></tr> + <tr><td>arm-wince-cegcc-c++filt</td><td>arm-wince-mingw32ce-c++filt</td><td>C++ name demangler</td></tr> <tr><td>arm-wince-cegcc-cpp</td><td>arm-wince-mingw32ce-cpp</td><td>the C preprocessor</td></tr> <tr><td>arm-wince-cegcc-dlltool</td><td>arm-wince-mingw32ce-dlltool</td><td>a tool to create DLLs</td></tr> <tr><td>arm-wince-cegcc-gcc</td><td>arm-wince-mingw32ce-gcc</td><td>the C compiler</td></tr> @@ -100,10 +100,10 @@ <tr><td>arm-wince-cegcc-g++</td><td>arm-wince-mingw32ce-g++</td><td>the C++ compiler</td></tr> <tr><td>arm-wince-cegcc-ld</td><td>arm-wince-mingw32ce-ld</td><td>the GNU linker</td></tr> <tr><td>arm-wince-cegcc-nm</td><td>arm-wince-mingw32ce-nm</td><td>the tool to inspect symbols in load modules</td></tr> - <tr><td>arm-wince-cegcc-objcopy</td><td>arm-wince-mingw32ce-objcopy</td><td></td></tr> + <tr><td>arm-wince-cegcc-objcopy</td><td>arm-wince-mingw32ce-objcopy</td><td>Copy and manipulate object files</td></tr> <tr><td>arm-wince-cegcc-objdump</td><td>arm-wince-mingw32ce-objdump</td><td>a tool to print data about object files</td></tr> <tr><td>arm-wince-cegcc-ranlib</td><td>arm-wince-mingw32ce-ranlib</td><td>tool to add or refresh the library directory</td></tr> - <tr><td>arm-wince-cegcc-readelf</td><td>arm-wince-mingw32ce-readelf</td><td></td></tr> + <tr><td>arm-wince-cegcc-readelf</td><td>arm-wince-mingw32ce-readelf</td><td>Not very useful, we don't produce ELF files</td></tr> <tr><td>arm-wince-cegcc-size</td><td>arm-wince-mingw32ce-size</td><td>Print the size of executable contents</td></tr> <tr><td>arm-wince-cegcc-strings</td><td>arm-wince-mingw32ce-strings</td><td>Print a list of strings in an executable</td></tr> <tr><td>arm-wince-cegcc-strip</td><td>arm-wince-mingw32ce-strip</td><td>Strip debugging symbols and name tables from an executable</td></tr> Modified: trunk/cegcc/docs/what.html =================================================================== --- trunk/cegcc/docs/what.html 2006-11-03 16:17:39 UTC (rev 776) +++ trunk/cegcc/docs/what.html 2006-11-03 18:00:58 UTC (rev 777) @@ -58,6 +58,25 @@ <a href="choosing.html">Choosing in which environment to develop</a>. <h1>The Linux based distribution</h1> <p> +Your best option to start using CeGCC on Linux is to download the RPM. +You can download from +<a href="http://sourceforge.net/project/showfiles.php?group_id=173455">the +SourceForge download page for CeGCC</a>, +your best bet is the latest distribution. +You'll find that an RPM distribution is (at the time of this writing) +slightly larger than 40 MB. +<p> +After completing the download, all you have to do is install it, +using a command such as : +<pre> +rpm -i --nodeps cegcc-0.11-1.i586.rpm +</pre> +The --nodeps argument is sometimes necessary, I'm not sure why. +<p> +After that, all the commands should be available under /usr/ppc as described +in the rest of this documentation. <h1>The Cygwin based distribution</h1> +<p> +To be written. </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-03 16:17:50
|
Revision: 776 http://svn.sourceforge.net/cegcc/?rev=776&view=rev Author: dannybackx Date: 2006-11-03 08:17:39 -0800 (Fri, 03 Nov 2006) Log Message: ----------- Don't write the file in /tmp, this is useless. Modified Paths: -------------- trunk/cegcc/scripts/linux/rpm-create-source.sh Modified: trunk/cegcc/scripts/linux/rpm-create-source.sh =================================================================== --- trunk/cegcc/scripts/linux/rpm-create-source.sh 2006-11-03 16:17:05 UTC (rev 775) +++ trunk/cegcc/scripts/linux/rpm-create-source.sh 2006-11-03 16:17:39 UTC (rev 776) @@ -26,7 +26,7 @@ cd $TOP_SRCDIR ln -s . cegcc-$CEGCC_RELEASE tar --exclude-from=/tmp/exclude-$$ \ - -cz -f /tmp/cegcc-src-$CEGCC_RELEASE.tar.gz \ + -cz -f /usr/src/RPM/SOURCES/cegcc-src-$CEGCC_RELEASE.tar.gz \ cegcc-$CEGCC_RELEASE/NEWS cegcc-$CEGCC_RELEASE/README \ cegcc-$CEGCC_RELEASE/scripts cegcc-$CEGCC_RELEASE/docs \ cegcc-$CEGCC_RELEASE/website cegcc-$CEGCC_RELEASE/test cegcc-$CEGCC_RELEASE/src This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-03 16:17:19
|
Revision: 775 http://svn.sourceforge.net/cegcc/?rev=775&view=rev Author: dannybackx Date: 2006-11-03 08:17:05 -0800 (Fri, 03 Nov 2006) Log Message: ----------- More accurate documentation. Modified Paths: -------------- trunk/cegcc/docs/build-toolchain.html trunk/cegcc/docs/index.html trunk/cegcc/docs/using.html Modified: trunk/cegcc/docs/build-toolchain.html =================================================================== --- trunk/cegcc/docs/build-toolchain.html 2006-11-03 12:06:13 UTC (rev 774) +++ trunk/cegcc/docs/build-toolchain.html 2006-11-03 16:17:05 UTC (rev 775) @@ -8,11 +8,15 @@ This document describes how to build <A HREF="http://cegcc.sourceforge.net">CeGCC</A>. One chapter deals with building the software on Linux, another focuses on <A HREF="http://cygwin.com">Cygwin</A> (Windows + the Cygnus layer). -<H1>Building on Linux</H1> +<H1>1. Building on Linux</H1> <P> -<H2>Directory structure</H2> +There are two different sets of build scripts for Linux. +The scripts in src/*.sh are being maintained (by Pedro), they can be used unchanged both on +Linux and Cygwin. The scripts in scripts/linux are maintained to build an RPM file, +they are Linux-only. +<H2>1.1. Background information</H2> <P> -<H2>Things to modify</H2> +<H3>1.1.1 Things to modify</H3> <P> Theoretically you should be able to use the scripts and have to modify only the <i>settings.sh</i> script. @@ -30,7 +34,7 @@ The scripts also includes $PREFIX/bin in the path to make sure that the newly built executables can be used by the other scripts in the build process. -<H2>Script concepts</H2> +<H3>1.1.2 Script concepts</H3> <P> All scripts reside in $SCRIPTDIR, that's scripts/linux in your distribution. The build.sh script is the master build script. @@ -41,7 +45,9 @@ There's a small protection : it'll only clean up in $PREFIX if that's equal to /usr/ppc . <P> The tools need to be built in a sequence because they rely on each other. -One of the sequences that works (the one we use) is : +The text below is an overview to make you understand the issues involved, +the real script (scripts/linux/build.sh) is the most +<I>(the only?)</I> reliable source of information on this topic. <ul> <li>binutils <li>includes @@ -62,8 +68,8 @@ Sadly, this conflicts with the concept of e.g. <A HREF="http://www.rpm.org">rpm</A> so it is not possible to create a source RPM for this project in a simple way. -<H2>Hacks to work around problems</H2> -<H3>C++ compiler won't build</H3> +<H3>1.1.3 Hacks to work around problems</H3> +<H4>1.1.3.1 C++ compiler won't build</H4> <P> For some reason, the build process for the C++ compiler chokes. The only explanation - and workaround - that we know of is the one found in @@ -79,12 +85,55 @@ But the build is expected to fail (so the script won't terminate on this occasion), then $BUILD_DIR/gpp/gcc/as is removed (that's the file bothering us), then the build is restarted. -<H1>Building on Cygwin</H1> +<H2>1.2 Building CeGCC for private use</H2> <P> -<H1>Requirements</H1> +This part is very simple : move to the scripts/linux directory and run build.sh . +The software will turn up in /usr/ppc (add /usr/ppc/bin to your PATH) after a while. +<H2>1.3 Building a CeGCC RPM</H2> <P> -<H1>A tour of the directory structure</H1> +To build an RPM for distribution, you'll need to do two things : +<ul> + <li> package the sources in a .tar.gz file + <li> build the RPMs from this +</ul> <P> +You should run scripts/linux/rpm-create-source.sh (from the scripts/linux directory). +This will create a file called <i>/usr/src/RPM/SOURCES/cegcc-src-0.11.tar.gz</i>, +in which the 0.11 part depends on variables sets in <i>settings.sh</i>. +<P> +For this to work, you'll need write permission in <i>/usr/src/RPM/*</i>, +but the next steps also require this. +<P> +To build the RPM, you must run +<i>rpmbuild -ba cegcc.spec</i> +which is another file in the scripts/linux directory. +<P> +You'll need two prerequisites for this to work : +write permissions in /usr/src/RPM, +and you'll have to make sure that the version numbers in +<i>scripts/linux/settings.sh</i> and <i>scripts/linux/cegcc.spec</i> +match. +<H1>2. The portable build - Building on Cygwin and Linux</H1> +<P> +Pedro will probably write documentation on this. +<H1>3. Requirements</H1> +<P> +There is nothing out of the ordinary in the tools you need to build cegcc, +most free software packages require the same : +<ul> + <li> a working C compiler for your platform, only tested with gcc + <li> (the above requirement already assumes binutils) + <li> make + <li> (if you're building an RPM) the rpmbuild tool +</ul> +<P> +You don't need automake, autoconf or such tools : the cegcc sources, +even the ones in SVN, +already contain the files generated by these tools. +Note that we need to do this as some of the software that is part of cegcc +requires different revisions of the auto tools than other parts of cegcc. +<H1>4. A tour of the directory structure</H1> +<P> how to download <P> <pre> Modified: trunk/cegcc/docs/index.html =================================================================== --- trunk/cegcc/docs/index.html 2006-11-03 12:06:13 UTC (rev 774) +++ trunk/cegcc/docs/index.html 2006-11-03 16:17:05 UTC (rev 775) @@ -22,10 +22,11 @@ <LI><A HREF="layer.html">The unix-like layer provided by CeGCC</A></LI> <LI><A HREF="details.html">Details - macros, libraries, ..</A></LI> <LI><A HREF="dll.html">Beware! need to install CeGCC DLL's first</A></LI> -<ul> - <li>CeGCC specifics (predefined macros, libraries)</li> - <li>For the detail-hungry ..</li> -</ul> + <ul> + <li>CeGCC specifics (predefined macros, libraries)</li> + <li>For the detail-hungry ..</li> + </ul> +<LI><A HREF="license.html">License</A></LI> </UL> <P> <h2>Required software</h2> Modified: trunk/cegcc/docs/using.html =================================================================== --- trunk/cegcc/docs/using.html 2006-11-03 12:06:13 UTC (rev 774) +++ trunk/cegcc/docs/using.html 2006-11-03 16:17:05 UTC (rev 775) @@ -87,24 +87,27 @@ <tr><td>arm-wince-cegcc-addr2line</td><td>arm-wince-mingw32ce-addr2line</td><td></td></tr> <tr><td>arm-wince-cegcc-ar</td><td>arm-wince-mingw32ce-ar</td><td>archive library management tool</td></tr> <tr><td>arm-wince-cegcc-as</td><td>arm-wince-mingw32ce-as</td><td>the GNU assembler</td></tr> - <tr><td>arm-wince-cegcc-c++</td><td></td><td>the C++ compiler</td></tr> - <tr><td>arm-wince-cegcc-c++filt</td><td></td><td></td></tr> + <tr><td>arm-wince-cegcc-c++</td><td>arm-wince-mingw32ce-c++</td><td>the C++ compiler</td></tr> + <tr><td>arm-wince-cegcc-c++filt</td><td>arm-wince-mingw32ce-c++filt</td><td></td></tr> <tr><td>arm-wince-cegcc-cpp</td><td>arm-wince-mingw32ce-cpp</td><td>the C preprocessor</td></tr> <tr><td>arm-wince-cegcc-dlltool</td><td>arm-wince-mingw32ce-dlltool</td><td>a tool to create DLLs</td></tr> <tr><td>arm-wince-cegcc-gcc</td><td>arm-wince-mingw32ce-gcc</td><td>the C compiler</td></tr> - <tr><td>arm-wince-cegcc-gcov</td><td>arm-wince-mingw32ce-gcov</td><td></td></tr> - <tr><td>arm-wince-cegcc-gprof</td><td>arm-wince-mingw32ce-gprof</td><td></td></tr> - <tr><td>arm-wince-cegcc-g++</td><td></td><td>the C++ compiler</td></tr> + <tr><td>arm-wince-cegcc-gccbug</td><td>arm-wince-mingw32ce-gccbug</td><td>Bug reporting script for the C compiler</td></tr> + <tr><td>arm-wince-cegcc-gcov</td><td>arm-wince-mingw32ce-gcov</td><td>Test coverage analysis tool</td></tr> + <tr><td>arm-wince-cegcc-gdb</td><td>arm-wince-mingw32ce-gdb</td><td>GNU Debugger</td></tr> + <tr><td>arm-wince-cegcc-gdbtui</td><td>arm-wince-mingw32ce-gdbtui</td><td>GNU Debugger</td></tr> + <tr><td>arm-wince-cegcc-gprof</td><td>arm-wince-mingw32ce-gprof</td><td>Profiling analysis tool</td></tr> + <tr><td>arm-wince-cegcc-g++</td><td>arm-wince-mingw32ce-g++</td><td>the C++ compiler</td></tr> <tr><td>arm-wince-cegcc-ld</td><td>arm-wince-mingw32ce-ld</td><td>the GNU linker</td></tr> <tr><td>arm-wince-cegcc-nm</td><td>arm-wince-mingw32ce-nm</td><td>the tool to inspect symbols in load modules</td></tr> <tr><td>arm-wince-cegcc-objcopy</td><td>arm-wince-mingw32ce-objcopy</td><td></td></tr> <tr><td>arm-wince-cegcc-objdump</td><td>arm-wince-mingw32ce-objdump</td><td>a tool to print data about object files</td></tr> <tr><td>arm-wince-cegcc-ranlib</td><td>arm-wince-mingw32ce-ranlib</td><td>tool to add or refresh the library directory</td></tr> <tr><td>arm-wince-cegcc-readelf</td><td>arm-wince-mingw32ce-readelf</td><td></td></tr> - <tr><td>arm-wince-cegcc-size</td><td>arm-wince-mingw32ce-size</td><td></td></tr> - <tr><td>arm-wince-cegcc-strings</td><td>arm-wince-mingw32ce-strings</td><td></td></tr> - <tr><td>arm-wince-cegcc-strip</td><td>arm-wince-mingw32ce-strip</td><td></td></tr> - <tr><td>arm-wince-cegcc-windres</td><td>arm-wince-mingw32ce-windres</td><td></td></tr> + <tr><td>arm-wince-cegcc-size</td><td>arm-wince-mingw32ce-size</td><td>Print the size of executable contents</td></tr> + <tr><td>arm-wince-cegcc-strings</td><td>arm-wince-mingw32ce-strings</td><td>Print a list of strings in an executable</td></tr> + <tr><td>arm-wince-cegcc-strip</td><td>arm-wince-mingw32ce-strip</td><td>Strip debugging symbols and name tables from an executable</td></tr> + <tr><td>arm-wince-cegcc-windres</td><td>arm-wince-mingw32ce-windres</td><td>Windows resource compiler</td></tr> </table> <H1>How to build a Makefile that works</H1> <p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-03 12:06:20
|
Revision: 774 http://svn.sourceforge.net/cegcc/?rev=774&view=rev Author: dannybackx Date: 2006-11-03 04:06:13 -0800 (Fri, 03 Nov 2006) Log Message: ----------- Implement Pedro's quick suggestion. Modified Paths: -------------- trunk/cegcc/src/gcc/gcc/ChangeLog.ce trunk/cegcc/src/gcc/gcc/config/arm/pe.h Modified: trunk/cegcc/src/gcc/gcc/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2006-11-03 11:44:55 UTC (rev 773) +++ trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2006-11-03 12:06:13 UTC (rev 774) @@ -1,3 +1,8 @@ +2006-11-04 Danny Backx <dan...@us...> + + * config/arm/pe.h (PROFILE_HOOK) : Remove, it looks like we don't need + it to get profiling to work. + 2006-10-30 Pedro Alves <ped...@po...> * target-def.h (TARGET_ATTRIBUTE_TABLE): Only define if not Modified: trunk/cegcc/src/gcc/gcc/config/arm/pe.h =================================================================== --- trunk/cegcc/src/gcc/gcc/config/arm/pe.h 2006-11-03 11:44:55 UTC (rev 773) +++ trunk/cegcc/src/gcc/gcc/config/arm/pe.h 2006-11-03 12:06:13 UTC (rev 774) @@ -185,6 +185,10 @@ #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ arm_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) +#if 0 +/* + * We don't appear to need this to get monitoring to work. + */ #undef PROFILE_HOOK #define PROFILE_HOOK(LABEL) \ if (MAIN_NAME_P (DECL_NAME (current_function_decl))) \ @@ -194,6 +198,7 @@ gen_rtx_SYMBOL_REF (Pmode, "_monstartup")), \ const0_rtx)); \ } +#endif /* This implements the `alias' attribute. */ #undef ASM_OUTPUT_DEF_FROM_DECLS This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-03 11:45:03
|
Revision: 773 http://svn.sourceforge.net/cegcc/?rev=773&view=rev Author: dannybackx Date: 2006-11-03 03:44:55 -0800 (Fri, 03 Nov 2006) Log Message: ----------- Build support for the Mingw profiling stuff. Modified Paths: -------------- trunk/cegcc/scripts/linux/build-mingw.sh Modified: trunk/cegcc/scripts/linux/build-mingw.sh =================================================================== --- trunk/cegcc/scripts/linux/build-mingw.sh 2006-11-03 11:44:21 UTC (rev 772) +++ trunk/cegcc/scripts/linux/build-mingw.sh 2006-11-03 11:44:55 UTC (rev 773) @@ -24,5 +24,9 @@ --prefix=$PREFIX \ --target=$TGT_ARCH --host=$TGT_ARCH --build=$MY_HOST_ARCH || exit 1 # -make || exit 1 +if [ $TGT_ARCH = arm-wince-cegcc ]; then + make CFLAGS="-D__COREDLL__ -DNO_UNDERSCORES" || exit 1 +else + make CFLAGS="-DNO_UNDERSCORES" || exit 1 +fi exit 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2006-11-03 11:44:38
|
Revision: 772 http://svn.sourceforge.net/cegcc/?rev=772&view=rev Author: dannybackx Date: 2006-11-03 03:44:21 -0800 (Fri, 03 Nov 2006) Log Message: ----------- Port all this to both arm-wince-mingw32ce and arm-wince-cegcc . profile/gmon.c : Use the executable file name under CE to cook up the file name that we put monitoring information in. This used to be just "gmon.out", now if you run /apps/m1.exe it'll be /apps/m1.gmo Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/atexit.c trunk/cegcc/src/mingw/include/ctype.h trunk/cegcc/src/mingw/include/stdio.h trunk/cegcc/src/mingw/include/wctype.h trunk/cegcc/src/mingw/profile/configure trunk/cegcc/src/mingw/profile/configure.in trunk/cegcc/src/mingw/profile/gmon.c trunk/cegcc/src/mingw/profile/profile.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2006-11-03 11:44:21 UTC (rev 772) @@ -1,3 +1,14 @@ +2006-11-03 Danny Backx <dan...@us...> + + * profile/gmon.c : Use the executable file name under CE to cook up + the file name that we put monitoring information in. This used to + be just "gmon.out", now if you run /apps/m1.exe it'll be /apps/m1.gmo + + * atexit.c, include/wctype.h, include/stdio.h, include/ctype.h, + profile/configure, profile/gmon.c, profile/configure.in, + profile/profile.h : Port this code to both arm-wince-mingw32ce and + arm-wince-cegcc . + 2006-10-22 Pedro Alves <ped...@po...> * configure.in [AC_CONFIG_SUBDIRS]: Add mingwex. Modified: trunk/cegcc/src/mingw/atexit.c =================================================================== --- trunk/cegcc/src/mingw/atexit.c 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/atexit.c 2006-11-03 11:44:21 UTC (rev 772) @@ -65,7 +65,7 @@ first_atexit = (p_atexit_fn*) malloc (32 * sizeof (p_atexit_fn)); if (first_atexit == NULL ) /* can't allocate memory */ { -#ifndef __COREDLL__ +#if defined(__MINGW32CE__) && !defined(__COREDLL__) errno=ENOMEM; #endif return FALSE; Modified: trunk/cegcc/src/mingw/include/ctype.h =================================================================== --- trunk/cegcc/src/mingw/include/ctype.h 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/include/ctype.h 2006-11-03 11:44:21 UTC (rev 772) @@ -158,10 +158,12 @@ #ifdef __COREDLL__ # define __ISCTYPE(c, mask) _isctype(c, mask) -#else +#elif !defined(__CEGCC__) /* use simple lookup if SB locale, else _isctype() */ # define __ISCTYPE(c, mask) (MB_CUR_MAX == 1 ? (_pctype[c] & mask) : _isctype(c, mask)) #endif + +#ifdef __ISCTYPE __CRT_INLINE int __cdecl isalnum(int c) {return __ISCTYPE(c, (_ALPHA|_DIGIT));} __CRT_INLINE int __cdecl isalpha(int c) {return __ISCTYPE(c, _ALPHA);} __CRT_INLINE int __cdecl iscntrl(int c) {return __ISCTYPE(c, _CONTROL);} @@ -179,6 +181,7 @@ __CRT_INLINE int __cdecl isblank (int c) {return (__ISCTYPE(c, _BLANK) || c == '\t');} #endif +#endif /* __ISCTYPE */ /* these reproduce behaviour of lib underscored versions */ __CRT_INLINE int __cdecl _tolower(int c) {return ( c -'A'+'a');} @@ -252,7 +255,7 @@ __CRT_INLINE int __cdecl iswxdigit(wint_t wc) {return (iswctype(wc,_HEX));} #ifdef __COREDLL__ __CRT_INLINE int __cdecl isleadbyte(int c) {return IsDBCSLeadByte(c); } -#else +#elif !defined(__CEGCC__) __CRT_INLINE int __cdecl isleadbyte(int c) {return (_pctype[(unsigned char)(c)] & _LEADBYTE);} #endif #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/include/stdio.h 2006-11-03 11:44:21 UTC (rev 772) @@ -422,8 +422,9 @@ _CRTIMP FILE* __cdecl _fdopen (int, const char*); _CRTIMP FILE* __cdecl _fsopen(const char*, const char*, int); _CRTIMP int __cdecl _fileno (FILE*); +#else +_CRTIMP void* __cdecl _fileno (FILE*); #endif -_CRTIMP void* __cdecl _fileno (FILE*); _CRTIMP int __cdecl _fcloseall(void); #ifdef __MSVCRT__ _CRTIMP int __cdecl _getmaxstdio(void); Modified: trunk/cegcc/src/mingw/include/wctype.h =================================================================== --- trunk/cegcc/src/mingw/include/wctype.h 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/include/wctype.h 2006-11-03 11:44:21 UTC (rev 772) @@ -140,7 +140,7 @@ __CRT_INLINE int __cdecl iswxdigit(wint_t wc) {return (iswctype(wc,_HEX));} #ifdef __COREDLL__ __CRT_INLINE int __cdecl isleadbyte(int c) {return IsDBCSLeadByte(c); } -#else +#elif !defined(__CEGCC__) __CRT_INLINE int __cdecl isleadbyte(int c) {return (_pctype[(unsigned char)(c)] & _LEADBYTE);} #endif Modified: trunk/cegcc/src/mingw/profile/configure =================================================================== --- trunk/cegcc/src/mingw/profile/configure 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/profile/configure 2006-11-03 11:44:21 UTC (rev 772) @@ -1360,7 +1360,7 @@ # Do not build libm.a when building under Cygwin winsup. Otherwise, it'll # overwrite Cygwin's one. Likewise for libgmon.a. ;; -*mingw32ce*) +*cegcc* | *mingw32ce*) CRT_ID=3 MNO_CYGWIN= RUNTIME=coredll @@ -1577,10 +1577,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 Modified: trunk/cegcc/src/mingw/profile/configure.in =================================================================== --- trunk/cegcc/src/mingw/profile/configure.in 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/profile/configure.in 2006-11-03 11:44:21 UTC (rev 772) @@ -52,7 +52,7 @@ # Do not build libm.a when building under Cygwin winsup. Otherwise, it'll # overwrite Cygwin's one. Likewise for libgmon.a. ;; -*mingw32ce*) +*cegcc* | *mingw32ce*) CRT_ID=3 MNO_CYGWIN= RUNTIME=coredll Modified: trunk/cegcc/src/mingw/profile/gmon.c =================================================================== --- trunk/cegcc/src/mingw/profile/gmon.c 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/profile/gmon.c 2006-11-03 11:44:21 UTC (rev 772) @@ -41,13 +41,13 @@ */ #ifndef __MINGW32CE__ -#include <fcntl.h> +// #include <fcntl.h> #endif #include <stdlib.h> #include <stdio.h> #ifndef __MINGW32__ -#include <unistd.h> +// #include <unistd.h> #include <sys/param.h> #endif #include <sys/types.h> @@ -92,6 +92,10 @@ char *cp; struct gmonparam *p = &_gmonparam; +#if 0 + MessageBoxW(0, L"monstartup", L"Hello", 0); +#endif + /* * round lowpc and highpc to multiples of the density we're using * so the rest of the scaling (here and in gprof) stays in ints. @@ -176,6 +180,10 @@ char dbuf[200]; #endif +#if 0 + MessageBoxW(0, L"_mcleanup", L"Hello", 0); +#endif + if (p->state == GMON_PROF_ERROR) { #ifdef UNDER_CE #else @@ -232,8 +240,35 @@ proffile = "gmon.out"; } #else +#ifdef UNDER_CE + /* + * Provide for different file names than just "gmon.out". + */ + { +#define NAME_LEN 128 + wchar_t nlw[NAME_LEN]; + char nl[NAME_LEN]; + int len; + + len = GetModuleFileNameW(NULL, nlw, NAME_LEN); + if (len == 0) { + proffile = "gmon.out"; + } else { + if (wcstombs(nl, nlw, len) < 0) { + proffile = "gmon.out"; + } else { + nl[len-3] = 'g'; + nl[len-2] = 'm'; + nl[len-1] = 'o'; + + proffile = &nl[0]; + } + } + } +#else proffile = "gmon.out"; #endif +#endif #ifdef UNDER_CE fp = fopen(proffile, "wb"); Modified: trunk/cegcc/src/mingw/profile/profile.h =================================================================== --- trunk/cegcc/src/mingw/profile/profile.h 2006-11-03 11:40:54 UTC (rev 771) +++ trunk/cegcc/src/mingw/profile/profile.h 2006-11-03 11:44:21 UTC (rev 772) @@ -64,16 +64,14 @@ * The canonical name for the counter function is `mcount', no _. */ void _mcount (void) asm ("mcount"); #else -/* The canonical name for the function is `_mcount' in both C and asm, - * but some old asm code might assume it's `mcount'. */ +/* The canonical name for the function is `_mcount' in both C and asm. */ void _mcount (void); -weak_alias (_mcount, mcount) #endif -static void mcount_internal (unsigned long frompc, unsigned long selfpc); +void mcount_internal (unsigned long frompc, unsigned long selfpc); #define _MCOUNT_DECL(frompc, selfpc) \ - static void mcount_internal (unsigned long frompc, unsigned long selfpc) + void mcount_internal (unsigned long frompc, unsigned long selfpc) /* This macro/func MUST save r0, r1 because the compiler inserts * blind calls to _mount(), ignoring the fact that _mcount may @@ -103,6 +101,13 @@ "ldmia sp!, {r0, r1, r2, r3}"); \ } #else +/*************************************************************************** + *************************************************************************** + * + * The stuff below doesn't mention a processor, but it's Cygwin so x86 + * + *************************************************************************** + ***************************************************************************/ /* * This file is taken from Cygwin distribution. Please keep it in sync. * The differences should be within __MINGW32__ guard. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |