OSDN Git Service

gas/
authorJan Beulich <jbeulich@novell.com>
Wed, 13 Feb 2008 10:14:40 +0000 (10:14 +0000)
committerJan Beulich <jbeulich@novell.com>
Wed, 13 Feb 2008 10:14:40 +0000 (10:14 +0000)
commita7d5fd7b6d18773a0a0c2261ef3f77dcf68505d3
tree1dec30bb110b329f4d025640fe827233d50b640c
parent1ec36d6411f8dca484c08c816bd9a6ffa57bbc86
gas/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (allow_pseudo_reg): New.
(parse_real_register): Check for NULL just once. Allow all
register table entries when allow_pseudo_reg is non-zero.
Don't allow any registers without type when allow_pseudo_reg
is zero.
(tc_x86_regname_to_dw2regnum): Replace with ...
(tc_x86_parse_to_dw2regnum): ... this.
(tc_x86_frame_initial_instructions): Adjust for above change.
* config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
(tc_parse_to_dw2regnum): New.
(tc_x86_regname_to_dw2regnum): Replace with ...
(tc_x86_parse_to_dw2regnum): ... this.
* dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
(cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
error handling.

gas/testsuite/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* gas/cfi/cfi-i386.s: Add code testing use of all registers.
Fix a few comments.
* gas/cfi/cfi-x86_64.s: Likewise.
* gas/cfi/cfi-i386.d, gas/cfi/cfi-x86_64.d: Adjust.

opcodes/
2008-02-13  Jan Beulich  <jbeulich@novell.com>

* i386-gen.c (process_i386_registers): Process new fields.
* i386-opc.h (reg_entry): Shrink reg_flags and reg_num to
unsigned char. Add dw2_regnum and Dw2Inval.
* i386-reg.tbl: Provide initializers for dw2_regnum. Add pseudo
register names.
* i386-tbl.h: Re-generate.
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-opc.h
opcodes/i386-reg.tbl
opcodes/i386-tbl.h