PATCH COMMITTED: Add sha1 to libiberty

Ian Lance Taylor iant@google.com
Tue Mar 25 06:54:00 GMT 2008


Ian Lance Taylor <iant@google.com> writes:

> "Andrew Pinski" <pinskia@gmail.com> writes:
>
>> On Mon, Mar 24, 2008 at 4:52 PM, Ian Lance Taylor <iant@google.com> wrote:
>>> I plan to shortly commit this patch to add sha1 to libiberty.  I'm
>>>  doing this for the GNU binutils, in order to use sha1 in gold.
>>>  Currently ld has its copy of sha1.h and sha1.c; putting it in
>>>  libiberty will permit ld and gold to share it.
>>
>> This also has the same issue as the md5.h patch:
>> +#ifdef __cplusplus
>> +extern "C" {
>> +#endif
>> +
>> +# include <stdio.h>
>
> Yes, thanks.
>
> I also see that md5.h has a different way of getting a 32-bit unsigned
> type, so I'm going to copy that.

Committed like this after another bootstrap.

Ian


include/ChangeLog:
2008-03-24  Ian Lance Taylor  <iant@google.com>

	* sha1.h: New file, from gnulib.

libiberty/ChangeLog:
2008-03-24  Ian Lance Taylor  <iant@google.com>

	* sha1.c: New file, from gnulib.
	* Makefile.in: Rebuild dependencies.
	(CFILES): Add sha1.c.
	(REQUIRED_OFILES): Add sha1.o.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 20195 bytes
Desc: Add sha1 to libiberty
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080325/3b1ee166/attachment.bin>


More information about the Gcc-patches mailing list