Skip to content

clang fails freestanding test at -O0 because it assumes memcpy/memset calls #12

Description

@steve-chavez

Problem

Doing:

make CC=clang  test && nm -u build/freestanding

Gives:

...
cc -std=c99 -Wextra -Wall -Werror -O0 -I. -ffreestanding -c test/freestanding.c -o build/freestanding
...


                 U memcpy
                 U memset

For some reason it assumes those calls. gcc doesn't.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions