LINUX.ORG.RU

История изменений

Исправление gaylord, (текущая версия) :

Вот тебе кусок из musl:

    # Check for options that may be needed to prevent the compiler from
    # generating self-referential versions of memcpy,, memmove, memcmp,
    # and memset. Really, we should add a check to determine if this
    # option is sufficient, and if not, add a macro to cripple these
    # functions with volatile...
    # tryflag CFLAGS_MEMOPS -fno-tree-loop-distribute-patterns

GCC заменяет куски кода похожие на memcpy() вызовом memcpy() из stdlib. Это известная шляпа, её чинили буквально везде, где нет libc. Как ты 30 лет программировала на C и про это не знаешь, лол.

Исходная версия gaylord, :

Вот тебе кусок из musl:

    # Check for options that may be needed to prevent the compiler from
    # generating self-referential versions of memcpy,, memmove, memcmp,
    # and memset. Really, we should add a check to determine if this
    # option is sufficient, and if not, add a macro to cripple these
    # functions with volatile...
    # tryflag CFLAGS_MEMOPS -fno-tree-loop-distribute-patterns