This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Delete dead macro
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 02 Nov 2004 09:18:56 -0500
- Subject: [ob] Delete dead macro
Per the comment:
-/* NOTE: cagney/2002-12-17: This macro was handling a chill language
- problem but that language has gone away. */
-#define COERCE_VARYING_ARRAY(arg, real_arg_type)
this has been dead since '02.
committed,
Andrew
2004-11-02 Andrew Cagney <cagney@gnu.org>
* value.h (COERCE_VARYING_ARRAY): Delete.
* valops.c (value_cast, value_slice): Delete use.
* valarith.c (value_subscript, value_concat): Delete use.
Index: valarith.c
===================================================================
RCS file: /cvs/src/src/gdb/valarith.c,v
retrieving revision 1.24
diff -p -u -r1.24 valarith.c
--- valarith.c 20 Sep 2004 20:18:39 -0000 1.24
+++ valarith.c 2 Nov 2004 14:14:05 -0000
@@ -185,7 +185,6 @@ value_subscript (struct value *array, st
COERCE_REF (array);
tarray = check_typedef (VALUE_TYPE (array));
- COERCE_VARYING_ARRAY (array, tarray);
if (TYPE_CODE (tarray) == TYPE_CODE_ARRAY
|| TYPE_CODE (tarray) == TYPE_CODE_STRING)
@@ -624,9 +623,6 @@ value_concat (struct value *arg1, struct
struct type *type1 = check_typedef (VALUE_TYPE (arg1));
struct type *type2 = check_typedef (VALUE_TYPE (arg2));
- COERCE_VARYING_ARRAY (arg1, type1);
- COERCE_VARYING_ARRAY (arg2, type2);
-
/* First figure out if we are dealing with two values to be concatenated
or a repeat count and a value to be repeated. INVAL1 is set to the
first of two concatenated values, or the repeat count. INVAL2 is set
Index: valops.c
===================================================================
RCS file: /cvs/src/src/gdb/valops.c,v
retrieving revision 1.131
diff -p -u -r1.131 valops.c
--- valops.c 14 Sep 2004 03:01:48 -0000 1.131
+++ valops.c 2 Nov 2004 14:14:05 -0000
@@ -253,7 +253,6 @@ value_cast (struct type *type, struct va
arg2 = value_coerce_function (arg2);
type2 = check_typedef (VALUE_TYPE (arg2));
- COERCE_VARYING_ARRAY (arg2, type2);
code2 = TYPE_CODE (type2);
if (code1 == TYPE_CODE_COMPLEX)
@@ -2731,7 +2730,6 @@ value_slice (struct value *array, int lo
struct value *slice;
struct type *array_type;
array_type = check_typedef (VALUE_TYPE (array));
- COERCE_VARYING_ARRAY (array, array_type);
if (TYPE_CODE (array_type) != TYPE_CODE_ARRAY
&& TYPE_CODE (array_type) != TYPE_CODE_STRING
&& TYPE_CODE (array_type) != TYPE_CODE_BITSTRING)
Index: value.h
===================================================================
RCS file: /cvs/src/src/gdb/value.h,v
retrieving revision 1.55
diff -p -u -r1.55 value.h
--- value.h 10 Jun 2004 17:39:28 -0000 1.55
+++ value.h 2 Nov 2004 14:14:06 -0000
@@ -259,10 +259,6 @@ extern int value_fetch_lazy (struct valu
#define COERCE_NUMBER(arg) \
do { COERCE_ARRAY(arg); COERCE_ENUM(arg); } while (0)
-/* NOTE: cagney/2002-12-17: This macro was handling a chill language
- problem but that language has gone away. */
-#define COERCE_VARYING_ARRAY(arg, real_arg_type)
-
/* If ARG is an enum, convert it to an integer. */
#define COERCE_ENUM(arg) \