From 6d8809aa625bfe3e0cc7a5558b37240c74c623a9 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 30 Jul 1999 21:39:53 +0000 Subject: Jakub Jelinek * config/tc-sparc.c (md_longopts): Add --no-undeclared-regs option. (sparc_ip): Warn if %g2 or %g3 register is used and not covered by .register pseudo-op if -64 and --no-undeclared-regs. (s_register, sparc_adjust_symtab): New functions. * config/tc-sparc.h (tc_adjust_symtab, sparc_adjust_symtab): Declare sparc_adjust_symtab as tc_adjust_symtab. * doc/c-sparc.texi: Add description of #ignore special literal for .register pseudo-op. --- gas/doc/c-sparc.texi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gas/doc/c-sparc.texi') diff --git a/gas/doc/c-sparc.texi b/gas/doc/c-sparc.texi index adbe299..ab54eb2 100644 --- a/gas/doc/c-sparc.texi +++ b/gas/doc/c-sparc.texi @@ -160,8 +160,11 @@ line is also ignored. @item .register This directive declares use of a global application or system register. It must be followed by a register name %g2, %g3, %g6 or %g7, comma and -the symbol name for that register or @code{#scratch} if it is a scratch -register. +the symbol name for that register. If symbol name is @code{#scratch}, +it is a scratch register, if it is @code{#ignore}, it just surpresses any +errors about using undeclared global register, but does not emit any +information about it into the object file. This can be useful e.g. if you +save the register before use and restore it after. @cindex @code{reserve} directive, SPARC @item .reserve -- cgit v1.1