From: Sean Keys Date: Tue, 15 May 2012 18:34:23 +0000 (+0000) Subject: Rewrote a loop that caused a seg fault on Windows systems. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43a028780f9dfc8478a438df6485041462173740;p=binutils-gdb.git Rewrote a loop that caused a seg fault on Windows systems. --- diff --git a/gas/config/tc-xgate.c b/gas/config/tc-xgate.c index 954acdc367d..cca049c46c1 100644 --- a/gas/config/tc-xgate.c +++ b/gas/config/tc-xgate.c @@ -341,7 +341,7 @@ md_begin (void) prev_op_name = op_handles[j].name; } - while (op_handles->name) + for (i = 1; i < (int)number_of_handle_rows; i++) { hash_insert (xgate_hash, op_handles->name, (char *) op_handles); op_handles++;