[flang] Add Solaris/x86 support to Optimizer/CodeGen/Target.cpp
authorRainer Orth <ro@gcc.gnu.org>
Wed, 17 Aug 2022 09:54:38 +0000 (11:54 +0200)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 17 Aug 2022 09:54:38 +0000 (11:54 +0200)
commitbcb2740f415b0f825402f656dda3271414121a0e
tree7930ed042911b34edb90952b75a7c0b1f0bebec1
parent19bd4789b9d6a2af0f87516cec56e733286d51bc
[flang] Add Solaris/x86 support to Optimizer/CodeGen/Target.cpp

When testing LLVM 15.0.0 rc1 on Solaris, I found that 50+ flang tests
`FAIL`ed with

  error:
/vol/llvm/src/llvm-project/local/flang/lib/Optimizer/CodeGen/Target.cpp:310:
not yet implemented: target not implemented

This patch fixes that for Solaris/x86, where the fix is trivial (just
handling it like the other x86 OSes).

Tested on `amd64-pc-solaris2.11`; only a single failure remains now.

Differential Revision: https://reviews.llvm.org/D131054
flang/lib/Optimizer/CodeGen/Target.cpp