This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[1/3] RFC: remove unused fields from c-exp.y %union


While writing the final patch of this series, I noticed a few unused
fields in the %union in c-exp.y.

This removes them.  Tested by rebuilding.

I think this one is obvious but I'm in no particular rush to put it in.

Tom

	* c-exp.y (%union) <sym, ivar, ivec>: Remove.
---
 gdb/c-exp.y |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index f6659d4..0cd4683 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -145,7 +145,6 @@ void yyerror (char *);
       gdb_byte val[16];
       struct type *type;
     } typed_val_decfloat;
-    struct symbol *sym;
     struct type *tval;
     struct stoken sval;
     struct typed_stoken tsval;
@@ -154,11 +153,9 @@ void yyerror (char *);
     int voidval;
     struct block *bval;
     enum exp_opcode opcode;
-    struct internalvar *ivar;
 
     struct stoken_vector svec;
     VEC (type_ptr) *tvec;
-    int *ivec;
 
     struct type_stack *type_stack;
 
-- 
1.7.7.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]