Update PRU assembler to corect hardware register numbering for DWARF.
authorDimitar Dimitrov <dimitar@dinux.eu>
Fri, 3 Aug 2018 09:02:39 +0000 (10:02 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 3 Aug 2018 09:02:39 +0000 (10:02 +0100)
commit2688aab226c6d8871af4cf53ea5651e06f104744
tree2c32180e5a4a87d1a9a6ee64944c56aa95f65c39
parentdbf8be89edf7b6443fa0b7d31ca6d6ad202fadae
Update PRU assembler to corect hardware register numbering for DWARF.

A small rework of the PRU GCC port exposed that CIE data alignment is
erroneously set to 4 for PRU in GAS. In fact PRU stack must be aligned to 1.
Set the macro to -1, to allow output from GCC to be assembled without errors.

Also, while at it, set DWARF2 HW register numbering to follow latest

* config/tc-pru.c (pru_regname_to_dw2regnum): Return the starting HW
byte-register number.
(pru_frame_initial_instructions): Use byte-numbering for FP index.
* config/tc-pru.h (DWARF2_DEFAULT_RETURN_COLUMN): Use number from
latest GCC.
(DWARF2_CIE_DATA_ALIGNMENT): Set to -1.
gas/ChangeLog
gas/config/tc-pru.c
gas/config/tc-pru.h
ld/ldlex.l