This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[boehm-gc] Fix invalid assignment.
- From: Danny Smith <danny_smith_0000 at yahoo dot co dot nz>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Sat, 21 Aug 2004 12:56:34 +1200 (NZST)
- Subject: [boehm-gc] Fix invalid assignment.
Building trunk boehm-gc on mingw32:
../../../gcc/boehm-gc/misc.c:483: error: invalid lvalue in assignment
breaks libgcj build.
Fixed by:
2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
misc.c (GC_init): Replace lhs cast with rhs cast.
Index: misc.c
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/misc.c,v
retrieving revision 1.29
diff -c -3 -p -r1.29 misc.c
*** misc.c 13 Aug 2004 23:05:30 -0000 1.29
--- misc.c 21 Aug 2004 00:49:52 -0000
*************** void GC_init()
*** 479,486 ****
BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL;
HMODULE hK32 = GetModuleHandle("kernel32.dll");
if (hK32)
! (FARPROC) pfn = GetProcAddress(hK32,
! "InitializeCriticalSectionAndSpinCount");
if (pfn)
pfn(&GC_allocate_ml, 4000);
else
--- 479,487 ----
BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL;
HMODULE hK32 = GetModuleHandle("kernel32.dll");
if (hK32)
! pfn = (BOOL (WINAPI *) (LPCRITICAL_SECTION, DWORD))
! GetProcAddress (hK32,
! "InitializeCriticalSectionAndSpinCount");
if (pfn)
pfn(&GC_allocate_ml, 4000);
else
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com