Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 2015 22:25:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198017] Fix security/libtomcrypt build with clang 3.6.0
Message-ID:  <bug-198017-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198017

            Bug ID: 198017
           Summary: Fix security/libtomcrypt build with clang 3.6.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org

Created attachment 153479
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153479&action=edit
Change inline const rotate functions to macros

During the exp-run in bug 197395, it was found that security/libtomcrypt gives
errors with clang 3.6.0:

http://package18.nyi.freebsd.org/data/headamd64PR197395-default/2015-02-11_23h04m51s/logs/errors/libtomcrypt-1.17_4.log

These errors all because tomcrypt uses the 'I' and 'J' asm constraints
incorrectly.  These can only be used with compile-time integer constants (e.g.
numeric literals).

I propose the attached patch, which changes the ROLc/RORc inline function to
macros, so the constraints requirements are satisfied at compile time.

The produced code is exactly the same, as far as I can determine.  I tested
this on i386 and amd64.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198017-13>