Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-616

__sync_add_and_fetch_4 missing on i386

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.5
    • Affects Version/s: None
    • Component/s: None
    • None

      When on GCC 4.1 compiling for i386, we don't use the intrinsic version of __sync_add_and_fetch for 64-bit values, but do use the intrinsic of __sync_add_and_fetch for 32-bit values, which leads to a compile failure. I believe this is an extension of CDRIVER-365.

      A workaround for this is to compile with "-march=i686", which turns on the compiler intrinsic.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jonathan.reams@mongodb.com Jonathan Reams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: