Support on-demand global register allocation by passing on
authorHans-Peter Nilsson <hp@axis.com>
Fri, 1 Feb 2002 08:09:47 +0000 (08:09 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Fri, 1 Feb 2002 08:09:47 +0000 (08:09 +0000)
commit973eb3402f7b79ba3444177887be54562a276841
tree27c9b87cee0f0f0f29b35462b3790c93e68b8a23
parentb52a8679a51c7c8981ceadef6e0ba2a83e8857f9
Support on-demand global register allocation by passing on
base-plus-offset relocs to the linker.
* config/tc-mmix.c: Tweak and fix typos in comments.
  (allocate_undefined_gregs_in_linker): New variable.
(OPTION_LINKER_ALLOCATED_GREGS): New option macro.
(md_longopts): Add --linker-allocated-gregs.
(md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
<case OPTION_LINKER_ALLOCATED_GREGS>: New.
(md_show_usage): Update text for -x.  Add text for
--linker-allocated-gregs.
(tc_gen_reloc): Derive default value for addend from val and
baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
GREG if allocate_undefined_gregs_in_linker.
* doc/as.texinfo (Overview) <Target MMIX options>: Add
--linker-allocated-gregs.
* doc/c-mmix.texi (MMIX-Opts): Add blurb about
--linker-allocated-gregs.  Mention that it's implied by -x.
(MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
(MMIX-mmixal): Clarify dated comparison and location of MMIXware.

* config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
gas/ChangeLog
gas/config/tc-mmix.c
gas/config/tc-mmix.h
gas/doc/as.texinfo
gas/doc/c-mmix.texi