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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.2.0, 5.1.2, 5.0.6, 4.4.11, 4.2.19
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.2, v5.1, v5.0, v4.4, v4.2
    • Dev Platform 2021-12-13

    Description

      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.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow
            andrew.morrow@mongodb.com Andrew Morrow
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: