From 6aef78af044573aa92d16b989b73a959cb97773f Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 10 Aug 2007 22:08:22 +0000 Subject: 2007-08-10 Michael Snyder * stabsread.c (read_huge_number): Attempt to compute value before values that it depends on. --- gdb/stabsread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/stabsread.c') diff --git a/gdb/stabsread.c b/gdb/stabsread.c index e155087..678b3cf 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -3714,7 +3714,7 @@ read_huge_number (char **pp, int end, int *bits, int twos_complement_bits) int nbits = 0; int c; long upper_limit; - int twos_complement_representation = radix == 8 && twos_complement_bits > 0; + int twos_complement_representation; if (*p == '-') { @@ -3730,6 +3730,7 @@ read_huge_number (char **pp, int end, int *bits, int twos_complement_bits) p++; } + twos_complement_representation = radix == 8 && twos_complement_bits > 0; upper_limit = LONG_MAX / radix; while ((c = *p++) >= '0' && c < ('0' + radix)) -- cgit v1.1