bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/5170] Improper casting when creating local symbols.


From: evandro at yahoo dot com
Subject: [Bug gas/5170] Improper casting when creating local symbols.
Date: 12 Oct 2007 22:05:57 -0000

------- Additional Comments From evandro at yahoo dot com  2007-10-12 22:05 
-------
(From update of attachment 2041)
Index: gas/symbols.c
===================================================================
retrieving revision 1.3
diff -p -u -w -r1.3 symbols.c
--- gas/symbols.c       26 Oct 2006 19:49:25 -0000      1.3
+++ gas/symbols.c       12 Oct 2007 21:57:51 -0000
@@ -477,9 +477,10 @@ colon (sym_name)           /* Just seen "x:" - ra
 #ifdef BFD_ASSEMBLER
   else if (! flag_keep_locals && bfd_is_local_label_name (stdoutput,
sym_name))
     {
-      symbolP = (symbolS *) local_symbol_make (sym_name, now_seg,
+      symbolP = local_symbol_convert (
+                            local_symbol_make (sym_name, now_seg,
                                                (valueT) frag_now_fix (),
-                                               frag_now);
+                                               frag_now));
     }
 #endif /* BFD_ASSEMBLER */
   else
@@ -565,9 +566,10 @@ symbol_find_or_make (name)
          if (symbolP != NULL)
            return symbolP;

-         symbolP = (symbolS *) local_symbol_make (name, undefined_section,
+         symbolP = local_symbol_convert (
+                               local_symbol_make (name, undefined_section,
                                                   (valueT) 0,
-                                                  &zero_address_frag);
+                                                  &zero_address_frag));
          return symbolP;
        }
 #endif


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5170

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]