[ovs-git] [openvswitch/ovs] 0175bd: sat-math: Do not use __builtin_s*_overflow() with ...

Ben Pfaff noreply at github.com
Wed Aug 21 17:45:28 UTC 2019

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 0175bdd46c0ae29fbb3e8fd3f2649fcb99caf38a
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2019-08-21 (Wed, 21 Aug 2019)

  Changed paths:
    M lib/sat-math.h

  Log Message:
  sat-math: Do not use __builtin_s*_overflow() with sparse.

Some versions of sparse do not understand __builtin_saddll_overflow() and
related GCC builtins for calculations with overflow detection.  This patch
avoids using them when sparse is in use.

Reported-by: Justin Pettit <jpettit at ovn.org>
Tested-by: Justin Pettit <jpettit at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list