aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-03-14 02:37:20 +0000
committerStan Shebs <shebs@codesourcery.com>1995-03-14 02:37:20 +0000
commit477b2425006ba2c296fc3c0e64cfd0146f99a7dd (patch)
treef4eff2fea28bfdac4f30b6a2194f19430601d6e9 /gdb/eval.c
parent85a30e5978feca7ced04f0a97876a69def76cbcc (diff)
downloadgdb-477b2425006ba2c296fc3c0e64cfd0146f99a7dd.zip
gdb-477b2425006ba2c296fc3c0e64cfd0146f99a7dd.tar.gz
gdb-477b2425006ba2c296fc3c0e64cfd0146f99a7dd.tar.bz2
* ch-valprint.c (annotate.h): Include.
* eval.c (evaluate_subexp_standard): Remove unused variable. (calc_f77_array_dims): Add parens to expression. * f-exp.y (yylex): Add parens to expression, remove unused label. * f-lang.h (calc_f77_array_dims): Declare. * f-valprint.c (f_val_print): Remove unused variables.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 3d3e201..7563c59 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1,5 +1,5 @@
/* Evaluate expressions for GDB.
- Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994
+ Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995
Free Software Foundation, Inc.
This file is part of GDB.
@@ -28,16 +28,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "frame.h"
#include "demangle.h"
#include "language.h" /* For CAST_IS_CONVERSION */
-#include "f-lang.h" /* for array bound stuff */
+#include "f-lang.h" /* for array bound stuff */
/* Prototypes for local functions. */
static value_ptr evaluate_subexp_for_sizeof PARAMS ((struct expression *,
int *));
-value_ptr evaluate_subexp_with_coercion PARAMS ((struct expression *,
- int *, enum noside));
-
static value_ptr evaluate_subexp_for_address PARAMS ((struct expression *,
int *, enum noside));
@@ -951,7 +948,6 @@ evaluate_subexp_standard (expect_type, exp, pos, noside)
int ndimensions=1,i;
struct type *tmp_type;
int offset_item; /* The array offset where the item lives */
- int fixed_subscript;
if (nargs > MAX_FORTRAN_DIMS)
error ("Too many subscripts for F77 (%d Max)", MAX_FORTRAN_DIMS);
@@ -1579,7 +1575,7 @@ calc_f77_array_dims (array_type)
tmp_type = array_type;
- while (tmp_type = TYPE_TARGET_TYPE (tmp_type))
+ while ((tmp_type = TYPE_TARGET_TYPE (tmp_type)))
{
if (TYPE_CODE (tmp_type) == TYPE_CODE_ARRAY)
++ndimen;