Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[MIPS] Compiler crash when using __builtin_unreachable #134913

Copy link
Copy link
Closed
@hpoussin

Description

@hpoussin
Issue body actions

Using clang version 20.1.2

clang++ -target "mipsel-w64-windows-gnu" -c test.cpp

[[__noreturn__]] inline void g() {
  __builtin_unreachable();
}

void f(int i)
{
  if (i == 0)
    g();
}

Note that using clang instead of clang++ doesn't exhibit the problem.
Possible workaround: add -O3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.