[0/2] Initial work for testing gnat-llvm

Message ID 20240516-gnat-llvm-experiment-v1-0-5c13d1092119@adacore.com
Headers
Series Initial work for testing gnat-llvm |

Message

Tom Tromey May 16, 2024, 5:46 p.m. UTC
  This short series adds a bit of initial support for testing using
gnat-llvm.

I am not sure whether adding a new board file is really the best
approach.  Comments welcome.  I chose this over checking
GNATMAKE_FOR_TARGET because, from what I can tell, the only way to
distinguish llvm-gnatmake from the ordinary gnatmake is by examining
the program's name.

---
Tom Tromey (2):
      Introduce and use foreach_gnat_encoding
      Introduce gnat-llvm board file

 gdb/testsuite/boards/gnat-llvm.exp                 | 29 ++++++++++++++++++
 gdb/testsuite/gdb.ada/O2_float_param.exp           |  6 ++--
 .../gdb.ada/access_to_unbounded_array.exp          |  4 +--
 gdb/testsuite/gdb.ada/arr_acc_idx_w_gap.exp        |  4 +--
 gdb/testsuite/gdb.ada/arr_enum_idx_w_gap.exp       |  4 +--
 gdb/testsuite/gdb.ada/array_of_symbolic_length.exp |  4 +--
 gdb/testsuite/gdb.ada/array_of_variable_length.exp |  4 +--
 gdb/testsuite/gdb.ada/array_of_variant.exp         |  4 +--
 gdb/testsuite/gdb.ada/array_ptr_renaming.exp       |  4 +--
 gdb/testsuite/gdb.ada/arrayparam.exp               |  4 +--
 gdb/testsuite/gdb.ada/arrayptr.exp                 |  4 +--
 gdb/testsuite/gdb.ada/bias.exp                     |  8 +++--
 gdb/testsuite/gdb.ada/big_packed_array.exp         |  4 +--
 gdb/testsuite/gdb.ada/enum_idx_packed.exp          |  4 +--
 gdb/testsuite/gdb.ada/finish-large.exp             |  2 +-
 gdb/testsuite/gdb.ada/fixed_cmp.exp                |  4 +--
 gdb/testsuite/gdb.ada/fixed_points.exp             |  4 +--
 gdb/testsuite/gdb.ada/frame_arg_lang.exp           |  9 +++---
 gdb/testsuite/gdb.ada/funcall_ref.exp              |  4 +--
 gdb/testsuite/gdb.ada/mi_string_access.exp         |  4 +--
 gdb/testsuite/gdb.ada/mi_var_array.exp             |  7 ++---
 gdb/testsuite/gdb.ada/mi_var_union.exp             |  7 ++---
 gdb/testsuite/gdb.ada/mi_variant.exp               |  7 ++---
 gdb/testsuite/gdb.ada/mod_from_name.exp            |  4 +--
 gdb/testsuite/gdb.ada/multiarray.exp               |  4 +--
 gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp   |  6 ++--
 gdb/testsuite/gdb.ada/packed_array.exp             |  4 +--
 gdb/testsuite/gdb.ada/packed_record.exp            |  4 +--
 gdb/testsuite/gdb.ada/packed_tagged.exp            |  7 ++---
 gdb/testsuite/gdb.ada/pckd_arr_ren.exp             |  4 +--
 gdb/testsuite/gdb.ada/ptype-o.exp                  |  4 +--
 gdb/testsuite/gdb.ada/rec_ptype.exp                |  4 +--
 gdb/testsuite/gdb.ada/same_component_name.exp      |  4 +--
 gdb/testsuite/gdb.ada/scalar_storage.exp           |  3 ++
 gdb/testsuite/gdb.ada/set_pckd_arr_elt.exp         |  4 +--
 gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec.exp   |  4 +--
 gdb/testsuite/gdb.ada/unchecked_union.exp          |  7 ++---
 gdb/testsuite/gdb.ada/var_rec_arr.exp              |  4 +--
 gdb/testsuite/gdb.ada/variant.exp                  |  7 ++---
 .../gdb.ada/variant_record_packed_array.exp        |  4 +--
 gdb/testsuite/gdb.ada/win_fu_syms.exp              |  3 ++
 gdb/testsuite/lib/ada.exp                          | 35 ++++++++++++++++++++++
 42 files changed, 151 insertions(+), 100 deletions(-)
---
base-commit: 8f155672d3457b5a014a99a6bd61b2b8be1d1c16
change-id: 20240516-gnat-llvm-experiment-cb5b4d4a2b75

Best regards,
  

Comments

Tom Tromey June 27, 2024, 7:09 p.m. UTC | #1
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

Tom> I am not sure whether adding a new board file is really the best
Tom> approach.  Comments welcome.  I chose this over checking
Tom> GNATMAKE_FOR_TARGET because, from what I can tell, the only way to
Tom> distinguish llvm-gnatmake from the ordinary gnatmake is by examining
Tom> the program's name.

Still not really sure about this but eventually I'll just push it.
If need be it can be redone.

Tom
  
Tom Tromey Sept. 6, 2024, 4:21 p.m. UTC | #2
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> I am not sure whether adding a new board file is really the best
Tom> approach.  Comments welcome.  I chose this over checking
Tom> GNATMAKE_FOR_TARGET because, from what I can tell, the only way to
Tom> distinguish llvm-gnatmake from the ordinary gnatmake is by examining
Tom> the program's name.

Tom> Still not really sure about this but eventually I'll just push it.
Tom> If need be it can be redone.

I'm going to push just the first patch, since it doesn't involve the
board file and is also useful for other things I'm working on.

Tom