This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix mips' support_64bit_objects


I will check in the following patch shortly for

http://sources.redhat.com/ml/bug-binutils/2002-q4/msg00049.html


H.J.
---
2002-11-01  H.J. Lu <hjl@gnu.org>

	* config/tc-mips.c (support_64bit_objects): Check *l before it
	is freed.

--- gas/config/tc-mips.c.64	Fri Nov  1 10:33:16 2002
+++ gas/config/tc-mips.c	Fri Nov  1 15:01:07 2002
@@ -10174,6 +10174,7 @@ md_number_to_chars (buf, val, n)
 static int support_64bit_objects(void)
 {
   const char **list, **l;
+  int yes;
 
   list = bfd_target_list ();
   for (l = list; *l != NULL; l++)
@@ -10186,8 +10187,9 @@ static int support_64bit_objects(void)
 	|| strcmp (*l, "elf64-littlemips") == 0)
 #endif
       break;
+  yes = (*l != NULL);
   free (list);
-  return (*l != NULL);
+  return yes;
 }
 #endif /* OBJ_ELF */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]