gdb/ChangeLog:
2021-01-08  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

        * intelgt-tdep.c (intelgt_make_corefile_notes): read in-memory
          content to section in case so file is not resides on the disk.

gdb/ChangeLog:
2021-01-08  Mihails Strasuns  <mihails.strasuns@intel.com>

	* intelgt-tdep.c (intelgt_core_load_hook): New function.
	  Implements a gdbarch_core_load_hook.

gdb/ChangeLog:
2021-06-24  Mihails Strasuns  <mihails.strasuns@intel.com>

        * corelow.c: Extra earlier target_find_description call.

gdb/ChangeLog:
2020-12-17  Mihails Strasuns  <mihails.strasuns@intel.com>

        * gcore.c (section_userdata_is_contents): New function.
          (gcore_copy_callback): Check section_userdata_is_contents.

gdb/ChangeLog:
2022-10-21  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* gdbarch-components.py (gdbarch_core_load_hook): New function
	  that can be optionally provided by a gdbarch.
	* gdbarch-gen.h: Regenerated.
	* gdbarch.c: Regenerated.
	* corelow.c (core_target_open): Call gdbarch_core_load_hook if
	  provided.

gdb/ChangeLog:
2020-12-01  Mihails Strasuns  <mihails.strasuns@intel.com>

	* intelgt-tdep.c (intelgt_make_corefile_notes): Enhance to
	  generate NT_FILE notes too.

bfd/ChangeLog:
2020-12-01  Mihails Strasuns  <mihail.strasuns@intel.com>

	* elf64-intelgt.c (intelgt_elf_write_core_note,
	  intelgt_elf_grok_prstatus, intelgt_elf_grok_psinfo): New functions.

gdb/ChangeLog:
2020-12-01  Mihails Strasuns  <mihail.strasuns@intel.com>

	* intelgt-tdep.c (intelgt_iterate_over_regset_sections,
	  intelgt_collect_regset_section_cb,
	  intelgt_collect_thread_registers, intelgt_corefile_thread,
	  intelgt_make_corefile_notes, intelgt_core_pid_to_str,
	  intelgt_find_memory_region): New functions.

gdb/ChangeLog:
2021-01-02  Mihails Strasuns  <mihails.strasuns@intel.com>

	* unittests/elfnote-file.c: New file.
	* Makefile.in: Add elfnote-file.c.

gdb/ChangeLog:
2020-12-28  Mihails Strasuns  <mihails.strasuns@intel.com>

	* elfnote-file.h, elfnote-file.c (iterate_file_mappings): New function.
	* linux-tdep.c (linux_read_core_file_mappings): Start using
	  elfnote-file.

gdb/ChangeLog:
2020-12-17  Mihails Strasuns  <mihails.strasuns@intel.com>

	* elfnote-file.h, elfnote-file.c (file_mappings_builder): Switch to
	  byte vector.
	* linux-tdep.c (linux_make_mappings_corefile_notes): Adapt to
	  file_mappings_builder API changes.

gdb/ChangeLog:
2020-12-17  Mihails Strasuns  <mihails.strasuns@intel.com>

	* elfnote-file.h: New file.
	* elfnote-file.c: New file.
	* linux-tdep.c (linux_make_mappings_corefile_notes): Start using
	  elfnote-file.

gdb/ChangeLog:
2021-08-02  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* gdbtypes.c (resolve_dynamic_array_or_string): Improve handling
	of TYPE_CODE_STRING code to use return value of create_string_type
	outcome for this case.
	* c-valprint.c (c_value_print_inner): Handle String type code
	in the same way as the Array type code.

gdb/testsuite/ChangeLog:
2021-08-02  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* gdb.fortran/vla-array.f90: New fie.
	* gdb.fortran/vla-array.exp: New fie.

gdb/ChangeLog:
2022-06-03  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* f-exp.y (parse_number):
	Replace contents of parse_number fortran parser function types and
	value handling with the c parser function.

gdb/testsuite/ChangeLog:
2022-06-03  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* gdb.fortran/types.exp: Update test for long long and long types.

gdb/ChangeLog:
2022-09-07  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py: Add
	new function setup_hook_bp.  Modify handle_error and
	init_gt_inferiors functions.

gdb/testsuite/ChangeLog:
2022-11-28  Matti Puputti  <matti.puputti@intel.com>

	* gdb.numba/dppy-basic.exp: file renamed as
	gdb.numba/dpex-basic.exp.
	* gdb.numba/dppy-call-stack.exp: file renamed as
	gdb.numba/dppy-call-stack.exp.
	* gdb.numba/dppy-cond-bp.exp: file renamed as
	gdb.numba/dpex-cond-bp.exp.
	* gdb.numba/dppy-cond-bp.py: file renamed as
	gdb.numba/dpex-cond-bp.py.
	* gdb.numba/dppy-func.py: file renamed as gdb.numba/dpex-func.py.
	* gdb.numba/dppy-info-args.exp: file renamed as
	gdb.numba/dpex-info-args.exp.
	* gdb.numba/dppy-ptype.exp: file renamed as
	gdb.numba/dpex-ptype.exp.
	* gdb.numba/dppy-variable-lifetime.exp: file renamed as
	gdb.numba/dpex-variable-lifetime.exp.
	* lib/numba-dppy-devices.py: file renamed as
	lib/numba-dpex-devices.py.
	* lib/numba-dppy-hello.py: file renamed as lib/numba-dpex-hello.py.
	* lib/numba.exp: dppy renamed as dpex.
	* lib/numba_util.py: dppy renamed as dpex.

gdb/testsuite/ChangeLog:
2022-11-28  Matti Puputti  <matti.puputti@intel.com>

	* gdb.numba/njit-basic.exp: 'backtrace' test moved to
	njit-call-stack.exp. 'jump' test slightly modified, to avoid the
	issue SAT-5146, which is better covered in njit-cond-bp.exp.
	Function arguments removed from the expected outputs of 'info
	locals'. Kfails moved to a separate commit.
	* gdb.numba/dppy-basic.exp: Sames as njit-basic.exp. New test for
	running to termination.
	* gdb.numba/dppy-call-stack.exp: Expected output of 'backtrace'
	updated, as with the new Numba compiler it now shows function
	arguments.
	* gdb.numba/njit-info-args.exp: Simplified the test 'continue', to
	avoid the issue SAT-5146, which is better covered in
	dppy-cond-bp.exp. Kfails removed.
	* gdb.numba/dppy-info-args.exp: Same as njit-info-args.exp.
	* gdb.numba/njit-cond-bp.exp: Test updated to enable it run through
	when JIRA SAT/5146 occurs. Kfail added in separate commit.
	* gdb.numba/dppy-cond-bp.exp: Same as njit-cond-bp.exp.
	* gdb.numba/dppy-func.py: Tag added at function definition line.
	* gdb.numba/njit-ptype.exp: Update the expected output of 'ptype',
	as the new Numba compiler has changed integer from 'i64' to 'int64'
	and numpy array now shows also the members of the array object.
	Kfails removed.
	* gdb.numba/dppy-ptype.exp: Same as njit-ptype.exp.
	* gdb.numba/njit-variable-lifetime.exp: Kfails moved to separate
	commit.
	* gdb.numba/dppy-variable-lifetime.exp: Same as
	njit-variable-lifetime.exp.

gdb/testsuite/ChangeLog:
2022-11-28  Matti Puputti  <matti.puputti@intel.com>

	* gdb.numba/dppy-basic.exp: Get the available devices and iterate
	over them to run same test on all applicable devices.
	* gdb.numba/dppy-call-stack.exp: Ditto.
	* gdb.numba/dppy-cond-bp.exp: Ditto.
	* gdb.numba/dppy-info-args.exp: Ditto.
	* gdb.numba/dppy-ptype.exp: Ditto.
	* gdb.numba/dppy-variable-lifetime.exp: Ditto.
	* gdb.numba/njit-basic.exp: Ditto.
	* gdb.numba/njit-call-stack.exp: Ditto.
	* gdb.numba/njit-cond-bp.exp: Ditto.
	* gdb.numba/njit-info-args.exp: Ditto.
	* gdb.numba/njit-ptype.exp: Ditto.
	* gdb.numba/njit-variable-lifetime.exp: Ditto.
	* lib/numba-dppy-devices.py: Print the available devices for
	offload.
	* lib/numba.exp: (skip_numba_test): Deleted.
	(skip_numba_njit_test): Deleted.
	(skip_numba_dppy_test): Deleted.
	(start_numba_script): Deleted.
	(dppy_device): Deleted.
	(init_numba_njit_devices_list): New function to get list of devices
	supporting Vanilla NUMBA.
	(init_numba_dppy_devices_list): New function to get list of devices
	supporting NUMBA-DPPy.
	(numba_init_device): New function to run the NUMBA script to
	uniform marker.
	(numba_device_filter): New function to get current device filter.
	(numba_device_name): New function to get current device name.
	* lib/numba_util.py: Script argument changed to filter_string.
	* boards/numba-cpu.exp: Removed.
	* boards/numba-fpga.exp: Removed.
	* boards/numba-gpu.exp: Removed.

gdb/ChangeLog:
2022-09-14  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py
	(handle_exited_event): Remove non-stop mode check.

gdb/testsuite/ChangeLog:
2022-08-26  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* gdb.sycl/intelgt-live-attach.exp: New file.
	* gdb.sycl/spinning-kernel.cpp: New file.

gdb/ChangeLog:
2022-09-15  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py: add new class
	with static methods ‘log_call’ and ‘log’ as well as
	‘debug_log_is_enabled’ to check environment variable
	‘INTELGT_AUTO_ATTACH_VERBOSE_LOG’

gdb/testsuite/ChangeLog:
2022-09-29  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* gdb.openmp/break_aot.exp: New file.

gdb/testsuite/ChangeLog:
2022-02-01  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* lib/openmp.exp (omp_is_level_zero_debug_api): New proc.

gdb/ChangeLog:
2022-09-19  Ari Hannula  <ari.hannula@intel.com>

	* thread.c (print_thread_row): Add qualified-id field.
	* gdbthread.h: Move info_threads_opts struct.
	* mi/mi-main.c (mi_cmd_thread_info): Handle --qid argument.

gdb/testsuite/ChangeLog:
2022-09-19  Ari Hannula  <ari.hannula@intel.com>

	* gdb.threads/simd-mi-thread-info.exp: New test cases for the new
	argument.

gdb/ChangeLog:
2022-09-12  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb/infrun.c (handle_inferior_event): Do not create a new
	thread for process events.

gdb/ChangeLog:
2022-09-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::start_remote): Set the remote's general
	thread before finishing startup.

gdbserver/ChangeLog:
2022-09-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* server.cc (attach_inferior): Adjust pid after the target
	attaches.

gdb/ChangeLog:
2022-09-19  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::remote_notice_new_inferior): Fetch
	target description if a new inferior is detected.

gdb/ChangeLog:
2022-09-15  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::remote_notice_new_inferior): Setup
	a brand new inferior even when the remote target is starting up.

gdbserver/ChangeLog:
2022-02-03  Abdul Basit Ijaz  <abdul.basitijaz@intel.com>

	* intelgt-low.cc (create_target_description): Update Accumulator
	registers handling for GEN12p71 intelgt targets.

gdb/testsuite/ChangeLog:
2022-02-03  Abdul Basit Ijaz  <abdul.basitijaz@intel.com>

	* lib/sycl.exp (is_gdb12p71): Check if GEN12p71 intelgt target.
	* gdb.arch/intelgt-info-reg.exp: Check mme and acc registers,
	depending on the intelgt targets.

gdb/ChangeLog:
2022-09-13  Ari Hannula  <ari.hannula@intel.com>

	* thread.c (print_thread_row): Add thread-group field.

gdb/testsuite/ChangeLog:
2022-09-13  Ari Hannula  <ari.hannula@intel.com>

	* gdb.threads/simd-mi-thread-info.exp: Include new field in
	relevant test cases.

gdb/ChangeLog:
2022-09-12  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb/dwarf2/loc.c (dwarf2_get_symbol_read_needs): Add cases for
	Intel specific DWARF ops.

gdb/ChangeLog:
2022-09-05  Felix Willgerodt  <felix.willgerodt@intel.com>

	* symtab.c (completion_list_add_fields): Also look at members of
	symols of class LOC_COMPUTED and of pointer type.

gdb/testsuite/ChangeLog:
2020-09-05  Felix Willgerodt  <felix.willgerodt@intel.com>

	* gdb.cp/cpcompletion.exp: Add new tests for complete in member
	functions of anonymous structs.
	* testsuite/gdb.cp/pr9594.cc (a): New member unique_name_foo.

gdb/testsuite/ChangeLog:
2022-08-22  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* gdb.sycl/break_aot.exp: New file.

gdb/ChangeLog:
2022-06-23  Natalia Saiapova  <natalia.saiapova@intel.com>

	* intelgt-tdep.c (intelgt_gdbarch_data::framedesc_base_regnum):
	New function.  Returns the number of GRF register where frame
	descriptors are stored.
	(intelgt_frame_prev_register): Use new function.
	(intelgt_pseudo_register_read_value): Likewise.
	(intelgt_pseudo_register_write): Likewise.
	(intelgt_dwarf2_prev_framedesc): Likewise.

gdb/ChangeLog:
2022-06-23  Natalia Saiapova  <natalia.saiapova@intel.com>

	* symfile.c (symfile_map_offsets_to_segments): Set section
	offsets to 0x0 for EM_INTELGT.

gdb/testsuite/ChangeLog:
2022-08-01  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb/testsuite/gdb.arch/intelgt-stop-inactive.exp: New file.

gdb/testsuite/ChangeLog:
2022-08-03  Stephan Rohr  <stephan.rohr@intel.com>

	* gdb.sycl/intelgt-stop-on-solib-event.exp: New file.

gdb/testsuite/ChangeLog:
2022-07-21  Stephan Rohr  <stephan.rohr@intel.com>

	* gdb.sycl/intelgt-simd-lane-mask.exp: New file.
	* gdb.sycl/intelgt-simd-lane-mask.cpp: New file.

gdb/ChangeLog:
2022-07-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* thread.c (should_print_thread): Take thread unavailability
	into account.

gdb/testsuite/ChangeLog:
2022-07-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.threads/simd-info-threads-inactive.exp: New file.

gdb/ChangeLog:
2022-07-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* thread.c (struct info_threads_opts) <show_stopped_threads>:
	New field.
	(should_print_thread): Check the '-stopped' (show_stopped_threads)
	option.
	(print_thread_info_1): Use the command options in an output message.
	(print_thread_info): Update the option values.
	* NEWS: Document the '-stopped' flag.

gdb/doc/ChangeLog:
2022-07-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.texinfo (Threads): Document the '-stopped' flag for the
	"info threads" command.

gdb/testsuite/ChangeLog:
2022-07-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.base/options.exp: Update the test to include "-stopped"
	for the "info threads" command.
	* gdb.threads/info-threads-stopped.c: New file.
	* gdb.threads/info-threads-stopped.exp: New file.

gdb/ChangeLog:
2022-07-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* thread.c (struct info_threads_opts): Move upwards in the file.
	(should_print_thread): Add a new info_threads_opts parameter.
	(print_thread_row): Replace the "int show_global_ids" parameter
	with an info_threads_opts object.
	(print_thread_info_1): Ditto.
	(print_thread_info): Update the call to print_thread_info_1.
	(info_threads_command): Update the call to print_thread_info_1.

gdb/testsuite/ChangeLog:
2022-07-27  Mohamed Bouhaouel  <mohamed.bouhaouel@intel.com>

	* intelgt-auto-attach.exp: Handle multiple inferiors.

gdb/ChangeLog:
2022-07-20  Ari Hannula  <ari.hannula@intel.com>

	* mi/mi-cmds.c: Add new command.
	* mi/mi-cmds.h: Add declarations.
	* mi/mi-main.c: New command implementation.
	* NEWS: Document changes.

gdb/doc/ChangeLog:
2022-07-20  Ari Hannula  <ari.hannula@intel.com>

	* gdb.texinfo: Add documentation of the command.

gdb/testsuite/ChangeLog:
2022-07-20  Ari Hannula  <ari.hannula@intel.com>

	* gdb.threads/simd-mi-hit-lanes-mask.exp: New file.

gdb/ChangeLog:
2022-07-21  Ari Hannula  <ari.hannula@intel.com>

	* mi/mi-main.c (mi_cmd_list_features): add new feature.

gdb/testsuite/ChangeLog:
2022-07-21  Ari Hannula  <ari.hannula@intel.com>

	* gdb.threads/simd-mi-lane-option.exp: add test.

gdb/ChangeLog:
2022-07-25  Ari Hannula  <ari.hannula@intel.com>

	* thread.c (print_thread_row): Add field to the output.
	* NEWS: Mentioned changes.

gdb/doc/ChangeLog:
2022-07-25  Ari Hannula  <ari.hannula@intel.com>

	* gdb.texinfo: Documented -thread-info output changes.

gdb/testsuite/ChangeLog:
2022-07-25  Ari Hannula  <ari.hannula@intel.com>

	* gdb.threads/simd-mi-thread-info.exp: Added a test case.

gdb/ChangeLog:
2022-07-11  Ari Hannula  <ari.hannula@intel.com>

	* mi/mi-cmds.c: Add new command.
	* mi/mi-cmds.h: Add declarations.
	* mi/mi-main.c: New command implementation.
	* NEWS: Document changes.

gdb/doc/ChangeLog:
2022-07-11  Ari Hannula  <ari.hannula@intel.com>

	* gdb.texinfo: Add documentation of the command.

gdb/testsuite/ChangeLog:
2022-07-11  Ari Hannula  <ari.hannula@intel.com>

	* gdb.threads/simd-mi-thread-emask.exp: New file.

gdb/ChangeLog:
2022-07-14  Ari Hannula  <ari.hannula@intel.com>

	* mi/mi-cmds.c: Add new command.
	* mi/mi-cmds.h: Add declarations.
	* mi/mi-main.c: New command implementation.
	* NEWS: Document changes.

gdb/doc/ChangeLog:
2022-07-14  Ari Hannula  <ari.hannula@intel.com>

	* gdb.texinfo: Add documentation of the command.

gdb/testsuite/ChangeLog:
2022-07-14  Ari Hannula  <ari.hannula@intel.com>

	* gdb.threads/simd-mi-thread-simd-width.exp: New file.

gdbserver/ChangeLog:
2022-07-12  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* ze-low.h (class ze_target): Override 'has_fixed_thread_list'.

gdb/ChangeLog:
2022-07-12  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::remote_query_fixed_thread_list): New
	method.
	(remote_target::update_thread_list): Skip the update if the target
	has a fixed list of threads.
	(remote_target::start_remote): Call 'remote_query_fixed_thread_list'.
	(_initialize_remote): Add packet config for 'qFixedThreadList'.
        * NEWS: Announce 'qFixedThreadList'.

gdb/doc/ChangeLog:
2022-07-12  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.texinfo: Document 'qFixedThreadList'.

gdbserver/ChangeLog:
2022-07-12  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* server.cc (handle_query): Handle 'qFixedThreadList'.
	* target.h (class process_stratum_target) <has_fixed_thread_list>:
	New method declaration.
	* target.cc (process_stratum_target::has_fixed_thread_list):
	New method implementation.

gdb/testsuite/ChangeLog:
2022-04-19  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* lib/gdb.exp (gdb_compile_sycl): New function to support compilation
	of SYCL programs for icpx compiler.
	(gdb_compile_openmp): Function is updated to support offload options
	for openmp programs for icpx and ifx compilers.
	* README: Add 'sycl' flag usage descriptions and update it for
	'openmp'.

gdb/testsuite/ChangeLog:
2022-06-10  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* lib/gdb.exp (gdb_compile_openmp): Add compile option qopenmp
	in OpenMP compilation function for Intel next gen compilers.
	* README: Add missing description for 'openmp' compile option.

gdb/ChangeLog:
2022-07-01  Ari Hannula  <ari.hannula@intel.com>

	* breakpoint.c (bkpt_print_it): Add new fields to the output.
	* mi/mi-interp.c (mi_on_normal_stop_1): Add new fields to output.
	* NEWS: Document changes.

gdb/doc/ChangeLog:
2022-07-01  Ari Hannula  <ari.hannula@intel.com>

	* gdb.texinfo: Add documentation of the new fields.

gdb/testsuite/ChangeLog:
2022-07-01  Ari Hannula  <ari.hannula@intel.com>

	* gdb.threads/simd-mi-bp.exp: Add support for new fields.
	* gdb.threads/simd-mi-next.exp: New file.
	* gdb.sycl/mi-async-bp.exp: Fixed.
	* lib/mi-support.exp: Add new function mi_next_extra.

gdb/ChangeLog:
2022-07-01  Ari Hannula  <ari.hannula@intel.com>

	* inferior.c (print_devices): Add MI output.
	* mi/mi-cmds.h: Declare new function for the command.
	* mi/mi-cmds.c: Define new command.
	* NEWS: Described the changes.

gdb/testsuite/ChangeLog:
2022-06-09  Ari Hannula  <ari.hannula@intel.com>

	* gdb.sycl/intelgt-mi-device-info.exp: Add tests.

gdb/doc/ChangeLog:
2022-06-13  Ari Hannula  <ari.hannula@intel.com>

	* gdb.texinfo: Add documentation of the -device-info command.

gdb/ChangeLog:
2022-06-08  Mohamed Bouhaouel  <mohamed.bouhaouel@intel.com>

	* intelgt-tdep.c (intelgt_dwarf2_prev_framedesc): New function.
	(intelgt_init_reg): Updated to handle $framedesc unwinding.

gdb/testsuite/ChangeLog:
2022-06-08  Mohamed Bouhaouel  <mohamed.bouhaouel@intel.com>

	* gdb.arch/intelgt-framedesc.exp: New file.
	* gdb.arch/intelgt-framedesc.cpp: New file.

gdb/ChangeLog:
2021-11-04  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* infrun.c (stop_all_threads): Consider TARGET_WAITKIND_UNAVAILABLE
	as a stop request result.

gdb/testsuite/ChangeLog:
2022-06-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* lib/mi-support.exp (mi_send_resuming_command_raw): Refactor
	the regexps to allow matching long output.

gdbserver/ChangeLog:
2021-11-03  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* intelgt-ze-low.cc (intelgt_ze_target::is_at_breakpoint):
	Extract out from...
	(intelgt_ze_target::prepare_thread_resume): ...here.

gdb/ChangeLog:
2021-11-15  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py: Adapt to
	auto attach a running process.

gdb/ChangeLog:
2021-10-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py: Adapt to use
	gdbserver-ze.

gdbserver/ChangeLog:
2022-06-23  Stephan Rohr  <stephan.rohr@intel.com>

	* ze-low.cc (ze_target::fetch_events): Ignore 'empty' module load
	and unload events.

gdbserver/ChangeLog:
2022-06-13  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* intelgt-ze-low.cc: Add device attributes to tdesc.

gdb/ChangeLog:
2022-04-20  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-tdep.c (intelgt_dwarf_reg_to_regnum): add scrbase2, remove
	isabase, iobase, and dynbase; they do not have DWARF numbers.

gdbserver/ChangeLog:
2022-04-20  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-ze-low.cc (intelgt_ze_target::add_regset): add scrbase2.

gdbserver/ChangeLog:
2020-11-26  Markus Metzger  <markus.t.metzger@intel.com>
	* ze-low.cc (ze_target::fetch_events): Handle
	ZET_DEBUG_EVENT_TYPE_MODULE_LOAD and
	ZET_DEBUG_EVENT_TYPE_MODULE_UNLOAD.
	(ze_target::ack_library): New.
	(ze_target::ack_in_memory_library): New.
	* ze-low.h (events_t): New typedef.
	(struct ze_device_info) <ack_pending>: New.
	(class ze_target)<ack_library, ack_in_memory_library>: New.

gdb/ChangeLog:
2021-07-23  Markus Metzger  <markus.t.metzger@intel.com>

	* solib-target.c (_initialize_solib_target): Replace
	gdb_bfd_open_from_target_memory with
	solib_bfd_open_from_target_memory.
	* solib.c (solib_bfd_open): Split into this and ...
	(solib_bfd_init): ... this.
	(solib_bfd_open_from_target_memory): New.
	* solist.h (solib_bfd_open_from_target_memory): New.

gdbserver/ChangeLog:
2022-01-25  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* ze-low.h (class ze_target) <supports_pid_to_exec_file,
	pid_to_exec_file>: New.

gdbserver/ChangeLog:
2021-07-21  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-ze-low.cc (intelgt_ze_target::set_thread_stepping): New.
	(intelgt_ze_target::clear_thread_stepping): New.
	* ze-low.cc (ze_exec_state): New.
	(ze_clear_resume_state): New.
	(ze_set_resume_state): New.
	(ze_resume_state): New.
	(ze_resume): New.
	(ze_interrupt): New.
	(ze_target::attach): Interrupt in all-stop mode.
	(ze_target::resume): New.
	(ze_target::resume): Implement.
	(ze_target::wait): Implement.
	(ze_target::request_interrupt): Implement.
	(ze_target::pause_all): Implement.
	(ze_target::unpause_all): Implement.
	* ze-low.h (class ze_target)<resume>: New.
	(enum ze_thread_resume_state_t): New.
	(struct ze_thread_info)<resume_state>: New.

gdbserver/ChangeLog:
2021-07-07  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.cc (ze_target::fetch_events): Implement
	ZET_DEBUG_EVENT_TYPE_THREAD_UNAVAILABLE event.

gdbserver/ChangeLog:
2021-05-04  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-ze-low.cc
	(intelgt_ze_target::stopped_by_sw_breakpoint): Implement.

gdbserver/ChangeLog:
2021-05-05  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-ze-low.cc (intelgt_ze_target::read_pc): Implement.
	(intelgt_ze_target::write_pc): Implement.

gdbserver/ChangeLog:
2021-05-12  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-ze-low.cc (intelgt_read_cr0): New.
	(intelgt_write_cr0): New.
	(intelgt_ze_target::get_stop_reason): New.
	* ze-low.cc (ze_thread_in): New.
	(for_each_thread): New.
	(ze_discard_regcache): New.
	(ze_target::fetch_events): Implement thread stopped case.
	* ze-low.h (struct ze_thread_info)<stop_reason>: New.
	(class ze_target)<get_stop_reason>: New.

gdbserver/ChangeLog:
2021-05-06  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.cc (ze_find_regset): New.
	(ze_fetch_all_registers): New.
	(ze_fetch_register): New.
	(ze_store_all_registers): New.
	(ze_store_register): New.
	(ze_target::fetch_registers): Implement.
	(ze_target::store_registers): Implement.

gdbserver/ChangeLog:
2020-11-24  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.cc (ze_exec_state): New.
	(ze_thread_device): New.
	(ze_target::read_memory): Implement.
	(ze_target::write_memory): Implement.

gdbserver/ChangeLog:
2021-05-19  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.cc (ze_show_process): New.
	(ze_hide_process): New.
	(ze_target::fetch_events): Implement process entry/exit events.

gdbserver/ChangeLog:
2020-11-24  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.cc (ze_device_detached): New.
	(ze_target::fetch_events): Support ZET_DEBUG_EVENT_TYPE_DETACHED.
	(ze_target::wait): Support TARGET_WAITKIND_EXITED.

gdbserver/ChangeLog:
2020-11-18  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.h (struct ze_thread_info)<waitstatus>: New.
	* ze-low.cc (ze_device_ptid): New.
	(ze_detach_reason_str): New.
	(ze_debug_info_format_str): New.
	(ze_event_str): New.
	(ze_ack_event): New.
	(ze_process_event): New.
	(ze_fetch_events): New.
	(ze_has_waitstatus): New
	(ze_move_waitstatus): New
	(ze_target::wait): Implement.

gdbserver/ChangeLog:
2020-11-11  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.cc (level_zero_target::attach_to_device): Control attach
	behaviour via environment variables.

gdbserver/ChangeLog:
2021-04-15  Markus Metzger  <markus.t.metzger@intel.com>

	* arch/intelgt.h (feature_emask, feature_sr, feature_cr)
	(feature_ntf, feature_tdr, feature_ce, feature_sp, feature_tm)
	(feature_fc, feature_dbg, feature_sba): New.
	* intelgt-ze-low.cc: Include arch/intelgt.h.
	Include zet_intel_gpu_debug.h.
	(dprintf): New.
	(intelgt_uint_reg_type): New.
	(intelgt_add_regset): New.
	(intelgt_ze_target::is_device_supported): New.
	(intelgt_ze_target::create_tdesc): New.
	(intelgt_ze_target::add_regset): New.
	* ze-low.cc (dprintf): New.
	(uuid_str): New.
	(driver_uuid_str): New.
	(ze_target::attach_to_devices): New.
	(ze_target::attach_to_device): New.
	(ze_process_state_str): New.
	(ze_add_process): New.
	(ze_attach): New.
	(ze_target::attach): Implement.
	(ze_target::find_device): New.
	* ze-low.h (struct ze_device_info)<process>: New.
	(enum ze_process_state): New.
	(struct process_info_private): New.
	(struct ze_regset_info):
	(struct ze_device_info): New.
	(class ze_target)<is_device_supported>: New.
	(class ze_target)<create_tdesc>: New.
	(class ze_target)<find_device>: New.

gdbserver/ChangeLog:
2021-04-20  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.cc (ze_target::thread_stopped): Implement.
	(ze_thread_id_component_str): New.
	(ze_thread_id_str): New.
	* ze-low.h (enum ze_thread_exec_state_t): New.
	(struct ze_thread_info)<exec_state>: New.
	(ze_thread): New.
	(ze_thread_id_all): New.
	(ze_thread_id): New.
	(ze_thread_id_str): New.
	(class ze_target):<supports_thread_stopped>: New.
	(class ze_target):<thread_stopped>: New.

gdbserver/ChangeLog:
2021-07-21  Markus Metzger  <markus.t.metzger@intel.com>

	* ze-low.cc (ze_is_async): New.
	(ze_async_flush): New.
	(ze_async_mark): New.
	(ze_target::async): New.
	* ze-low.h (class ze_target)<async>: New.

ChangeLog:
2020-10-14  Markus Metzger  <markus.t.metzger@intel.com>

	* config.sub: Add zebin as os type.

gdbserver/ChangeLog:
2020-10-14  Markus Metzger  <markus.t.metzger@intel.com>

	* configure.ac: Check for libze_loader.
	Restrict libigfxdbg requirement to intelgt-*-elf targets.
	* configure.srv: Add intelgt-*-zebin target.
	* configure: Regenerated.
	* config.in: Regenerated.
	* intelgt-ze-low.cc: New file.
	* ze-low.cc: New file.
	* ze-low.h: New file.

gdb/ChangeLog:
2021-07-13  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-tdep.c (intelgt_active_lanes_mask): Call
	regcache_cooked_read_unsigned.

gdb/ChangeLog:
2022-01-25  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::process_stop_reply): Handle a generic
	process PID.

gdb/ChangeLog:
2022-04-28  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::remote_notice_new_inferior): Return
	if 'currthread' is a pid.

gdb/ChangeLog:
2022-04-28  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::remote_notice_new_inferior): Do
	'remote_add_inferior' earlier.

gdb/ChangeLog:
2021-08-02  Markus Metzger  <markus.t.metzger@intel.com>

	* remote.c: Handle U;library.

gdb/doc/ChangeLog:
2021-08-02  Markus Metzger  <markus.t.metzger@intel.com>

	* gdb.texinfo: Document U;library.

gdbserver/ChangeLog:
2021-08-02  Markus Metzger  <markus.t.metzger@intel.com>

	* remote-utils.cc (prepare_resume_reply): Provide U;library.

gdb/ChangeLog:
2021-07-07  Markus Metzger  <markus.t.metzger@intel.com>

	* remote.c (remote_target::remote_query_supported): Support U stop
	reply.
	(remote_target::wait_as): Likewise.
	* NEWS: Announce U stop reply.

gdb/doc/ChangeLog:
2021-07-07  Markus Metzger  <markus.t.metzger@intel.com>

	* gdb.texinfo: Document U stop reply.

gdbserver/ChangeLog:
2021-07-07  Markus Metzger  <markus.t.metzger@intel.com>

	* remote-utils.cc (prepare_resume_reply): Support U stop reply.
	* server.cc (handle_query): Likewise.
	(resume): Likewise.
	(handle_target_event): Likewise.

gdb/ChangeLog:
2021-07-20  Markus Metzger  <markus.t.metzger@intel.com>

	* infrun.c (resume_1): Call regcache_read_pc_protected if !step.

gdb/testsuite/ChangeLog:
2022-02-03  Markus Metzger  <markus.t.metzger@intel.com>

	* gdb.threads/killed-outside.exp: Add expected output case.

gdb/ChangeLog:
2021-08-02  Markus Metzger  <markus.t.metzger@intel.com>

	* infrun.c (handle_one): Call regcache_read_pc_protected.

gdb/ChangeLog:
2021-08-06  Markus Metzger  <markus.t.metzger@intel.com>

	* inferior.h (struct inferior_control_state)<waitstatus>
	<waitstatus_pending_p>: New.
	* infrun.c (resume_1): Check inferior's pending waitstatus.
	(do_target_wait_1): Likewise.
	(stop_all_threads): Store inferior's pending waitstatus.

gdb/ChangeLog:
2021-07-13  Markus Metzger  <markus.t.metzger@intel.com>

	* remote.c (struct threads_listing_context): Call set_continue_thread
	with any_thread_ptid.

gdb/ChangeLog:
2020-12-03  Markus Metzger  <markus.t.metzger@intel.com>

	* features/library-list.dtd: Add ack attribute to library and
	in-memory-library.
	* remote.c (class remote_target) <ack_library>: New.
	(class remote_target) <ack_in_memory_library>: New.
	(PACKET_vAck_library): New.
	(PACKET_vAck_in_memory_library): New.
	(remote_protocol_features): Add vAck:library and
	vAck:in-memory-library.
	(remote_target::remote_query_supported): Handle vAck:library and
	vAck:in-memory-library.
	(remote_target::ack_library): New.
	(remote_target::ack_in_memory_library): New.
	(_initialize_remote): Initialize vAck:library and
	vAck:in-memory-library.
	* solib-target.c (struct lm_info_target) <need_ack>: New.
	(library_ack): New.
	(library_list_start_library): Call library_ack.
	(in_memory_library_list_start_library): Likewise.
	(library_list_start_list): Handle version 1.2.
	(library_attributes): Add ack.
	(in_memory_library_attributes): Add ack.
	(solib_target_ack_library): New.
	(_initialize_solib_target): Initialize ack_library.
	* solib.c (solib_add): Call solib_ack_library.
	(solib_ack_library): New.
	* solist.h (struct target_so_ops) <ack_library>: New.
	(solib_ack_library): New.
	* target-delegates.c: Regenerated.
	* target.c (target_ack_library): New.
	(target_ack_in_memory_library): New.
	* target.h (struct target_ops) <ack_library>: New.
	(struct target_ops) <ack_in_memory_library>: New.
	(target_ack_library): New.
	(target_ack_in_memory_library): New.
	* NEWS: Announce it.

gdb/doc/ChangeLog:
2020-12-03  Markus Metzger  <markus.t.metzger@intel.com>

	* gdb.texinfo (Remote Serial Protocol): Document the vAck packet and
	the ack attribute of qXfer:libraries:read responses.

gdbserver/ChangeLog:
2020-12-03  Markus Metzger  <markus.t.metzger@intel.com>

	* dll.cc (loaded_dll): Add need_ack parameter.
	(ack_dll): New.
	* dll.h (struct dll_info) <need_ack>: New.
	(loaded_dll): Add need_ack_parameter.
	(ack_dll): New.
	* server.cc (print_qxfer_libraries_entry): Add ack attribute.
	(library_list_version_needed): Handle version 1.2.
	(handle_qxfer_libraries): Set need_ack.
	(handle_query): Handle vAck:library and vAck:in-memory-library.
	(handle_v_ack): New.
	(handle_v_requests): Call handle_v_ack.
	* server.h (struct client_state) <vack_library_supported>: New.
	(struct client_state) <vack_in_memory_library_supported>: New.
	* target.h (class process_stratum_target) <ack_library>: New.

gdb/ChangeLog:
2020-11-25  Markus Metzger  <markus.t.metzger@intel.com>

	* features/library-list.dtd: Add in-memory-library.
	* remote.c (remote_target::remote_query_supported): Indicate support
	for qXfer:libraries:read:in-memory-library.
	* solib-target.c (enum lm_location_t): New.
	(struct lm_info_target) <location, begin, end>: New.
	(library_list_start_library): Supply location.
	(in_mem_library_list_start_library): New.
	(library_list_start_list): Update version check.
	(solib_target_current_sos): Support in-memory libraries.
	(_initialize_solib_target): Initialize
	target_so_ops.bfd_open_from_target_memory.
	* solib.c (solib_map_sections): Support in-memory libraries.
	* solist.h (struct so_list) <begin, end>: New.
	(struct target_so_ops) <bfd_open_from_target_memory>: New.
	* NEWS: Announce it.

gdbserver/ChangeLog:
2020-11-25  Markus Metzger  <markus.t.metzger@intel.com>

	* dll.cc (loaded_dll): New.
	(unloaded_dll): New.
	* dll.h (struct dll_info) <location>: New.
	(loaded_dll): New.
	(unloaded_dll): New.
	* server.cc (dll_to_tmpfile): New.
	(print_qxfer_libraries_entry): New.
	(library_list_version_needed): New.
	(handle_qxfer_libraries): Handle in-memory libraries.
	(handle_query): Handle qXfer:libraries:read:in-memory-library+.

gdb/doc/ChangeLog:
2020-11-25  Markus Metzger  <markus.t.metzger@intel.com>

	* gdb.texi: Document in-memory qxfer:libraries:read response.

gdbsupport/ChangeLog:
2020-11-25  Markus Metzger  <markus.t.metzger@intel.com>

	* filestuff.cc (struct tmpfilekeeper_s): New.
	(gdb_create_tmpfile): New.
	* filestuff.h (gdb_create_tmpfile): New.

gdb/ChangeLog:
2022-03-21  Natalia Saiapova  <natalia.saiapova@intel.com>

	* thread.c (simd_width_make_value): New convenience variable
	computation.
	(simd_width_funcs) Implementation of $_simd_width.
	(_initialize_thread): Define $_simd_width.

gdb/testsuite/ChangeLog:
2022-03-23  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb.base/default.exp: Test $_simd_width.
	* gdb.threads/simd-width.exp: New file.

gdb/ChangeLog:
2022-05-11  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* intelgt-tdep.c (intelgt_active_lanes_mask): Mask the return
	value with the simd width.

gdb/ChangeLog:
2022-04-29  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* intelgt-tdep.c (intelgt_active_lanes_mask): Mask the emask
	register value with the dispatch mask.

gdbserver/ChangeLog:
2022-05-04  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* intelgt-low.cc (add_new_gt_process): Add sr0 to the expedite
	registers.

gdb/testsuite/ChangeLog:
2022-06-02  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb.sycl/call-stack.cpp (second): Make the inner stack deeper
	and introduce `third` and `fourth` functions.
	* gdb.sycl/call-stack.exp: Extend tests to test a deeper call
	stack.  Add backtrace tests at every instruction of the
	innermost frame.
	* gdb.sycl/infcall.exp: Update test with new values.
	* gdb.sycl/info-locals-and-args.exp: Update test with new values.

gdb/ChangeLog:
2022-05-20  Christina Schimpe  <christina.schimpe@intel.com>

	* thread.c (thread_apply_all_command_1):
        Switch to thread if not already selected.

gdb/testsuite/ChangeLog
2022-06-01  Christina Schimpe  <christina.schimpe@intel.com>

	* gdb.threads/simd-thread-apply.exp: Add test.

gdb/testsuite/ChangeLog:
2022-05-16  Mohamed Bouhaouel  <mohamed.bouhaouel@intel.com>

	* gdb.sycl/call-operator.exp: New file.

gdb/testsuite/ChangeLog:
2021-11-11  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.sycl/intelgt-info-devices.exp: New test.
	* gdb.sycl/intelgt-info-devices-multi-device.exp: New test.
	* gdb.sycl/intelgt-info-inferiors.exp: New test.
	* gdb.sycl/intelgt-info-inferiors-multi-device.exp: New test.

gdb/ChangeLog:
2021-11-22  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* cli/cli-utils.c (number_is_in_list): Add extra error message
	case for index zero in list.

gdb/testsuite/ChangeLog:
2021-11-22  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.base/info-inferior.exp: New test.

gdb/ChangeLog:
2021-11-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* intel-tdep.c (intelgt_gdbarch_init): Mark intelgt inferiors as
	devices.

gdbserver/ChangeLog:
2021-11-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* intelgt-low.cc (convert_pci_slot_to_string): New method.
	(create_target_description): Extend target description for
	info devices command.

gdb/ChangeLog:
2021-11-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* inferior.c (inferior_pid_to_str): Adjust output for devices.
	(print_inferior): Increase size of 'description' column.

gdb/doc/ChangeLog:
2021-11-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.texinfo (Inferiors Connections and Programs): Document the
	changes to the info inferiors command for devices.

gdb/ChangeLog:
2021-11-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* inferior.h (process_target): New const getter method.

gdb/ChangeLog:
2021-11-08  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* features/gdb-target.dtd: Extend XML description for target
	description to include device_info and device_attr fields.
	* intelgt-tdep.c (intelgt_gdbarch_init): Use device_info to
	select IGA version.
	* target-descriptions.c (struct target_desc): Add device_info
	field.
	(tdesc_device_name): Deleted.
	(tdesc_device_info): New getter method.
	(tdesc_add_device_attribute): New setter method.
	(tdesc_find_device_info_attribute): New getter method.
	(set_tdesc_device): Deleted.
	(set_tdesc_device_info): New setter method.
	(print_c_tdesc::visit_pre): Add print for device_info.
	* target-descriptions.h (tdesc_find_device_info_attribute): New
	getter method.
	* xml-tdesc.c (tdesc_end_device): Deleted.
	(tdesc_start_device_attr): New function to parse <device_info> tag.
	(struct device_attr_attributes): New gdb_xml_attribute struct to
	describe XML device_attr field.
	(struct device_info_children): New gdb_xml_element struct to
	describe device_info children.
	(target_children): Add device_info tag, remove device tag.

gdbserver/ChangeLog:
2021-11-08  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* intelgt-low.cc (create_target_description): Set gen_major and
	gen_minor in target description, remove setting device.
	* tdesc.cc (tdesc_device_name): Deleted.
	(tdesc_device_info): New getter method.
	(set_tdesc_device): Deleted.
	(set_tdesc_device_info): New setter method.
	(tdesc_add_device_attribute): New setter method.
	* tdesc.h (struct target_desc): Add device_info field.

gdbsupport/ChangeLog:
2021-11-08  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* tdesc.cc (print_xml_feature::visit_pre): Print device_info into
	XML, remove device tag.
	* tdesc.h (typedef device_info): Add device_info type.
	(set_tdesc_device): Deleted.
	(set_tdesc_device_info): New setter.
	(tdesc_device_name): Deleted.
	(tdesc_device_info): New getter.
	(tdesc_add_device_attribute): New setter.

gdb/testsuite/ChangeLog:
2022-04-19  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* lib/mi-support.exp (mi_expect_stop): Account for long output
	by consuming lines in smaller batches.

gdb/testsuite/ChangeLog:
2022-03-21  Mohamed Bouhaouel  <mohamed.bouhaouel@intel.com>

	* gdb.sycl/bitfields-packed.cpp: New file.
	* gdb.sycl/bitfields-packed.exp: New file.

gdb/testsuite/ChangeLog:
2022-03-21  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* lib/sycl.exp: Add new function to determine the first stopped
	thread that is not filtered by given list of IDs to ignore
	* gdb.threads/simd-info-threads.exp: Use function provided
	in lib/sycl.exp to determine the second thread
	* gdb.threads/simd-bp-multi-lane.exp: Use function provided
        in lib/sycl.exp to determine the second thread
	* gdb.threads/simd-thread.exp: Use function provided
	in lib/sycl.exp to determine the second thread
	* gdb.threads/simd-bp.exp: Use function provided
        in lib/sycl.exp to determine the second and the third thread

gdb/testsuite/ChangeLog:
2022-03-14  Natalia Saiapova  <natalia.saiapova@intel.com>

	* lib/mi-support.expi (mi_expect_stop): Allow additional output
	between inferior normal exit event and MI prompt.

gdb/testsuite/ChangeLog:
2022-02-15  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb.sycl/mi-async-bp.exp: New file.

gdb/testsuite/ChangeLog:
2022-02-15  Natalia Saiapova  <natalia.saiapova@intel.com>

	* lib/mi-support.exp (mi_send_resuming_command_raw): Allow
	multiple entries of "running,thread-id=..." in regex after
	sending a resuming command.

gdb/ChangeLog:
2022-01-31  Nils-Christian Kempke  <nils-christain.kempke@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py
	(enable_schedule_multiple_at_gt_removal): New member for marking
	whether we have to re-enable the schedule-multiple feature.
	(remove_gt_inf_if_stored_for_removal): Re-enable
	schedule-multiple if it was disabled on host exit.
	(handle_exited_event): Disable schedule-multiple on host exit.

gdb/ChangeLog:
2022-01-05  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py:
	(remove_gt_inf_if_stored_for_removal): New function.
	(handle_before_prompt_event): Move deletion of gt inferiors
	for marked host inferiors to separate function and call it.
	(handle_exit_event): Call remove_gt_inf_if_stored_for_removal
	instead of handle_before_prompt_event.
	(init_gt_inferiors): Call remove_get_inf_if_stored_for_removal
	before trying to initialze new gt inferiors.

gdb/ChangeLog:
2021-03-18  Eduard Sargsyan  <eduard.sargsyan@intel.com>

	* regcache.c (regcache::raw_write): Add check for pointer validity.

gdb/testsuite/ChangeLog:
2022-03-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/work-item-index2.exp: New file.

gdb/ChangeLog:
2022-03-11 Ari Hannula <ari.hannula@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py: Do not send
	"continue" in Eclipse at the hook breakpoint hit.

gdb/ChangeLog:
2022-02-04  Stephan Rohr  <stephan.rohr@intel.com>

	* python/lib/gdb/function/intelgt_auto_attach.py: Catch and handle the
	'KeyboardInterrupt' exception.

gdb/testsuite/ChangeLog:
2022-02-12  Eduard Sargsyan  <eduard.sargsyan@intel.com>

	* gdb.sycl/multi-device-parallel-for-1D.cpp: New file.
	* gdb.sycl/multi-device-parallel-for-1D.exp: New file.
	* gdb.sycl/multi-device-parallel-for-1D-disable-bp.exp: New file.

gdb/ChangeLog:
2022-01-28  Eduard Sargsyan  <eduard.sargsyan@intel.com>

	* intelgt-tdep.c (intelgt_gdbarch_init): Set `can_leave_breakpoints` to
	true.

gdb/testsuite/ChangeLog:
2022-02-16  Eduard Sargsyan  <eduard.sargsyan@intel.com>

	* gdb.arch/intelgt-always-insert.cpp: New file.
	* gdb.arch/intelgt-always-insert.cxp: New file.

gdb/testsuite/ChangeLog:
2022-02-10  Matti Puputti  <matti.puputti@intel.com>

	* boards/numba-cpu.exp: New file.
	* boards/numba-fpga.exp: New file.
	* boards/numba-gpu.exp: New file.
	* gdb.numba/dppy-basic.exp: New file.
	* gdb.numba/dppy-call-stack.exp: New file.
	* gdb.numba/dppy-cond-bp.exp: New file.
	* gdb.numba/dppy-cond-bp.py: New file.
	* gdb.numba/dppy-func.py: New file.
	* gdb.numba/dppy-info-args.exp: New file.
	* gdb.numba/dppy-ptype.exp: New file.
	* gdb.numba/dppy-variable-lifetime.exp: New file.
	* gdb.numba/njit-basic.exp: New file.
	* gdb.numba/njit-call-stack.exp: New file.
	* gdb.numba/njit-cond-bp.exp: New file.
	* gdb.numba/njit-cond-bp.py: New file.
	* gdb.numba/njit-func.py: New file.
	* gdb.numba/njit-info-args.exp: New file.
	* gdb.numba/njit-ptype.exp: New file.
	* gdb.numba/njit-variable-lifetime.exp: New file.
	* lib/numba-dppy-hello.py: New file.
	* lib/numba-njit-hello.py: New file.
	* lib/numba.exp: New file.
	* lib/numba_util.py: New file.

gdb/testsuite/ChangeLog:
2022-02-02  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/optimized-kernel.exp: New file.

gdb/ChangeLog:
2021-11-5  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* intelgt-tdep.c (intelgt_gdbarch_init): Remove deprecated
	iga_gen_t for 12th Gen.  Introduce the new iga_gen_t for
	IGA_XE and IGA_XE_HP.

gdbserver/ChangeLog:
2021-11-5  Oguzhan Karakaya  <oguzhan.karakaya@intel.com>

	* intelgt-low.cc (create_target_description): Set target_desc
	.device as 'gen_major'.'gen_minor'.

gdb/testsuite/ChangeLog:
2022-03-22  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.openmp/intelgt-auto-attach.exp: New procedure for restart
	scenario, ran in all-stop and non-stop mode.
	* gdb.sycl/intelgt-auto-attach.exp: New procedure for restart
        scenario, ran in all-stop and non-stop mode.

gdb/testsuite/ChangeLog:
2022-01-31  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.sycl/intelgt-auto-attach: Add restart scenario and prefix
	both restart tests.
	* gdb.openmp/intelgt-auto-attach: Add restart scenario and
	prefix both restart tests.

gdb/testsuite/ChangeLog:
2022-02-14  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.sycl/intelgt-auto-attach: Add restart scenario.
	* gdb.openmp/intelgt-auto-attach: Add restart scenario.

gdbserver/ChangeLog:
2022-02-14  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* intelgt-low.cc (supports_run_command): New method.

gdbserver/ChangeLog:
2022-02-14  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* server.cc (handle_query): Return vRun and R not supported when
	not supported by target.
	(handle_v_requests): Only execute when supported by target.
	(process_serial_event): Only execute restart when supported by
	target.
	* target.cc (supports_run_command): New method, true by default.
	* target.h (supports_run_command): New method.

gdb/testsuite/ChangeLog:
2021-12-23  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.server/extended-remote-disable-run-command.exp: New file.

gdbserver/ChangeLog:
2021-12-23  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* server.cc (handle_query): Handle vRun and R queries.
	(handle_v_requests): Only execute vRun when not disabled.
	(process_serial_event): Only execute restart when not
	disabled.
	(captured_main): Add support for --disable-packet=vRun and
	--disable-packet=R.
	(gdbserver_show_disableable): Add R and vRun packet.
	* server.cc (gdbserver_usage): Add R and vRun packet.
	* server.h: Add disable_packet_R and disable_packet_vRun
	as new members to server.

gdb/ChangeLog:
2021-12-23  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* remote.c (can_create_inferior): Make dependent on the support
	status of PACKET_vRun and PACKET_R.
	(extended_remote_restart): Do not restart the extended remote
	when PACKET_R has been disabled.
	(remote_query_supported): Add vRun and R packet to the queried
	packets.
	(struct remote_protocol_features): Add vRun and R packet.
	(_initialize_remote): Add R packet to packets that can be
	modified by the user on host side.

gdb/ChangeLog:
2021-12-06  Cristian Sandu  <cristian.sandu@intel.com>

	* gdb/thread.c: Change width of thread id field according to
	number of active lanes.

gdb/ChangeLog:
2021-12-01  Natalia Saiapova  <natalia.saiapova@intel.com>

	* intelgt-tdep.c (intelgt_dwarf_reg_to_regnum): For SBA regset
	first find the corresponding name, and then find regnum using
	the name.

gdb/testsuite/ChangeLog:
2021-10-26  Sandu Cristian  <cristian.sandu@intel.com>

	* gdb.openmp/derived-type-striding.exp: New file.
	* gdb.openmp/derived-type-striding.f90: New file.

gdb/testsuite/ChangeLog:
2021-10-25  Sandu Cristian  <cristian.sandu@intel.com>

	* gdb.openmp/derived-type-function.exp: New file.
	* gdb.openmp/derived-type-function.f90: New file.

gdb/testsuite/ChangeLog:
2021-10-21  Sandu Cristian  <cristian.sandu@intel.com>

	* gdb.openmp/vla-array.exp: New file.
	* gdb.openmp/vla-array.f90: New file.

gdb/testsuite/ChangeLog:
2021-10-19  Sandu Cristian  <cristian.sandu@intel.com>

	* gdb.openmp/module.exp: New file.
	* gdb.openmp/module.f90: New file.

gdb/testsuite/ChangeLog:
2021-10-08  Sandu Cristian  <cristian.sandu@intel.com>

	* gdb.openmp/mixed-lang-stack.exp: New file.
	* gdb.openmp/mixed-lang-stack.f90: New file.
	* gdb.openmp/mixed-lang-stack.cpp: New file.

gdb/testsuite/ChangeLog:
2021-03-03  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/multi-device-single-task.cpp: New file.
	* gdb.sycl/multi-device-single-task.exp: New file.

gdb/ChangeLog:
2021-11-05  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* arch-utils.c (gdbarch_get_intelgt_lookup_initialized_tdesc): New.

gdb/testsuite/ChangeLog:
2021-10-18  Mohamed Bouhaouel  <mohamed.bouhaouel@intel.com>

	* gdb.sycl/kernel-jump.exp: New file.

gdb/ChangeLog:
2021-08-31  Natalia Saiapova  <natalia.saiapova@intel.com>

	* intelgt-tdep.c (defined): use device info to select IGA
	version.

gdbserver/ChangeLog:
2021-08-31  Natalia Saiapova  <natalia.saiapova@intel.com>

	* intelgt-low.cc (create_target_description): New argument
	GTDeviceInfo.

gdb/ChangeLog:
2021-08-31  Natalia Saiapova  <natalia.saiapova@intel.com>

	* target-descriptions.c (struct target_desc): New field device.
	(tdesc_device_name): New getter method.
	(set_tdesc_device): New setter method.
	* xml-tdesc.c (tdesc_end_device): New function to parse <device>
	tag.

gdbserver/ChangeLog:
2021-08-31  Natalia Saiapova  <natalia.saiapova@intel.com>

	(add_new_gt_process): Pass GTDeviceInnfo argument.
	* tdesc.cc (target_desc::~target_desc): Clean device.
	(tdesc_device_name): New getter.
	(set_tdesc_device): New setter.
	* tdesc.h (struct target_desc): New device field.

gdbsupport/ChangeLog:
2021-08-31  Natalia Saiapova  <natalia.saiapova@intel.com>

	* tdesc.cc (print_xml_feature::visit_pre): Print device into
	XML.
	* tdesc.h (set_tdesc_device): New setter.
	(tdesc_device_name): New getter.

gdb/ChangeLog:
2021-11-23  Cristian Sandu  <cristian.sandu@intel.com>

	* mi/mi-cmd-stack.c: Add shadowed variable attribute.
	* printcmd.c: Add shadowed variable print.

gdb/doc/ChangeLog:
2021-11-23  Cristian Sandu  <cristian.sandu@intel.com>

	* gdb.texinfo: Update with shadowed variable line info.

gdb/testsuite/ChangeLog:
2021-11-23  Cristian Sandu  <cristian.sandu@intel.com>

	* gdb.base/var-shadowing.c: Add new comments to
	refer lines.
	* gdb.base/var-shadowing.exp: Change test cases to
	support the shadowed variable print feature.
	* gdb.mi/mi-var-shadowing.c: Add new comments to
	refer lines.
	* gdb.mi/mi-var-shadowing.exp: Change test cases to
	support the shadowed variable print feature.
	* gdb.mi/mi2-amd64-entry-value.c: Add new comments to
	refer lines.
	* gdb.mi/mi2-amd64-entry-value.exp: Change test cases to
	support the shadowed variable print feature.
	* gdb.openmp/call-stack.cpp: Add new comments to
	refer lines.
	* gdb.opt/inline-locals.c: Add new comments to
	refer lines.
	* gdb.opt/inline-locals.exp: Change test cases to
	support the shadowed variable print feature.
	* gdb.trace/entry-values.exp: Change test cases to
	support the shadowed variable print feature.

gdb/ChangeLog:
2021-07-21  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* mi/mi-cmd-stack.c (list_arg_or_local): Print shadowed field
	with value true after the value of super-block variable in
	case of variable shadowing.
	(list_args_or_locals): Declare unordered_set type object and
	pass it to function 'list_arg_or_local'.

gdb/testsuite/ChangeLog:
2021-07-21  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* gdb.mi/mi2-amd64-entry-value.exp: Update regex expressions for
	testing '-stack-list-variables' mi command output to handle shadowed
	field.
	* gdb.trace/entry-values.exp: Ditto.
	* gdb.mi/mi-var-shadowing.c: New file.
	* gdb.mi/mi-var-shadowing.exp: New file.

gdb/ChangeLog:
2021-07-05  Mihails Strasuns  <mihails.strasuns@intel.com>

	* intelgt-tdep.c: Compute $ip and $pc if necessary.  Supply
	$pc via read_pc/write_pc gdbarch callbacks.

gdbserver/ChangeLog:
2021-07-05  Mihails Strasuns  <mihails.strasuns@intel.com>

	* intelgt-low.cc: Remove $ip from the target description.
	Compute $pc from CR0.2

gdb/ChangeLog:
2021-07-05  Mihails Strasuns  <mihails.strasuns@intel.com>

	* intelgt-tdep.c (intelgt_pseudo_register_name): New function.
	(intelgt_pseudo_register_type): New function.
	(intelgt_pseudo_register_read_value): New function.
	(intelgt_pseudo_register_write): New function.
	(intelgt_gdbarch_init): Enhance initialization
	with pseudo-register method support.

gdbserver/ChangeLog:
2021-07-05  Mihails Strasuns  <mihails.strasuns@intel.com>

	* intelgt-low.cc (create_target_description): do not provide
	sp feature.
	(add_new_gt_process): stop expediting "sp" register

gdb/testsuite/ChangeLog:
2021-07-01  Matti Puputti  <matti.puputti@intel.com>

	* gdb.sycl/ptype.cpp: New file.
	* gdb.sycl/ptype.exp: New file.

gdbserver/ChangeLog:
2021-05-11  Felix Willgerodt  <felix.willgerodt@intel.com>

	* remote-utils.cc (decode_search_memory_packet): Add new addr_space
	argument and enable decoding it.
	* remote-utils.h (decode_search_memory_packet): Add new addr_space
	argument.
	* server.cc (handle_search_memory): Enable decoding different
	address spaces.

gdb/ChangeLog:
2021-05-11  Felix Willgerodt  <felix.willgerodt@intel.com>

	* intelgt-tdep.c (intelgt_address_space_from_type_flags): New.
	(intelgt_gdbarch_init): Call set_gdbarch_address_space_from_type_flags.

gdb/ChangeLog:
2021-05-11  Felix Willgerodt  <felix.willgerodt@intel.com>

	* remote.c (PACKET_multi_address_space_feature): New enum value.
	(remote_multi_address_space_p): New function.
	(remote_protocol_features): Add multi_addr_space.
	(remote_target::remote_query_supported): Same.
	(_initialize_remote): Same.

gdb/doc/ChangeLog:
2021-05-11  Felix Willgerodt  <felix.willgerodt@intel.com>

	* gdb.texinfo (Debugging Remote Programs)
	(Remote Serial Protocol): Document multi-address-space extensions.

gdbserver/ChangeLog:
2021-05-11  Felix Willgerodt  <felix.willgerodt@intel.com>

	* server.cc (handle_query): Handle multi-address-space.
	* server.h (client_state): Add multi_addr_space.

gdb/ChangeLog:
2021-05-11  Felix Willgerodt  <felix.willgerodt@intel.com>

	* intelgt-tdep.c (INTELGT_TYPE_INSTANCE_FLAG_SLM): New define.
	(INTELGT_SLM_ADDRESS_QUALIFIER): Same
	(intelgt_address_class_type_flags_to_name): New.
	(intelgt_address_class_name_to_type_flags): New.
	(intelgt_gdbarch_init): Set the new functions.

gdb/testsuite/ChangeLog:
2021-05-25  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb.sycl/return-value.cpp: New test.
	* gdb.sycl/return-value.exp: New file.

gdb/ChangeLog:
2021-05-17  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb/arch/intelgt.c (class arch_info_gen9):
	(arch_info_gen9::retval_regnum): New method.
	* gdb/arch/intelgt.h (class arch_info):
	(arch_info::retval_regnum): New virtual method.
	* gdb/intelgt-tdep.c (intelgt_return_value): Implementation of
						     gdbarch's return_value method.
	(intelgt_gdbarch_init): Set gdbarch_return_value for intelgt.

gdb/testsuite/ChangeLog:
2021-05-12  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb.sycl/call-stack-work-group.cpp: New test.
	* gdb.sycl/call-stack-work-group.exp: New file.

gdb/testsuite/ChangeLog:
2021-05-12  Natalia Saiapova  <natalia.saiapova@intel.com>

        * gdb.sycl/call-stack.cpp (main): Remove unnecessary parameter.
        * gdb.sycl/call-stack.exp: Test various configurations of call
	stack.  Test last instructions of a function.

gdb/ChangeLog:
2021-05-12  Natalia Saiapova  <natalia.saiapova@intel.com>

	* intelgt-tdep.c (intelgt_gdbarch_init): Use core_addr_greaterthan
	to detect inner frames.

gdb/ChangeLog:
2021-05-12  Natalia Saiapova  <natalia.saiapova@intel.com>

	* intelgt-tdep.c (intelgt_skip_prologue): New function.

gdb/testsuite/ChangeLog:
2021-05-31  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>

	* gdb.perf/lib/perftest/measure.py: Replace time.clock()
	with time.perf_counter() to support Python 3.9 and update
	cpu clock time measurement to milliseconds.
	* gdb.perf/lib/perftest/reporter.pyy: Update cpu time unit
	to milliseconds.
	* gdb.perf/sycl-breakpoint.exp: New file.
	* gdb.perf/sycl-breakpoint.py: New file.
	* gdb.perf/sycl-falsecondbp.exp: New file.
	* gdb.perf/sycl-falsecondbp.py: New file.
	* gdb.perf/sycl-parallel.cpp: New file.
	* gdb.perf/sycl-step.exp: New file.
	* gdb.perf/sycl-step.py: New file.
	* gdb.perf/sycl-thread.exp: New file.
	* gdb.perf/sycl-thread.py: New file.

gdb/ChangeLog:
2021-04-30  Aleksandar Paunovic  <aleksandar.paunovic@intel.com>

        * infrun.c (keep_going_stepped_thread): Do not resume an
	already executing thread.

gdb/testsuite/ChangeLog:
2021-04-30  Aleksandar Paunovic  <aleksandar.paunovic@intel.com>

	* gdb.base/breakpoint-running-inferior.exp: Add a start_step
	function check.

gdb/ChangeLog:
2021-04-30  Aleksandar Paunovic  <aleksandar.paunovic@intel.com>

	* infrun.c (keep_going_stepped_thread): Switch to correct
	inferior and check if thread is executing.

gdb/testsuite/ChangeLog:
2021-04-30  Aleksandar Paunovic  <aleksandar.paunovic@intel.com>

	* gdb.base/breakpoint-running-inferior-1.c: New file.
	* gdb.base/breakpoint-running-inferior-2.c: New file.
	* gdb.base/breakpoint-running-inferior.exp: New file.

gdb/ChangeLog:
2021-05-05  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* infcmd.c (setup_inferior): Use inferior's pid instead of
	inferior_ptid.

gdb/ChangeLog:
2021-05-05  Mihails Strasuns  <mihails.strasuns@intel.com>

	* features/intelgt-arf11.xml, features/intelgt-arf12.xml,
	  features/intelgt-arf9.xml, features/intelgt-debug.xml:
	  Move iemask/emask definition to the debug feature.
	* features/intelgt-arf11.c, features/intelgt-arf12.c,
	  features/intelgt-arf9.c, features/intelgt-debug.c:
	  Regenerated.
	* arch/intelgt.c: Adapt to new register order.

gdb/ChangeLog:
2021-04-29  Mihails Strasuns  <mihails.strasuns@intel.com>

	* arch/intelgt.h (arch_info): New fields/methods for debug regs.
	* arch/intelgt.c (arch_info_gen9): Extend implementation for
	  the debug regs.
	* features/intelgt-debug.c: New file.
	* features/intelgt-debug.xml: New file.
	* features/Makefile (FEATURE_XMLFILES): Add
	  features/intelgt-debug.xml.
	* intelgt-tdep.c: Support for the new feature file and reg
	  numbers.

gdb/gdbserver/ChangeLog:
2021-04-29  Mihails Strasuns  <mihails.strasuns@intel.com>

	* configure.srv: Add intelgt-debug.xml.
	* intelgt-low.cc: Add new feature file support.

gdbserver/ChangeLog:
2021-05-05  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* server.cc (handle_v_attach):

gdb/testsuite/ChangeLog:
2022-07-04  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.threads/simd-thread-apply.exp: Revise the test to not
	have fixed thread ids.

gdb/ChangeLog:
2021-04-28  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* target.h: Update the comment to mention the semantics for
	the empty string as the return value.
	* exec.c (exec_file_locate_attach): Check for empty string.

gdb/ChangeLog:
2021-04-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* inferior.c (remove_inferior_with_number): New function, extracted
	out from...
	(remove_inferior_command): ...this.

gdb/ChangeLog:
2021-03-09  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::remote_notice_new_inferior): Mark
	newly noticed inferior as 'needs_setup'.

gdb/testsuite/ChangeLog:
2021-03-16  Matti Puputti  <matti.puputti@intel.com>

	* gdb.sycl/bp-at-last-line.exp: New file.
	* gdb.sycl/bp-at-last-line.cpp: New file.

gdb/testsuite/ChangeLog:
2021-03-15  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/intelgt-no-sched-multi.exp: New file.

gdb/testsuite/ChangeLog:
2020-12-16  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb.sycl/step-inline.cpp: New test.
	* gdb.sycl/step-inline.exp: New file.

gdb/ChangeLog:
2021-03-01  Matti Puputti  <matti.puputti@intel.com>

	* linespec.c (add_matching_symbols_to_info): search inlined functions
	with filename.

gdb/testsuite/ChangeLog:
2021-03-01  Matti Puputti  <matti.puputti@intel.com>

	* gdb.sycl/break-with-filename.exp: Add tests for setting a breakpoint
	in kernel using file and function names.

gdb/testsuite/ChangeLog:
2021-02-04  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/intelgt-resume-in-other-context.exp: New file.

gdb/testsuite/ChangeLog:
2020-11-25  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.arch/intelgt-program-bp.exp: New file.

gdb/testsuite/ChangeLog:
2020-12-03  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/break-at-kernel-symbol.exp: New file.

gdb/testsuite/ChangeLog:
2020-10-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/intelcpu-ocl-var.exp: New file.

gdb/testsuite/ChangeLog:
2020-10-08  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/unified-shared-memory.cpp: New file.
	* gdb.sycl/unified-shared-memory.exp: New file.

gdb/testsuite/ChangeLog:
2020-10-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/intelgt-run-tui.exp: New file.

gdb/ChangeLog:
2020-10-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* regcache.c (readable_regcache::raw_read): Return REG_UNAVAILABLE
	if raw_update raises NOT_AVAILABLE_ERROR.

gdb/ChangeLog:
2020-09-11  Natalia Saiapova  <natalia.saiapova@intel.com>

	* linux-nat.c (linux_nat_target::thread_address_space): Add
	check for nullptr.

gdb/ChangeLog:
2020-09-11  Natalia Saiapova  <natalia.saiapova@intel.com>

	* mi/mi-main.c (mi_cmd_thread_select): Set a specified SIMD
	lane.
	(mi_execute_command): Add notification when SIMD lane is
	changed.
	(mi_cmd_execute): If SIMD lanes is specified and valid, set
	this lane in the selected thread.  If a user skips thread ID,
	the current thread is taken.
	* mi/mi-parse.c (mi_parse::mi_parse): Initialize simd_lane.
	(mi_parse): Parse simd_lane.
	* mi/mi-parse.h (struct mi_parse) <simd_lane>: New int field.
	* thread.c (thread_command): Add notification on SIMD lane
	change.

gdb/ChangeLog:
2020-09-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* observable.h (about_to_proceed): Add a boolean 'step' parameter.
	* breakpoint.c (breakpoint_about_to_proceed): Adjust for the new
	'step' parameter.
	* infrun.c (clear_proceed_status): Ditto.
	* mi/mi-interp.c (mi_about_to_proceed): Ditto.

gdb/testsuite/ChangeLog:
2020-08-26  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb.threads/infcall-bp-cond.c: New test.
	* gdb.threads/infcall-bp-cond.exp: New file.

gdb/ChangeLog:
2020-08-26  Natalia Saiapova  <natalia.saiapova@intel.com>
	    Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>

	* infrun.c (do_target_wait): Match an inferior PID with the
        expected PID.
	(fetch_inferior_event): In condition evaluation, wait for the
        event from the current inferior.

gdb/ChangeLog:
2020-08-26  Natalia Saiapova  <natalia.saiapova@intel.com>
	    Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>

	* infrun.c (user_visible_resume_ptid): In BP condition
        evaluation, resume only the current thread

gdb/ChangeLog:
2020-08-27  Natalia Saiapova  <natalia.saiapova@intel.com>
	    Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>

	* breakpoint.c (bpstat_check_breakpoint_conditions): Set/unset
        thread->control.in_cond_eval.
	* gdbthread.h (struct thread_control_state):
        <in_cond_eval>: New boolean field.

gdbsupport/ChangeLog:
2020-09-15  Mihails Strasuns  <mihails.strasuns@intel.com>

	* scope-exit.h (~scope_exit_base): Add a catch-all statement.

gdb/ChangeLog:
2020-08-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* arch/intelgt.h (enum class reg_group) <Mme>: New enum case.
	(class arch_info): Add `num_mmes` parameter to the constructor.
	<mme_reg_count>: New method declaration.
	<num_mmes>: New field.
	* arch/intelgt.c (arch_info::arch_info): Update the parameters.
	(arch_info::mme_reg_count): New method implementation.
	(arch_info_gen9::arch_info_gen9): Update.
	* features/intelgt-arf9.xml: Add the 'mme' registers.
	* features/intelgt-arf11.xml: Ditto.
	* features/intelgt-arf12.xml: Ditto.
	* features/intelgt-arf9.c: Regenerate.
	* features/intelgt-arf11.c: Regenerate.
	* features/intelgt-arf12.c: Regenerate.
	* intelgt-tdep.c (intelgt_dwarf_reg_to_regnum): Handle the 'mme'
	registers.

gdbserver/ChangeLog:
2020-08-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* intelgt-low.cc (igfxdbg_reg_type): Handle the 'Mme' type.

gdb/testsuite/ChangeLog:
2020-08-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.arch/intelgt-info-reg.exp: Extend the test for MME registers.

gdb/testsuite/ChangeLog:
2020-08-17  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/scheduler-locking.exp: New file.

gdb/ChangeLog:
2020-08-07  Markus Metzger  <markus.t.metzger@intel.com>

	* breakpoint.c (bpstat_do_actions_1): Do not switch lanes for
	non-breakpoint stops.

binutils/ChangeLog:

2022-07-29  Markus Metzger  <markus.t.metzger@intel.com>

	* dwarf.c (decode_location_expression):  Support
	DW_OP_INTEL_regval_bits.

gdb/ChangeLog:

2022-07-29  Markus Metzger  <markus.t.metzger@intel.com>

	* dwarf2/expr.c (dwarf_expr_context::execute_stack_op): Support
	DW_OP_INTEL_regval_bits.
	* dwarf2/loc.c (disassemble_dwarf_expression): Likewise.

include/ChangeLog:

2022-07-29  Markus Metzger  <markus.t.metzger@intel.com>

	* dwarf2.def (DW_OP): Add DW_OP_INTEL_regval_bits.

gdb/testsuite/ChangeLog:
2020-07-02  Markus Metzger  <markus.t.metzger@intel.com>

	* gdb.sycl/simd-locations.cpp: New test.
	* gdb.sycl/simd-locations.exp: New file.
	* lib/gdb.exp (gdb_test_expr_eq): New.
	* lib/sycl.exp (current_thread_has_simd_lanes): New.

gdb/testsuite/ChangeLog:
2020-08-05  Markus Metzger  <markus.t.metzger@intel.com>

	* gdb.dwarf2/amd64-simd-sse.S: New test.
	* gdb.dwarf2/amd64-simd-sse.c: New test.
	* gdb.dwarf2/amd64-simd.c: New test.
	* gdb.dwarf2/amd64-simd.exp: New file.
	* gdb.dwarf2/amd64-simd.h: New test.

gdb/ChangeLog:
2020-08-05  Markus Metzger  <markus.t.metzger@intel.com>

	* valarith.c (value_subscripted_rvalue): Also exclude lval_computed.

gdb/ChangeLog:
2020-08-05  Markus Metzger  <markus.t.metzger@intel.com>

	* value.c (value_from_component): Remove VALUE_LVAL check.

gdb/ChangeLog:
2020-08-05  Markus Metzger  <markus.t.metzger@intel.com>

	* compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Remove call to
	dwarf_expr_require_composition.
	* dwarf2/expr.c (dwarf_expr_require_composition): Remove.
	(dwarf_expr_context::execute_stack_op): Remove call to
	dwarf_expr_require_composition.
	* dwarf2/expr.h (dwarf_expr_require_composition): Remove.
	* dwarf2/loc.c (dwarf2_compile_expr_to_ax): Remove call to
	dwarf_expr_require_composition.

binutils/ChangeLog:
2020-08-05  Markus Metzger  <markus.t.metzger@intel.com>

	* dwarf.c (decode_location_expression): Add
	DW_OP_INTEL_push_simd_lane, DW_OP_INTEL_piece_stack, and
	DW_OP_INTEL_bit_piece_stack.

gdb/ChangeLog:
2020-08-05  Markus Metzger  <markus.t.metzger@intel.com>

	* dwarf2/expr.c (dwarf_expr_context::execute_stack_op): Add support
	for DW_OP_INTEL_push_simd_lane, DW_OP_INTEL_piece_stack, and
	DW_OP_INTEL_bit_piece_stack.
	(dwarf_expr_context::get_simd_lane): New.
	* dwarf2/expr.h (struct dwarf_expr_context) <get_simd_lane>: New.
	* dwarf2/loc.c (dwarf2_compile_expr_to_ax): Call unimplemented for
	DW_OP_INTEL_push_simd_lane, DW_OP_INTEL_piece_stack, and
	DW_OP_INTEL_bit_piece_stack.

include/ChangeLog:
2020-08-05  Markus Metzger  <markus.t.metzger@intel.com>

	* dwarf2.def (DW_OP): Add DW_OP_INTEL_push_simd_lane,
	DW_OP_INTEL_piece_stack, and DW_OP_INTEL_bit_piece_stack.

gdb/ChangeLog:
2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* arch/intelgt.h (class arch_info): Add 3 new parameters to the
	constructor.
	<num_addresses, num_accumulators, num_flags>: New fields.
	<address_reg_count, acc_reg_count, flag_reg_count>: New method
	declarations.
	* arch/intelgt.c (arch_info::arch_info): Update the ctor
	implementation.
	(arch_info::address_reg_count)
	(arch_info::acc_reg_count)
	(arch_info::flag_reg_count): New method implementation.
	(arch_info_gen9::arch_info_gen9): Update the call to base class
	constructor.
	* intelgt-tdep.c (intelgt_dwarf_reg_to_regnum): New function.
	(intelgt_gdbarch_init): Set the 'dwarf2_reg_to_regnum' gdbarch op.

gdb/ChangeLog:
2020-04-28  Markus Metzger  <markus.t.metzger@intel.com>

	* arch/intelgt.c (class arch_info_gen9)<breakpoint_inst>
	<breakpoint_inst_length>: Remove.
	(arch_info_gen9::breakpoint_inst): Remove.
	(arch_info_gen9::breakpoint_inst_length): Remove.
	* arch/intelgt.h (class arch_info)<breakpoint_inst>
	<breakpoint_inst_length>: Remove.

gdb/ChangeLog:
2020-05-05  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-tdep.c (intelgt_sw_breakpoint_from_kind): Return nullptr.

gdb/ChangeLog:
2020-05-06  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-tdep.c (intelgt_program_breakpoint_here_p): New.
	(intelgt_gdbarch_init): Call set_gdbarch_program_breakoint_here_p.

gdb/ChangeLog:
2020-05-05  Markus Metzger  <markus.t.metzger@intel.com>

	* intelgt-tdep.c (intelgt_memory_insert_breakpoint): New.
	(intelgt_memory_remove_breakpoint): New.
	(intelgt_gdbarch_init): Set memory_insert_breakpoint and
	memory_remove_breakpoint gdbarch methods.

gdb/testsuite/ChangeLog:
2020-05-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/ns-break-single.exp: New file.
	* gdb.sycl/ns-individual-continue.exp: New file.
	* gdb.sycl/ns-interrupt.exp: New file.
	* gdb.sycl/ns-run-to-termination.exp: New file.
	* gdb.sycl/parallel-for-branch.cpp: New file.
	* lib/sycl.exp: Query the non-stop mode and take action
	accordingly.

gdb/ChangeLog:

2020-04-28  Markus Metzger  <markus.t.metzger@intel.com>

	* arch/intelgt.c (class arch_info_gen9)<inst_length>: New.
	(class arch_info_gen9)<inst_length_compacted, inst_length_full>:
	Declare const.
	(arch_info_gen9::inst_length_compacted): Declare const.
	(arch_info_gen9::inst_length_full): Declare const.
	(arch_info_gen9::inst_length): New.
	* arch/intelgt.h (class arch_info)<inst_length>: New.
	(class arch_info)<inst_length_compacted, inst_length_full>: Declare
	const.

gdb/ChangeLog:

2020-04-28  Markus Metzger  <markus.t.metzger@intel.com>

	* arch/intelgt.c (class arch_info_gen9)<set_breakpoint>
	<clear_breakpoint, has_breakpoint, breakpoint_bit_offset>: Declare.
	(class arch_info_gen9)<is_compacted_inst>: Declare const.
	(get_inst_bit): New.
	(set_inst_bit): New.
	(clear_inst_bit): New.
	(arch_info_gen9::is_compacted_inst): Declare const.
	(arch_info_gen9::set_breakpoint): New.
	(arch_info_gen9::clear_breakpoint): New.
	(arch_info_gen9::has_breakpoint): New.
	(arch_info_gen9::breakpoint_bit_offset): New.
	* arch/intelgt.h (class arch_info)<set_breakpoint, clear_breakpoint>
	<has_breakpoint, breakpoint_bit_offset>: Declare.
	MAX_INST_LENGTH: New.
	(class arch_info)<is_compacted_inst>: Declare const.

gdb/ChangeLog:
2020-05-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_notif_stop_parse): Use magic_null_ptid for the
	stop-reply's ptid if multi-process extensions are not available
	and the received event is an exit event.

gdb/testsuite/ChangeLog:
2020-05-29  Natalia Saiapova  <natalia.saiapova@intel.com>

	* gdb.threads/simd-bp.exp: Update.
	* gdb.threads/simd-commands.exp: Update.

gdb/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
        * thread.c (thread_apply_all_command): Update.
        (thread_apply_all_command_1): New helper function.
        (thread_apply_all_lanes_command): New command.

gdb/doc/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
        * gdb.texinfo: Describe new command `thread apply all-lanes'.

gdb/testsuite/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
        * gdb.threads/simd-thread-apply.exp: Add tests for `thread apply
        all-lanes'

gdb/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
	* thread.c (struct tp_emask): New struct.
	(tp_array_compar_ascending): Use tp_emask.
	(tp_array_compar_descending): Use tp_emask.
	(thread_apply_all_command): Use tp_emask when saving threads.

gdb/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
	* gdbthread.h (enum class simd_lane_kind): New enum class.

gdb/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
	* thread.c (thread_apply_command): Update.
	* tid-parse.c (tid_range_parser::tid_range_parser): Update.
	(tid_range_parser::init): Update.
	(tid_range_parser::finished): Update.
	(tid_range_parser::cur_tok): Update.
	(tid_range_parser::is_state_simd_lane): Implement new method.
	(tid_range_parser::skip_range): Update.
	(tid_range_parser::skip_simd_lane_range): Implement new method.
	(tid_range_parser::process_inferior_state): Add processing of ':'.
	(tid_range_parser::process_thread_state): Add processing of ':'.
	(tid_range_parser::process_simd_lane_state): Add parsing of SIMD
	lane range state.
	(tid_range_parser::get_tid_or_range): Add SIMD lane phase.
	(tid_range_parser::get_tid_range): Update.
	(tid_range_parser::get_tid): Update.
	(tid_range_parser::in_thread_star_range): Update.
	(tid_range_parser::in_simd_lane_star_range): Implement new
	method.
	(tid_is_in_list): Update.
	* tid-parse.h (class tid_range_parser):
	<tid_range_parser>: Add default_thr_num argument.
	<init>: Add default_thr_num argument.
	<get_tid>: Add simd_lane_num argument.
	<in_state_simd_lane>: New public method.
	<in_simd_lane_star_range>: New public method.
	<m_in_simd_lane_star_range>: New private field.
	<skip_simd_lane_range>: New public method.
	<process_thread_state>: Add new argument.
	<process_simd_lane_state>: New private method.
	<m_state>: Add STATE_SIMD_LANE_RANGE.
	<m_simd_lane_range_parser>: New private field.
	<m_simd_lane_num>: New private field.
	<m_default_thr_num>: New private field.

gdb/doc/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
	* gdb.texinfo: Describe SIMD ranges.

gdb/testsuite/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
	* gdb.threads/simd-thread-apply.cpp: New test.
	* gdb.threads/simd-thread-apply.exp: New file.

gdb/ChangeLog:
2022-02-02  Mohamed Bouhaouel  <mohamed.bouhaouel@intel.com>

	* gdb/gdbthread.h (get_simd_width): New function.
	* gdb/thread.c (thread_info::get_simd_width): Function body.

gdb/ChangeLog:
2021-07-05  Markus Metzger  <markus.t.metzger@intel.com>

	* thread.c (print_thread_info_1): Check thread state.
	(thread_command): Likewise.
	(print_selected_thread_frame): Likewise.

gdb/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
	* tid-parse.c (tid_range_parser::process_thread_state): Update.
	(tid_range_parser::get_tid_or_range): Implement new method.
	* tid-parse.h (class tid_range_parser):
	<process_thread_state>: New private method.

gdb/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
	* tid-parse.c (tid_range_parser::get_tid_or_range): Update.
	(tid_range_parser::process_inferior_state): Implement new
	method.
	* tid-parse.h (class tid_range_parser):
	<process_inferior_state>: New private method.

gdb/ChangeLog:
2020-05-14  Natalia Saiapova  <natalia.saiapova@intel.com>
	* cli/cli-utils.c (number_or_range_parser::set_end_ptr):
	Implement new method.
	* cli/cli-utils.h (class number_or_range_parser): New public
	method.

gdb/ChangeLog:
2020-05-13  Natalia Saiapova  <natalia.saiapova@intel.com>
	* cli/cli-utils.c (number_or_range_parser::init): Update.
	(number_or_range_parser::get_number): Use m_end_trailer.
	* cli/cli-utils.h (class number_or_range_parser):
	<init>: New argument.
	<m_end_trailer>: New field.

gdb/testsuite/ChangeLog:
2020-05-25  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/intelgt-auto-attach.exp: New file.

gdb/testsuite/ChangeLog:
2020-05-18  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.base/coredump-filter.exp: Remove paths from test results.

gdb/testsuite/ChangeLog:
2020-04-20  Abdul Basit Ijaz  <abdul.b.ijaz@intel.com>
	    Aleksandar Paunovic  <aleksandar.paunovic@intel.com>

	* boards/openmp-cpu.exp: New file.
	* boards/openmp-gpu.exp: New file.
	* boards/openmp-host.exp: New file.
	* lib/openmp.exp: New file.
	* lib/openmp-devices.cpp: New file.
	* lib/openmp-devices.f90: New file.
	* gdb.openmp/break-before-kernel-workaround.exp: New file.
	* gdb.openmp/break-before-kernel.exp: New file.
	* gdb.openmp/break-inside-kernel.exp: New file.
	* gdb.openmp/break.exp: New file.
	* gdb.openmp/break2.exp: New file.
	* gdb.openmp/cond-bp-on-local.exp: New file.
	* gdb.openmp/delete-bp.exp: New file.
	* gdb.openmp/disable-bp.exp: New file.
	* gdb.openmp/parallel-for-1D.cpp: New file.
	* gdb.openmp/parallel-for-1D.f90: New file.
	* gdb.openmp/temporary-bp.exp: New file.
	* gdb.openmp/infcall-parallel-for.exp: New file.
	* gdb.openmp/step-parallel-for.exp: New file.
	* gdb.openmp/local-vars.cpp: New file.
	* gdb.openmp/local-vars.f90: New file.
	* gdb.openmp/single-task.cpp: New file.
	* gdb.openmp/single-task.f90: New file.
	* gdb.openmp/call-stack.cpp: New file.
	* gdb.openmp/call-stack.exp: New file.
	* gdb.openmp/call-stack.f90: New file.
	* gdb.openmp/parallel-for-2D.exp: New file.
	* gdb.openmp/parallel-for-2D.cpp: New file.
	* gdb.openmp/parallel-for-2D.f90: New file.
	* gdb.openmp/read.exp: New file.
	* gdb.openmp/step-into-function.exp: New file.
	* gdb.openmp/step.exp: New file.
	* gdb.openmp/write-local.exp: New file.
	* gdb.openmp/multi-kernel-async.cpp: New file.
	* gdb.openmp/multi-kernel-async.exp: New file.
	* gdb.openmp/multi-kernel-async.f90: New file.
	* gdb.openmp/multi-kernel-unnamed.cpp: New file.
	* gdb.openmp/multi-kernel-unnamed.exp: New file.
	* gdb.openmp/multi-kernel-unnamed.f90: New file.
	* gdb.openmp/multi-kernel.cpp: New file.
	* gdb.openmp/multi-kernel.exp: New file.
	* gdb.openmp/multi-kernel.f90: New file.
	* gdb.openmp/info-locals-and-args.exp: New file.
	* gdb.openmp/intelgt-auto-attach.exp: New file.
	* gdb.openmp/intelgt-run-inf2.exp: New file.
	* gdb.openmp/run-to-termination.exp: New file.

gdb/ChangeLog:
2020-05-05  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote.c (remote_target::remote_detach_1): Tolerate an error
	in the detach request if there exists a pending exit event.

gdb/testsuite/ChangeLog:
2019-04-17  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.multi/schedule-multi-allstop.c: New file.
	* gdb.multi/schedule-multi-allstop.exp: New file.

gdb/ChangeLog:
2020-05-04  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdbthread.h (first_non_exited_thread_of_inferior): New function
	declaration.
	* thread.c (first_non_exited_thread_of_inferior): New function
	implementation.

gdb/ChangeLog:
2019-05-28  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* infrun.c (clear_proceed_status): Clear proceed status of
	threads' inferiors.

gdb/testsuite/ChangeLog:
2019-09-16  Mihails Strasuns  <mihails.strasuns@intel.com>

	* gdb.sycl/accessor1d.cpp: New file.
	* gdb.sycl/accessor1d.exp: New file.
	* gdb.sycl/accessor2d.cpp: New file.
	* gdb.sycl/accessor2d.exp: New file.
	* gdb.sycl/accessor3d.cpp: New file.
	* gdb.sycl/accessor3d.exp: New file.

gdb/ChangeLog:
2020-06-16  Mihails Strasuns  <mihails.strasuns@intel.com>

	* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Renamed
	to 'disable_breakpoints_in_unloaded_objfile` and changed to
	accept an objfile as an argument.
	(disable_breakpoints_in_unloaded_shlib): New function.
	disable_breakpoints_in_unloaded_jit_objects): New function.
	* jit.c (jit_unregister_code): New function, called to handle
	JIT_UNREGISTER and discard a jit objfile properly.
	* observable.c, observable.h: New observable, 'jit_object_unloaded'.

gdb/testsuite/ChangeLog:
2020-06-16  Mihails Strasuns  <mihails.strasuns@intel.com>

	* gdb.base/jit-elf-reregister.c, gdb.base/jit-elf-reregister.exp: New
	test case, verifies that breakpoints still hit if a jit object
	that contains them gets reloaded and mapped again to the same
	base address.

gdb/testsuite/ChangeLog:
2020-03-19  Natalia Saiapova  <natalia.saiapova@intel.com>
	* gdb.threads/simd.cpp: Update.
	* gdb.threads/simd-bp-multi-lane.exp: New file.
	* gdb.threads/simd-bp.exp: Update.
	* gdb.threads/simd-commands.exp: New file.

gdb/testsuite/ChangeLog:
2019-09-16  Natalia Saiapova  <natalia.saiapova@intel.com>

        * gdb/testsuite/gdb.threads/simd-bp.exp: New file.
        * gdb/testsuite/gdb.threads/simd-info-threads.exp: New file.
        * gdb/testsuite/gdb.threads/simd-thread.exp: New file.
        * gdb/testsuite/gdb.threads/simd.cpp: New test.

gdb/testsuite/ChangeLog:
2019-11-27  Mihails Strasuns  <mihails.strasuns@intel.com>

	* gdb.sycl/break-before-kernel-workaround.exp: New test case.

gdb/ChangeLog:
2019-09-10  Natalia Saiapova  <natalia.saiapova@intel.com>

	* intelgt-tdep.c: Set gdbarch_has_dos_based_file_system to 1
	on Windows.

gdb/testsuite/ChangeLog:
2019-09-17  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/pretty-print.cpp: New test.
	* gdb.sycl/pretty-print.exp: New file.

gdb/testsuite/ChangeLog:
2019-08-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.arch/intelgt-emask.exp: New test.
	* gdb.arch/intelgt-emask.cpp: New file.

gdb/testsuite/ChangeLog:
2019-08-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.arch/intelgt-info-reg.exp: New test.

gdb/ChangeLog:
2019-09-04  Mihails Strasuns  <mihails.strasuns@intel.com>

	* infrun.c (do_target_wait): assertion for a possibly
	uninitialized variable.

gdb/testsuite/ChangeLog:
2020-01-20  Albertano Caruso  <albertano.caruso@intel.com>

	* gdb.sycl/intelgt-run-inf2.exp: New file.

gdb/ChangeLog:
2019-07-10  Albertano Caruso  <albertano.caruso@intel.com>
	    Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
	    Mihails Strasuns  <mihails.strasuns@intel.com>

	* data-directory/Makefile.in: Update.
	* python/lib/gdb/function/intelgt_auto_attach.py: New file.

gdbserver/ChangeLog:
2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* remote-utils.cc (read_ptid): Update to handle an already-gone
	process in case multiprocess extensions are off.
	* server.cc (handle_v_cont): Go to the error case if a ptid
	cannot be read.

gdb/gdbserver/ChangeLog:
2020-03-25  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* server.c (handle_target_event): Do not print a debug message
	in non-stop mode.

gdb/ChangeLog:
2022-08-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* NEWS: Add skip-trampoline-functions to 'New commands' section.
	* infrun.c (skip_trampoline-functions): New static variable.
	(process_event_stop_test): Step into/through trampolines.
	(show_skip_trampoline_functions): New helper for the
	skip-trampoline-functions setting.
	(_initialize_infrun): Add skip-trampoline-functions setting.

gdb/doc/ChangeLog:
2022-08-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.texinfo: Add section on skip-trampoline-functions setting.

gdb/testsuite/ChangeLog:
2022-08-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.dwarf2/dw2-function-trampolines.c: New test source.
	* gdb.dwarf2/dw2-function-trampolines.exp: New test case.

gdb/ChangeLog:
2022-08-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* symtab.h (in_trampoline_function): New function
	(find_function_trampoline_target): New function.
	* symtab.c (in_trampoline_function): New function implementation.
	(find_function_trampoline_target): New implementation of
	trampoline target lookup.

gdb/ChangeLog:
2022-08-09  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* dwarf2/read.c (read_subroutine_type): Read in DW_AT_trampoline.
	* gdbtypes.c (print_trampoline_target_info): New helper method.
	(recursive_dump_type): Add trampoline info.
	(copy_type_recursive): Copy trampoline info.
	* gdbtypes.h (func_type): Add trampoline specific fields.
	(trampoline_target_kind): New enum.
	(trampoline_target): New struct for storing DW_AT_trampoline's
	value.
	(TYPE_IS_TRAMPOLINE): New define.
	(TYPE_TRAMPOLINE_TARGET): New define.

gdb/testsuite/ChangeLog:
2022-05-22  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdb.mi/mi-vla-fortran.exp: Adapt test for ifort's Fortran
	pointer representation.

gdb/ChangeLog:
2022-03-24  Felix Willgerodt  <felix.willgerodt@intel.com>

	* amd64-linux-tdep.c (amd64_linux_write_pc): Reset tilecfg.start_row.

gdb/testsuite/ChangeLog:
2022-03-24  Felix Willgerodt  <felix.willgerodt@intel.com>

	* gdb.arch/amd64-amx-startrow.c: New file.
	* gdb.arch/amd64-amx-startrow.exp: Same.

gdb/testsuite/ChangeLog:
2021-02-16  Felix Willgerodt  <felix.willgerodt@intel.com>

	* lib/gdb.exp: Adjust call of tcl_version_at_least.
	(version_at_least): Add revision args, simplify check and adjust
	return value.
	(tcl_version_at_least): Adjust call of version_at_least.
	(skip_uli_tests): New function.

gdb/ChangeLog:
2020-07-02  Felix Willgerodt  <felix.willgerodt@intel.com>

	* nat/x86-gcc-cpuid.h: Replace with copy of cpuid.h
	from gcc 10.01 branch.

gdb/ChangeLog:
2022-04-06  Nils-Christian Kempke  <nils-christian.kempke@intel.com>

	* gdbthread.h (has_inferior_thread): New declaration.
	* thread.c (has_inferior_thread): New method.

gdb/ChangeLog:
2020-09-24  Felix Willgerodt  <felix.willgerodt@intel.com>

	* configure.ac: Use C++ compiler for testing libiga dependency.
	* configure: Regenerated.

gdb/ChangeLog:
2019-03-07  Mircea Gherzan  <mircea.gherzan@intel.com>
	    Fabian Schnell  <fabian.schnell@intel.com>
	    Ofir Cohen  <ofir.o.cohen@intel.com>
	    Arik Adler 	<arik.adler@intel.com>
	    Sanimir Agovic  <sanimir.agovic@intel.com>
	    Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* Makefile.in (ALL_64_TARGET_OBS): Add intelgt files.
	* configure.tgt (intelgt-*-elf): New target.
	* intelgt-tdep.c: New file.

gdb/ChangeLog:
2019-03-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* arch/intelgt.c: New file.
	* arch/intelgt.h: New file.

gdb/gdbserver/ChangeLog:
2019-03-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* acinclude.m4: Include ../../config/lib-ld.m4,
	include ../../config/lib-prefix.m4,
	include ../../config/lib-link.m4.

gdb/ChangeLog:
2019-03-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdbsupport/tdesc.c (tdesc_predefined_types): Add int256 and
	uint256.
	* gdbsupport/tdesc.h (enum tdesc_type_kind) <TDESC_TYPE_INT256>: New
	enum value.
	(enum tdesc_type_kind) <TDESC_TYPE_UINT256>: New enum value.
	* target-descriptions.c (make_gdb_type): Update to handle the
	new cases, TDESC_TYPE_INT256 and TDESC_TYPE_UINT256.
	* gdbtypes.h (struct builtin_type) <builtin_int256>: New field.
	(struct builtin_type) <builtin_uint256>: New field.
	* gdbtypes.c (gdbtypes_post_init): Update to initialize the
	two new fields, builtin_int256 and builtin_uint256.

gdb/doc/ChangeLog:
2019-03-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.texinfo (Predefined Target Types): Add int256 and uint256.

gdb/testsuite/ChangeLog:
2019-01-31  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/info-locals-and-args.exp: New file.

gdb/testsuite/ChangeLog:
2019-01-31  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/infcall-parallel-for.exp: New file.
	* gdb.sycl/infcall.exp: New file.
	* gdb.sycl/parallel-for-1D.cpp (get_dim): New function.
        (main): Call it.

gdb/testsuite/ChangeLog:
2019-01-31  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/cond-bp-on-local.exp: New file.

gdb/testsuite/ChangeLog:
2019-01-31  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/nd_item.cpp: New file.
	* gdb.sycl/nd_item.exp: New file.

gdb/testsuite/ChangeLog:
2019-01-31  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/parallel-for-1D.cpp: New file.
	* gdb.sycl/parallel-for-1D.exp: New file.
	* gdb.sycl/parallel-for-2D.cpp: New file.
	* gdb.sycl/parallel-for-2D.exp: New file.
	* gdb.sycl/step-parallel-for.exp: New file.
	* gdb.sycl/work-item-index.exp: New file.

gdb/testsuite/ChangeLog:
2019-01-31  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/read.exp: New file.
	* gdb.sycl/step-into-function.exp: New file.
	* gdb.sycl/step.exp: New file.
	* gdb.sycl/write-data.exp: New file.
	* gdb.sycl/write-local.exp: New file.

gdb/testsuite/ChangeLog:
2019-10-17  Mihails Strasuns  <mihails.strasuns@intel.com>

	* gdb.sycl/multi-queue.cpp: New test.
	* gdb.sycl/multi-queue.exp: New file.

gdb/testsuite/ChangeLog:
2019-01-31  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/multi-kernel-async.cpp: New test.
	* gdb.sycl/multi-kernel-async.exp: New file.
	* gdb.sycl/multi-kernel-unnamed.cpp: New test.
	* gdb.sycl/multi-kernel-unnamed.exp: New file.
	* gdb.sycl/multi-kernel.cpp: New file.
	* gdb.sycl/multi-kernel.exp: New file.

gdb/testsuite/ChangeLog:
2019-01-31  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/delete-bp.exp: New file.
	* gdb.sycl/disable-bp.exp: New file.
	* gdb.sycl/temporary-bp.exp: New file.

gdb/testsuite/ChangeLog:
2018-11-15  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* gdb.sycl/call-stack.cpp: New file.
	* gdb.sycl/call-stack.exp: New file.

gdb/testsuite/ChangeLog:
2018-11-15  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* boards/sycl-inteloffload,exp: New file.
	* gdb.sycl/break-before-kernel.exp: New file.
	* gdb.sycl/break.exp: New file.
	* gdb.sycl/break2.exp: New file.
	* gdb.sycl/run-to-termination.exp: New file.
	* gdb.sycl/single-task.cpp: New file.
	* lib/sycl-hello.cpp: New file.
	* lib/sycl-util.cpp: New file.
	* lib/sycl.exp: New file.

gdb/ChangeLog:
2019-03-21  Markus Metzger  <markus.t.metzger@intel.com>

	* jit.c: Include filestuff.h.
	(maint_jit_cmdlist): New.
	(maint_jit_command, maint_jit_dump_command): New.
	(_initialize_jit): Initialize maint jit dump command.
	* NEWS: Announce maint jit dump.

gdb/doc/ChangeLog:
2019-03-21  Markus Metzger  <markus.t.metzger@intel.com>

	* gdb.texinfo (Maintenance Commands): Document maint jit dump.

gdb/ChangeLog:
2020-04-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* infrun.c (proceed): Remove the 'check_multi_target_resumption'
	call.
	(check_multi_target_resumption): Remove.

gdbserver/ChangeLog:
2020-04-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* configure.srv: Use $target for $gdbserver_host.

gdb/ChangeLog:
2019-01-03  Tim Wiederhake  <tim.wiederhake@intel.com>

	* python/python.c: Set Python Home.

gdb/ChangeLog:
2017-11-17  Tim Wiederhake  <tim.wiederhake@intel.com>

	* top.c: Add bug report url.

gdb/ChangeLog:
2020-01-07  Felix Willgerodt  <felix.willgerodt@intel.com>

	* top.c (print_gdb_version): Add Intel copyright lines.

gdb/doc/ChangeLog:
2020-01-07  Felix Willgerodt  <felix.willgerodt@intel.com>

	* gdb.texinfo: Add Intel copyright lines.

gdb/gdbserver/ChangeLog:
2020-01-07  Felix Willgerodt  <felix.willgerodt@intel.com>

	* gdbreplay.c (gdbreplay_version): Add Intel copyright lines.
	* server.c (gdbserver_version): Add Intel copyright lines.

gdb/testsuite/ChangeLog:
2020-01-07  Felix Willgerodt  <felix.willgerodt@intel.com>

	* gdb.gdb/selftest.exp: Add Intel copyright lines.

ChangeLog:
2020-03-26  Felix Willgerodt  <felix.willgerodt@intel.com>

	* Makefile.in: Add Windows properties.

gdb/ChangeLog:
2020-03-26  Felix Willgerodt  <felix.willgerodt@intel.com>

	* Makefile.in: Add Windows properties.
	* configure.ac: Ditto
	* configure: Regenerate.
	* gdb_exe_properties.rc: New file.

gdbserver/ChangeLog:
2020-03-26  Felix Willgerodt  <felix.willgerodt@intel.com>

	* Makefile.in: Add Windows properties.
	* configure.ac: Ditto.
	* configure: Regenerate.

gdb/testsuite/ChangeLog:
2020-05-07  Felix Willgerodt  <felix.willgerodt@intel.com>

	* boards/testgdb-native.exp: New file.
	* boards/testgdbserver-native.exp: New file.

gdb/ChangeLog:
2019-12-04  Felix Willgerodt  <felix.willgerodt@intel.com>

	* gdb.c (__declspec): New windows keyword.

gdb/gdbserver/ChangeLog:
2019-12-04  Felix Willgerodt  <felix.willgerodt@intel.com>

	* server.c (__declspec): New windows keyword.

gdb/ChangeLog:
2022-09-01  Thomas Bininda  <thomas.bininda@intel.com>
	    Felix Willgerodt  <felix.willgerodt@intel.com>
	    Christina Schimpe  <christina.schimpe@inte.com>

	* x86-cet-cmds.c: Undef getline.

gdbsupport/ChangeLog:
2022-09-01  Thomas Bininda  <thomas.bininda@intel.com>
	    Felix Willgerodt  <felix.willgerodt@intel.com>
	    Christina Schimpe  <christina.schimpe@intel.com>

	* ptid.h: Undef getline.

opcodes/ChangeLog:
	* aarch64-opc.c (SR_CORE): Macro definition and uses deleted.
	(SR_FEAT): Likewise.
	(SR_FEAT2): Likewise.
	(SR_V8_1_A): Likewise.
	(SR_V8_4_A): Likewise.
	(SR_V8A): Likewise.
	(SR_V8R): Likewise.
	(SR_V8_1A): Likewise.
	(SR_V8_2A): Likewise.
	(SR_V8_3A): Likewise.
	(SR_V8_4A): Likewise.
	(SR_V8_6A): Likewise.
	(SR_V8_7A): Likewise.
	(SR_V8_8A): Likewise.
	(SR_GIC): Likewise.
	(SR_AMU): Likewise.
	(SR_LOR): Likewise.
	(SR_PAN): Likewise.
	(SR_RAS): Likewise.
	(SR_RNG): Likewise.
	(SR_SME): Likewise.
	(SR_SSBS): Likewise.
	(SR_SVE): Likewise.
	(SR_ID_PFR2): Likewise.
	(SR_PROFILE): Likewise.
	(SR_MEMTAG): Likewise.
	(SR_SCXTNUM): Likewise.
	(SR_EXPAND_ELx): Likewise.
	(SR_EXPAND_EL12): Likewise.
	* opcodes/aarch64-sys-regs.def: New.

include/ChangeLog:
	* opcode/aarch64.h: add `aarch64_sys_reg_alias_p' prototype.

opcodes/ChangeLog:
	* aarch64-opc.c (aarch64_sys_reg_alias_p): New.
	(aarch64_print_operand): add aarch64_sys_reg_alias_p check.
	(aarch64_sys_regs): Add F_REG_ALIAS flag to "trcextinselr"
	entry.
	* aarch64-opc.h (F_REG_ALIAS): New.

opcodes/ChangeLog:
2023-09-07  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

	* opcodes/aarch64-dis.c (print_insn_aarch64_word): Set insn_type for
	branch instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets): Add implication from
	'Svadu' to 'Zicsr'.  (riscv_supported_std_s_ext) Add 'Svadu'.

gas/ChangeLog:

	* testsuite/gas/riscv/csr.s: Fix typo. mhcounteren is superseded
	by minstretcfg, not mcyclecfg.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets): Add implication rule from
	the new 'Smcntrpmf' extension.  (riscv_supported_std_s_ext): Add
	'Smcntrpmf' to the supported S extension list.

gas/ChangeLog:

	* config/tc-riscv.c (enum riscv_csr_class): Add new CSR classes
	CSR_CLASS_SMCNTRPMF and CSR_CLASS_SMCNTRPMF_32.
	(riscv_csr_address): Add handling for new CSR classes.
	* testsuite/gas/riscv/csr-dw-regnums.s: Add new CSRs.  Move
	"mscounteren" and "mhcounteren" CSRs and note that they are now
	aliases.
	* testsuite/gas/riscv/csr-dw-regnums.d: Reflect the change.
	* testsuite/gas/riscv/csr.s: Add new CSRs.  Move "mscounteren"
	and "mhcounteren" CSRs and note that they are now reused for
	the 'Smcntrpmf' extension.
	* testsuite/gas/riscv/csr-version-1p9p1.d: Reflect the changes of
	csr.s.
	* testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.l: Likewise.

include/ChangeLog:

	* opcode/riscv-opc.h: Add new CSRs noting that this extension is
	incompatible with the privileged specification version 1.9.1.
	Move "mscounteren" and "mhcounteren" CSRs, make them aliases and
	reuse the CSR numbers from the 'Smcntrpmf' extension.
	(CSR_MSCOUNTEREN, CSR_MHCOUNTEREN) Remove as "mscounteren" and
	"mhcounteren" are now aliases and new CSR macros are used instead.
	(CSR_MCYCLECFG, CSR_MINSTRETCFG, CSR_MCYCLECFGH, CSR_MINSTRETCFGH):
	New CSR macros.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_parse_check_conflicts): Prohibit 'E' and
	'H' combinations.

gas/ChangeLog:

	* testsuite/gas/riscv/march-fail-rv32eh.d: New failure test to
	make sure that RV32E + 'H' is prohibited.
	* testsuite/gas/riscv/march-fail-rv32eh.l: Likewise.

ld/ChangeLog:

	* scripttempl/elfarcv2.sc: Update script template.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Restrict "vt.maskc" and "vt.maskcn"
	to XLEN=64.

gas/ChangeLog:

	* testsuite/gas/riscv/x-ventana-condops-32.d: New failure test.
	* testsuite/gas/riscv/x-ventana-condops-32.l: Likewise.

gas/ChangeLog:
	* gas/config/tc-aarch64.c:
	(aarch64_cpus): Reference to arch feature macros updated.
	(aarch64_archs): Likewise.

include/ChangeLog:
	* include/opcode/aarch64.h:
	(AARCH64_FEATURE_V8A): Updated name: V8_A -> V8A.
	(AARCH64_FEATURE_V8_1A): A-suffix added.
	(AARCH64_FEATURE_V8_2A): Likewise.
	(AARCH64_FEATURE_V8_3A): Likewise.
	(AARCH64_FEATURE_V8_4A): Likewise.
	(AARCH64_FEATURE_V8_5A): Likewise.
	(AARCH64_FEATURE_V8_6A): Likewise.
	(AARCH64_FEATURE_V8_7A): Likewise.
	(AARCH64_FEATURE_V8_8A):Likewise.
	(AARCH64_FEATURE_V9A): Likewise.
	(AARCH64_FEATURE_V8R): Updated name: V8_R -> V8R.
	(AARCH64_ARCH_V8A_FEATURES): Updated name: V8_A -> V8A.
	(AARCH64_ARCH_V8_1A_FEATURES): A-suffix added.
	(AARCH64_ARCH_V8_2A_FEATURES): Likewise.
	(AARCH64_ARCH_V8_3A_FEATURES): Likewise.
	(AARCH64_ARCH_V8_4A_FEATURES): Likewise.
	(AARCH64_ARCH_V8_5A_FEATURES): Likewise.
	(AARCH64_ARCH_V8_6A_FEATURES): Likewise.
	(AARCH64_ARCH_V8_7A_FEATURES): Likewise.
	(AARCH64_ARCH_V8_8A_FEATURES): Likewise.
	(AARCH64_ARCH_V9A_FEATURES): Likewise.
	(AARCH64_ARCH_V9_1A_FEATURES): Likewise.
	(AARCH64_ARCH_V9_2A_FEATURES): Likewise.
	(AARCH64_ARCH_V9_3A_FEATURES): Likewise.
	(AARCH64_ARCH_V8A): Updated name: V8_A -> V8A.
	(AARCH64_ARCH_V8_1A): A-suffix added.
	(AARCH64_ARCH_V8_2A): Likewise.
	(AARCH64_ARCH_V8_3A): Likewise.
	(AARCH64_ARCH_V8_4A): Likewise.
	(AARCH64_ARCH_V8_5A): Likewise.
	(AARCH64_ARCH_V8_6A): Likewise.
	(AARCH64_ARCH_V8_7A): Likewise.
	(AARCH64_ARCH_V8_8A): Likewise.
	(AARCH64_ARCH_V9A): Likewise.
	(AARCH64_ARCH_V9_1A): Likewise.
	(AARCH64_ARCH_V9_2A): Likewise.
	(AARCH64_ARCH_V9_3A): Likewise.
	(AARCH64_ARCH_V8_R): Updated name: V8_R -> V8R.

opcodes/ChangeLog:
	* opcodes/aarch64-opc.c (SR_V8A): Updated name: V8_A -> V8A.
	(SR_V8_1A): A-suffix added.
	(SR_V8_2A): Likewise.
	(SR_V8_3A): Likewise.
	(SR_V8_4A): Likewise.
	(SR_V8_6A): Likewise.
	(SR_V8_7A): Likewise.
	(SR_V8_8A): Likewise.
	(aarch64_sys_regs): Reference to arch feature macros updated.
	(aarch64_pstatefields): Reference to arch feature macros updated.
	(aarch64_sys_ins_reg_supported_p): Reference to arch feature macros
	updated.
	* opcodes/aarch64-tbl.h:
	(aarch64_feature_v8_2a): a-suffix added.
	(aarch64_feature_v8_3a): Likewise.
	(aarch64_feature_fp_v8_3a): Likewise.
	(aarch64_feature_v8_4a): Likewise.
	(aarch64_feature_fp_16_v8_2a): Likewise.
	(aarch64_feature_v8_5a): Likewise.
	(aarch64_feature_v8_6a): Likewise.
	(aarch64_feature_v8_7a): Likewise.
	(aarch64_feature_v8r): Updated name: v8_r-> v8r.
	(ARMV8R): Updated name: V8_R-> V8R.
	(ARMV8_2A): A-suffix added.
	(ARMV8_3A): Likewise.
	(FP_V8_3A): Likewise.
	(ARMV8_4A): Likewise.
	(FP_F16_V8_2A): Likewise.
	(ARMV8_5): Likewise.
	(ARMV8_6A): Likewise.
	(ARMV8_6A_SVE): Likewise.
	(ARMV8_7A): Likewise.
	(V8_2A_INSN): `A' added to macro symbol.
	(V8_3A_INSN): Likewise.
	(V8_4A_INSN): Likewise.
	(FP16_V8_2A_INSN): Likewise.
	(V8_5A_INSN): Likewise.
	(V8_6A_INSN): Likewise.
	(V8_7A_INSN): Likewise.
	(V8R_INSN): Updated name: V8_R-> V8R.

gas/ChangeLog:

2023-08-17  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* config/tc-bpf.c (check_immediate_overflow): New function.
	(encode_insn): Use check_immediate_overflow.
	(md_assemble): Do not relax instructions with
	constant disp16 fields.
	* doc/c-bpf.texi (BPF Instructions): Add note about how numerical
	literal values are interpreted for instruction immediate operands.
	* testsuite/gas/bpf/disp16-overflow.s: Adapt accordingly.
	* testsuite/gas/bpf/jump-relax-jump.s: Likewise.
	* testsuite/gas/bpf/jump-relax-jump.d: Likewise.
	* testsuite/gas/bpf/jump-relax-jump-be.d: Likewise.
	* testsuite/gas/bpf/jump-relax-ja.s: Likewise.
	* testsuite/gas/bpf/jump-relax-ja.d: Likewise.
	* testsuite/gas/bpf/jump-relax-ja-be.d: Likewise.
	* testsuite/gas/bpf/disp16-overflow-relax.l: Likewise.
	* testsuite/gas/bpf/imm32-overflow.s: Likewise.
	* testsuite/gas/bpf/disp32-overflow.s: Likewise.
	* testsuite/gas/bpf/disp16-overflow.l: Likewise.
	* testsuite/gas/bpf/disp32-overflow.l: Likewise.
	* testsuite/gas/bpf/imm32-overflow.l: Likewise.
	* testsuite/gas/bpf/offset16-overflow.l: Likewise.

bfd/ChangeLog:

	* cpu-aarch64.c: Add Cortex-A720.

gas/ChangeLog:

	* NEWS: Update docs.
	* config/tc-aarch64.c: Add Cortex-A720.
	* doc/c-aarch64.texi: Update docs.
	* testsuite/gas/aarch64/cpu-cortex-a720.d: New test.

gas/ChangeLog:

	* testsuite/gas/riscv/x-thead-ba-fail.l: Replace
	18446744073709551615 with generic regular expression.
	* testsuite/gas/riscv/x-thead-bb-fail.l: Likewise.
	* testsuite/gas/riscv/x-thead-bs-fail.l: Likewise.
	* testsuite/gas/riscv/x-thead-fmemidx-fail.l: Likewise.
	* testsuite/gas/riscv/x-thead-memidx-fail.l: Likewise.
	* testsuite/gas/riscv/x-thead-mempair-fail.l: Likewise.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add new
	instruction class handling.
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zfa-zvfh.s: New test.
	* testsuite/gas/riscv/zfa-zvfh.d: Ditto.

include/ChangeLog:

	* opcode/riscv.h (enum riscv_insn_class): Add new instruction
	class.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Change instruction class of "fli.h"
	from INSN_CLASS_ZFH_AND_ZFA to new INSN_CLASS_ZFH_OR_ZVFH_AND_ZFA.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_supported_std_z_ext): Add 'Zihintntl'
	standard hint 'Z' extension.
	(riscv_multi_subset_supports): Support new instruction classes.
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zihintntl.s: New test for 'Zihintntl'
	including auto-compression without C prefix and explicit C prefix.
	* testsuite/gas/riscv/zihintntl.d: Likewise.
	* testsuite/gas/riscv/zihintntl-na.d: Likewise.
	* testsuite/gas/riscv/zihintntl-base.s: New test for correspondence
	between 'Zihintntl' and base 'I' or 'C' instructions.
	* testsuite/gas/riscv/zihintntl-base.d: Likewise.

include/ChangeLog:

	* opcode/riscv.h (enum riscv_insn_class): Add new instruction
	classes: INSN_CLASS_ZIHINTNTL and INSN_CLASS_ZIHINTNTL_AND_C.
	(MASK_NTL_P1, MATCH_NTL_P1, MASK_NTL_PALL,
	MATCH_NTL_PALL, MASK_NTL_S1, MATCH_NTL_S1, MASK_NTL_ALL,
	MATCH_NTL_ALL, MASK_C_NTL_P1, MATCH_C_NTL_P1, MASK_C_NTL_PALL,
	MATCH_C_NTL_PALL, MASK_C_NTL_S1, MATCH_C_NTL_S1, MASK_C_NTL_ALL,
	MATCH_C_NTL_ALL): New.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Add instructions from the
	'Zihintntl' extension.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Make sure that we never match to
	vmsge{,u}.vx instructions unless specified in the assembler.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_supported_std_z_ext): Remove 'Zve32d'
	extension from the list.

gas/ChangeLog:

	* NEWS: Update docs.
	* config/tc-aarch64.c: Add Cortex-A520.
	* doc/c-aarch64.texi: Update docs.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_supported_std_z_ext): Update the version
	number of the 'Ztso' extension since it's ratified.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets): Add implications
	related to 'Zvfh' and 'Zvfhmin' extensions.
	(riscv_supported_std_z_ext) Add 'Zvfh' and 'Zvfhmin' to the list.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets): Add 'Zve32x' -> 'Zicsr'.

opcodes/ChangeLog:

2023-07-31  Jose E. Marchesi  <jose.marchesi@oracle.com>

	PR 30705
	* bpf-dis.c (print_insn_bpf): Check that info->section->owner is
	actually available before using it.

gas/ChangeLog:

	* testsuite/gas/riscv/rouding-fail.s: Moved to...
	* testsuite/gas/riscv/rounding-fail.s: ...here.
	* testsuite/gas/riscv/rouding-fail.d: Moved to...
	* testsuite/gas/riscv/rounding-fail.d: ...here.
	* testsuite/gas/riscv/rouding-fail.l: Moved to...
	* testsuite/gas/riscv/rounding-fail.l: ...here.

include/ChangeLog:

2023-07-30  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* elf/bpf.h (EF_BPF_CPUVER): Define.
	* opcode/bpf.h (BPF_XBPF): Change from 0xf to 0xff so it fits in
	EF_BPF_CPUVER.

binutils/ChangeLog:

2023-07-30  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* readelf.c (get_machine_flags): Recognize and pretty print BPF
	machine flags.

opcodes/ChangeLog:

2023-07-30  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* bpf-dis.c: Initialize asm_bpf_version to -1.
	(print_insn_bpf): Set BPF ISA version from the cpu version ELF
	header flags if no explicit version set in the command line.
	* disassemble.c (disassemble_init_for_target): Remove unused code.

gas/ChangeLog:

2023-07-30  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* config/tc-bpf.h (elf_tc_final_processing): Define.
	* config/tc-bpf.c (bpf_elf_final_processing): New function.

gas/ChangeLog:

2023-07-30  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* config/tc-bpf.c (signed_overflow): Copy function from
	tc-aarch64.c.
	(encode_insn): Check for overflow in constant immediates.
	(add_relaxed_insn): Pass relax argument to encode_insn.
	(add_fixed_insn): Likewise.
	* testsuite/gas/bpf/disp16-overflow.d: New file.
	* testsuite/gas/bpf/disp16-overflow.s: Likewise.
	* testsuite/gas/bpf/disp16-overflow.l: Likewise.
	* testsuite/gas/bpf/disp32-overflow.d: Likewise.
	* testsuite/gas/bpf/disp32-overflow.s: Likewise.
	* testsuite/gas/bpf/disp32-overflow.l: Likewise.
	* testsuite/gas/bpf/imm32-overflow.d: Likewise.
	* testsuite/gas/bpf/imm32-overflow.s: Likewise.
	* testsuite/gas/bpf/imm32-overflow.l: Likewise.
	* testsuite/gas/bpf/offset16-overflow.d: Likewise.
	* testsuite/gas/bpf/offset16-overflow.s: Likewise.
	* testsuite/gas/bpf/offset16-overflow.l: Likewise.
	* testsuite/gas/bpf/disp16-overflow-relax.d: Likewise.
	* testsuite/gas/bpf/disp16-overflow-relax.l: Likewise.
	* testsuite/gas/bpf/disp16-overflow-relax.s: Likewise.
	* testsuite/gas/bpf/jump-relax-jump-be.d: New file.
	* testsuite/gas/bpf/bpf.exp: Run new tests.

gas/ChangeLog:

2023-07-28  Jose E. Marchesi  <jose.marchesi@oracle.com>

	PR gas/30690
	* config/tc-bpf.c (struct bpf_insn): Add fields is_relaxable and
	relaxed_exp.
	(enum options): Add OPTION_NO_RELAX.
	(md_longopts): Likewise for -mno-relax.
	(do_relax): New global.
	(md_parse_option): Handle OPTION_NO_RELAX.
	(RELAX_BRANCH_ENCODE): Define.
	(RELAX_BRANCH_P): Likewise.
	(RELAX_BRANCH_LENGTH): Likewise.
	(RELAX_BRANCH_CONST): Likewise.
	(RELAX_BRANCH_UNCOND): Likewise.
	(relaxed_branch_length): New function.
	(md_estimate_size_before_relax): Likewise.
	(read_insn_word): Likewise.
	(encode_int16): Likewise.
	(encode_int32): Likewise.
	(write_insn_bytes): Likewise.
	(md_convert_frag): Likewise.
	(encode_insn): Likewise.
	(install_insn_fixups): Likewise.
	(add_fixed_insn): Likewise.
	(add_relaxed_insn): Likewise.
	(md_assemble): Move instruction encoding logic to the above
	new functions.
	* testsuite/gas/bpf/jump-relax-ja.d: New test.
	* testsuite/gas/bpf/jump-relax-ja-be.d: Likewise.
	* testsuite/gas/bpf/jump-relax-ja.s: And corresponding source.
	* testsuite/gas/bpf/jump-relax-jump.d: New test.
	* testsuite/gas/bpf/jump-relax-jump-be.d: Likewise.
	* testsuite/gas/bpf/jump-relax-jump.s: And corresponding source.
	* testsuite/gas/bpf/bpf.exp: Run new tests.
	* doc/c-bpf.texi (BPF Options): Document -mno-relax.

ld/ChangeLog:
	* emulparams/elf64bmip-defs.sh: Include `.interp' with
	INITIAL_READONLY_SECTIONS.
	* testsuite/ld-mips-elf/pie-n64.d: Adjust addresses.
	* testsuite/ld-mips-elf/sections-1-o32.rd: New test.
	* testsuite/ld-mips-elf/sections-1-o32t.rd: New test.
	* testsuite/ld-mips-elf/sections-1-n32.rd: New test.
	* testsuite/ld-mips-elf/sections-1-n32t.rd: New test.
	* testsuite/ld-mips-elf/sections-1-n32p.rd: New test.
	* testsuite/ld-mips-elf/sections-1-n64.rd: New test.
	* testsuite/ld-mips-elf/sections-1-n64t.rd: New test.
	* testsuite/ld-mips-elf/sections-2-o32.rd: New test.
	* testsuite/ld-mips-elf/sections-2-o32t.rd: New test.
	* testsuite/ld-mips-elf/sections-2-n32.rd: New test.
	* testsuite/ld-mips-elf/sections-2-n32t.rd: New test.
	* testsuite/ld-mips-elf/sections-2-n32p.rd: New test.
	* testsuite/ld-mips-elf/sections-2-n64.rd: New test.
	* testsuite/ld-mips-elf/sections-2-n64t.rd: New test.
	* testsuite/ld-mips-elf/sections.s: New test source.
	* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets) Add implications from
	'Zvkn' and 'Zvks'.  (riscv_supported_std_z_ext): Add 'Zvkt' to
	the supported extension list.

gas/ChangeLog:

	* NEWS: Support Intel PBNDKB.
	* config/tc-i386.c: Add pbndkb.
	* doc/c-i386.texi: Document .pbndkb.
	* testsuite/gas/i386/i386.exp: Add PBNDKB tests.
	* testsuite/gas/i386/x86-64.exp: Ditto.
	* testsuite/gas/i386/pbndkb-inval.l: New test.
	* testsuite/gas/i386/pbndkb-inval.s: Ditto.
	* testsuite/gas/i386/x86-64-pbndkb-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-pbndkb.d: Ditto.
	* testsuite/gas/i386/x86-64-pbndkb.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (X86_64_0F01_REG_0_MOD_3_RM_7): New.
	(X86_64_0F01_REG_0_MOD_3_RM_7_P_0): Ditto.
	(prefix_table): Add PREFIX_0F01_REG_0_MOD_3_RM_7.
	(x86_64_table): Add X86_64_0F01_REG_0_MOD_3_RM_7_P_0.
	(rm_table): New entry for pbndkb.
	* i386-gen.c (cpu_flag): Add PBNDKB.
	* i386-init.h: Regenerated.
	* i386-mnem.h: Ditto.
	* i386-opc.h (CpuPBNDKB): New.
	(i386_cpu_flags): Add cpupbndkb.
	* i386-opc.tbl: Add PBNDKB instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

	* NEWS: Support Intel SM4.
	* config/tc-i386.c: Add sm4.
	* doc/c-i386.texi: Document .sm4.
	* testsuite/gas/i386/i386.exp: Run SM4 tests.
	* testsuite/gas/i386/x86-64.exp: Ditto.
	* testsuite/gas/i386/sm4-intel.d: Add SM4 tests.
	* testsuite/gas/i386/sm4.d: Ditto.
	* testsuite/gas/i386/sm4.s: Ditto.
	* testsuite/gas/i386/x86-64-sm4-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-sm4.d: Ditto.
	* testsuite/gas/i386/x86-64-sm4.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (prefix_table): Add SM4 instructions.
	* i386-gen.c (isa_dependencies): Add SM4.
	(cpu_flags): Ditto.
	* i386-init.h: Regenerated.
	* i386-mnem.h: Ditto.
	* i386-opc.h (CpuSM4): New.
	(i386_cpu_flags): Add cpusm4.
	* i386-opc.tbl: Add SM4 instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

	* NEWS: Support Intel SM3.
	* config/tc-i386.c: Add sm3.
	* doc/c-i386.texi: Document .sm3.
	* testsuite/gas/i386/i386.exp: Run sm3 tests.
	* testsuite/gas/i386/x86-64.exp: Ditto.
	* testsuite/gas/i386/sm3-intel.d: New test.
	* testsuite/gas/i386/sm3.d: Ditto.
	* testsuite/gas/i386/sm3.s: Ditto.
	* testsuite/gas/i386/x86-64-sm3-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-sm3.d: Ditto.
	* testsuite/gas/i386/x86-64-sm3.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (PREFIX_VEX_0F38DA_W_0): New.
	(VEX_LEN_0F38DA_W_0_P_0): Ditto.
	(VEX_LEN_0F38DA_W_0_P_2): Ditto.
	(VEX_LEN_0F3ADE_W_0): Ditto.
	(VEX_W_0F38DA): Ditto.
	(VEX_W_0F3ADE): Ditto.
	(prefix_table): Add PREFIX_VEX_0F38DA_W_0.
	(vex_len_table): Add VEX_LEN_0F38DA_W_0_P_0,
	VEX_LEN_0F38DA_W_0_P_2, VEX_LEN_0F3ADE_W_0.
	(vex_w_table): Add VEX_W_0F38DA, VEX_W_0F3ADE.
	* i386-gen.c (isa_dependencies): Add SM3.
	(cpu_flags): Ditto.
	* i386-init.h: Regenerated.
	* i386-mnem.h: Ditto.
	* i386-opc.h (CpuSM3): New.
	(i386_cpu_flags): Add cpusm3.
	* i386-opc.tbl: Add SM3 instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

	* NEWS: Support Intel SHA512.
	* config/tc-i386.c: Add sha512.
	* doc/c-i386.texi: Document .sha512.
	* testsuite/gas/i386/disassem.d: Add SHA512 tests.
	* testsuite/gas/i386/disassem.s: Ditto.
	* testsuite/gas/i386/i386.exp: Run SHA512 tests.
	* testsuite/gas/i386/x86-64.exp: Ditto.
	* testsuite/gas/i386/sha512-intel.d: New test.
	* testsuite/gas/i386/sha512-inval.l: Ditto.
	* testsuite/gas/i386/sha512-inval.s: Ditto.
	* testsuite/gas/i386/sha512.d: Ditto.
	* testsuite/gas/i386/sha512.s: Ditto.
	* testsuite/gas/i386/x86-64-sha512-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-sha512-inval.l: Ditto.
	* testsuite/gas/i386/x86-64-sha512-inval.s: Ditto.
	* testsuite/gas/i386/x86-64-sha512.d: Ditto.
	* testsuite/gas/i386/x86-64-sha512.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (Rxmmq): New.
	(Rymm): Ditto.
	(PREFIX_VEX_0F38CB): Ditto.
	(PREFIX_VEX_0F38CC): Ditto.
	(PREFIX_VEX_0F38CD): Ditto.
	(VEX_LEN_0F38CB_P_3_W_0): Ditto.
	(VEX_LEN_0F38CC_P_3_W_0): Ditto.
	(VEX_LEN_0F38CD_P_3_W_0): Ditto.
	(VEX_W_0F38CB_P_3): Ditto.
	(VEX_W_0F38CC_P_3): Ditto.
	(VEX_W_0F38CD_P_3): Ditto.
	(prefix_table): Add PREFIX_VEX_0F38CB, PREFIX_VEX_0F38CC,
	PREFIX_VEX_0F38CD.
	(vex_len_table): Add VEX_LEN_0F38CB_P_3_W_0,
	VEX_LEN_0F38CC_P_3_W_0, VEX_LEN_0F38CD_P_3_W_0.
	(vex_w_table): Add VEX_W_0F38CB_P_3, VEX_W_0F38CC_P_3, VEX_W_0F38CD_P_3.
	* i386-gen.c (isa_dependencies): Add SHA512.
	(cpu_flags): Ditto.
	* i386-init.h: Regenerated.
	* i386-mnem.h: Ditto.
	* i386-opc.h (CpuSHA512): New.
	(i386_cpu_flags): Add cpusha512.
	* i386-opc.tbl: Add SHA512 instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

	* NEWS: Support Intel AVX-VNNI-INT16.
	* config/tc-i386.c: Add avx_vnni_int16.
	* doc/c-i386.texi: Document avx_vnni_int16.
	* testsuite/gas/i386/i386.exp: Run AVX VNNI INT16 tests.
	* testsuite/gas/i386/x86-64.exp: Ditto.
	* testsuite/gas/i386/avx-vnni-int16-intel.d: New test.
	* testsuite/gas/i386/avx-vnni-int16.d: New test.
	* testsuite/gas/i386/avx-vnni-int16.s: New test.
	* testsuite/gas/i386/x86-64-avx-vnni-int16-intel.d: New test.
	* testsuite/gas/i386/x86-64-avx-vnni-int16.d: New test.
	* testsuite/gas/i386/x86-64-avx-vnni-int16.s: New test.

opcodes/ChangeLog:

	* i386-dis.c (PREFIX_VEX_0F38D2_W_0): New.
	(PREFIX_VEX_0F38D3_W_0): Ditto.
	(VEX_W_0F38D2_P_0): Ditto.
	(VEX_W_0F38D2_P_1): Ditto.
	(VEX_W_0F38D2_P_2): Ditto.
	(VEX_W_0F38D3_P_0): Ditto.
	(VEX_W_0F38D3_P_1): Ditto.
	(VEX_W_0F38D3_P_2): Ditto.
	(prefix_table): Add PREFIX_VEX_0F38D2_W_0 and
	PREFIX_VEX_0F38D3_W_0.
	(vex_table): Add VEX_W_0F38D2 and VEX_W_0F38D3.
	(vex_w_table): Ditto.
	* i386-gen.c (isa_dependencies): Add AVX_VNNI_INT16.
	(cpu_flag): Ditto.
	* i386-init.h: Regenerated.
	* i386-mnem.h: Ditto.
	* i386-opc.h: (CpuAVX_VNNI_INT16): New.
	* i386-opc.tbl: Add Intel AVX_VNNI_INT16 instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

2023-07-26  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* testsuite/gas/bpf/alu.s: Add test for NEGI and NEG32I.
	* testsuite/gas/bpf/alu32.s: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu.d: Add expected results.
	* testsuite/gas/bpf/alu-be.d: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu32.d: Likewise.
	* testsuite/gas/bpf/alu32-be.d: Likewise.
	* testsuite/gas/bpf/alu32-be-pseudoc.d: Likewise.

opcodes/ChangeLog:

2023-07-26  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* bpf-opc.c (bpf_opcodes): Fix BPF_INSN_NEGR to not use a src
	register.

gas/ChangeLog:

2023-07-26  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* testsuite/gas/bpf/alu.s: The register neg instruction gets only
	one argument.
	* testsuite/gas/bpf/alu32-be-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu32-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu-be.d: Likewise.
	* testsuite/gas/bpf/alu.d: Likewise.
	* testsuite/gas/bpf/alu32-be.d: Likewise.
	* testsuite/gas/bpf/alu32.d: Likewise.
	* testsuite/gas/bpf/alu32.s: Likewise.
	* doc/c-bpf.texi (BPF Instructions): Update accordingly.

gas/ChangeLog:

	* config/tc-riscv.c (s_riscv_option): Enable RVC also when the
	'Zca' extension is enabled after an ".option arch" directive.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets): Add two implications,
	'Zcf' -> 'F' and 'Zcd' -> 'D'.

gas/ChangeLog:

	* testsuite/gas/riscv/march-imply-zcd.d: New test.
	* testsuite/gas/riscv/march-imply-zcf.d: New test.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_parse_check_conflicts): Prohibit
	combination of RV64 and 'Zcf'.

gas/ChangeLog:

	* testsuite/gas/riscv/march-fail-rv64i_zcf.d: New test.
	* testsuite/gas/riscv/march-fail-rv64i_zcf.l: Likewise.

bfd/ChangeLog:

	* elfnn-loongarch.c (elfNN_allocate_local_ifunc_dynrelocs): Return
	type change to int.
	(loongarch_elf_size_dynamic_sections): Delete (void *).
	(loongarch_elf_finish_dynamic_symbol): Use loongarch_elf_append_rela
	insert IRELATIVE relocation to .rela.dyn.
	(elfNN_loongarch_finish_local_dynamic_symbol): Return type change to
	int.
	(loongarch_elf_finish_dynamic_sections): Delete process of local
	ifunc symbols.
	(elf_backend_output_arch_local_syms): New.

ld/ChangeLog:

	* testsuite/ld-loongarch-elf/local-ifunc-reloc.d: Regenerated.

bfd/ChangeLog:

	* elfxx-loongarch.c (reloc_bits_pcrel20_s2): Delete.
	(reloc_bits_b16): Delete.
	(reloc_bits_b21): Delete.
	(reloc_bits_b26): Delete.
	(reloc_sign_bits): New.

bfd/ChangeLog:

	* elfnn-loongarch.c (RELOCATE_CALC_PC32_HI20): Redefined.
	(RELOCATE_CALC_PC64_HI32): Redefined.

include/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* opcode/bpf.h (BPF_IMM32_BSWAP16): Define.
	(BPF_IMM32_BSWAP32): Likewise.
	(BPF_IMM32_BSWAP64): Likewise.
	(enum bpf_insn_id): New entries BPF_INSN_BSWAP{16,32,64}.

opcodes/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* bpf-opc.c (bpf_opcodes): Add entries for the BSWAP*
	instructions.

gas/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* doc/c-bpf.texi (BPF Instructions): Document BSWAP* instructions.
	* testsuite/gas/bpf/alu.s: Test BSWAP{16,32,64} instructions.
	* testsuite/gas/bpf/alu.d: Likewise.
	* testsuite/gas/bpf/alu-be.d: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.

gas/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* doc/c-bpf.texi (BPF Instructions): The pseudoc syntax for MOVS*
	doesn't use `s=' but `='.

opcodes/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* bpf-opc.c (bpf_opcodes): Fix pseudo-c syntax for MOVS* and LDXS*
	instructions.

gas/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* doc/c-bpf.texi (BPF Instructions): Fix pseudoc syntax for MOVS*
	and LDXS* instructions.
	* testsuite/gas/bpf/mem-pseudoc.d: Likewise.
	* testsuite/gas/bpf/mem-be-pseudoc.d: Likewise.
	* testsuite/gas/bpf/mem-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu32-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu32-be-pseudoc.d: Likewise.

bfd/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* reloc.c: New reloc BFD_RELOC_BPF_DISPCALL32.
	* elf64-bpf.c (bpf_reloc_type_lookup): Handle the new reloc.
	* libbfd.h (bfd_reloc_code_real_names): Regenerate.

gas/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* config/tc-bpf.c (struct bpf_insn): New field `id'.
	(md_assemble): Save the ids of successfully parsed instructions
	and use the new BFD_RELOC_BPF_DISPCALL32 whenever appropriate.
	(md_apply_fix): Adapt to the new BFD reloc.
	* testsuite/gas/bpf/jump.s: Test JAL.
	* testsuite/gas/bpf/jump.d: Likewise.
	* testsuite/gas/bpf/jump-pseudoc.d: Likewise.
	* testsuite/gas/bpf/jump-be.d: Likewise.
	* testsuite/gas/bpf/jump-be-pseudoc.d: Likewise.
	* doc/c-bpf.texi (BPF Instructions): Document new instruction
	jal/gotol.
	Document new operand type disp32.

include/ChangeLog:

2023-07-24  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* opcode/bpf.h (enum bpf_insn_id): Add entry BPF_INSN_JAL.
	(enum bpf_insn_id): Remove spurious entry BPF_INSN_CALLI.

opcodes/ChangeLog:

2023-07-23  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* bpf-opc.c (bpf_opcodes): Add entry for jal.

include/ChangeLog:

2023-07-21  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* opcode/bpf.h (enum bpf_insn_id): Add entries for signed load
	instructions.
	(BPF_MODE_SMEM): Define.

opcodes/ChangeLog:

2023-07-21  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* bpf-opc.c (bpf_opcodes): Add entries for LDXS{B,W,H,DW}
	instructions.

gas/ChangeLog:

2023-07-21  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* testsuite/gas/bpf/mem.s: Add signed load instructions.
	* testsuite/gas/bpf/mem-pseudoc.s: Likewise.
	* testsuite/gas/bpf/mem.d: Likewise.
	* testsuite/gas/bpf/mem-pseudoc.d: Likewise.
	* testsuite/gas/bpf/mem-be.d: Likewise.
	* doc/c-bpf.texi (BPF Instructions): Document the signed load
	instructions.

include/ChangeLog:

2023-07-21  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* opcode/bpf.h (BPF_OFFSET16_MOVS8): Define.
	(BPF_OFFSET16_MOVS16): Likewise.
	(BPF_OFFSET16_MOVS32): Likewise.
	(enum bpf_insn_id): Add entries for MOVS{8,16,32}R and
	MOVS32{8,16,32}R.

opcodes/ChangeLog:

2023-07-21  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* bpf-opc.c (bpf_opcodes): Add entries for MOVS{8,16,32}R and
	MOVS32{8,16,32}R instructions.  and MOVS32I instructions.

gas/ChangeLog:

2023-07-21  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* testsuite/gas/bpf/alu.s: Test movs instructions.
	* testsuite/gas/bpf/alu-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu32.s: Likewise for movs32 instruction.
	* testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu.d: Add expected results.
	* testsuite/gas/bpf/alu32.d: Likewise.
	* testsuite/gas/bpf/alu-be.d: Likewise.
	* testsuite/gas/bpf/alu32-be.d: Likewise.
	* testsuite/gas/bpf/alu-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu32-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu-be-pseudoc.d: Likewise.
	* testsuite/gas/bpf/alu32-be-pseudoc.d: Likewise.

opcodes/ChangeLog:

2023-07-21  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* Makefile.am (TARGET64_LIBOPCODES_CFILES): Add missing bpf-dis.c
	* Makefile.in: Regenerate.

bfd/ChangeLog:

        * elfxx-riscv.c (riscv_multi_subset_supports): New extension.
        (riscv_multi_subset_supports_ext): Ditto.

gas/ChangeLog:

        * config/tc-riscv.c (validate_riscv_insn): New operators.
        (riscv_ip): Ditto.
        * testsuite/gas/riscv/zcb.d: New test.
        * testsuite/gas/riscv/zcb.s: New test.

include/ChangeLog:

        * opcode/riscv-opc.h (MATCH_C_LBU): New opcode.
        (MASK_C_LBU): New mask.
        (MATCH_C_LHU): New opcode.
        (MASK_C_LHU): New mask.
        (MATCH_C_LH): New opcode.
        (MASK_C_LH): New mask.
        (MATCH_C_SB): New opcode.
        (MASK_C_SB): New mask.
        (MATCH_C_SH): New opcode.
        (MASK_C_SH): New mask.
        (MATCH_C_ZEXT_B): New opcode.
        (MASK_C_ZEXT_B): New mask.
        (MATCH_C_SEXT_B): New opcode.
        (MASK_C_SEXT_B): New mask.
        (MATCH_C_ZEXT_H): New opcode.
        (MASK_C_ZEXT_H): New mask.
        (MATCH_C_SEXT_H): New opcode.
        (MASK_C_SEXT_H): New mask.
        (MATCH_C_ZEXT_W): New opcode.
        (MASK_C_ZEXT_W): New mask.
        (MATCH_C_NOT): New opcode.
        (MASK_C_NOT): New mask.
        (MATCH_C_MUL): New opcode.
        (MASK_C_MUL): New mask.
        (DECLARE_INSN): New opcode.
        * opcode/riscv.h (EXTRACT_ZCB_BYTE_UIMM): New inline func.
        (EXTRACT_ZCB_HALFWORD_UIMM): Ditto.
        (ENCODE_ZCB_BYTE_UIMM): Ditto.
        (ENCODE_ZCB_HALFWORD_UIMM): Ditto.
        (VALID_ZCB_BYTE_UIMM): Ditto.
        (VALID_ZCB_HALFWORD_UIMM): Ditto.
        (enum riscv_insn_class): New extension class.

opcodes/ChangeLog:

        * riscv-dis.c (print_insn_args): New operators.
        * riscv-opc.c: New instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): New extensions.
	(riscv_multi_subset_supports_ext): Ditto.

gas/ChangeLog:

	* config/tc-riscv.c (riscv_set_arch): Extend compress check.
	* testsuite/gas/riscv/zca.d: New test.
	* testsuite/gas/riscv/zca.s: New test.
	* testsuite/gas/riscv/zcd.d: New test.
	* testsuite/gas/riscv/zcd.s: New test.
	* testsuite/gas/riscv/zcf.d: New test.
	* testsuite/gas/riscv/zcf.s: New test.

ld/ChangeLog:

	* testsuite/ld-elf/indirect.exp: use run_host_cmd_yesno
	instead of handwrite catch exec $CC_FOR_TARGET.

ld/ChangeLog:

	* testsuite/ld-elf/indirect.exp(run_tests): use [list [list]]
	syntax instead of {{}}.

gas/ChangeLog:

	* NEWS: Mention LoongArch changes for 2.41.

binutils/ChangeLog:

	* NEWS: Mention LoongArch changes for 2.41.

gas/ChangeLog:

	* config/tc-loongarch.c: Don't include libbfd.h.

Fixes: d2fddb6d783 ("LoongArch: Fix ld "undefined reference" error with --enable-shared")

opcodes/ChangeLog:

	* loongarch-opc.c: Mark the offset operands as "so" for
	{,x}v{ld,st}, {,x}v{ldrepl,stelm}.[bhwd], and {ld,st}[lr].[wd].

binutils/ChangeLog:

	* NEWS: Announce new RISC-V vector crypto extensions.

bfd/ChangeLog:

	* elfxx-riscv.c: Define Zvksc extension.

gas/ChangeLog:

	* testsuite/gas/riscv/zvksc.d: New test.
	* testsuite/gas/riscv/zvksc.s: New test.

bfd/ChangeLog:

	* elfxx-riscv.c: Define Zvknc extension.

gas/ChangeLog:

	* testsuite/gas/riscv/zvknc.d: New test.
	* testsuite/gas/riscv/zvknc.s: New test.

bfd/ChangeLog:

	* elfxx-riscv.c: Define Zvksg extension.

gas/ChangeLog:

	* testsuite/gas/riscv/zvksg.d: New test.
	* testsuite/gas/riscv/zvksg.s: New test.

bfd/ChangeLog:

	* elfxx-riscv.c: Define Zvks extension.

gas/ChangeLog:

	* testsuite/gas/riscv/zvks.d: New test.
	* testsuite/gas/riscv/zvks.s: New test.

bfd/ChangeLog:

	* elfxx-riscv.c: Define Zvkng extension.

gas/ChangeLog:

	* testsuite/gas/riscv/zvkng.d: New test.
	* testsuite/gas/riscv/zvkng.s: New test.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_parse_add_implicit_subsets): Allow nested
	implications for extensions.

bfd/ChangeLog:

	* elfxx-riscv.c: Define Zvkn extension.

gas/ChangeLog:

	* testsuite/gas/riscv/zvkn.d: New test.
	* testsuite/gas/riscv/zvkn.s: New test.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add instruction
	class support for Zvksh.
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zvksh.d: New test.
	* testsuite/gas/riscv/zvksh.s: New test.

include/ChangeLog:

	* opcode/riscv-opc.h (MATCH_VSM3C_VI): New.
	(MASK_VSM3C_VI): New.
	(MATCH_VSM3ME_VV): New.
	(MASK_VSM3ME_VV): New.
	(DECLARE_INSN): New.
	* opcode/riscv.h (enum riscv_insn_class): Add instruction class
	support for Zvksh.

opcodes/ChangeLog:

	* riscv-opc.c: Add Zvksh instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add instruction
	class support for Zvksed.
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zvksed.d: New test.
	* testsuite/gas/riscv/zvksed.s: New test.

include/ChangeLog:

	* opcode/riscv-opc.h (MATCH_VSM4K_VI): New.
	(MASK_VSM4K_VI): New.
	(MATCH_VSM4R_VS): New.
	(MASK_VSM4R_VS): New.
	(MATCH_VSM4R_VV): New.
	(MASK_VSM4R_VV): New.
	(DECLARE_INSN): New.
	* opcode/riscv.h (enum riscv_insn_class): Add instruction class
	support for Zvksed.

opcodes/ChangeLog:

	* riscv-opc.c: Add Zvksed instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add instruction
	class support for Zvknh[a,b].
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zvknha.d: New test.
	* testsuite/gas/riscv/zvknha_zvknhb.s: New test.
	* testsuite/gas/riscv/zvknhb.d: New test.

include/ChangeLog:

	* opcode/riscv-opc.h (MATCH_VSHA2CH_VV): New.
	(MASK_VSHA2CH_VV): New.
	(MATCH_VSHA2CL_VV): New.
	(MASK_VSHA2CL_VV): New.
	(MATCH_VSHA2MS_VV): New.
	(MASK_VSHA2MS_VV): New.
	(DECLARE_INSN): New.
	* opcode/riscv.h (enum riscv_insn_class): Add instruction class
	support for Zvknh[a,b].

opcodes/ChangeLog:

	* riscv-opc.c: Add Zvknh[a,b] instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add instruction
	class support for Zvkned.
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zvkned.d: New test.
	* testsuite/gas/riscv/zvkned.s: New test.

include/ChangeLog:

	* opcode/riscv-opc.h (MATCH_VAESDF_VS): New.
	(MASK_VAESDF_VS): New.
	(MATCH_VAESDF_VV): New.
	(MASK_VAESDF_VV): New.
	(MATCH_VAESDM_VS): New.
	(MASK_VAESDM_VS): New.
	(MATCH_VAESDM_VV): New.
	(MASK_VAESDM_VV): New.
	(MATCH_VAESEF_VS): New.
	(MASK_VAESEF_VS): New.
	(MATCH_VAESEF_VV): New.
	(MASK_VAESEF_VV): New.
	(MATCH_VAESEM_VS): New.
	(MASK_VAESEM_VS): New.
	(MATCH_VAESEM_VV): New.
	(MASK_VAESEM_VV): New.
	(MATCH_VAESKF1_VI): New.
	(MASK_VAESKF1_VI): New.
	(MATCH_VAESKF2_VI): New.
	(MASK_VAESKF2_VI): New.
	(MATCH_VAESZ_VS): New.
	(MASK_VAESZ_VS): New.
	(DECLARE_INSN): New.
	* opcode/riscv.h (enum riscv_insn_class): Add instruction class
	support for Zvkned.

opcodes/ChangeLog:

	* riscv-opc.c: Add Zvkned instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add instruction
	class support for Zvkg.
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zvkg.d: New test.
	* testsuite/gas/riscv/zvkg.s: New test.

include/ChangeLog:

	* opcode/riscv-opc.h (MATCH_VGHSH_VV): New.
	(MASK_VGHSH_VV): New.
	(MATCH_VGMUL_VV): New.
	(MASK_VGMUL_VV): New.
	(DECLARE_INSN): New.
	* opcode/riscv.h (enum riscv_insn_class): Add instruction class
	support for Zvkg.

opcodes/ChangeLog:

	* riscv-opc.c: Add Zvkg instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add instruction
	class support for Zvbc.
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zvbc.d: New test.
	* testsuite/gas/riscv/zvbc.s: New test.

include/ChangeLog:

	* opcode/riscv-opc.h (MATCH_VCLMUL_VV): New.
	(MASK_VCLMUL_VV): New.
	(MATCH_VCLMUL_VX): New.
	(MASK_VCLMUL_VX): New.
	(MATCH_VCLMULH_VV): New.
	(MASK_VCLMULH_VV): New.
	(MATCH_VCLMULH_VX): New.
	(MASK_VCLMULH_VX): New.
	(DECLARE_INSN): New.
	* opcode/riscv.h (enum riscv_insn_class): Add instruction class
	  support for Zvbc.

opcodes/ChangeLog:

	* riscv-opc.c: Add Zvbc instruction.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add instruction
	class support for Zvbb.
	(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

	* config/tc-riscv.c (validate_riscv_insn): Add 'l' as new format
	string directive.
	(riscv_ip): Likewise.
	* testsuite/gas/riscv/zvbb.d: New test.
	* testsuite/gas/riscv/zvbb.s: New test.

include/ChangeLog:

	* opcode/riscv-opc.h (MATCH_VANDN_VV): New.
	(MASK_VANDN_VV): New.
	(MATCH_VANDN_VX): New.
	(MASK_VANDN_VX): New.
	(MATCH_VBREV8_V): New.
	(MASK_VBREV8_V): New.
	(MATCH_VBREV_V): New.
	(MASK_VBREV_V): New.
	(MATCH_VCLZ_V): New.
	(MASK_VCLZ_V): New.
	(MATCH_VCPOP_V): New.
	(MASK_VCPOP_V): New.
	(MATCH_VCTZ_V): New.
	(MASK_VCTZ_V): New.
	(MATCH_VREV8_V): New.
	(MASK_VREV8_V): New.
	(MATCH_VROL_VV): New.
	(MASK_VROL_VV): New.
	(MATCH_VROL_VX): New.
	(MASK_VROL_VX): New.
	(MATCH_VROR_VI): New.
	(MASK_VROR_VI): New.
	(MATCH_VROR_VV): New.
	(MASK_VROR_VV): New.
	(MATCH_VROR_VX): New.
	(MASK_VROR_VX): New.
	(MATCH_VWSLL_VI): New.
	(MASK_VWSLL_VI): New.
	(MATCH_VWSLL_VV): New.
	(MASK_VWSLL_VV): New.
	(MATCH_VWSLL_VX): New.
	(MASK_VWSLL_VX): New.
	(DECLARE_INSN): New.
	* opcode/riscv.h (EXTRACT_RVV_VI_UIMM6): New.
	(ENCODE_RVV_VI_UIMM6): New.
	(enum riscv_insn_class): Add instruction class for Zvbb.

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Add 'l' as new format string
	directive.
	* riscv-opc.c: Add Zvbb instructions.

binutils/ChangeLog:

	* binutils/NEWS: announce suuport for the new RISC-V
          extensions (Zicond, Zfa, XVentanaCondOps).

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Add instruction
	class support for 'Zfa' extension.
	(riscv_multi_subset_supports_ext): Likewise.
	(riscv_implicit_subsets): Add 'Zfa' -> 'F' dependency.

gas/ChangeLog:

	* config/tc-riscv.c (flt_lookup): New helper to lookup a float value
	in an array.
	(validate_riscv_insn): Add 'Wfv' as new format string directive.
	(riscv_ip): Likewise.
	* doc/c-riscv.texi: Add floating-point chapter and describe
	limiations of the Zfa FP literal parsing.
	* testsuite/gas/riscv/zfa-32.d: New test.
	* testsuite/gas/riscv/zfa-32.s: New test.
	* testsuite/gas/riscv/zfa-64.d: New test.
	* testsuite/gas/riscv/zfa-64.s: New test.
	* testsuite/gas/riscv/zfa-fail.d: New test.
	* testsuite/gas/riscv/zfa-fail.l: New test.
	* testsuite/gas/riscv/zfa-fail.s: New test.
	* testsuite/gas/riscv/zfa.d: New test.
	* testsuite/gas/riscv/zfa.s: New test.
	* testsuite/gas/riscv/zfa.s: New test.

	* opcode/riscv-opc.h (MATCH_FLI_H): New.
	(MASK_FLI_H): New.
	(MATCH_FMINM_H): New.
	(MASK_FMINM_H): New.
	(MATCH_FMAXM_H): New.
	(MASK_FMAXM_H): New.
	(MATCH_FROUND_H): New.
	(MASK_FROUND_H): New.
	(MATCH_FROUNDNX_H): New.
	(MASK_FROUNDNX_H): New.
	(MATCH_FLTQ_H): New.
	(MASK_FLTQ_H): New.
	(MATCH_FLEQ_H): New.
	(MASK_FLEQ_H): New.
	(MATCH_FLI_S): New.
	(MASK_FLI_S): New.
	(MATCH_FMINM_S): New.
	(MASK_FMINM_S): New.
	(MATCH_FMAXM_S): New.
	(MASK_FMAXM_S): New.
	(MATCH_FROUND_S): New.
	(MASK_FROUND_S): New.
	(MATCH_FROUNDNX_S): New.
	(MASK_FROUNDNX_S): New.
	(MATCH_FLTQ_S): New.
	(MASK_FLTQ_S): New.
	(MATCH_FLEQ_S): New.
	(MASK_FLEQ_S): New.
	(MATCH_FLI_D): New.
	(MASK_FLI_D): New.
	(MATCH_FMINM_D): New.
	(MASK_FMINM_D): New.
	(MATCH_FMAXM_D): New.
	(MASK_FMAXM_D): New.
	(MATCH_FROUND_D): New.
	(MASK_FROUND_D): New.
	(MATCH_FROUNDNX_D): New.
	(MASK_FROUNDNX_D): New.
	(MATCH_FLTQ_D): New.
	(MASK_FLTQ_D): New.
	(MATCH_FLEQ_D): New.
	(MASK_FLEQ_D): New.
	(MATCH_FLI_Q): New.
	(MASK_FLI_Q): New.
	(MATCH_FMINM_Q): New.
	(MASK_FMINM_Q): New.
	(MATCH_FMAXM_Q): New.
	(MASK_FMAXM_Q): New.
	(MATCH_FROUND_Q): New.
	(MASK_FROUND_Q): New.
	(MATCH_FROUNDNX_Q): New.
	(MASK_FROUNDNX_Q): New.
	(MATCH_FLTQ_Q): New.
	(MASK_FLTQ_Q): New.
	(MATCH_FLEQ_Q): New.
	(MASK_FLEQ_Q): New.
	(MATCH_FCVTMOD_W_D): New.
	(MASK_FCVTMOD_W_D): New.
	(MATCH_FMVH_X_D): New.
	(MASK_FMVH_X_D): New.
	(MATCH_FMVH_X_Q): New.
	(MASK_FMVH_X_Q): New.
	(MATCH_FMVP_D_X): New.
	(MASK_FMVP_D_X): New.
	(MATCH_FMVP_Q_X): New.
	(MASK_FMVP_Q_X): New.
	(DECLARE_INSN): New.
	* opcode/riscv.h (enum riscv_insn_class): Add instruction
	classes for the Zfa extension.

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Add support for
	new format string directive 'Wfv'.
	* riscv-opc.c: Add Zfa instructions.

Co-Developed-by: Tsukasa OI <research_trasio@irq.a4lg.com>
Co-Developed-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>

gas/ChangeLog:
	* config/tc-loongarch.c (md_parse_option): Add LARCH_opts.ase_lvz and
	LARCH_opts.ase_lbt.
	* testsuite/gas/loongarch/uleb128.d: Regenerated.
	* testsuite/gas/loongarch/lvz-lbt.d: New test.
	* testsuite/gas/loongarch/lvz-lbt.s: New test.

include/ChangeLog:
	* opcode/loongarch.h (ase_lvz): New.
	(ase_lbt): New.

opcodes/ChangeLog:
	* loongarch-dis.c (set_default_loongarch_dis_options): Add
	LARCH_opts.ase_lvz and LARCH_opts.ase_lbt.
	* loongarch-opc.c (struct loongarch_ase): Add LVZ and LBT instructions.

gas/ChangeLog:

	* config/tc-loongarch.c: Init canonical register ABI name
	mappings and deprecated register names.
	(loongarch_args_parser_can_match_arg_helper): Warn in case of
	deprecated register name usage.
	* testsuite/gas/loongarch/deprecated_reg_aliases.d: New test.
	* testsuite/gas/loongarch/deprecated_reg_aliases.l: Likewise.
	* testsuite/gas/loongarch/deprecated_reg_aliases.s: Likewise.

include/ChangeLog:

	* opcode/loongarch.h: Rename global variables.

opcodes/ChangeLog:

	* loongarch-opc.c: Rename the alternate/deprecated register name
	mappings, and move $x to the deprecated name map.

gas/ChangeLog:

	* testsuite/gas/loongarch/uleb128.d: Update test case.
	* testsuite/gas/loongarch/raw-insn.d: New test.
	* testsuite/gas/loongarch/raw-insn.s: Likewise.

opcodes/ChangeLog:

	* loongarch-dis.c (disassemble_one): Print ".word" if !opc.

ChangeLog:

	* testsuite/gas/loongarch/imm_ins.d: Update test case.
	* testsuite/gas/loongarch/imm_ins_32.d: Likewise.
	* testsuite/gas/loongarch/imm_op.d: Likewise.
	* testsuite/gas/loongarch/jmp_op.d: Likewise.
	* testsuite/gas/loongarch/load_store_op.d: Likewise.
	* testsuite/gas/loongarch/macro_op.d: Likewise.
	* testsuite/gas/loongarch/macro_op_32.d: Likewise.
	* testsuite/gas/loongarch/privilege_op.d: Likewise.
	* testsuite/gas/loongarch/uleb128.d: Likewise.
	* testsuite/gas/loongarch/vector.d: Likewise.

ld/ChangeLog:

	* testsuite/ld-loongarch-elf/jmp_op.d: Update test case.
	* testsuite/ld-loongarch-elf/macro_op.d: Likewise.
	* testsuite/ld-loongarch-elf/macro_op_32.d: Likewise.

opcodes/ChangeLog:

	* loongarch-dis.c (dis_one_arg): Remove the "(0x%x)" part from
	disassembly output of signed immediate operands.

opcodes/ChangeLog:

	* loongarch-dis.c (dis_one_arg): Style disassembled address
	offsets as such when the operand has a modifier char 'o'.
	* loongarch-opc.c: Add 'o' to operands that represent address
	offsets.

opcodes/ChangeLog:

	* disassemble.c: Mark LoongArch as created_styled_output=true.
	* loongarch-dis.c (dis_one_arg): Use fprintf_styled_func
	throughout with proper styles.

include/ChangeLog:

	* opcode/loongarch.h: Remove unused declarations.

opcodes/ChangeLog:

	* loongarch-dis.c (loongarch_parse_dis_options): Remove.
	(my_print_address_func): Likewise.
	(loongarch_disassemble_one): Likewise.

gas/ChangeLog:

	* config/tc-loongarch.c (get_loongarch_opcode): Ignore
	disassembler-only aliases.
	* testsuite/gas/loongarch/64_pcrel.d: Update test case.
	* testsuite/gas/loongarch/imm_ins.d: Likewise.
	* testsuite/gas/loongarch/imm_ins_32.d: Likewise.
	* testsuite/gas/loongarch/jmp_op.d: Likewise.
	* testsuite/gas/loongarch/li.d: Likewise.
	* testsuite/gas/loongarch/macro_op.d: Likewise.
	* testsuite/gas/loongarch/macro_op_32.d: Likewise.
	* testsuite/gas/loongarch/macro_op_large_abs.d: Likewise.
	* testsuite/gas/loongarch/macro_op_large_pc.d: Likewise.
	* testsuite/gas/loongarch/nop.d: Likewise.
	* testsuite/gas/loongarch/relax_align.d: Likewise.
	* testsuite/gas/loongarch/reloc.d: Likewise.

include/ChangeLog:

	* opcode/loongarch.h (INSN_DIS_ALIAS): Add.

ld/ChangeLog:

	* testsuite/ld-loongarch-elf/jmp_op.d: Update test case.
	* testsuite/ld-loongarch-elf/macro_op.d: Likewise.
	* testsuite/ld-loongarch-elf/macro_op_32.d: Likewise.
	* testsuite/ld-loongarch-elf/relax-align.dd: Likewise.

opcodes/ChangeLog:

	* loongarch-dis.c: Move register name map declarations to top.
	(get_loongarch_opcode_by_binfmt): Consider aliases when
	disassembling without the no-aliases option.
	(parse_loongarch_dis_option): Support the no-aliases option.
	* loongarch-opc.c: Collect pseudo instructions into a new
	dedicated table.

gas/ChangeLog:

	* testsuite/gas/loongarch/vector.d: New test.
	* testsuite/gas/loongarch/vector.s: New test.

gas/ChangeLog:

	* config/tc-loongarch.c (md_parse_option): Add lsx and lasx option.
	(loongarch_after_parse_args): Add lsx and lasx option.

opcodes/ChangeLog:

	* loongarch-opc.c (struct loongarch_ase): Add lsx and lasx
	instructions.

bfd/ChangeLog:

	* bfd-in2.h (not): Add R_LARCH_64_PCREL
	* elfnn-loongarch.c (perform_relocation): Likewise.
	* elfxx-loongarch.c: Likewise.
	* libbfd.h: Likewise.
	* reloc.c: Likewise.

gas/ChangeLog:

	* config/tc-loongarch.c (loongarch_args_parser_can_match_arg_helper):
	(md_apply_fix): Add R_LARCH_64_PCREL.
	* testsuite/gas/loongarch/64_pcrel.d: New test.
	* testsuite/gas/loongarch/64_pcrel.s: New test.

include/ChangeLog:

	* elf/loongarch.h (RELOC_NUMBER): Add R_LARCH_64_PCREL.

ld/ChangeLog:

	* testsuite/ld-loongarch-elf/ld-loongarch-elf.exp: Add test.
	* testsuite/ld-loongarch-elf/64_pcrel.d: New test.
	* testsuite/ld-loongarch-elf/64_pcrel.s: New test.

    bfd/ChangeLog:

            * elfxx-riscv.c (riscv_multi_subset_supports): Recognize
            INSN_CLASS_ZICOND.
            (riscv_multi_subset_supports_ext): Recognize INSN_CLASS_ZICOND.

    gas/ChangeLog:

            * testsuite/gas/riscv/zicond.d: New test.
            * testsuite/gas/riscv/zicond.s: New test.

    include/ChangeLog:

            * opcode/riscv-opc.h (MATCH_CZERO_EQZ): Define.
            (MASK_CZERO_EQZ): Define.
            (MATCH_CZERO_NEZ): Define,
            (MASK_CZERO_NEZ): Define.
            (DECLARE_INSN): Add czero.eqz and czero.nez.
            * opcode/riscv.h (enum riscv_insn_class): Add
            INSN_CLASS_ZICOND.

    opcodes/ChangeLog:

            * riscv-opc.c: Add czero.eqz and czero.nez.

gas/ChangeLog:

        * config/tc-loongarch.c:
        (loongarch_fc_normal_name): New definition.
        (loongarch_fc_numeric_name): New definition.
        (loongarch_single_float_opcodes): Modify `movgr2fcsr` and
        `movfcsr2gr`.
        testsuite/gas/loongarch/float_op.d: Likewise.
        testsuite/gas/loongarch/float_op.s: Likewise.

include/ChangeLog:

        * opcode/loongarch.h:
        (loongarch_fc_normal_name): New extern.
        (loongarch_fc_numeric_name): New extern.

opcodes/ChangeLog:

        * opcodes/loongarch-dis.c (loongarch_after_parse_args): Support
        referring to FCSRs as $fcsrX.
        * opcodes/loongarch-opc.c (loongarch_args_parser_can_match_arg_helper):
        Likewise.

bfd/ChangeLog:

	* elfxx-loongarch.c (loongarch_get_uleb128_length): New function.
	* elfxx-loongarch.h (loongarch_get_uleb128_length): New function.

gas/ChangeLog:

	* config/tc-loongarch.c (md_apply_fix): Use
	loongarch_get_uleb128_length.

ld/ChangeLog:

	* emultempl/loongarchelf.em: Regenerated.
	* testsuite/ld-elf/compressed1d.d: Xfail loongarch*-*.
	* testsuite/ld-elf/pr26936.d: Likewise.
	* testsuite/ld-loongarch-elf/disas-jirl.d: Regenerated.
	* testsuite/ld-loongarch-elf/disas-jirl-32.d: Regenerated.
	* testsuite/ld-loongarch-elf/jmp_op.d: Likewise.
	* testsuite/ld-loongarch-elf/macro_op.d: Likewise.
	* testsuite/ld-loongarch-elf/macro_op_32.d: Likewise.
	* testsuite/ld-loongarch-elf/relax-align.dd: New test.
	* testsuite/ld-loongarch-elf/relax-align.s: New test.
	* testsuite/ld-loongarch-elf/relax.exp: New test.
	* testsuite/ld-loongarch-elf/relax.s: New test.
	* testsuite/ld-loongarch-elf/uleb128.dd: New test.
	* testsuite/ld-loongarch-elf/uleb128.s: New test.

gas/ChangeLog:

	* config/tc-loongarch.c:
	(struct loongarch_cl_insn): New macro_id member.
	(enum options): New OPTION_RELAX and OPTION_NO_RELAX.
	(struct option): New mrelax and mno-relax.
	(md_parse_option): Likewise.
	(get_internal_label):
	(loongarch_args_parser_can_match_arg_helper): Generate relax reloc.
	(move_insn): Set fx_frag and fx_where if exist.
	(append_fixp_and_insn): Call frag_wane and frag_new for linker relax
	relocs.
	(loongarch_assemble_INSNs): New loongarch_cl_insn pointer parameter.
	(md_assemble): Fix function call.
	(fix_reloc_insn): Likewise.
	(md_apply_fix): Generate ADD/SUB reloc pair for debug and exception
	data.
	(loongarch_fix_adjustable): Delete.
	(md_convert_frag): Generate new fix.
	(loongarch_pre_output_hook): New function.
	(loongarch_make_nops): Likewise.
	(loongarch_frag_align_code): Likewise.
	(loongarch_insert_uleb128_fixes): Likewise.
	(loongarch_md_finish): Likewise.
	* config/tc-loongarch.h
	(md_allow_local_subtract): New macro define.
	(loongarch_frag_align_code): New declare.
	(md_do_align): Likewise.
	(loongarch_fix_adjustable): Delete.
	(tc_fix_adjustable): New macro define.
	(TC_FORCE_RELOCATION_SUB_SAME): Likewise.
	(TC_LINKRELAX_FIXUP): Likewise.
	(TC_FORCE_RELOCATION_LOCAL): Likewise.
	(DWARF2_USE_FIXED_ADVANCE_PC): Likewise.
	(MD_APPLY_SYM_VALUE): Likewise.
	(tc_symbol_new_hook): New extern.
	(NOP_OPCODE): Delete.
	(loongarch_pre_output_hook): New macro define.
	(md_pre_output_hook): Likewise.
	(md_finish): Likewise.
	(loongarch_md_finish): New extern.
	* testsuite/gas/all/align.d: Mark as unsupported on LoongArch.
	* testsuite/gas/all/gas.exp: Xfail loongarch*-*.
	* testsuite/gas/all/relax.d: Likewise.
	* testsuite/gas/elf/dwarf-5-irp.d: Likewise.
	* testsuite/gas/elf/dwarf-5-loc0.d: Likewise.
	* testsuite/gas/elf/dwarf-5-macro-include.d: Likewise.
	* testsuite/gas/elf/dwarf-5-macro.d: Likewise.
	* testsuite/gas/elf/dwarf2-11.d: Likewise.
	* testsuite/gas/elf/dwarf2-15.d: Likewise.
	* testsuite/gas/elf/dwarf2-16.d: Likewise.
	* testsuite/gas/elf/dwarf2-17.d: Likewise.
	* testsuite/gas/elf/dwarf2-18.d: Likewise.
	* testsuite/gas/elf/dwarf2-19.d: Likewise.
	* testsuite/gas/elf/dwarf2-5.d: Likewise.
	* testsuite/gas/elf/ehopt0.d: Likewise.
	* testsuite/gas/elf/elf.exp: Likewise.
	* testsuite/gas/elf/section11.d: Likewise.
	* testsuite/gas/lns/lns.exp: Likewise.
	* testsuite/gas/loongarch/jmp_op.d: Regenerated.
	* testsuite/gas/loongarch/li.d: Likewise.
	* testsuite/gas/loongarch/macro_op.d: Likewise.
	* testsuite/gas/loongarch/macro_op_32.d: Likewise.
	* testsuite/gas/loongarch/macro_op_large_abs.d: Likewise.
	* testsuite/gas/loongarch/macro_op_large_pc.d: Likewise.
	* testsuite/gas/loongarch/relax_align.d: New test.
	* testsuite/gas/loongarch/relax_align.s: New test.
	* testsuite/gas/loongarch/uleb128.d: New test.
	* testsuite/gas/loongarch/uleb128.s: New test.

binutils/ChangeLog:

	* readelf.c (target_specific_reloc_handling): Handle ULEB128 reloc.
	(is_32bit_inplace_add_reloc): Handle new reloc.
	(is_32bit_inplace_sub_reloc): Likewise.
	(is_64bit_inplace_add_reloc): Likewise.
	(is_64bit_inplace_sub_reloc): Likewise.
	(is_16bit_inplace_add_reloc): Likewise.
	(is_16bit_inplace_sub_reloc): Likewise.
	(is_8bit_inplace_add_reloc): Likewise.
	(is_8bit_inplace_sub_reloc): Likewise.
	(is_6bit_inplace_sub_reloc): Likewise.
	(is_6bit_inplace_add_reloc): New function.
	(apply_relocations): Handle new reloc.
	* testsuite/binutils-all/readelf.exp: Add -mno-relax option
	for LoongArch.

opcodes/ChangeLog:

	* loongarch-opc.c (struct loongarch_ASEs_option): New member relax
	with the default value 1.

bfd/ChangeLog:

	* bfd-in2.h: Add relocs related to relax.
	* elfnn-loongarch.c (struct loongarch_elf_link_hash_table): New integer
	pointer (data_segment_phase) to monitor the data segment phase.
	(loongarch_elf_check_relocs): Swap B21/B26 reloc sequence.
	(loongarch_elf_adjust_dynamic_symbol): Fix code format.
	(loongarch_reloc_rewrite_imm_insn): Fix function call.
	(perform_relocation): Handle new relocs related to relax.
	(RELOCATE_CALC_PC32_HI20): Fix code format.
	(RELOCATE_CALC_PC64_HI32): Likewise.
	(loongarch_elf_relocate_section): Handle new relocs related to relax.
	(loongarch_relax_delete_bytes): New function.
	(loongarch_relax_pcala_addi): Likewise.
	(loongarch_relax_pcala_ld): Likewise.
	(bfd_elfNN_loongarch_set_data_segment_info): Likewise.
	(loongarch_relax_align): Likewise.
	(loongarch_elf_relax_section): Likewise.
	(bfd_elfNN_bfd_relax_section): New macro define.
	* elfxx-loongarch.c (reloc_bits): New bfd point parameter.
	(reloc_bits_b16): Likewise.
	(reloc_bits_b21): Likewise.
	(reloc_bits_b26): Likewise.
	(loongarch_adjust_reloc_bitsfield): Likewise.
	(reloc_bits_pcrel20_s2): New function.
	(loongarch_elf_add_sub_reloc): Likewise.
	(loongarch_elf_add_sub_reloc_uleb128): Likewise.
	(loongarch_write_unsigned_leb128): New function.
	* elfxx-loongarch.h (loongarch_adjust_reloc_bitsfield): New bfd point
	parameter.
	(bfd_elf32_loongarch_set_data_segment_info): New declare.
	(bfd_elf64_loongarch_set_data_segment_info): Likewise.
	(loongarch_write_unsigned_leb128): Likewise.
	* libbfd.h: Add relocs related to relax.
	* reloc.c: Add relocs related to relax.

include/ChangeLog:

	* elf/loongarch.h: Add relocs.
	* opcode/loongarch.h: Add LARCH_opts.relax and macro LARCH_NOP.

gas/ChangeLog:

	* NEWS: Support Intel FRED LKGS.
	* config/tc-i386.c: Add fred lkgs
	* doc/c-i386.texi: Document .fred, .lkgs.
	* testsuite/gas/i386/i386.exp: Add FRED LKGS tests
	* testsuite/gas/i386/x86-64-fred-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-fred.d: Ditto.
	* testsuite/gas/i386/x86-64-fred.s: Ditto.
	* testsuite/gas/i386/x86-64-lkgs-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-lkgs-inval.l: Ditto.
	* testsuite/gas/i386/x86-64-lkgs-inval.s: Ditto.
	* testsuite/gas/i386/x86-64-lkgs.d: Ditto.
	* testsuite/gas/i386/x86-64-lkgs.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c: New entry for fred, lkgs.
	* i386-gen.c: Add CPU_FRED CPU_LKGS.
	* i386-init.h : Regenerated.
	* i386-mnem.h : Regenerated.
	* i386-opc.h: Add fred, lkgs.
	* i386-opc.tbl: Add FRED, LKGS instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

        * NEWS: Support Intel FRED LKGS.
        * config/tc-i386.c: Add fred lkgs
        * doc/c-i386.texi: Document .fred, .lkgs.
        * testsuite/gas/i386/i386.exp: Add FRED LKGS tests
        * testsuite/gas/i386/x86-64-fred-intel.d: Ditto.
        * testsuite/gas/i386/x86-64-fred.d: Ditto.
        * testsuite/gas/i386/x86-64-fred.s: Ditto.
        * testsuite/gas/i386/x86-64-lkgs-intel.d: Ditto.
        * testsuite/gas/i386/x86-64-lkgs-inval.l: Ditto.
        * testsuite/gas/i386/x86-64-lkgs-inval.s: Ditto.
        * testsuite/gas/i386/x86-64-lkgs.d: Ditto.
        * testsuite/gas/i386/x86-64-lkgs.s: Ditto.

opcodes/ChangeLog:

        * i386-dis.c: New entry for fred, lkgs.
        * i386-gen.c: Add CPU_FRED CPU_LKGS.
        * i386-init.h : Regenerated.
        * i386-mnem.h : Regenerated.
        * i386-opc.h: Add fred, lkgs.
        * i386-opc.tbl: Add FRED, LKGS instructions.
        * i386-tbl.h: Regenerated.

bfd/ChangeLog:

	* elfnn-loongarch.c (loongarch_elf_adjust_dynamic_symbol): Fix PLT
	entry generate bug.

ld/ChangeLog:

	* testsuite/ld-elf/shared.exp: Clear xfail for LoongArch.

    bfd/ChangeLog:

            * elfxx-riscv.c (riscv_get_default_ext_version): Add riscv_supported_vendor_x_ext.
            (riscv_multi_subset_supports): Recognize INSN_CLASS_XVENTANACONDOPS.

    gas/ChangeLog:

            * doc/c-riscv.texi: Add section to list custom extensions and
              their documentation URLs.
            * testsuite/gas/riscv/x-ventana-condops.d: New test.
            * testsuite/gas/riscv/x-ventana-condops.s: New test.

    include/ChangeLog:

            * opcode/riscv-opc.h Add vt.maskc and vt.maskcn.
            * opcode/riscv.h (enum riscv_insn_class): Add INSN_CLASS_XVENTANACONDOPS.

    opcodes/ChangeLog:

            * riscv-opc.c: Add vt.maskc and vt.maskcn.

    Series-version: 1
    Series-to: binutils@sourceware.org
    Series-cc: Kito Cheng <kito.cheng@sifive.com>
    Series-cc: Nelson Chu <nelson.chu@sifive.com>
    Series-cc: Greg Favor <gfavor@ventanamicro.com>
    Series-cc: Christoph Muellner <cmuellner@gcc.gnu.org>

gas/ChangeLog:

2023-04-19  Jose E. Marchesi  <jose.marchesi@oracle.com>

	PR gas/29757
	* doc/c-bpf.texi (BPF Pseudo-C Syntax): New section.

gas/ChangeLog:

2023-04-20  Guillermo E. Martinez  <guillermo.e.martinez@oracle.com>

	PR gas/29728
	* testsuite/gas/all/assign-bad-recursive.d: Skip test in bpf-*
	targets.
	* testsuite/gas/all/eqv-dot.d: Likewise.
	* testsuite/gas/all/gas.exp: Skip other assignment tests in bpf-*.
	* testsuite/gas/bpf/alu-pseudoc.s: New file.
	* testsuite/gas/bpf/pseudoc-normal.s: Likewise.
	* testsuite/gas/bpf/pseudoc-normal.d: Likewise.
	* testsuite/gas/bpf/pseudoc-normal-be.d: Likewise.
	* testsuite/gas/bpf/mem-pseudoc.s: Likewise.
	* testsuite/gas/bpf/lddw-pseudoc.s: Likewise.
	* testsuite/gas/bpf/jump32-pseudoc.s: Likewise.
	* testsuite/gas/bpf/jump-pseudoc.s: Likewise.
	* testsuite/gas/bpf/indcall-1-pseudoc.s: Likewise.
	* testsuite/gas/bpf/atomic-pseudoc.s: Likewise.
	* testsuite/gas/bpf/alu32-pseudoc.s: Likewise.
	* testsuite/gas/bpf/*.d: Add -pseudoc variants of the tests.

gas/ChangeLog:

2023-04-20  Guillermo E. Martinez  <guillermo.e.martinez@oracle.com>

	PR gas/29728
	* config/tc-bpf.h (TC_EQUAL_IN_INSN): Define.
	* config/tc-bpf.c (LEX_IS_SYMBOL_COMPONENT): Define.
	(LEX_IS_WHITESPACE): Likewise.
	(LEX_IS_NEWLINE): Likewise.
	(LEX_IS_ARITHM_OP): Likewise.
	(LEX_IS_STAR): Likewise.
	(LEX_IS_CLSE_BR): Likewise.
	(LEX_IS_OPEN_BR): Likewise.
	(LEX_IS_EQUAL): Likewise.
	(LEX_IS_EXCLA): Likewise.
	(ST_EOI): Likewise.
	(MAX_TOKEN_SZ): Likewise.
	(init_pseudoc_lex): New function.
	(md_begin): Call init_pseudoc_lex.
	(valid_expr): New function.
	(build_bpf_non_generic_load): Likewise.
	(build_bpf_atomic_insn): Likewise.
	(build_bpf_jmp_insn): Likewise.
	(build_bpf_arithm_insn): Likewise.
	(build_bpf_endianness): Likewise.
	(build_bpf_load_store_insn): Likewise.
	(look_for_reserved_word): Likewise.
	(is_register): Likewise.
	(is_cast): Likewise.
	(get_token): Likewise.
	(bpf_pseudoc_to_normal_syntax): Likewise.
	(md_assemble): Try pseudo-C syntax if an instruction cannot be
	parsed.

gas/ChangeLog:

	* testsuite/gas/loongarch/macro_op_32.d: Regenerated.

ld/ChangeLog:

	* testsuite/ld-loongarch-elf/macro_op_32.d: Regenerated.

bfd/ChangeLog:

	* elfxx-mips.c (mips_mach_extends_p): make mipsisa32 and
	  mipsisa64 interlink more systematic.
	  (mips_mach_32_64): new struct added.
	  (mips_mach_extends_32_64): new function added.

gas/ChangeLog:

	* testsuite/gas/i386/i386.exp: Run AMX-FP16 and AMX-COMPLEX
	inval testcases.
	* testsuite/gas/i386/x86-64-amx-inval.l: Add AMX-BF16 tests.
	* testsuite/gas/i386/x86-64-amx-inval.s: Ditto.
	* testsuite/gas/i386/x86-64-amx-complex-inval.l: New test.
	* testsuite/gas/i386/x86-64-amx-complex-inval.s: Ditto.
	* testsuite/gas/i386/x86-64-amx-fp16-inval.l: Ditto.
	* testsuite/gas/i386/x86-64-amx-fp16-inval.s: Ditto.

gas/ChangeLog:

	* NEWS: Support Intel AMX-COMPLEX.
	* config/tc-i386.c: Add amx_complex.
	* doc/c-i386.texi: Document .amx_complex.
	* testsuite/gas/i386/i386.exp: Run AMX-COMPLEX tests.
	* testsuite/gas/i386/amx-complex-inval.l: New test.
	* testsuite/gas/i386/amx-complex-inval.s: Ditto.
	* testsuite/gas/i386/x86-64-amx-complex-bad.d: Ditto.
	* testsuite/gas/i386/x86-64-amx-complex-bad.s: Ditto.
	* testsuite/gas/i386/x86-64-amx-complex-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-amx-complex.d: Ditto.
	* testsuite/gas/i386/x86-64-amx-complex.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (MOD_VEX_0F386C_X86_64_W_0): New.
	(PREFIX_VEX_0F386C_X86_64_W_0_M_1_L_0): Ditto.
	(X86_64_VEX_0F386C): Ditto.
	(VEX_LEN_0F386C_X86_64_W_0_M_1): Ditto.
	(VEX_W_0F386C_X86_64): Ditto.
	(mod_table): Add MOD_VEX_0F386C_X86_64_W_0.
	(prefix_table): Add PREFIX_VEX_0F386C_X86_64_W_0_M_1_L_0.
	(x86_64_table): Add X86_64_VEX_0F386C.
	(vex_len_table): Add VEX_LEN_0F386C_X86_64_W_0_M_1.
	(vex_w_table): Add VEX_W_0F386C_X86_64.
	* i386-gen.c (cpu_flag_init): Add CPU_AMX_COMPLEX_FLAGS and
	CPU_ANY_AMX_COMPLEX_FLAGS.
	* i386-init.h: Regenerated.
	* i386-mnem.h: Ditto.
	* i386-opc.h (CpuAMX_COMPLEX): New.
	(i386_cpu_flags): Add cpuamx_complex.
	* i386-opc.tbl: Add AMX-COMPLEX instructions.
	* i386-tbl.h: Regenerated.

ChangeLog:
2023-04-05  Eli Zaretskii  <eliz@gnu.org>

	* gdb/doc/gdb.texinfo (Requirements, Configure Options): Update and
	rearrange; improve and fix markup.

gas/ChangeLog:

	* config/tc-riscv.c (validate_riscv_insn, riscv_ip): Move from
	"f" to "Wif".

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Move from "f" to "Wif".
	* riscv-opc.c (riscv_opcodes): Reflect new operand type.

opcodes/ChangeLog:

        * riscv-dis.c (print_insn_riscv):Change the return value.

ld/ChangeLog:

        * testsuite/ld-aarch64/emit-relocs-112-overflow.d: Skip for
        aarch64nto.
        * testsuite/ld-aarch64/emit-relocs-112.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-113.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-114-overflow.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-114.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-115.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-116-overflow.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-116.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-117.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-118-overflow.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-118.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-119.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-22.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-23.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-28.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-86-overflow.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-86.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-87.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-88-overflow.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-88.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-89.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-90-overflow.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-90.d: Likewise.
        * testsuite/ld-aarch64/emit-relocs-92.d: Likewise.
        * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-all-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: Likewise.
        * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: Likewise.

ld/ChangeLog:

        * testsuite/ld-aarch64/aarch64-elf.exp: Add support for
        aarch64nto.

ld/ChangeLog:

	* emulparams/aarch64nto.sh: Move to nto.em.
	* emultempl/nto.em: New file.
	* testsuite/ld-aarch64/aarch64-nto.exp: New test.
	* testsuite/ld-aarch64/nto-stack-note-1.d: New test.
	* testsuite/ld-aarch64/nto-stack-note-2.d: New test.
	* testsuite/ld-aarch64/start.s: New test.

bfd/ChangeLog:

	* elf.c (BFD_QNT_CORE_INFO): Delete.
	(BFD_QNT_CORE_STATUS): Likewise.
	(BFD_QNT_CORE_GREG): Likewise.
	(BFD_QNT_CORE_FPREG): Likewise.
	(elfcore_grok_nto_note): Replace BFD_QNT_* by QNT_*.

binutils/ChangeLog:

	* readelf.c (get_qnx_elfcore_note_type): New function.
	(print_qnx_note): New function.
	(process_note): Add support for QNX support.

include/ChangeLog:

	* elf/common.h (QNT_DEBUG_FULLPATH): New define.
	(QNT_DEBUG_RELOC): New define.
	(QNT_STACK): New define.
	(QNT_GENERATOR): New define.
	(QNT_DEFAULT_LIB): New define.
	(QNT_CORE_SYSINFO): New define.
	(QNT_CORE_INFO): New define.
	(QNT_CORE_STATUS): New define.
	(QNT_CORE_GREG): New define.
	(QNT_CORE_FPREG): New define.
	(QNT_LINK_MAP): New define.

ChangeLog:

  * bfd/bpf-reloc.def: Created file with BPF_HOWTO macro entries.
  * bfd/reloc.c: Removed non needed relocations.
  * bfd/bfd-in2.h: regenerated.
  * bfd/libbfd.h: regenerated.
  * bfd/elf64-bpf.c: Changed relocations.
  * include/elf/bpf.h: Adapted relocation values/names.
  * gas/config/tc-bpf.c: Changed relocation mapping.

gdb/ChangeLog:
yyyy-mm-dd  Pedro Alves  <pedro@palves.net>

	* infcmd.c (kill_command, detach_command, disconnect_command):
	Call update_previous_thread.
	* infrun.c (previous_inferior_ptid): Delete.
	(previous_thread): New.
	(update_previous_thread): New.
	(proceed, init_wait_for_inferior): Call update_previous_thread.
	(normal_stop): Adjust to compare previous_thread and
	inferior_thread.  Call update_previous_thread.
	* infrun.h (update_previous_thread): Declare.
	* target.c (target_pre_inferior, target_preopen): Call
	update_previous_thread.

gas/ChangeLog:

        * testsuite/gas/elf/dwarf-5-macro.s: Change Line.s to Line2.s.

binutils/ChangeLog:

	* testsuite/lib/binutils-common.exp (prune_dump_output): New
	(run_dump_test): Use it.

ld/ChangeLog:

	* testsuite/ld-elf/noinit-sections-2.l: Remove DOS drive letter
	handler.

gas/ChangeLog:

	* testsuite/gas/elf/line.l: Change Line.s to Line2.s.
	* testsuite/gas/elf/line.s: Adjust output.

ld/ChangeLog:

	* testsuite/config/default.exp: Replace "-o /dev/null" by a
	file.

ld/ChangeLog:

	* testsuite/ld-elf/noinit-sections-2.l: Allow Windows paths
	(starting with C:).

ld/ChangeLog:

	* testsuite/ld-elf/retain5.map: Allow \ path separator.
	* testsuite/ld-plugin/plugin-10.d: Likewise.
	* testsuite/ld-plugin/plugin-11.d: Likewise.
	* testsuite/ld-plugin/plugin-18.d: Likewise.
	* testsuite/ld-plugin/plugin-19.d: Likewise.
	* testsuite/ld-plugin/plugin-20.d: Likewise.
	* testsuite/ld-plugin/plugin-22.d: Likewise.

bfd/ChangeLog:

	* elfnn-riscv.c (_bfd_riscv_relax_section): Fix a comment to
	reflect current roles of each relaxation pass.

ld/ChangeLog:

	* emultempl/riscvelf.em: Reduce the number of linker relaxation
	passes from 3 to 2.

ld/ChangeLog:

	* scripttempl/pru.sc (_data_end): Remove the alignment.
	(.data): Align output section size to COMMONPAGESIZE.
	(.resource_table): Ditto.

ld/ChangeLog:

	* scripttempl/pru.sc (.data): Merge .bss input sections into the
	.data output section.
	* testsuite/ld-elf/orphan3.d: Disable for PRU.

gas/ChangeLog:

2023-01-31  Tom de Vries  <tdevries@suse.de>

	PR 23941
	* dwarf2dbg.c (DWARF2_LINE_VERSION): Set to 2 for -gdwarf-2.
	(DWARF2_LINE_OPCODE_BASE): Handle DWARF2_LINE_VERSION == 2.
	(dwarf2_directive_loc): Bump dwarf_level when encountering
	v3 .loc options.
	(out_debug_line): Don't output v3 standard opcodes for v2.
	* testsuite/gas/i386/debug1.d: Update.
	* testsuite/gas/i386/dwarf2-line-1.d: Update.
	* testsuite/gas/i386/dwarf2-line-4.d: Update.

gdb/ChangeLog:

	* fbsd-tdep.c (fbsd_make_note_desc): Use std::copy instead
	of memcpy.

gas/ChangeLog:

        * config/tc-arm.c (do_scalar_fp16_v82_encode): Remove
        ARMv8.2-A from the warning message.
        (do_neon_movhf): Likewise
        * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: Likewise
        * testsuite/gas/arm/mve-vaddsub-it-bad.l: Likewise
        * testsuite/gas/arm/mve-vcvtne-it-bad.l: Likewise
        * testsuite/gas/arm/mve-vcvtne-it.d: Likewise

gas/ChangeLog:

	* config/tc-arm.c (opcode_lookup): Add special vcvtn handling.
	* testsuite/gas/arm/mve-vcvtne-it-bad.l: Add further testing.
	* testsuite/gas/arm/mve-vcvtne-it-bad.s: Likewise.
	* testsuite/gas/arm/mve-vcvtne-it.d: Likewise.
	* testsuite/gas/arm/mve-vcvtne-it.s: Likewise.

libctf/ChangeLog:

	* configure: Regenerated.
	* configure.ac: Update regexp to match versions higher than 7.0.

gdb/ChangeLog:
2022-04-13  Stephan Rohr  <stephan.rohr@intel.com>

	* dwarf2/loc.c (rw_pieced_value): Fix check on 'type' and
	'enlcosing_type' when reading pieced value 'v'.

gdb/testsuite/ChangeLog:
2022-04-13  Stephan Rohr  <stephan.rohr@intel.com>

	* gdb.dwarf2/shortpiece.exp: Added test cases.

bfd/ChangeLog:

	* elf32-s390.c (elf_s390_relocate_section): Honor addend for
	R_390_TLS_LE32.
	* elf64-s390.c (elf_s390_relocate_section): Honor addend for
	R_390_TLS_LE64.

ld/ChangeLog:

	* testsuite/ld-s390/reloctlsle-1.d: New test.
	* testsuite/ld-s390/reloctlsle-1.s: New test.

ChangeLog:

	* configure.ac: Skip GMP and MPFR when --disable-gdb is
	provided.
	* configure: Regenerate.

gas/ChangeLog:

	* config/tc-riscv.c (riscv_csr_address): Simplify the logic for
	'Smstateen' and 'Ssstateen' extensions.

ChangeLog:

	* libsframe/sframe.c (sframe_encoder_write_fre_start_addr): New
	function.
	(sframe_encoder_write_fre): Use it instead of memcpy.

ChangeLog:

	* libsframe/testsuite/libsframe.decode/be-flipping.c: Free
	SFrame buffer.
	* libsframe/testsuite/libsframe.decode/frecnt-1.c: Likewise.
	* libsframe/testsuite/libsframe.decode/frecnt-2.c: Likewise.

ChangeLog:

	* libsframe/sframe-impl.h (struct sframe_decoder_ctx): Add new
	member to keep track of the internally malloc'd buffer.
	* libsframe/sframe.c (sframe_decoder_free): Free it up.
	(sframe_decode): Update the reference to the buffer.

ChangeLog:

	* libsframe/doc/sframe-spec.texi

ChangeLog:

	* testsuite/gas/cfi-sframe/cfi-sframe-aarch64-pac-ab-key-1.d:
	New test.
	* testsuite/gas/cfi-sframe/cfi-sframe-aarch64-pac-ab-key-1.s:
	Likewise.
	* testsuite/gas/cfi-sframe/cfi-sframe.exp: Run new test.

ChangeLog:

	* libsframe/sframe-dump.c (is_sframe_abi_arch_aarch64): New
	definition.
	(dump_sframe_func_with_fres): Emit a string if B key is used.

ChangeLog:

	* gas/gen-sframe.c (get_dw_fde_pauth_b_key_p): New definition.
	(sframe_v1_set_func_info): Add new argument for pauth_key.
	(sframe_set_func_info): Likewise.
	(output_sframe_funcdesc): Likewise.
	* gas/gen-sframe.h (struct sframe_version_ops): Add new argument
	to the function pointer declaration.
	* gas/sframe-opt.c (sframe_convert_frag): Handle pauth_key.

include/ChangeLog:

	* sframe.h (SFRAME_AARCH64_PAUTH_KEY_A): New definition.
	(SFRAME_AARCH64_PAUTH_KEY_B): Likewise.
	(SFRAME_V1_FUNC_INFO): Adjust to accommodate pauth_key.
	(SFRAME_V1_FUNC_PAUTH_KEY): New macro.
	(SFRAME_V1_FUNC_INFO_UPDATE_PAUTH_KEY): Likewise.

gdb/ChangeLog:
	* top.c: Remove the extra #endif which was missed.

ChangeLog:
	* Makefile.def: Add configure-gdb dependencies
	on all-gmp and all-mpfr.
	* configure.ac: Split out MPC checking from MPFR.
	Require GMP and MPFR if the gdb directory exist.
	* Makefile.in: Regenerate.
	* configure: Regenerate.

gdb/ChangeLog:

	PR bug/28500
	* configure.ac: Remove AC_LIB_HAVE_LINKFLAGS
	for gmp and mpfr.
	Use GMPLIBS and GMPINC which is provided by the
	toplevel configure.
	* Makefile.in (LIBGMP, LIBMPFR): Remove.
	(GMPLIBS, GMPINC): Add definition.
	(INTERNAL_CFLAGS_BASE): Add GMPINC.
	(CLIBS): Exchange LIBMPFR and LIBGMP
	for GMPLIBS.
	* target-float.c: Make the code conditional on
	HAVE_LIBMPFR unconditional.
	* top.c: Remove code checking HAVE_LIBMPFR.
	* configure: Regenerate.
	* config.in: Regenerate.
	* README: Update GMP/MPFR section of the config
	options.
	* doc/gdb.texinfo: Likewise.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28500

ChangeLog:

	* libsframe/doc/sframe-spec.texi

ChangeLog:

	* testsuite/gas/cfi-sframe/cfi-sframe-aarch64-2.d: New test.
	* testsuite/gas/cfi-sframe/cfi-sframe-aarch64-2.s: Likewise.
	* testsuite/gas/cfi-sframe/cfi-sframe.exp: Adjust the list
	accordingly.

ChangeLog:

        * libsframe/sframe-dump.c (dump_sframe_func_with_fres): Postfix
	with "[s]" if RA is signed with authorization code.

include/ChangeLog:

	* sframe-api.h (sframe_fre_get_ra_mangled_p): New declaration.

ChangeLog:

	* libsframe/sframe.c (sframe_get_fre_ra_mangled_p): New
	definition.
	(sframe_fre_get_ra_mangled_p): New static function.

ChangeLog:

	* gas/gen-sframe.c (sframe_v1_set_fre_info): Add new argument
	for mangled_ra_p.
	(sframe_set_fre_info): Likewise.
	(output_sframe_row_entry): Handle mangled_ra_p.
	(sframe_row_entry_new): Reset mangled_ra_p.
	(sframe_row_entry_initialize): Initialize mangled_ra_p.
	(sframe_xlate_do_gnu_window_save): New definition.
	(sframe_do_cfi_insn): Handle DW_CFA_GNU_window_save.
	* gas/gen-sframe.h (struct sframe_row_entry): New member.
	(struct sframe_version_ops): Add a new argument for
	mangled_ra_p.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe.exp: Remove test.
	* gas/testsuite/gas/cfi-sframe/common-empty-4.d: Removed.
	* gas/testsuite/gas/cfi-sframe/common-empty-4.s: Removed.

include/ChangeLog:

	* sframe.h (SFRAME_V1_FRE_INFO_UPDATE_MANGLED_RA_P): New macro.
	(SFRAME_V1_FRE_MANGLED_RA_P): Likewise.

ChangeLog:

	PR libsframe/29856
	* bfd/elf64-x86-64.c: Adjust as the struct members have been
	reordered.
	* libsframe/sframe.c (sframe_decode_fre_start_address): Use
	memcpy to perform 16-bit/32-bit reads.
	* libsframe/testsuite/libsframe.encode/encode-1.c: Adjust as the
	struct members have been reordered.

include/ChangeLog:

	PR libsframe/29856
	* sframe-api.h: Reorder fre_offsets for natural alignment.

gas/ChangeLog:

        * config/tc-riscv.c (arg_lookup): Add string length check for operands.
        * testsuite/gas/riscv/vector-insns-fail-vsew.d: New testcase for an illegal vsew.
        * testsuite/gas/riscv/vector-insns-fail-vsew.l: Likewise.
        * testsuite/gas/riscv/vector-insns-fail-vsew.s: Likewise.

bfd/ChangeLog:

	* elf-linker-x86.h (struct elf_linker_x86_params): Remove
	bndplt.
	* elf64-x86-64.c (elf_x86_64_scan_relocs): Ignore
        R_X86_64_PLT32_BND.
	(elf_x86_64_relocate_section): Similarly here.
	(elf_x86_64_link_setup_gnu_properties): Ignore bndplt.
	* elfxx-x86.c: Likewise.
	* elfxx-x86.h: Likewise.

gold/ChangeLog:

	* NEWS: Document -z bndplt.
	* options.h (class General_options): Remove bndplt option.
	* x86_64.cc (class Output_data_plt_x86_64_bnd): Remove.
	(Target_x86_64::do_make_data_plt): Do not use
	Output_data_plt_x86_64_bnd.
	(Target_x86_64::Scan::get_reference_flags): Likewise.
	(Target_x86_64::Scan::check_non_pic): Likewise.
	(Target_x86_64::Scan::local): Likewise.
	(Target_x86_64::Scan::global): Likewise.

ld/ChangeLog:

	* NEWS: Document -z bndplt.
	* emulparams/elf_x86_64.sh: Remove bndplt option.
	* ld.texi: Likewise.
	* testsuite/ld-x86-64/x86-64.exp:
	* testsuite/ld-x86-64/bnd-branch-1-now.d: Removed.
	* testsuite/ld-x86-64/bnd-branch-1.d: Removed.
	* testsuite/ld-x86-64/bnd-branch-1.s: Removed.
	* testsuite/ld-x86-64/bnd-ifunc-1-now.d: Removed.
	* testsuite/ld-x86-64/bnd-ifunc-1.d: Removed.
	* testsuite/ld-x86-64/bnd-ifunc-1.s: Removed.
	* testsuite/ld-x86-64/bnd-ifunc-2-now.d: Removed.
	* testsuite/ld-x86-64/bnd-ifunc-2.d: Removed.
	* testsuite/ld-x86-64/bnd-ifunc-2.s: Removed.
	* testsuite/ld-x86-64/bnd-plt-1-now.d: Removed.
	* testsuite/ld-x86-64/bnd-plt-1.d: Removed.
	* testsuite/ld-x86-64/mpx.exp: Removed.
	* testsuite/ld-x86-64/mpx1.out: Removed.
	* testsuite/ld-x86-64/mpx1a.c: Removed.
	* testsuite/ld-x86-64/mpx1a.rd: Removed.
	* testsuite/ld-x86-64/mpx1b.c: Removed.
	* testsuite/ld-x86-64/mpx1c.c: Removed.
	* testsuite/ld-x86-64/mpx1c.rd: Removed.
	* testsuite/ld-x86-64/mpx2.out: Removed.
	* testsuite/ld-x86-64/mpx2a.c: Removed.
	* testsuite/ld-x86-64/mpx2a.rd: Removed.
	* testsuite/ld-x86-64/mpx2b.c: Removed.
	* testsuite/ld-x86-64/mpx2c.c: Removed.
	* testsuite/ld-x86-64/mpx2c.rd: Removed.
	* testsuite/ld-x86-64/mpx3.dd: Removed.
	* testsuite/ld-x86-64/mpx3a.s: Removed.
	* testsuite/ld-x86-64/mpx3b.s: Removed.
	* testsuite/ld-x86-64/mpx3n.dd: Removed.
	* testsuite/ld-x86-64/mpx4.dd: Removed.
	* testsuite/ld-x86-64/mpx4a.s: Removed.
	* testsuite/ld-x86-64/mpx4b.s: Removed.
	* testsuite/ld-x86-64/mpx4n.dd: Removed.
	* testsuite/ld-x86-64/pr20800a.S: Removed.
	* testsuite/ld-x86-64/pr20800b.S: Removed.
	* testsuite/ld-x86-64/pr21038a-now.d: Removed.
	* testsuite/ld-x86-64/pr21038a.d: Removed.
	* testsuite/ld-x86-64/pr21038a.s: Removed.
	* testsuite/ld-x86-64/pr21038b-now.d: Removed.
	* testsuite/ld-x86-64/pr21038b.d: Removed.
	* testsuite/ld-x86-64/pr21038b.s: Removed.
	* testsuite/ld-x86-64/pr21038c-now.d: Removed.
	* testsuite/ld-x86-64/pr21038c.d: Removed.
	* testsuite/ld-x86-64/pr21038c.s: Removed.

ChangeLog:

	* libctf/Makefile.in: Regenerated.
	* libctf/aclocal.m4: Likewise.
	* libctf/config.h.in: Likewise.
	* libctf/configure: Likewise.
	* libctf/configure.ac: Remove ZSTD_LIBS from LIBS.  Cleanup
	unused AC_ZSTD.

ChangeLog:

	* libctf/configure: Regenerated.
	* libctf/configure.ac: remove AC_CONFIG_MACRO_DIR usage.

ChangeLog:

	* libctf/configure: Regenerated.
	* libctf/configure.ac: remove zlib from LDFLAGS and LIBS.

ChangeLog:

	* binutils/objdump.c (dump_section_sframe): free up contents and
	SFrame decoder context on exit.

ChangeLog:

	* bfd/elfxx-x86.c (_bfd_x86_elf_create_sframe_plt): Use new
	name.
	* libsframe/sframe.c (sframe_fde_create_func_info): Rename
	sframe_fde_func_info to this.
	* libsframe/testsuite/libsframe.encode/encode-1.c: Use new name.

include/ChangeLog:

	* sframe-api.h (sframe_fde_create_func_info): Rename
	sframe_fde_func_info to this.

ChangeLog:

	* gas/gen-sframe.c (create_func_info_exp): New definition.
	(output_sframe_funcdesc): Call create_func_info_exp.
	* gas/sframe-opt.c (sframe_estimate_size_before_relax): The
	associated fragment uses O_modulus now.
	(sframe_convert_frag): Adjust the fragment fixup code according
	to the new composite exp.

ChangeLog:

	* gas/sframe-opt.c (sframe_estimate_size_before_relax):
	(sframe_convert_frag): Do not use magic numbers.
	* libsframe/sframe.c (sframe_calc_fre_type): Likewise.

include/ChangeLog:

	* sframe.h (SFRAME_FRE_TYPE_ADDR1_LIMIT): New constant.
	(SFRAME_FRE_TYPE_ADDR2_LIMIT): Likewise.
	(SFRAME_FRE_TYPE_ADDR4_LIMIT): Likewise.

include/ChangeLog:

	* sframe.h (SFRAME_V1_FUNC_INFO): Use specific bits only.
	(SFRAME_V1_FRE_INFO): Likewise.

ChangeLog:

	* libsframe/sframe.c: Fix formatting nits.

opcodes/ChangeLog:

	* i386-dis.c (OP_E_memory): Remove vex.w check for xh_mode.

bfd/ChangeLog:

	* elfnn-loongarch.c (loongarch_elf_relocate_section): Likewise.

binutils/ChangeLog:

	* dwarf.c (display_debug_loc): Adjust holes detections for
	headers and locviews.

ChangeLog:

        * src-release.sh (GDB_SUPPORT_DIRS): Add libsframe.

bfd/ChangeLog:

	* elfnn-riscv.c (riscv_merge_std_ext): Add 'H' extension merging.

gas/ChangeLog:

	* testsuite/gas/riscv/insn.s: Add testcases such that big number
	handling is required and should be disassembled as long ".byte"
	sequence with correct instruction bits.
	* testsuite/gas/riscv/insn.d: Likewise.
	* testsuite/gas/riscv/insn-na.d: Likewise.
	* testsuite/gas/riscv/insn-dwarf.d: Likewise.

gas/ChangeLog:

	* config/tc-riscv.c (struct riscv_cl_insn): Add long opcode field.
	(create_insn) Clear long opcode marker.
	(install_insn) Install longer opcode as well.
	(s_riscv_insn) Likewise.
	(riscv_ip_hardcode): Make big number handling stricter. Length and
	the value conflicts only if the bignum size exceeds the expected
	maximum length.

opcodes/ChangeLog:

	* riscv-dis.c (riscv_disassemble_insn): Print unknown instruction
	using the new argument packet.
	(riscv_disassemble_data): Add unused argument packet.
	(print_insn_riscv): Pass packet to the disassemble function.

bfd/ChangeLog:

	* elfxx-riscv.c: Add 'smaia' and 'ssaia' to the list
	of known standard extensions.

gas/ChangeLog:

	* config/tc-riscv.c (enum riscv_csr_class):
	(riscv_csr_address): Add CSR classes for Smaia/Ssaia.
	* testsuite/gas/riscv/csr-dw-regnums.d: Add new CSRs.
	* testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p9p1.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
	* testsuite/gas/riscv/csr.s: Likewise.

include/ChangeLog:

	* opcode/riscv-opc.h (CSR_MISELECT): New CSR macro.
	(CSR_MIREG): Likewise.
	(CSR_MTOPEI): Likewise.
	(CSR_MTOPI): Likewise.
	(CSR_MVIEN): Likewise.
	(CSR_MVIP): Likewise.
	(CSR_MIDELEGH): Likewise.
	(CSR_MIEH): Likewise.
	(CSR_MVIENH): Likewise.
	(CSR_MVIPH): Likewise.
	(CSR_MIPH): Likewise.
	(CSR_SISELECT): Likewise.
	(CSR_SIREG): Likewise.
	(CSR_STOPEI): Likewise.
	(CSR_STOPI): Likewise.
	(CSR_SIEH): Likewise.
	(CSR_SIPH): Likewise.
	(CSR_HVIEN): Likewise.
	(CSR_HVICTL): Likewise.
	(CSR_HVIPRIO1): Likewise.
	(CSR_HVIPRIO2): Likewise.
	(CSR_VSISELECT): Likewise.
	(CSR_VSIREG): Likewise.
	(CSR_VSTOPEI): Likewise.
	(CSR_VSTOPI): Likewise.
	(CSR_HIDELEGH): Likewise.
	(CSR_HVIENH): Likewise.
	(CSR_HVIPH): Likewise.
	(CSR_HVIPRIO1H): Likewise.
	(CSR_HVIPRIO2H): Likewise.
	(CSR_VSIEH): Likewise.
	(CSR_VSIPH): Likewise.
	(DECLARE_CSR): Add CSRs for Smaia and Ssaia.

Changes for v3:
- Imply ssaia for smaia
- Imply zicsr for ssaia (and transitively smaia)
- Move hypervisor CSRs to Ssaia+H
- Rebase on upstream/master

Changes for v2:
- Add hypervisor and VS CSRs
- Fix whitespace issue

ChangeLog:

	* libsframe/doc/sframe-spec.texi: Remove usage of
	xrefautomaticsectiontitle.

binutils/ChangeLog:

	* readelf.c (get_symbol_type): Consider STT_GNU_IFUNC as
	reserved name.

bfd/ChangeLog:

        * elfnn-riscv.c (riscv_elf_relocate_section): Take the R_RISCV_SUB6
	lower 6 bits as the significant bit.
        * elfxx-riscv.c (riscv_elf_add_sub_reloc): Likewise.

opcodes/ChangeLog:

	* arc-regs.h: Change isa_config address to 0xc1.
	isa_config exists for ARC700 and ARCV2 and not ARCALL.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets): Update implication rules.
	(riscv_supported_std_s_ext) Add 'Ssstateen' extension.

gas/ChangeLog:

	* config/tc-riscv.c (enum riscv_csr_class): Rename
	CSR_CLASS_SMSTATEEN_AND_H{,_32} to CSR_CLASS_SSSTATEEN_...
	Add CSR_CLASS_SSSTATEEN.
	(riscv_csr_address): Support new/renamed CSR classes.
	* testsuite/gas/riscv/csr.s: Add 'Ssstateen' extension to comment.
	* testsuite/gas/riscv/csr-version-1p9p1.l: Reflect changes to
	error messages.
	* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.l: Likewise.
	* testsuite/gas/riscv/ssstateen-csr.s: Test for 'Ssstateen' CSRs.
	* testsuite/gas/riscv/ssstateen-csr.d: Likewise.
	* testsuite/gas/riscv/smstateen-csr-s.d: Test to make sure that
	supervisor/hypervisor part of 'Smstateen' CSRs are accessible from
	'RV32IH_Smstateen', not just from 'RV32IH_Ssstateen' that is tested
	in ssstateen-csr.d.

include/ChangeLog:

	* opcode/riscv-opc.h: Update DECLARE_CSR declarations with
	new CSR classes.

ChangeLog:

	* gas/config/tc-aarch64.h:  Guard SFrame related definitions
	  with OBJ_ELF.

ChangeLog:

	* libsframe/Makefile.am: Add info-in-builddir to
	  AUTOMAKE_OPTIONS. Include doc/local.mk.
	* libsframe/Makefile.in: Regenerated.
	* libsframe/configure: Likewise.
	* libsframe/configure.ac: Check for makeinfo and set BUILD_INFO.
	* libsframe/doc/local.mk: New file.
	* libsframe/doc/sframe-spec.texi: Likewise.

ChangeLog:

	* gas/NEWS: Add SFrame related news.

ChangeLog:

	* binutils/NEWS: Add item for SFrame support.

ChangeLog:

	* src-release.sh: Add libsframe

include/ChangeLog:

	* sframe-api.h (dump_sframe): New function declaration.

ChangeLog:

	* binutils/Makefile.am: Add dependency on libsframe for
	readelf and objdump.
	* binutils/Makefile.in: Regenerate.
	* binutils/doc/binutils.texi: Document --sframe=[section].
	* binutils/doc/sframe.options.texi: New file.
	* binutils/objdump.c: Add support for SFrame format.
	* binutils/readelf.c: Likewise.
	* include/sframe-api.h: Add new API for dumping .sframe
	section.
	* libsframe/Makefile.am: Add sframe-dump.c.
	* libsframe/Makefile.in: Regenerate.
	* libsframe/sframe-dump.c: New file.

ChangeLog:

	* Makefile.def: Add install dependency on libsframe for libbfd.
	* Makefile.in: Regenerated.
	* bfd/Makefile.am: Add elf-sframe.c
	* bfd/Makefile.in: Regenerated.
	* bfd/bfd-in2.h (SEC_INFO_TYPE_SFRAME): Regenerated.
	* bfd/configure: Regenerate.
	* bfd/configure.ac: Add elf-sframe.lo.
	* bfd/elf-bfd.h (struct sframe_func_bfdinfo): New struct.
	(struct sframe_dec_info): Likewise.
	(struct sframe_enc_info): Likewise.
	(struct elf_link_hash_table): New member for encoded .sframe
	object.
	(struct output_elf_obj_tdata): New member.
	(elf_sframe): New access macro.
	(_bfd_elf_set_section_sframe): New declaration.
	* bfd/elf.c (get_segment_type): Handle new segment
	PT_GNU_SFRAME.
	(bfd_section_from_phdr): Likewise.
	(get_program_header_size): Likewise.
	(_bfd_elf_map_sections_to_segments): Likewise.
	* bfd/elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Add
	contents to the .sframe sections or .plt* entries.
	* bfd/elflink.c (elf_section_ignore_discarded_relocs): Handle
	SEC_INFO_TYPE_SFRAME.
	(_bfd_elf_default_action_discarded): Handle .sframe section.
	(elf_link_input_bfd): Merge .sframe section.
	(bfd_elf_final_link): Write the output .sframe section.
	(bfd_elf_discard_info): Handle discarding .sframe section.
	* bfd/elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Create
	.sframe section for .plt and .plt.sec.
	(_bfd_x86_elf_finish_dynamic_sections): Handle .sframe from
	.plt* sections.
	* bfd/elfxx-x86.h (PLT_SFRAME_FDE_START_OFFSET): New
	definition.
	(SFRAME_PLT0_MAX_NUM_FRES): Likewise.
	(SFRAME_PLTN_MAX_NUM_FRES): Likewise.
	(struct elf_x86_sframe_plt): New structure.
	(struct elf_x86_link_hash_table): New member.
	(struct elf_x86_init_table): New members for .sframe
	creation.
	* bfd/section.c: Add new definition SEC_INFO_TYPE_SFRAME.
	* binutils/readelf.c (get_segment_type): Handle new segment
	PT_GNU_SFRAME.
	* ld/ld.texi: Update documentation for
	--no-ld-generated-unwind-info.
	* ld/scripttempl/elf.sc: Support .sframe sections.
	* ld/Makefile.am (TESTSFRAMELIB): Use it.
	(check-DEJAGNU): Likewise.
	* ld/Makefile.in: Regenerated.
	* ld/configure.ac (TESTSFRAMELIB): Set to the .so or .a like TESTBFDLIB.
	* ld/configure: Regenerated.
	* bfd/elf-sframe.c: New file.

include/ChangeLog:

	* elf/common.h (PT_GNU_SFRAME): New definition.
	* elf/internal.h (struct elf_segment_map): Handle new segment
	type PT_GNU_SFRAME.

ld/testsuite/ChangeLog:

	* ld/testsuite/ld-bootstrap/bootstrap.exp: Add SFRAMELIB.
	* ld/testsuite/ld-aarch64/aarch64-elf.exp: Add new test
	  sframe-simple-1.
	* ld/testsuite/ld-aarch64/sframe-bar.s: New file.
	* ld/testsuite/ld-aarch64/sframe-foo.s: Likewise.
	* ld/testsuite/ld-aarch64/sframe-simple-1.d: Likewise.
	* ld/testsuite/ld-sframe/sframe-empty.d: New test.
	* ld/testsuite/ld-sframe/sframe-empty.s: New file.
	* ld/testsuite/ld-sframe/sframe.exp: New testsuite.
	* ld/testsuite/ld-x86-64/sframe-bar.s: New file.
	* ld/testsuite/ld-x86-64/sframe-foo.s: Likewise.
	* ld/testsuite/ld-x86-64/sframe-simple-1.d: Likewise.
	* ld/testsuite/ld-x86-64/sframe-plt-1.d: Likewise.
	* ld/testsuite/ld-x86-64/sframe-simple-1.d: Likewise.
	* ld/testsuite/ld-x86-64/x86-64.exp: Add new tests -
	  sframe-simple-1, sframe-plt-1.
	* ld/testsuite/lib/ld-lib.exp: Add new proc to check if
	  assembler supports SFrame section.
	* ld/testsuite/ld-sframe/discard.d: New file.
	* ld/testsuite/ld-sframe/discard.ld: Likewise.
	* ld/testsuite/ld-sframe/discard.s: Likewise.

ChangeLog:

	* Makefile.def: Add libsframe as new module with its
	dependencies.
	* Makefile.in: Regenerated.
	* binutils/Makefile.am: Add libsframe.
	* binutils/Makefile.in: Regenerated.
	* configure: Regenerated
	* configure.ac: Add libsframe to host_libs.
	* libsframe/Makefile.am: New file.
	* libsframe/Makefile.in: New file.
	* libsframe/aclocal.m4: New file.
	* libsframe/config.h.in: New file.
	* libsframe/configure: New file.
	* libsframe/configure.ac: New file.
	* libsframe/sframe-error.c: New file.
	* libsframe/sframe-impl.h: New file.
	* libsframe/sframe.c: New file.

include/ChangeLog:

	* sframe-api.h: New file.

testsuite/ChangeLog:

	* libsframe/testsuite/Makefile.am: New file.
	* libsframe/testsuite/Makefile.in: Regenerated.
	* libsframe/testsuite/libsframe.decode/Makefile.am: New
	  file.
	* libsframe/testsuite/libsframe.decode/Makefile.in:
	  Regenerated.
	* libsframe/testsuite/libsframe.decode/decode.exp: New file.
	* libsframe/testsuite/libsframe.encode/Makefile.am:
	  Likewise.
	* libsframe/testsuite/libsframe.encode/Makefile.in:
	  Regenerated.
	* libsframe/testsuite/libsframe.encode/encode.exp: New file.
	* libsframe/testsuite/libsframe.encode/encode-1.c: Likewise.
	* libsframe/testsuite/libsframe.decode/be-flipping.c: Likewise.
	* libsframe/testsuite/libsframe.decode/frecnt-1.c: Likewise.
	* libsframe/testsuite/libsframe.decode/frecnt-2.c: Likewise.
	* libsframe/testsuite/libsframe.decode/DATA-BE: New file.
	* libsframe/testsuite/libsframe.decode/DATA1: Likewise.
	* libsframe/testsuite/libsframe.decode/DATA2: Likewise.

ChangeLog:

	* gas/testsuite/gas/cfi-sframe/cfi-sframe-aarch64-1.d: New file.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-aarch64-1.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-1.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-1.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-2.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-2.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-3.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-3.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-4.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-4.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-5.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-5.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-6.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-6.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-7.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-7.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-8.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-common-8.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-x86_64-1.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe-x86_64-1.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/cfi-sframe.exp: Likewise.
	* gas/testsuite/gas/cfi-sframe/common-empty-1.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/common-empty-1.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/common-empty-2.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/common-empty-2.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/common-empty-3.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/common-empty-3.s: Likewise.
	* gas/testsuite/gas/cfi-sframe/common-empty-4.d: Likewise.
	* gas/testsuite/gas/cfi-sframe/common-empty-4.s: Likewise.

ChangeLog:

	* gas/Makefile.am: Include gen-sframe.c and sframe-opt.c.
	* gas/Makefile.in: Regenerated.
	* gas/as.h (enum _relax_state): Add new state rs_sframe.
	(sframe_estimate_size_before_relax): New function.
	(sframe_relax_frag): Likewise.
	(sframe_convert_frag): Likewise.
	* gas/config/tc-aarch64.c (aarch64_support_sframe_p): New
	definition.
	(aarch64_sframe_ra_tracking_p): Likewise.
	(aarch64_sframe_cfa_ra_offset): Likewise.
	(aarch64_sframe_get_abi_arch): Likewise.
	(md_begin): Set values of sp/fp/ra registers.
	* gas/config/tc-aarch64.h (aarch64_support_sframe_p): New
	declaration.
	(support_sframe_p): Likewise.
	(SFRAME_CFA_SP_REG): Likewise.
	(SFRAME_CFA_FP_REG): Likewise.
	(SFRAME_CFA_RA_REG): Likewise.
	(aarch64_sframe_ra_tracking_p): Likewise.
	(sframe_ra_tracking_p): Likewise.
	(aarch64_sframe_cfa_ra_offset): Likewise.
	(sframe_cfa_ra_offset): Likewise.
	(aarch64_sframe_get_abi_arch): Likewise.
	(sframe_get_abi_arch): Likewise.
	* gas/config/tc-i386.c (x86_support_sframe_p): New definition.
	(x86_sframe_ra_tracking_p): Likewise.
	(x86_sframe_cfa_ra_offset): Likewise.
	(x86_sframe_get_abi_arch): Likewise.
	* gas/config/tc-i386.h (x86_support_sframe_p): New declaration.
	(support_sframe_p): Likewise.
	(SFRAME_CFA_SP_REG): Likewise.
	(SFRAME_CFA_FP_REG): Likewise.
	(x86_sframe_ra_tracking_p): Likewise.
	(sframe_ra_tracking_p): Likewise.
	(x86_sframe_cfa_ra_offset): Likewise.
	(sframe_cfa_ra_offset): Likewise.
	(x86_sframe_get_abi_arch): Likewise.
	(sframe_get_abi_arch): Likewise.
	* gas/config/tc-xtensa.c (unrelaxed_frag_max_size): Add case for
	rs_sframe.
	* gas/doc/as.texi: Add .sframe to the documentation for
	.cfi_sections.
	* gas/dw2gencfi.c (cfi_finish): Create a .sframe section.
	* gas/dw2gencfi.h (CFI_EMIT_sframe): New definition.
	* gas/write.c (cvt_frag_to_fill): Handle rs_sframe.
	(relax_segment): Likewise.
	* gas/gen-sframe.c: New file.
	* gas/gen-sframe.h: New file.
	* gas/sframe-opt.c: New file.

ChangeLog:

	* gas/as.c (parse_args): Parse args and set flag_gen_sframe.
	* gas/as.h: Introduce skeleton for --gsframe.
	* gas/doc/as.texi: document --gsframe.

include/ChangeLog:
	* sframe.h: New file.

gas/ChangeLog:

	* testsuite/gas/aarch64/cssc.d: Removed duplicate head.

gas/ChangeLog:

        * config/tc-aarch64.c (parse_operands): Handle new operand types.
        * doc/c-aarch64.texi: Document new extension.
        * testsuite/gas/aarch64/cssc.d: New test.
        * testsuite/gas/aarch64/cssc.s: New test.

include/ChangeLog:

        * opcode/aarch64.h (AARCH64_FEATURE_CSSC): New feature Macro.
        (enum aarch64_opnd): New operand types.
        (enum aarch64_insn_class): New instruction class.

opcodes/ChangeLog:

	* aarch64-asm-2.c: Regenerate.
	* aarch64-dis-2.c: Regenerate.
	* aarch64-opc-2.c: Regenerate.
	* aarch64-opc.c (operand_general_constraint_met_p): Update for new
	operand types.
	(aarch64_print_operand): Likewise.
	* aarch64-opc.h (enum aarch64_field_kind): Declare FLD_CSSC_imm8 field.
	* aarch64-tbl.h (aarch64_feature_cssc): Define new feature set.
	(CSSC): Define new feature set Macro.
	(CSSC_INSN): Define new instruction type.
	(aarch64_opcode_table): Add new instructions.

bfd/ChangeLog:

	* elf32-pru.c (elf_backend_default_execstack): Define as 0.

ld/ChangeLog:

	* testsuite/ld-elf/elf.exp (target_defaults_to_execstack):
	Return 0 for pru.

gas/ChangeLog:

2022-11-07  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

        * doc/c-arm.texi: Document directive.
        * config/tc-arm.c (s_arm_unwind_pacspval): Define function.
        (md_pseudo_table): Add entry for pacspval directive.
        * testsuite/gas/arm/ehabi-pacbti-m.d: New test.
        * testsuite/gas/arm/ehabi-pacbti-m.s: Likewise.

binutils/ChangeLog:

2022-11-07  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

        * readelf.c (decode_arm_unwind_bytecode): Add entry to decode opcode 0xb5.

bfd/ChangeLog:

2022-11-09  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

        * cpu-arm.c (processors): Add Cortex-X1C CPU entry.

gas/ChangeLog:

2022-11-09  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

        * NEWS: Update docs.
        * config/tc-arm.c (arm_cpus): Add cortex-x1c to -mcpu.
        * doc/c-arm.texi: Update docs.
        * testsuite/gas/arm/cpu-cortex-x1c.d: New test.

ChangeLog:

	* libctf/configure.ac: Use libtool instead.
	* libctf/configure: Regenerated.

ld/ChangeLog:

        * testsuite/ld-size/size.exp: Skip when -shared is not
	supported.

opcodes/ChangeLog:

	* i386-dis.c (VEX_W_0F3851): Corrected from
	VEX_W_0F3851_P_0.

gas/ChangeLog:

	* NEWS: Support Intel RAO-INT.
	* config/tc-i386.c: Add raoint.
	* doc/c-i386.texi: Document .raoint.
	* testsuite/gas/i386/i386.exp: Run RAO_INT tests.
	* testsuite/gas/i386/raoint-intel.d: New test.
	* testsuite/gas/i386/raoint.d: Ditto.
	* testsuite/gas/i386/raoint.s: Ditto.
	* testsuite/gas/i386/x86-64-raoint-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-raoint.d: Ditto.
	* testsuite/gas/i386/x86-64-raoint.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (PREFIX_0F38FC): New.
	(prefix_table): Add PREFIX_0F38FC.
	* i386-gen.c: (cpu_flag_init): Add CPU_RAO_INT_FLAGS and
	CPU_ANY_RAO_INT_FLAGS.
	* i386-init.h: Regenerated.
	* i386-opc.h: (CpuRAO_INT): New.
	(i386_cpu_flags): Add cpuraoint.
	* i386-opc.tbl: Add RAO_INT instructions.
	* i386-tbl.h: Regenerated.

ld/ChangeLog:

	* testsuite/ld-elfvers/vers.exp: Call check_shared_lib_support.
	* testsuite/ld-elfweak/elfweak.exp: Likewise.
	* testsuite/ld-shared/shared.exp: Likewise.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_parse_check_conflicts): Accept RV32EF
	because only older specifications disallowed it.

gas/ChangeLog:

	* testsuite/gas/riscv/march-fail-rv32ef.d: Remove as not directly
	prohibited.
	* testsuite/gas/riscv/march-fail-rv32ef.l: Likewise.

gas/ChangeLog:

	* NEWS: Support Intel AVX-NE-CONVERT.
	* config/tc-i386.c: Add avx_ne_convert.
	* doc/c-i386.texi: Document .avx_ne_convert.
	* testsuite/gas/i386/i386.exp: Run AVX NE CONVERT tests.
	* testsuite/gas/i386/avx-ne-convert-intel.d: New test.
	* testsuite/gas/i386/avx-ne-convert.d: Ditto.
	* testsuite/gas/i386/avx-ne-convert.s: Ditto.
	* testsuite/gas/i386/x86-64-avx-ne-convert-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-avx-ne-convert.d: Ditto.
	* testsuite/gas/i386/x86-64-avx-ne-convert.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (Mw): New.
	(PREFIX_VEX_0F3872): Ditto.
	(PREFIX_VEX_0F38B0_W_0): Ditto.
	(PREFIX_VEX_0F38B1_W_0): Ditto.
	(VEX_W_0F3872_P_1): Ditto.
	(VEX_W_0F38B0): Ditto.
	(VEX_W_0F38B1): Ditto.
	(prefix_table): Add PREFIX_VEX_0F3872, PREFIX_VEX_0F38B0_W_0,
	PREFIX_VEX_0F38B1_W_0.
	(vex_w_table): Add VEX_W_0F3872_P_1, VEX_W_0F38B0, VEX_W_0F38B1.
	* i386-gen.c (cpu_flag_init): Add CPU_AVX_NE_CONVERT_FLGAS and
	CPU_ANY_AVX_NE_CONVERT_FLAGS.
	(cpu_flags): Add CpuAVX_NE_CONVERT.
	* i386-init.h: Regenerated.
	* i386-opc.h (CpuAVX_NE CONVERT): New.
	(i386_cpu_flags): Add cpuavx_ne_convert.
	* i386-opc.tbl: Add Intel AVX-NE-CONVERT instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

	* NEWS: Support Intel MSRLIST.
	* config/tc-i386.c: Add msrlist.
	* doc/c-i386.texi: Document .msrlist.
	* testsuite/gas/i386/i386.exp: Add MSRLIST tests.
	* testsuite/gas/i386/msrlist-inval.l: New test.
	* testsuite/gas/i386/msrlist-inval.s: Ditto.
	* testsuite/gas/i386/x86-64-msrlist-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-msrlist.d: Ditto.
	* testsuite/gas/i386/x86-64-msrlist.s: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (X86_64_0F01_REG_0_MOD_3_RM_6_P_1): New.
	(X86_64_0F01_REG_0_MOD_3_RM_6_P_3): Ditto.
	(prefix_table): New entry for msrlist.
	(x86_64_table): Add X86_64_0F01_REG_0_MOD_3_RM_6_P_1
	and X86_64_0F01_REG_0_MOD_3_RM_6_P_3.
	* i386-gen.c (cpu_flag_init): Add CPU_MSRLIST_FLAGS
	and CPU_ANY_MSRLIST_FLAGS.
	* i386-init.h: Regenerated.
	* i386-opc.h (CpuMSRLIST): New.
	(i386_cpu_flags): Add cpumsrlist.
	* i386-opc.tbl: Add MSRLIST instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

        * NEWS: Support Intel WRMSRNS.
        * config/tc-i386.c: Add wrmsrns.
        * doc/c-i386.texi: Document .wrmsrns.
        * testsuite/gas/i386/i386.exp: Add WRMSRNS tests.
        * testsuite/gas/i386/wrmsrns-intel.d: New test.
        * testsuite/gas/i386/wrmsrns.d: Ditto.
        * testsuite/gas/i386/wrmsrns.s: Ditto.
        * testsuite/gas/i386/x86-64-wrmsrns-intel.d: Ditto.
        * testsuite/gas/i386/x86-64-wrmsrns.d: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (PREFIX_0F01_REG_0_MOD_3_RM_6): New.
	(prefix_table): Add PREFIX_0F01_REG_0_MOD_3_RM_6.
	(rm_table): New entry for wrmsrns.
	* i386-gen.c (cpu_flag_init): Add CPU_WRMSRNS_FLAGS
	and CPU_ANY_WRMSRNS_FLAGS.
	(cpu_flags): Add CpuWRMSRNS.
        * i386-init.h: Regenerated.
        * i386-opc.h (CpuWRMSRNS): New.
	(i386_cpu_flags): Add cpuwrmsrns.
        * i386-opc.tbl: Add WRMSRNS instructions.
        * i386-tbl.h: Regenerated.

gas/ChangeLog:

	* config/tc-i386.c (cpu_flags_all_zero): Add new ARRAY_SIZE handle.
	(cpu_flags_equal): Ditto.
	(cpu_flags_and): Ditto.
	(cpu_flags_or): Ditto.
	(cpu_flags_and_not): Ditto.

gas/ChangeLog:

	* NEWS: Support Intel CMPccXADD.
	* config/tc-i386.c: Add cmpccxadd.
	(build_modrm_byte): Add operations for Vex.VVVV reg
	on operand 0 while have memory operand.
	* doc/c-i386.texi: Document .cmpccxadd.
	* testsuite/gas/i386/i386.exp: Run CMPccXADD tests.
	* testsuite/gas/i386/cmpccxadd-inval.s: New test.
	* testsuite/gas/i386/cmpccxadd-inval.l: Ditto.
	* testsuite/gas/i386/x86-64-cmpccxadd-intel.d: Ditto.
	* testsuite/gas/i386/x86-64-cmpccxadd.s: Ditto.
	* testsuite/gas/i386/x86-64-cmpccxadd.d: Ditto.

opcodes/ChangeLog:

	* i386-dis.c (Mdq): New.
	(X86_64_VEX_0F38E0): Ditto.
	(X86_64_VEX_0F38E1): Ditto.
	(X86_64_VEX_0F38E2): Ditto.
	(X86_64_VEX_0F38E3): Ditto.
	(X86_64_VEX_0F38E4): Ditto.
	(X86_64_VEX_0F38E5): Ditto.
	(X86_64_VEX_0F38E6): Ditto.
	(X86_64_VEX_0F38E7): Ditto.
	(X86_64_VEX_0F38E8): Ditto.
	(X86_64_VEX_0F38E9): Ditto.
	(X86_64_VEX_0F38EA): Ditto.
	(X86_64_VEX_0F38EB): Ditto.
	(X86_64_VEX_0F38EC): Ditto.
	(X86_64_VEX_0F38ED): Ditto.
	(X86_64_VEX_0F38EE): Ditto.
	(X86_64_VEX_0F38EF): Ditto.
	(x86_64_table): Add X86_64_VEX_0F38E0, X86_64_VEX_0F38E1,
	X86_64_VEX_0F38E2, X86_64_VEX_0F38E3, X86_64_VEX_0F38E4,
	X86_64_VEX_0F38E5, X86_64_VEX_0F38E6, X86_64_VEX_0F38E7,
	X86_64_VEX_0F38E8, X86_64_VEX_0F38E9, X86_64_VEX_0F38EA,
	X86_64_VEX_0F38EB, X86_64_VEX_0F38EC, X86_64_VEX_0F38ED,
	X86_64_VEX_0F38EE, X86_64_VEX_0F38EF.
	* i386-gen.c (cpu_flag_init): Add CPU_CMPCCXADD_FLAGS and
	CPU_ANY_CMPCCXADD_FLAGS.
	(cpu_flags): Add CpuCMPCCXADD.
	* i386-init.h: Regenerated.
	* i386-opc.h (CpuCMPCCXADD): New.
	(i386_cpu_flags): Add cpucmpccxadd. Comment unused for it is actually 0.
	* i386-opc.tbl: Add Intel CMPccXADD instructions.
	* i386-tbl.h: Regenerated.

gas/ChangeLog:

	* NEWS: Add support for Intel PREFETCHI instruction.
	* config/tc-i386.c (load_insn_p): Use prefetch* to fold all prefetches.
	(md_assemble): Add warning for illegal input of PREFETCHI.
	* doc/c-i386.texi: Document .prefetchi.
	* testsuite/gas/i386/i386.exp: Run PREFETCHI tests.
	* testsuite/gas/i386/x86-64-lfence-load.d: Add PREFETCHI.
	* testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
	* testsuite/gas/i386/x86-64-prefetch.d: New test.
	* testsuite/gas/i386/x86-64-prefetchi-intel.d: Likewise.
	* testsuite/gas/i386/x86-64-prefetchi-inval-register.d: Likewise..
	* testsuite/gas/i386/x86-64-prefetchi-inval-register.s: Likewise.
	* testsuite/gas/i386/x86-64-prefetchi-warn.l: Likewise.
	* testsuite/gas/i386/x86-64-prefetchi-warn.s: Likewise.
	* testsuite/gas/i386/x86-64-prefetchi.d: Likewise.
	* testsuite/gas/i386/x86-64-prefetchi.s: Likewise.

opcodes/ChangeLog:

	* i386-dis.c (reg_table): Add MOD_0F18_REG_6 and MOD_0F18_REG_7
	(x86_64_table): Add X86_64_0F18_REG_6_MOD_0 and X86_64_0F18_REG_7_MOD_0.
	(mod_table): Add MOD_0F18_REG_6 and MOD_0F18_REG_7.
	(prefix_table): Add PREFIX_0F18_REG_6_MOD_0_X86_64 and
	PREFIX_0F18_REG_7_MOD_0_X86_64.
	(PREFETCHI_Fixup): New.
	* i386-gen.c (cpu_flag_init): Add CPU_PREFETCHI_FLAGS.
	(cpu_flags): Add CpuPREFETCHI.
	* i386-opc.h (CpuPREFETCHI): New.
	(i386_cpu_flags): Add cpuprefetchi.
	* i386-opc.tbl: Add Intel PREFETCHI instructions.
	* i386-init.h: Regenerated.
	* i386-tbl.h: Likewise.

gas/ChangeLog:

	* config/tc-riscv.c (validate_riscv_insn): Exclude non-
	instruction bits from displaying internal diagnostics.
	Change error message slightly.

gas/ChangeLog:

	* config/tc-riscv.c (validate_riscv_insn): Fix function
	description comment based on current spec.  Limit instruction
	length up to 64-bit for now.  Make sure that required_bits does
	not corrupt even if unsigned long long is longer than 64-bit.

gas/ChangeLog:

	* config/tc-riscv.c (make_mapping_symbol): Initialize variable
	buff with NULL to avoid build failure caused by a GCC's false
	positive of maybe uninitialized variable detection.

include/ChangeLog:

	* diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_DECLARATIONS):
	Define also on GCC.

ld/ChangeLog:

	* testsuite/ld-size/size.exp: Use canonical option name.

ld/ChangeLog:

	* testsuite/ld-arm/arm-elf.exp: Separate tests needing shared
	lib support.

ld/ChangeLog:

	* testsuite/ld-elf/exclude.exp: Call check_shared_lib_support.
	to skip for all targets without shared lib support.

binutils/ChangeLog:

	* doc/local.mk: Remove unused substitution PROGRAM.
	* Makefile.in: Regenerate.

ld/ChangeLog:

	* testsuite/ld-unique/unique.exp: Add board_ldflags when
	linking with GCC.
	* testsuite/lib/ld-lib.exp: Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/march-imply-h.d: New test, at least for 'H'.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets): Add 'Zicsr'
	implicications for privileged extensions 'H', 'Smstateen',
	'Sscofpmf', 'Sstc' and 'Smepmp'.

opcodes/ChangeLog:

	* riscv-dis.c (last_map_state): Remove.
	(print_insn_riscv): Remove setting last_map_state.

opcodes/ChangeLog:

	* riscv-dis.c (xlen): Make this variable static.

opcodes/ChangeLog:

	* riscv-dis.c (no_aliases) Change type to bool.
	(set_default_riscv_dis_options): Use boolean.
	(parse_riscv_dis_option_without_args): Likewise.
	(riscv_disassemble_insn): Use boolean keywords.

opcodes/ChangeLog:

	* riscv-dis.c (riscv_disassemble_insn): Tidying with spacing.

opcodes/ChangeLog:

	* riscv-dis.c (xlen): Move before default_isa_spec. Add comment.
	(default_isa_spec, default_priv_spec): Add comment.
	(riscv_gpr_names, riscv_fpr_names): Likewise.
	(parse_riscv_dis_option_without_args): Likewise.
	(parse_riscv_dis_option, parse_riscv_dis_options): Likewise.
	(maybe_print_address): Likewise.
	(riscv_disassemble_insn): Fix comment about the Zfinx "extension".
	Add comment about the riscv_multi_subset_supports call.

gas/ChangeLog:

	* testsuite/gas/riscv/dw-regnums.s: Add "fp".
	* testsuite/gas/riscv/dw-regnums.d: Likewise.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Move all standard hints before all
	standard instructions.

include/ChangeLog:

	* opcode/riscv.h (riscv_rm, riscv_pred_succ): Move declarations to
	opcodes/riscv-opc.c.  New non-static definitions.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_rm, riscv_pred_succ): Move from
	include/opcode/riscv.h.  Add description.

bfd/ChangeLog:

	* libbfd.c: Set COMPRESS_DEBUG_GABI_ZLIB for "zlib" value.

ChangeLog:

	* configure.ac: Add --enable-default-compressed-debug-sections-algorithm.
	* configure: Regenerate.

gas/ChangeLog:

	* NEWS: Document the new option.
	* as.c (flag_compress_debug): Set default algorithm based
	on the configure option.
	* configure.ac: Add --enable-default-compressed-debug-sections-algorithm.
	* configure: Regenerate.
	* config.in: Likewise.

ld/ChangeLog:

	* NEWS: Document the new option.
	* configure.ac: Add --enable-default-compressed-debug-sections-algorithm.
	* configure: Regenerate.
	* config.in: Likewise.
	* ldmain.c: Set default algorithm based
	on the configure option.

bfd/ChangeLog:

	* bfd-in.h (bfd_hash_set_default_size): Add COMPRESS_UNKNOWN
	  enum value.
	(struct compressed_type_tuple): New.
	* bfd-in2.h (bfd_hash_set_default_size): Regenerate.
	(struct compressed_type_tuple): Likewise.
	* libbfd.c (ARRAY_SIZE): New macro.
	(bfd_get_compression_algorithm): New function.
	(bfd_get_compression_algorithm_name): Likewise.

gas/ChangeLog:

	* as.c: Do not special-case, use the new functions.

ld/ChangeLog:

	* emultempl/elf.em: Do not special-case, use the new functions.
	* lexsup.c (elf_static_list_options): Likewise.

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Use dis_style_immediate on
	the constant literal of the "Xl..." operand.

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Fix T-Head immediate types on
	printing.

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Split and print the comma as
	text.  (riscv_disassemble_insn): Split and print tabs as text.
	(riscv_disassemble_data): Likewise.

opcodes/ChangeLog:

	* riscv-dis.c (riscv_disassemble_data): Use smallest possible type
	to printing data.

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Fix printf argument types where
	the format specifier is "%x".

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Fix immediates to have
	"immediate" style.  (riscv_disassemble_data): Likewise.

include/ChangeLog:

	* opcode/riscv.h (RISCV_MAX_INSN_LEN): Max instruction length for
	use in buffer size.

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_riscv): Increase buffer size for max
	176-bit length instructions.

bfd/ChangeLog:

	* elf.c (_bfd_elf_make_section_from_shdr): Compress all debug
	  info sections.

gas/ChangeLog:

	* write.c (compress_debug): Compress also ".gnu.debuglto_.debug_"
	if the compression algorithm is different from zlib-gnu.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Adjust indents.  Move supervisor
	instructions after all unprivileged instructions.

binutils/ChangeLog:

	* dwarf.c (dwarf_regnames_riscv): Assign DWARF register numbers
	96..127 to vector registers v0-v31.

gas/ChangeLog:

	* config/tc-riscv.c (tc_riscv_regname_to_dw2regnum): Support
	vector registers.
	* testsuite/gas/riscv/dw-regnums.s: Add vector registers to the
	DWARF register number test.
	* testsuite/gas/riscv/dw-regnums.d: Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/dw-regnums.s: New DWARF register number test
	for GPRs/FPRs.
	* testsuite/gas/riscv/dw-regnums.d: Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/zfinx.s: Add "fmv.s" instruction.
	* testsuite/gas/riscv/zfinx.d: Likewise.
	* testsuite/gas/riscv/zdinx.s: Add "fmv.d" instruction.
	* testsuite/gas/riscv/zdinx.d: Likewise.
	* testsuite/gas/riscv/zqinx.d: Add "fmv.q" instruction.
	* testsuite/gas/riscv/zqinx.s: Likewise.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Relax requirements to "fmv.[sdq]"
	instructions to support those in 'Zfinx'/'Zdinx'/'Zqinx'.

gas/ChangeLog:

	* testsuite/gas/riscv/zfinx.s: Use different registers for
	better encode space testing.  Make indentation consistent.
	Add tests for instruction with rounding mode.  Change march
	to minimum required extensions.  Remove source line.
	* testsuite/gas/riscv/zfinx.d: Likewise.
	* testsuite/gas/riscv/zdinx.s: Likewise.
	* testsuite/gas/riscv/zdinx.d: Likewise.
	* testsuite/gas/riscv/zqinx.s: Likewise.
	Also use even-numbered registers to use valid register pairs.
	* testsuite/gas/riscv/zqinx.d: Likewise.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_supported_std_s_ext): Add 'Smepmp',
	'Svnapot' and 'Svpbmt' extensions.

ld/ChangeLog:

	* testsuite/ld-elf/elf.exp (PR ld/29072): Force execstack and
	RWD segment warnings.

binutils/ChangeLog:
        *  testsuite/config/default.exp (CXXFILE): if cxxfilt not found,
        try c++filt.

binutils/ChangeLog:

	* testsuite/binutils-all/objdump.exp: Skip dotnet tests if
	gentestdlls is not available.

include/ChangeLog:

    * diagnostics.h (DIAGNOSTIC_IGNORE_UNUSED_BUT_SET_VARIABLE): New.

include/ChangeLog:

	* diagnostics.h (DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS): New.

ld/ChangeLog:

	* testsuite/config/default.exp: Allow to change -B flag with
	ld_testsuite_bindir variable.

ld/ChangeLog:

	* testsuite/ld-bootstrap/bootstrap.exp: Skip if OFILES is
	missing

opcodes/ChangeLog:

	* riscv-dis.c (print_insn_args): Remove 'b' operand type.

gas/ChangeLog:

	* config/tc-riscv.c (validate_riscv_insn): Add "c", "VM" and "VT"
	macro-only operand types.

gas/ChangeLog:

	* config/tc-riscv.c (riscv_set_tso): Fix declaration.

gas/ChangeLog:

	* config/tc-riscv.c (s_riscv_option): Set TSO ELF flag if the
	'Ztso' extension is specified via ".option arch" directive.

ChangeLog:

	* configure.ac: Pass CPPFLAGS_FOR_BUILD to subdirectories.
	* configure: Regenerate.

bfd\ChangeLog:

        * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Set TSO flag.
        * elfxx-riscv.c: Add Ztso's arch.

binutils\ChangeLog:

        * readelf.c (get_machine_flags): Set TSO flag.

gas\ChangeLog:

        * config/tc-riscv.c (riscv_set_tso): Ditto.
        (riscv_set_arch): Ditto.
        * testsuite/gas/riscv/ztso.d: New test.

include\ChangeLog:

        * elf/riscv.h (EF_RISCV_TSO): Ditto.

bfd/ChangeLog:

	* elf32-lm32.c (lm32_elf_size_dynamic_sections): Mark unused
	rgot_count variable.
	* elf32-nds32.c (elf32_nds32_unify_relax_group): Remove unused
	count variable.
	* mmo.c (mmo_scan): Mark unused lineno variable.

binutils/ChangeLog:

	* windmc.c (write_rc): Remove unused i variable.

gas/ChangeLog:

	* config/tc-riscv.c (riscv_ip): Remove unused argnum variable.

ld/ChangeLog:

	* pe-dll.c (generate_reloc): Remove unused bi and page_count
	variables.

bfd/ChangeLog:

	* warning.m4: Stop appending "-Wstack-usage=262144" option when
	compiled with Clang.
	* configure: Regenerate.

binutils/ChangeLog:

	* configure: Regenerate.

gas/ChangeLog:

	* configure: Regenerate.

gold/ChangeLog:

	* configure: Regenerate.

gprof/ChangeLog:

	* configure: Regenerate.

ld/ChangeLog:

	* configure: Regenerate.

opcodes/ChangeLog:

	* configure: Regenerate.

gas/ChangeLog:

	* config/tc-riscv.c (riscv_csr_address): Change vector CSR
	requirement from 'V' to 'Zve32x'.
	* testsuite/gas/riscv/csr-version-1p9p1.l: Change vector CSR
	requirement from 'V' to 'Zve32x'.
	* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.l: Likewise.

gdbsupport/ChangeLog:

	* configure.ac: Fix config.status dependency.
	* Makefile.in: Regenerate.
	* configure: Regenerate.

gdb/ChangeLog:

	* gdb/disasm.c (set_disassembler_options): Add support for
	non-enum disassembler options.
	(show_disassembler_options_sfunc): Likewise.

include/ChangeLog:

	* dis-asm.h (disasm_option_arg_t): Update comment of values
	to allow non-enum disassembler options.

opcodes/ChangeLog:

	* riscv-dis.c (print_riscv_disassembler_options): Support
	non-enum disassembler options on printing disassembler help.
	* arc-dis.c (print_arc_disassembler_options): Likewise.
	* mips-dis.c (print_mips_disassembler_options): Likewise.

sim/ChangeLog:

	* riscv/sim-main.c (execute_i): Use "ebreak" instead of "sbreak".

gas/ChangeLog:

	* testsuite/gas/riscv/dis-addr-topaddr.s: New test for the top
	address (-1) printing.
	* testsuite/gas/riscv/dis-addr-topaddr-32.d: Likewise.
	* testsuite/gas/riscv/dis-addr-topaddr-64.d: Likewise.
	* testsuite/gas/riscv/dis-addr-topaddr-gp.s: New test for
	GP-relative addressing when GP is the highest address (-1).
	* testsuite/gas/riscv/dis-addr-topaddr-gp-32.d: Likewise.
	* testsuite/gas/riscv/dis-addr-topaddr-gp-64.d: Likewise.

opcodes/ChangeLog:

	* riscv-dis.c (struct riscv_private_data): Add `to_print_addr' to
	enable printing the highest address.
	(maybe_print_address): Utilize `to_print_addr'.
	(riscv_disassemble_insn): Likewise.

gas/ChangeLog:

	* testsuite/gas/riscv/dis-addr-addiw.s: New to test the address
	computation with sign extension as used in ADDIW/C.ADDIW.
	* testsuite/gas/riscv/dis-addr-addiw-a.d: Test PC sign bit 0.
	* testsuite/gas/riscv/dis-addr-addiw-b.d: Test PC sign bit 1.

gas/ChangeLog:

	* testsuite/gas/riscv/dis-addr-addiw-a.d: New test.
	* testsuite/gas/riscv/dis-addr-addiw-b.d: New test.
	* testsuite/gas/riscv/dis-addr-addiw.s: New test.

sim/ChangeLog:

	* MAINTAINERS: Update mailing list address.

bfd/ChangeLog:

	PR 29081
	* dwarf2.c (struct addr_range): New.
	(addr_range_intersects): Likewise.
	(splay_tree_compare_addr_range): Likewise.
	(splay_tree_free_addr_range): Likewise.
	(struct dwarf2_debug_file): Add comp_unit_tree.
	(find_abstract_instance): Use the splay tree when searching
	for a info_ptr.
	(stash_comp_unit): Insert to the splay tree.
	(_bfd_dwarf2_cleanup_debug_info): Clean up the splay tree.

bfd/ChangeLog:

	PR 29442
	* dwarf2.c (struct varinfo): Use const char * type.
	(scan_unit_for_symbols): Call find_abstract_instance for
	DW_AT_specification for variables that can be in a different CU
	(e.g. done by dwz)

ld/ChangeLog:

	* NEWS: Fix 2 typos.

gas/ChangeLog:

	* testsuite/gas/elf/section10.s: Use SHF_LINK_ORDER to test
	mixed numeric and alpha values.
	* testsuite/gas/elf/section10.d: Reflect the change above.

gas/ChangeLog:

	* config/tc-riscv.c (opcode_name_list): Add `OP_V'.
	* testsuite/gas/riscv/insn.s: Add testcase.
	* testsuite/gas/riscv/insn.d: Likewise.
	* testsuite/gas/riscv/insn-dwarf.d: Reflect insn.s update.

opcodes/ChangeLog:
	* disassemble.c (disassemble_init_for_target): Set
	created_styled_output for ARC based targets.
	* arc-dis.c (find_format_from_table): Use fprintf_styled_ftype
	instead of fprintf_ftype throughout.
	(find_format): Likewise.
	(print_flags): Likewise.
	(print_insn_arc): Likewise.

include/ChangeLog:

	* plugin-api.h (enum ld_plugin_tag): Sync with GCC.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_implicit_subsets): Change implicit
	subsets.  Zfh->Zicsr is not needed and Zfh->F is replaced with
	Zfh->Zfhmin and Zfhmin->F.  Zhinx->Zicsr is not needed and
	Zhinx->Zfinx is replaced with Zhinx->Zhinxmin and
	Zhinxmin->Zfinx.
	(riscv_supported_std_z_ext): Added zfhmin and zhinxmin.
	(riscv_multi_subset_supports):  Rewrite handling for new
	instruction classes.
	(riscv_multi_subset_supports_ext): Updated.
	(riscv_parse_check_conflicts): Change error message to include
	zfh and zfhmin extensions.

gas/ChangeLog:

	* testsuite/gas/riscv/zfhmin-d-insn-class-fail.s: New complex
	error handling test.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-1.d: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-1.l: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-2.d: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-2.l: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-3.d: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-3.l: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-4.d: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-4.l: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-5.d: Likewise.
	* testsuite/gas/riscv/zfhmin-d-insn-class-fail-5.l: Likewise.
	* testsuite/gas/riscv/zhinx.d: Renamed from fp-zhinx-insns.d
	and refactored.
	* testsuite/gas/riscv/zhinx.s: Likewise.

include/ChangeLog:

	* opcode/riscv.h (enum riscv_insn_class): Removed INSN_CLASS_ZFH,
	INSN_CLASS_D_AND_ZFH_INX and INSN_CLASS_Q_AND_ZFH_INX.  Added
	INSN_CLASS_ZFHMIN, INSN_CLASS_ZFHMIN_OR_ZHINXMIN,
	INSN_CLASS_ZFHMIN_AND_D and INSN_CLASS_ZFHMIN_AND_Q.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Change instruction classes for
	Zfh and Zfhmin instructions.  Fix `fcvt.h.lu' instruction
	(two operand variant) mask.

gas/ChangeLog:

	* testsuite/gas/riscv/zfinx-dis-numeric.s: Test new behavior of
	Zfinx extension and -M numeric disassembler option.
	* testsuite/gas/riscv/zfinx-dis-numeric.d: Likewise.

opcodes/ChangeLog:

	* riscv-dis.c (riscv_disassemble_insn): Use dynamically set GPR
	names to disassemble Zfinx instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports): Fix feature gate
	on INSN_CLASS_{D,Q}_AND_ZFH_INX.
	(riscv_multi_subset_supports_ext): Fix feature gate diagnostics
	on INSN_CLASS_{D,Q}_AND_ZFH_INX.

gas/ChangeLog:

	* testsuite/gas/riscv/fp-zhinx-insns.d: Add Zqinx to -march
	for proper testing.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_supported_std_z_ext): Update version
	number of Zihintpause extension.

bfd/ChangeLog:

        * bfdio.c (_bfd_real_fopen): Retrieve codepage with
        ___lc_codepage_func() on MinGW.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_supported_std_s_ext): Add 'Sstc'
	extension to valid 'S' extension list.

gas/ChangeLog:

	* config/tc-riscv.c (enum riscv_csr_class): Add CSR classes for
	'Sstc' extension. (riscv_csr_address): Add handling for new CSR
	classes.
	* testsuite/gas/riscv/csr-dw-regnums.s: Add new CSRs.
	* testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
	* testsuite/gas/riscv/csr.s: Add new CSRs.
	* testsuite/gas/riscv/csr-version-1p9p1.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.l: Likewise.

include/ChangeLog:

	* opcode/riscv-opc.h (CSR_STIMECMP, CSR_STIMECMPH,
	CSR_VSTIMECMP, CSR_VSTIMECMPH): New CSR macros.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_supported_std_s_ext): Add 'Sscofpmf'
	extension to valid 'S' extension list.

gas/ChangeLog:

	* config/tc-riscv.c (enum riscv_csr_class): Add CSR classes for
	'Sscofpmf' extension. (riscv_csr_address): Add handling for new
	CSR classes.
	* testsuite/gas/riscv/csr-dw-regnums.s: Add new CSRs.
	* testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
	* testsuite/gas/riscv/csr.s: Add new CSRs.
	* testsuite/gas/riscv/csr-version-1p9p1.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.l: Likewise.

include/ChangeLog:

	* opcode/riscv-opc.h (CSR_SCOUNTOVF, CSR_MHPMEVENT3H,
	CSR_MHPMEVENT4H, CSR_MHPMEVENT5H, CSR_MHPMEVENT6H,
	CSR_MHPMEVENT7H, CSR_MHPMEVENT8H, CSR_MHPMEVENT9H,
	CSR_MHPMEVENT10H, CSR_MHPMEVENT11H, CSR_MHPMEVENT12H,
	CSR_MHPMEVENT13H, CSR_MHPMEVENT14H, CSR_MHPMEVENT15H,
	CSR_MHPMEVENT16H, CSR_MHPMEVENT17H, CSR_MHPMEVENT18H,
	CSR_MHPMEVENT19H, CSR_MHPMEVENT20H, CSR_MHPMEVENT21H,
	CSR_MHPMEVENT22H, CSR_MHPMEVENT23H, CSR_MHPMEVENT24H,
	CSR_MHPMEVENT25H, CSR_MHPMEVENT26H, CSR_MHPMEVENT27H,
	CSR_MHPMEVENT28H, CSR_MHPMEVENT29H, CSR_MHPMEVENT30H,
	CSR_MHPMEVENT31H): New CSR macros.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_supported_std_s_ext): Add 'Smstateen'
	extension to valid 'S' extension list.

gas/ChangeLog:

	* config/tc-riscv.c (enum riscv_csr_class): Add CSR classes for
	'Smstateen' extension. (riscv_csr_address): Add handling for
	new CSR classes.
	* testsuite/gas/riscv/csr-dw-regnums.s: Add new CSRs.
	* testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
	* testsuite/gas/riscv/csr.s: Add new CSRs.
	* testsuite/gas/riscv/csr-version-1p9p1.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
	* testsuite/gas/riscv/csr-version-1p12.l: Likewise.

include/ChangeLog:

	* opcode/riscv-opc.h (CSR_MSTATEEN0, CSR_MSTATEEN1,
	CSR_MSTATEEN2, CSR_MSTATEEN3, CSR_SSTATEEN0, CSR_SSTATEEN1,
	CSR_SSTATEEN2, CSR_SSTATEEN3, CSR_HSTATEEN0, CSR_HSTATEEN1,
	CSR_HSTATEEN2, CSR_HSTATEEN3, CSR_MSTATEEN0H, CSR_MSTATEEN1H,
	CSR_MSTATEEN2H, CSR_MSTATEEN3H, CSR_HSTATEEN0H, CSR_HSTATEEN1H,
	CSR_HSTATEEN2H, CSR_HSTATEEN3H): New CSR macros.

gas/ChangeLog:

	* config/tc-riscv.c (riscv_csr_address): Add CSR feature gate
	handling for H.  Change handling on RV32.

ChangeLog:

2022-06-27  Tom de Vries  <tdevries@suse.de>

	* configure.ac: Set extra_host_libiberty_configure_flags and
	extra_host_zlib_configure_flags in separate case statements.
	* configure: Regenerate.

ChangeLog:

2022-06-27  Tom de Vries  <tdevries@suse.de>

	* configure.ac: Build libiberty pic variant for gdbserver.
	* configure: Regenerate.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_multi_subset_supports_ext): Wrap some
	strings with the gettext macro to prepare future i18n.

gas/ChangeLog:

	* config/tc-riscv.c (riscv_ip): Fix inconsistent error message.

ld/ChangeLog:

	* configure: Regenerate.

libctf/ChangeLog:

	* testsuite/lib/ctf-lib.exp: Prune warnings from compiler and
	linker output.
	* testsuite/libctf-regression/libctf-repeat-cu.exp: Likewise,
	and ar output too.

libctf/ChangeLog:

	* ctf-serialize.c (ctf_write_mem): Fix cast.

libctf/ChangeLog:

	PR libctf/29242
	* ctf-impl.h (struct ctf_dict) [ctf_link_in_out]: New.
	* ctf-dedup.c (ctf_dedup_emit_type): Set it.
	* ctf-link.c (ctf_link_add_ctf_internal): Set the input
	CU name uniquely when clashes are found.
	(ctf_link_add): Document what repeated additions do.
	(ctf_new_per_cu_name): New, come up with a consistent
	name for a new per-CU dict.
	(ctf_link_deduplicating): Use it.
	(ctf_create_per_cu): Use it, and ctf_link_in_out, and set
	ctf_link_in_out properly.  Don't overwrite per-CU dicts with
	per-CU dicts relating to different inputs.
	(ctf_link_add_cu_mapping): Prevent per-CU mappings being set up
	if we already have per-CU outputs.
	(ctf_link_one_variable): Adjust ctf_link_per_cu call.
	(ctf_link_deduplicating_one_symtypetab): Likewise.
	(ctf_link_empty_outputs): New, delete all the ctf_link_outputs
	and blank out ctf_link_in_out on the corresponding inputs.
	(ctf_link): Clarify the effect of multiple ctf_link calls.
	Empty ctf_link_outputs if it already exists rather than
	having the old output leak into the new link.  Fix a variable
	name.
	* testsuite/config/default.exp (AR): Add.
	(OBJDUMP): Likewise.
	* testsuite/libctf-regression/libctf-repeat-cu.exp: New test.
	* testsuite/libctf-regression/libctf-repeat-cu*: Main program,
	library, and expected results for the test.

gdb/ChangeLog:

	* debuginfod-support.c (debuginfod_is_enabled): Always use
	DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD.

bfd/ChangeLog:

        * elfxx-riscv.c (riscv_multi_subset_supports): New extensions.
        (riscv_multi_subset_supports_ext): New extensions.

gas/ChangeLog:

        * testsuite/gas/riscv/fp-zhinx-insns.d: New test.
        * testsuite/gas/riscv/fp-zhinx-insns.s: New test.

include/ChangeLog:

        * opcode/riscv.h (enum riscv_insn_class): New INSN classes.

opcodes/ChangeLog:

        * riscv-opc.c: Modify INSN_CLASS.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_parse_check_conflicts): Remove conflict
	detection that prohibits RV32Q on 'Q' version 2.2 or later.

gas/ChangeLog:

	* testsuite/gas/riscv/march-fail-rv32iq.d: Removed.
	* testsuite/gas/riscv/march-fail-rv32iq.l: Likewise.
	* testsuite/gas/riscv/march-fail-rv32iq2p0.d: New test
	showing RV32IQ fails on 'Q' extension version 2.0.
	* testsuite/gas/riscv/march-fail-rv32iq2p0.l: Likewise.
	* testsuite/gas/riscv/march-fail-rv32iq2.d: Likewise.
	* testsuite/gas/riscv/march-fail-rv32iq-isa-2p2.d: New test
	showing RV32IQ fails on ISA specification version 2.2.
	* testsuite/gas/riscv/march-ok-rv32iq2p2.d: New test
	showing RV32IQ succesds on 'Q' extension version 2.2.
	* testsuite/gas/riscv/march-ok-rv32iq-isa-20190608.d: New test
	showing RV32IQ succesds on ISA specification 20190608.

bfd/ChangeLog:

        * elfxx-riscv.c: New imply.

gas/ChangeLog:

        * testsuite/gas/riscv/csr-insns-pseudo-zfinx.d: New test.

opcodes/ChangeLog:

        * riscv-opc.c: Update insn class.

gas/ChangeLog:

	* testsuite/gas/riscv/fmv.x.q-rv64-fail.d: New failure test.
	* testsuite/gas/riscv/fmv.x.q-rv64-fail.l: Likewise.
	* testsuite/gas/riscv/fmv.x.q-rv64-fail.s: Likewise.

include/ChangeLog:

	* opcode/riscv-opc.h (MATCH_FMV_X_Q, MASK_FMV_X_Q,
	MATCH_FMV_Q_X, MASK_FMV_Q_X): Remove RV128-only instructions.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Remove RV128-only instructions.

bfd/ChangeLog:

	* elfxx-riscv.c (riscv_recognized_prefixed_ext): Fix "K" extension
	prefix to be placed before "J".

include/ChangeLog:

2022-05-16  Tamar Christina  <tamar.christina@arm.com>

	* opcode/aarch64.h (AARCH64_ARCH_V9_FEATURES): Add AARCH64_FEATURE_F16.

 gdb/ChangeLog:

    * debuginfod-support.c (debuginfod_is_enabled): Use
      DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD on powerpc64.

include/ChangeLog:

	* ansidecl.h: Sync from GCC.

include/ChangeLog:

	* diagnostics.h (DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD): New
	macro.

gdb/ChangeLog:

	* debuginfod-support.c (debuginfod_is_enabled): Use
	DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD on s390x.

include/ChangeLog:

	* plugin-api.h (enum ld_plugin_tag): Sync with GCC.

libctf/ChangeLog:

	* ctf-dedup.c (ctf_dedup_detect_name_ambiguity): Use
	cd_output_first_gid to break ties.

ld/ChangeLog:

	* testsuite/ld-ctf/array-conflicted-ordering.d: New test, using...
	* testsuite/ld-ctf/array-char-conflicting-1.c: ... this...
	* testsuite/ld-ctf/array-char-conflicting-2.c: ... and this.
	* testsuite/ld-ctf/array-extern.d: New test, using...
	* testsuite/ld-ctf/array-extern.c: ... this.
	* testsuite/ld-ctf/conflicting-typedefs.d: Adjust for ordering
	changes.

include/ChangeLog:

	* ctf-api.h (ctf_*open): Improve comment.

bfd/ChangeLog:

	* elf.c (elfcore_grok_freebsd_note): Handle NT_ARM_TLS notes.

bfd/ChangeLog:

	* coff-rs6000.c (xcoff_reloc_type_noop): Add info argument.
	(xcoff_reloc_type_fail): Likewise.
	(xcoff_reloc_type_pos): Likewise.
	(xcoff_reloc_type_neg): Likewise.
	(xcoff_reloc_type_rel): Likewise.
	(xcoff_reloc_type_toc): Likewise.
	(xcoff_reloc_type_ba): Likewise.
	(xcoff_reloc_type_crel): Likewise.
	(xcoff_reloc_type_tls): Likewise.
	(xcoff_reloc_type_br): Add stub handler.
	(xcoff_ppc_relocate_section): Add info to
	xcoff_calculate_relocation.
	(xcoff_stub_indirect_call_code): New constant.
	(xcoff_stub_shared_call_code): Likewise.
	(bfd_xcoff_backend_data): Add stub code fields.
	(bfd_pmac_xcoff_backend_data): Likewise.
	* coff64-rs6000.c (xcoff64_reloc_type_br): Add stub handler.
	(xcoff64_ppc_relocate_section): Add info to
	xcoff64_calculate_relocation.
	(xcoff64_stub_indirect_call_code): New constant.
	(xcoff64_stub_shared_call_code): Likewise.
	(bfd_xcoff_backend_data): Add stub code fields.
	(bfd_xcoff_aix5_backend_data): Likewise.
	* libxcoff.h (struct xcoff_backend_data_rec): Add stub fields.
	(bfd_xcoff_stub_indirect_call_code): New define.
	(bfd_xcoff_stub_indirect_call_size): New define.
	(bfd_xcoff_stub_shared_call_code): New define.
	(bfd_xcoff_stub_shared_call_size): New define.
	(xcoff_reloc_function): Add info argument.
	(enum xcoff_stub_type): New enum.
	(struct xcoff_stub_hash_entry): New structure.
	* xcofflink.c (struct xcoff_link_hash_table): Add stub hash
	table and params fields.
	(xcoff_stub_hash_entry): New define.
	(xcoff_stub_hash_lookup): New define.
	(stub_hash_newfunc): New function.
	(_bfd_xcoff_bfd_link_hash_table_free): Free the new stub hash
	table.
	(_bfd_xcoff_bfd_link_hash_table_create): Create the new stub
	hash table.
	(xcoff_link_add_symbols): Save rawsize for XTY_SD.
	(bfd_xcoff_link_init): New function.
	(xcoff_stub_csect_name): New function.
	(xcoff_stub_get_csect_in_range): New function.
	(xcoff_stub_name): New function.
	(bfd_xcoff_get_stub_entry): New function.
	(bfd_xcoff_type_of_stub): New function.
	(xcoff_add_stub): New function.
	(xcoff_build_one_stub): New function.
	(bfd_xcoff_size_stubs): New function.
	(bfd_xcoff_build_stubs): New function.
	(xcoff_stub_create_relocations): New function.
	(xcoff_link_input_bfd): Adapt relocations to stub.
	(xcoff_write_global_symbol): Adapt to new TOC entries generated
	for stubs.
	(_bfd_xcoff_bfd_final_link): Handle stub file.
	* xcofflink.h (struct bfd_xcoff_link_params): New structure.

ld/ChangeLog:

	* emultempl/aix.em (params): New variable.
	(stub_file): New variable.
	(xcoff_add_stub_section): New function.
	(xcoff_layout_sections_again): New function
	(hook_in_stub): New function.
	(_after_allocation): Add stub creation.
	(_create_output_section_statements): Allocate stub file and
	pass params to backend.

bfd/ChangeLog:

	* coff-rs6000.c (_bfd_xcoff_put_ldsymbol_name): Write len in
	  ldinfo->strings instead of directly in the output_bfd.
	* coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
	* xcofflink.c (struct xcoff_link_hash_table): Remove ldrel_count
	  field. Add ldinfo field.
	(xcoff_mark_symbol): Adjust to new ldinfo field.
	(xcoff_mark): Likewise.
	(bfd_xcoff_link_count_reloc): Likewise.
	(xcoff_build_loader_section): Split into two functions: one that
	build the loader section (this function) and one that only size
	it...
	(xcoff_size_loader_section): ... (this function).
	(bfd_xcoff_size_dynamic_sections): Adapt to new ldinfo field.
	Move the part where the dynamic sections are build to ...
	(bfd_xcoff_build_dynamic_sections): ... this function.
	* xcofflink.h: Add bfd_xcoff_build_dynamic_sections prototype.

include/ChangeLog:

	* coff/xcoff.h (struct xcoff_loader_info): Add ldrel_count and
	libpath fields.

ld/ChangeLog:

	* emultempl/aix.em (_after_allocation): New function.

gas/ChangeLog:

	PR 29058
	* config/tc-m68k.h (TC_SYMFIELD_TYPE): define as m68k_tc_sy.
	* config/tc-m68k.c (m68k_frob_label): Use TC_SYMFIELD_TYPE to
	store label information.

ChangeLog:

	* configure.ac: Add AC_SUBST(PKG_CONFIG_PATH).
	* configure: Re-generate.
	* Makefile.tpl (HOST_EXPORTS): Pass PKG_CONFIG_PATH.
	(PKG_CONFIG_PATH): New.
	* Makefile.in: Re-generate.

gas/ChangeLog:

	* config/tc-s390.c (s390_parse_cpu): Add z16 as alternate CPU
	name.
	* doc/as.texi: Add z16 and arch14 to CPU string list.
	* doc/c-s390.texi: Add z16 to CPU string list.

opcodes/ChangeLog:

	* s390-mkopc.c (main): Enable z16 as CPU string in the opcode
	table.

opcodes/ChangeLog:

	* disassembler.c (disassemble_init_for_target): Set
	created_styled_output for i386 based targets.
	* i386-dis.c: Changed throughout to use fprintf_styled_func
	instead of fprintf_func.

opcodes/ChangeLog:

	* disassembler.c (disassemble_init_for_target): Set
	created_styled_output for riscv.
	* riscv-dis.c: Changed throughout to use fprintf_styled_func
	instead of fprintf_func.

binutils/ChangeLog:

	* NEWS: Mention new feature.
	* doc/binutils.texi (objdump): Describe --disassembler-color
	option.
	* objdump.c (disassembler_color): New global.
	(disassembler_extended_color): Likewise.
	(disassembler_in_comment): Likewise.
	(usage): Mention --disassembler-color option.
	(long_options): Add --disassembler-color option.
	(objdump_print_value): Use fprintf_styled_func instead of
	fprintf_func.
	(objdump_print_symname): Likewise.
	(objdump_print_addr_with_sym): Likewise.
	(objdump_color_for_disassembler_style): New function.
	(objdump_styled_sprintf): New function.
	(fprintf_styled): New function.
	(disassemble_jumps): Use disassemble_set_printf, and reset
	disassembler_in_comment.
	(null_styled_print): New function.
	(disassemble_bytes): Use disassemble_set_printf, and reset
	disassembler_in_comment.
	(disassemble_data): Update init_disassemble_info call.
	(main): Handle --disassembler-color option.

include/ChangeLog:

	* dis-asm.h (enum disassembler_style): New enum.
	(struct disassemble_info): Add fprintf_styled_func field, and
	created_styled_output field.
	(disassemble_set_printf): Declare.
	(init_disassemble_info): Add additional parameter.
	(INIT_DISASSEMBLE_INFO): Add additional parameter.

opcodes/ChangeLog:

	* dis-init.c (init_disassemble_info): Take extra parameter,
	initialize the new fprintf_styled_func and created_styled_output
	fields.
	* disassembler.c (disassemble_set_printf): New function definition.

bfd/ChangeLog:

	* elf-bfd.h (elfcore_write_x86_segbases): New.
	* elf.c (elfcore_grok_freebsd_note): Add pseudosections for
	NT_FREEBSD_X86_SEGBASES register notes.
	(elfcore_write_x86_segbases): New.
	(elfcore_write_register_note): Write NT_FREEBSD_X86_SEGBASES
	register notes.

binutils/ChangeLog:

	* readelf.c (get_freebsd_elfcore_note_type): Handle
	NT_FREEBSD_X86_SEGBASES.

include/ChangeLog:

	* elf/common.h (NT_FREEBSD_X86_SEGBASES): Define.

bfd/ChangeLog:

	* elf.c (elfcore_grok_freebsd_note): Remove checks for namesz.

