The patch contains mostly fixes for the disassembler. It also fixes
[deliverable/binutils-gdb.git] / gas / ecoff.c
index d9984ed98c1a4d4e0eee3c53a3d645b2104058f5..ed1192115ff97452dd444e4bf0d6227ba15daa45 100644 (file)
@@ -37,7 +37,7 @@
 #include "coff/symconst.h"
 #include "aout/stab_gnu.h"
 
-#include <ctype.h>
+#include "safe-ctype.h"
 
 /* Why isn't this in coff/sym.h?  */
 #define ST_RFDESCAPE 0xfff
@@ -3101,7 +3101,7 @@ ecoff_directive_ent (ignore)
       ++input_line_pointer;
       SKIP_WHITESPACE ();
     }
-  if (isdigit ((unsigned char) *input_line_pointer)
+  if (ISDIGIT (*input_line_pointer)
       || *input_line_pointer == '-')
     (void) get_absolute_expression ();
 
@@ -3546,7 +3546,7 @@ ecoff_stab (sec, what, string, type, other, desc)
        listing_source_file (string);
 #endif
 
-      if (isdigit ((unsigned char) *input_line_pointer)
+      if (ISDIGIT (*input_line_pointer)
          || *input_line_pointer == '-'
          || *input_line_pointer == '+')
        {
@@ -3616,7 +3616,7 @@ ecoff_frob_symbol (sym)
 {
   if (S_IS_COMMON (sym)
       && S_GET_VALUE (sym) > 0
-      && S_GET_VALUE (sym) <= (unsigned) bfd_get_gp_size (stdoutput))
+      && S_GET_VALUE (sym) <= bfd_get_gp_size (stdoutput))
     {
       static asection scom_section;
       static asymbol scom_symbol;
@@ -4081,7 +4081,7 @@ ecoff_build_symbols (backend, buf, bufend, offset)
 
                              s = symbol_get_obj (as_sym)->ecoff_extern_size;
                              if (s == 0
-                                 || s > (unsigned) bfd_get_gp_size (stdoutput))
+                                 || s > bfd_get_gp_size (stdoutput))
                                sc = sc_Undefined;
                              else
                                {
@@ -4096,7 +4096,7 @@ ecoff_build_symbols (backend, buf, bufend, offset)
                            {
                              if (S_GET_VALUE (as_sym) > 0
                                  && (S_GET_VALUE (as_sym)
-                                     <= (unsigned) bfd_get_gp_size (stdoutput)))
+                                     <= bfd_get_gp_size (stdoutput)))
                                sc = sc_SCommon;
                              else
                                sc = sc_Common;
This page took 0.023801 seconds and 4 git commands to generate.