binutils-gdb/ld/testsuite
Andrew Burgess 0ac2b354ee gas/riscv: Produce version 3 DWARF CIE by default
The flag controlling the default DWARF CIE version to produce now
starts with the value -1.  This can be modified with the command line
flag as before, but after command line flag processing, in
md_after_parse_args targets can, if the global still has the value -1,
override this value.  This gives a target specific default.

If a CIE version is not select either by command line flag, or a
target specific default, then some new code in dwarf2_init now select
a global default.  This remains as version 1 to match previous
behaviour.

This RISC-V has a target specific default of version provided, this
make the return column uleb128, which means we can use all DWARF
registers include CSRs.

I chose to switch to version 3 rather than version 4 as this is most
similar to the global default (version 1).  Switching to version 4
adds additional columns to the CIE header.

gas/ChangeLog:

	* as.c (flag_dwarf_cie_version): Change initial value to -1, and
	update comment.
	* config/tc-riscv.c (riscv_after_parse_args): Set
	flag_dwarf_cie_version if it has not already been set.
	* dwarf2dbg.c (dwarf2_init): Initialise flag_dwarf_cie_version if
	needed.
	* testsuite/gas/riscv/default-cie-version.d: New file.
	* testsuite/gas/riscv/default-cie-version.s: New file.

ld/ChangeLog:

	* testsuite/ld-elf/eh5.d: Accept version 3 DWARF CIE.

Change-Id: Ibbfe8f0979fba480bf0a359978b09d2b3055555e
2019-11-28 00:03:05 +00:00
..
config
ld-aarch64 aarch64 and arm testsuite fixes for targets lacking shared libs 2019-11-07 11:55:28 +10:30
ld-alpha
ld-arc
ld-arm Introduce new .text.sorted.* sections. 2019-11-26 17:20:10 +01:00
ld-auto-import
ld-avr
ld-bootstrap
ld-bpf
ld-cdtest PR46, cygwin: FAIL: cdtest with -Ur 2019-11-21 19:09:18 +10:30
ld-checks
ld-cris
ld-crx
ld-csky
ld-cygwin
ld-d10v
ld-discard
ld-elf gas/riscv: Produce version 3 DWARF CIE by default 2019-11-28 00:03:05 +00:00
ld-elfcomm
ld-elfvers
ld-elfvsb
ld-elfweak
ld-fastcall
ld-frv
ld-gc [ld] Fix failure of pr19161 on hppa*-*linux*. 2019-10-19 13:01:29 -04:00
ld-h8300
ld-i386
ld-ia64
ld-ifunc
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k
ld-mep
ld-metag
ld-mips-elf
ld-misc
ld-mmix
ld-mn10300
ld-msp430-elf Add support for new functionality in the msp430 backend of GCC. 2019-10-07 16:34:31 +01:00
ld-nds32
ld-nios2
ld-or1k
ld-pe
ld-pie
ld-plugin
ld-powerpc PowerPC local got test 2019-10-09 00:20:19 +10:30
ld-pru
ld-riscv-elf RISC-V: Fix ld relax failure with calls and align directives. 2019-11-12 15:53:22 -08:00
ld-s12z
ld-s390
ld-scripts
ld-selective
ld-sh
ld-shared
ld-size
ld-sparc
ld-spu
ld-srec
ld-tic6x
ld-tilegx
ld-tilepro
ld-undefined
ld-unique
ld-v850
ld-vax-elf
ld-visium
ld-vxworks
ld-x86-64
ld-xc16x
ld-xstormy16
ld-xtensa
ld-z8k
lib
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-9303