Skip to content

[Flang] flang-new ICE when specifying unsupported -march name on x86 #97466

Open
@rscottmanley

Description

@rscottmanley

With current sources, flang-new results in an ICE if you specify an unsupported cpu/arch on x86. I was able to replicate with trunk and 18.1.0

print *, "hello"
end

$ flang-new hello.f90 -march=znver5 -S
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions