[flang] Add Sparc support to Optimizer/CodeGen/Target.cpp
authorRainer Orth <ro@gcc.gnu.org>
Mon, 3 Oct 2022 12:03:35 +0000 (14:03 +0200)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 3 Oct 2022 12:03:35 +0000 (14:03 +0200)
commit1774a8a7639a4f63462795f306e5510dacddeb34
treec9e891733fdcea0010e6c446863d1ace0578330f
parent1fa2019828caec1172382009d5327c265427af57
[flang] Add Sparc support to Optimizer/CodeGen/Target.cpp

As described in Issue #57642, `flang` currently lacks SPARC support in
`Optimizer/CodeGen/Target.cpp`, which causes a considerable number of tests
to `FAIL` with

  error: flang/lib/Optimizer/CodeGen/Target.cpp:310: not yet implemented:
target not implemented

This patch fixes this by following GCC`s documentation of the ABI described
in the Issue.

Tested on `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D133561
flang/lib/Optimizer/CodeGen/Target.cpp
flang/test/Fir/target-rewrite-complex.fir