Skip to content

Failure to compile __builtin_bcopy #51409

@GabrielRavier

Description

@GabrielRavier
Bugzilla Link 52067
Version trunk
OS Linux
CC @RKSimon,@zygoloid,@rotateright

Extended Description

#include <stddef.h>

void f(const void *s, void *d, size_t n)
{
    __builtin_bcopy((void *)s, d, n);
}

Trying to compile this with Clang results in this error:

<source>:5:5: error: cannot compile this builtin function yet
    __builtin_bcopy((void *)s, d, n);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I would assume implementing this is as simple as having it do __builtin_memmove(d, s, n), so it seems odd that this isn't implemented

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions