Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit] Deprecate USE_REGISTER_NOT_ARG
@ 2003-11-15 21:55 Andrew Cagney
  0 siblings, 0 replies; only message in thread
From: Andrew Cagney @ 2003-11-15 21:55 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 137 bytes --]

Deprecating, it should, for instance, be possible to extend 
_stabs_argument_has_addr rather than add a new architecture method.

Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1444 bytes --]

2003-11-15  Andrew Cagney  <cagney@redhat.com>

	* config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
	USE_REGISTER_NOT_ARG.
	* stabsread.c (define_symbol): Update.

Index: stabsread.c
===================================================================
RCS file: /cvs/src/src/gdb/stabsread.c,v
retrieving revision 1.67
diff -u -r1.67 stabsread.c
--- stabsread.c	8 Nov 2003 00:13:02 -0000	1.67
+++ stabsread.c	15 Nov 2003 21:28:51 -0000
@@ -1118,7 +1118,9 @@
 
 	  if (local_symbols
 	      && local_symbols->nsyms > 0
-#ifndef USE_REGISTER_NOT_ARG
+#ifndef DEPRECATED_USE_REGISTER_NOT_ARG
+	      /* DEPRECATED_USE_REGISTER_NOT_ARG is only defined by
+                 the SPARC.  */
 	      && gdbarch_stabs_argument_has_addr (current_gdbarch,
 						  SYMBOL_TYPE (sym))
 #endif
Index: config/sparc/tm-sparc.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-sparc.h,v
retrieving revision 1.63
diff -u -r1.63 tm-sparc.h
--- config/sparc/tm-sparc.h	6 Nov 2003 03:29:49 -0000	1.63
+++ config/sparc/tm-sparc.h	15 Nov 2003 21:28:59 -0000
@@ -143,7 +143,7 @@
    never saving it onto the stack.  So we better not believe the "p" symbol
    descriptor stab.  */
 
-#define USE_REGISTER_NOT_ARG
+#define DEPRECATE_USE_REGISTER_NOT_ARG
 
 /* For acc, there's no need to correct LBRAC entries by guessing how
    they should work.  In fact, this is harmful because the LBRAC

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-15 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-15 21:55 [commit] Deprecate USE_REGISTER_NOT_ARG Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox