Summary: | libibiberty's md5.c builds with warnings with 4.7 and trunk | ||
---|---|---|---|
Product: | gcc | Reporter: | Matthias Klose <doko> |
Component: | other | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ktietz |
Priority: | P3 | ||
Version: | 4.7.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | ||
Attachments: | patch taken from glibc |
Description
Matthias Klose
2012-05-08 22:22:10 UTC
Created attachment 27511 [details]
patch taken from glibc
the md5.c copy in glibc was fixed with the attached patch
the patch is incomplete. the patch from glibc is found at http://sourceware.org/git/?p=glibc.git;a=patch;h=7dc6bd90c569c49807462b0740b18e32fab4d8b7 using anonymous unions which cannot be used for stage1. The original patch is http://sourceware.org/ml/libc-alpha/2011-07/msg00085.html A third approach from gnulib is pointed out in http://sourceware.org/ml/libc-alpha/2011-07/msg00093.html Author: ktietz Date: Thu Jan 31 08:14:27 2013 New Revision: 195601 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195601 Log: Merged from trunk. PR other/53285 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output to swap_bytes, and then call memcpy to move it to ctx->buffer. Modified: branches/gcc-4_7-branch/libiberty/ChangeLog branches/gcc-4_7-branch/libiberty/md5.c backported mainline-fix for this to 4.7. Fixed. |