Commit Graph

14 Commits

Author SHA1 Message Date
Kai Tietz
fe4b0b4632 PR other/543413
* md5.c (md5_process_block):  Handle case that size_t is
	a wider-integer-scalar a 32-bit unsigned integer.
2013-01-31 08:10:38 +00:00
Mike Frysinger
902e433550 libiberty/md5: fix strict alias warnings
Current libiberty md5 code triggers these warnings with gcc-4.7.1 for me:

libiberty/md5.c: In function ‘md5_finish_ctx’:
libiberty/md5.c:117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
libiberty/md5.c:118:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

The change below fixes things for me.  The optimized output (-O2) is the same
before/after my change on x86_64-linux.  I imagine it'll be the same for most
targets.  It seems simpler than using a union on the md5_ctx buffer since these
are the only two locations in the code where this occurs.
2012-07-31 09:02:35 +00:00
DJ Delorie
634e4f4ff8 merge from gcc 2011-09-23 20:01:11 +00:00
DJ Delorie
091c2a968a merge from gcc 2011-08-12 18:44:43 +00:00
DJ Delorie
3f69c6bf14 merge from gcc 2008-03-11 16:11:55 +00:00
DJ Delorie
6ba85b8caf merge from gcc 2005-07-03 19:16:20 +00:00
Nick Clifton
979c05d324 Update the address and phone number of the FSF organization. 2005-05-10 15:33:34 +00:00
DJ Delorie
49b1fae430 merge from gcc 2005-03-28 02:09:01 +00:00
Jakub Jelinek
768b20d89f * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
used with arguments in traditional C' warnings.
2002-11-16 12:39:57 +00:00
DJ Delorie
585cc78f65 merge from gcc 2002-09-20 13:45:20 +00:00
DJ Delorie
b50c407366 merge from gcc 2001-05-09 20:08:48 +00:00
DJ Delorie
f65288376e * fnmatch.c: Make the note about the origins of this file more
accurate, at least until we can sync with glibc.
* getopt.c: Ditto.
* getopt1.c: Ditto.
* md5.c: Ditto.
* obstack.c: Ditto.
2000-12-29 20:16:02 +00:00
DJ Delorie
87263c36d1 * md5.c: #include "ansidecl.h". 2000-09-26 01:39:17 +00:00
Jason Merrill
050823ca47 * Makefile.in (REQUIRED_OFILES): Add md5.o.
(CFILES): Add md5.c.
        * md5.c: New file.
2000-09-22 18:31:23 +00:00