clang currently defaults to DWARF 2 on Solaris. This dates back to LLVM 3.8.0. I suspect this is related to gcc/config/sol2.cc (solaris_override_options) doing the same unless HAVE_LD_EH_FRAME_CIEV3. The latter is 1 on both Solaris 11.3 and 11.4, so the workaround has become irrelevant these days.
This patch removes the Solaris override, adjusting affected testcases accordingly.
Tested on amd64-pc-solaris2.11 (Release and Debug builds) and sparcv9-sun-solaris2.11 (Release build).
Switch to --target= while moving lines.