From 43a028780f9dfc8478a438df6485041462173740 Mon Sep 17 00:00:00 2001 From: Sean Keys Date: Tue, 15 May 2012 18:34:23 +0000 Subject: [PATCH] Rewrote a loop that caused a seg fault on Windows systems. --- gas/config/tc-xgate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.30.2