diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2012-09-21 09:24:41 +0000 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2012-09-21 09:24:41 +0000 |
commit | 0953dec1c5fd4a0dabd66a113cd3ccad5b612f23 (patch) | |
tree | e87edd423de9aa9ec68de0264ef965eecadb60a4 | |
parent | a065d7af0e229f022f2517c3d151434278bfb22b (diff) | |
download | gdb-0953dec1c5fd4a0dabd66a113cd3ccad5b612f23.zip gdb-0953dec1c5fd4a0dabd66a113cd3ccad5b612f23.tar.gz gdb-0953dec1c5fd4a0dabd66a113cd3ccad5b612f23.tar.bz2 |
* eval.c (evaluate_subexp_standard): Eliminate single-use
variable LOWER.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/eval.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a8c0e77..a956b4b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com> + + * eval.c (evaluate_subexp_standard): Eliminate single-use + variable LOWER. + 2012-09-21 Yao Qi <yao@codesourcery.com> * mi/mi-interp.c: Declare mi_record_changed. @@ -810,7 +810,6 @@ evaluate_subexp_standard (struct type *expect_type, struct type *type; int nargs; struct value **argvec; - int lower; int code; int ix; long mem_offset; @@ -2370,8 +2369,8 @@ evaluate_subexp_standard (struct type *expect_type, struct type *array_type = check_typedef (value_type (array)); LONGEST index = subscript_array[i - 1]; - lower = f77_get_lowerbound (array_type); - array = value_subscripted_rvalue (array, index, lower); + array = value_subscripted_rvalue (array, index, + f77_get_lowerbound (array_type)); } return array; |