Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61743

The -fno-builtin-memcmp flag shouldn't be applied except on x86_64 platforms

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0, 5.1.2, 5.0.6, 4.4.11, 4.2.19
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.2, v5.1, v5.0, v4.4, v4.2
    • Dev Platform 2021-12-13

      We currently build with -fno-builtin-memcmp on all platforms, but the bug it was working around (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052) was only ever an x86_64 issue. We should allow the compiler to do what it wants on non-x86_64 platforms.

      Note that we have SERVER-55132 to investigate whether the flag can now be removed on x86_64, since we expect it is no longer needed there either with modern GCC. But there is no reason to penalize the other platforms while we wait.

      We should probably also restrict application to GCC, since, again, clang isn't affected.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: