svn commit: r300773 - in head/sys: crypto crypto/aesni crypto/sha2 crypto/siphash kern sys
Glen Barber
gjb at FreeBSD.org
Fri May 27 03:07:13 UTC 2016
On Thu, May 26, 2016 at 08:04:56PM -0700, Ngie Cooper wrote:
> On Thu, May 26, 2016 at 7:35 PM, Allan Jude <allanjude at freebsd.org> wrote:
> > On 2016-05-26 15:29, Conrad E. Meyer wrote:
> >> Author: cem
> >> Date: Thu May 26 19:29:29 2016
> >> New Revision: 300773
> >> URL: https://svnweb.freebsd.org/changeset/base/300773
> >>
> >> Log:
> >> crypto routines: Hint minimum buffer sizes to the compiler
> >>
> >> Use the C99 'static' keyword to hint to the compiler IVs and output digest
> >> sizes. The keyword informs the compiler of the minimum valid size for a given
> >> array. Obviously not every pointer can be validated (i.e., the compiler can
> >> produce false negative but not false positive reports).
> >>
> >> No functional change. No ABI change.
> >>
> >> Sponsored by: EMC / Isilon Storage Division
>
> ...
>
> > This seems to have broken on sparc64, and other gcc based arches:
> >
> > ===> lib/libc (obj,all,install)
> > In file included from /usr/src/lib/libc/../libmd/md5.h:40,
> > from /usr/src/lib/libc/../libmd/md5c.c:42:
> > /usr/obj/sparc64.sparc64/usr/src/tmp/usr/include/sys/md5.h:47:
> > error: static or type qualifiers in abstract declarator
> > --- md5c.o ---
> > *** [md5c.o] Error code 1
>
> I was wondering about that in the original commit. It might be a good
> idea to revert both commits and reintroduce them with another keyword
> (i.e. __static, or something in sys/cdefs.h )
> Thanks,
>
Conrad is working on a fix for gcc at the moment. I'll be patiently
impatient long enough to see how quickly this can be properly fixed.
FWIW.
Glen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20160527/484ba3c7/attachment.sig>
More information about the svn-src-all
mailing list