When testing LLVM 15.0.0 rc1 on Solaris, I found that 50+ flang tests FAILed 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.
There are a couple of issues, though:
- All the specializations of GenericTarget claim in their comments to be Linux-specific, but with the exception of ppc64le they are used for several other OSes as well.
- The cases in fir::CodeGenSpecifics::get should be sorted, but aren't.
- While Solaris/SPARC has the same issue, there's currently no SPARC support at all. I'll have to figure out how to do this. There's a comment in gcc/config/sparc/sparc.cc (Functions for handling argument passing) describing the ABI for complex args and return values. The SPARC and SPARC V9 ELF psABIs don't include this.