Skip to content

compile asm code cause vtcc crash #4

@kbkpbot

Description

@kbkpbot

a test code:

bug.c

void main() {
        __asm__ __volatile__ ("pause");
        __atomic_thread_fence(0);
}

this can be compiled with tcc,

but when compile with vtcc:

$ ./vtcc bug.c
7ffda13c8040 : at ???: invalid memory access

Found by a PR at https://github.com/vlang/v/pull/24788

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions