This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] win64 fix for libiberty md5.h


md5.h of libiberty assumes unsigned long to be of equal size to the size
of a pointer, but that isn't true for all systems (ie. win64). here is the
generated warning:
../../../gcc-svn/libiberty/md5.c: In function 'md5_process_bytes':
../../../gcc-svn/libiberty/md5.c:234: warning: cast from pointer to integer of
different size.

the attached trivial patch fixes it. the patch is probably ugly, but md5.h
should include stdint.h not for _LIBC only..

--
Ozkan

PS: this was previously entered as an entry in the gcc bugzilla (39064).

Attachment: libiberty-md5-uintptr.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]