]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* as.h: Remove #if 0'd code.
authorBen Elliston <bje@au.ibm.com>
Fri, 21 Jan 2005 05:54:38 +0000 (05:54 +0000)
committerBen Elliston <bje@au.ibm.com>
Fri, 21 Jan 2005 05:54:38 +0000 (05:54 +0000)
* atof-generic.c (atof_generic): Likewise.
* ecoff.c (ecoff_directive_frame): Likewise.
* frags.h (FRAG_APPEND_1_CHAR): Likewise.
* itbl-ops.c (itbl_add_reg): Likewise.
* listing.c (calc_hex): Likewise.
* read.c (MASK_CHAR): Likewise.
* subsegs.c (subsegs_print_statistics): Likewise.
* symbols.c (indent): Likewise.
* write.c (write_relocs): Likewise.
(write_object_file): Likewise.
(relax_frag): Likewise.

gas/ChangeLog
gas/as.h
gas/atof-generic.c
gas/ecoff.c
gas/frags.h
gas/itbl-ops.c
gas/listing.c
gas/read.c
gas/subsegs.c
gas/symbols.c
gas/write.c

index ca40e8a84d21b86ca8c58d31826c01784b27cc6c..8b9aa3fa42d98746c950ba0b0505740fb5661f3a 100644 (file)
@@ -1,3 +1,18 @@
+2005-01-21  Ben Elliston  <bje@au.ibm.com>
+
+       * as.h: Remove #if 0'd code.
+       * atof-generic.c (atof_generic): Likewise.
+       * ecoff.c (ecoff_directive_frame): Likewise.
+       * frags.h (FRAG_APPEND_1_CHAR): Likewise.
+       * itbl-ops.c (itbl_add_reg): Likewise.
+       * listing.c (calc_hex): Likewise.
+       * read.c (MASK_CHAR): Likewise.
+       * subsegs.c (subsegs_print_statistics): Likewise.
+       * symbols.c (indent): Likewise.
+       * write.c (write_relocs): Likewise.
+       (write_object_file): Likewise.
+       (relax_frag): Likewise.
+
 2005-01-20  Nick Clifton  <nickc@redhat.com>
 
        * as.c (std_longopts): Add an entry for "--a" in order to prevent
index 3bff25d86db6d169d72182ef0ef035185c3bfa27..4d790bfb6bf06098c1eba93ff69c1df1ab353559 100644 (file)
--- a/gas/as.h
+++ b/gas/as.h
@@ -104,27 +104,10 @@ extern void *alloca ();
 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6)
 #define __PRETTY_FUNCTION__  ((char*)0)
 #endif
-#if 0
-
-/* Handle lossage with assert.h.  */
-#ifndef BROKEN_ASSERT
-#include <assert.h>
-#else /* BROKEN_ASSERT */
-#ifndef NDEBUG
-#define assert(p) ((p) ? 0 : (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0))
-#else
-#define assert(p) ((p), 0)
-#endif
-#endif /* BROKEN_ASSERT */
-
-#else
-
 #define assert(P) ((P) ? 0 : (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0))
 #undef abort
 #define abort()                as_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__)
 
-#endif
-
 /* Now GNU header files...  */
 #include "ansidecl.h"
 #ifdef BFD_ASSEMBLER
index 8c599b571edbeb871611d491dc765a939bab608a..113a0bcdf15e75458cbbf70ca775842e6b5fba7d 100644 (file)
@@ -324,19 +324,10 @@ atof_generic (/* return pointer to just AFTER number we read.  */
                   + 1);        /* Number of destination littlenums.  */
 
       /* Includes guard bits (two littlenums worth) */
-#if 0 /* The integer version below is very close, and it doesn't
-        require floating point support (which is currently buggy on
-        the Alpha).  */
-      maximum_useful_digits = (((double) (precision - 2))
-                              * ((double) (LITTLENUM_NUMBER_OF_BITS))
-                              / (LOG_TO_BASE_2_OF_10))
-       + 2;                    /* 2 :: guard digits.  */
-#else
       maximum_useful_digits = (((precision - 2))
                               * ( (LITTLENUM_NUMBER_OF_BITS))
                               * 1000000 / 3321928)
        + 2;                    /* 2 :: guard digits.  */
-#endif
 
       if (number_of_digits_available > maximum_useful_digits)
        {
@@ -353,13 +344,8 @@ atof_generic (/* return pointer to just AFTER number we read.  */
       decimal_exponent += ((long) number_of_digits_before_decimal
                           - (long) number_of_digits_to_use);
 
-#if 0
-      more_than_enough_bits_for_digits
-       = ((((double) number_of_digits_to_use) * LOG_TO_BASE_2_OF_10) + 1);
-#else
       more_than_enough_bits_for_digits
        = (number_of_digits_to_use * 3321928 / 1000000 + 1);
-#endif
 
       more_than_enough_littlenums_for_digits
        = (more_than_enough_bits_for_digits
index d8ad019a72cae2173d5d7f3a9adf23d47b9fab77..1103be2477a6b3f4cbb84aded78016a517d18552 100644 (file)
@@ -3185,14 +3185,10 @@ ecoff_directive_frame (int ignore ATTRIBUTE_UNUSED)
 
   cur_proc_ptr->pdr.pcreg = tc_get_register (0);
 
-#if 0
   /* Alpha-OSF1 adds "the offset of saved $a0 from $sp", according to
      Sandro.  I don't yet know where this value should be stored, if
-     anywhere.  */
-  demand_empty_rest_of_line ();
-#else
+     anywhere.  Don't call demand_empty_rest_of_line ().  */
   s_ignore (42);
-#endif
 }
 \f
 /* Parse .mask directives.  */
index a3bd52221620173ce72949dda896dda4685745d6..70da2421e7ba6e2b86893a089013c78049df9f0e 100644 (file)
@@ -119,22 +119,8 @@ COMMON fragS zero_address_frag;
 /* For local common (N_BSS segment) fixups.  */
 COMMON fragS bss_address_frag;
 
-#if 0
-/* A macro to speed up appending exactly 1 char to current frag.  */
-/* JF changed < 1 to <= 1 to avoid a race condition.  */
-#define FRAG_APPEND_1_CHAR(datum)                      \
-{                                                      \
-  if (obstack_room (&frags) <= 1)                      \
-    {                                                  \
-      frag_wane (frag_now);                            \
-      frag_new (0);                                    \
-    }                                                  \
-  obstack_1grow (&frags, datum);                       \
-}
-#else
 extern void frag_append_1_char (int);
 #define FRAG_APPEND_1_CHAR(X) frag_append_1_char (X)
-#endif
 
 void frag_init (void);
 fragS *frag_alloc (struct obstack *);
index 089bff4aac5a6381e17a0642d3546691b02331a0..6498a0f4753411e47eeb2bb461212ccc5550ff75 100644 (file)
@@ -204,18 +204,6 @@ struct itbl_entry *
 itbl_add_reg (int yyprocessor, int yytype, char *regname,
              int regnum)
 {
-#if 0
-#include "as.h"
-#include "symbols.h"
-  /* Since register names don't have a prefix, we put them in the symbol table so
-     they can't be used as symbols.  This also simplifies argument parsing as
-     we can let gas parse registers for us.  The recorded register number is
-     regnum.  */
-  /* Use symbol_create here instead of symbol_new so we don't try to
-     output registers into the object file's symbol table.  */
-  symbol_table_insert (symbol_create (regname, reg_section,
-                                     regnum, &zero_address_frag));
-#endif
   return alloc_entry (get_processor (yyprocessor), get_type (yytype), regname,
                      (unsigned long) regnum);
 }
index aa22c5e99e41c21b8c07c7efcc6fd730aa3ab133..aaf6bf7165b991d63e448428e41ef929f279dd38 100644 (file)
@@ -613,10 +613,6 @@ calc_hex (list_info_type *list)
              sprintf (data_buffer + data_buffer_size,
                       "%02X",
                       (frag_ptr->fr_literal[var_rep_idx]) & 0xff);
-#if 0
-             data_buffer[data_buffer_size++] = '*';
-             data_buffer[data_buffer_size++] = '*';
-#endif
              data_buffer_size += 2;
 
              var_rep_idx++;
index daea0f9a071fda41c92f226c75d2fa785d168298..ffb208a686b5c8f9be72ca0b78599f78bee822ec 100644 (file)
@@ -20,14 +20,10 @@ along with GAS; see the file COPYING.  If not, write to the Free
 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 02111-1307, USA.  */
 
-#if 0
-/* If your chars aren't 8 bits, you will change this a bit.
+/* If your chars aren't 8 bits, you will change this a bit (eg. to 0xFF).
    But then, GNU isn't spozed to run on your machine anyway.
    (RMS is so shortsighted sometimes.)  */
-#define MASK_CHAR (0xFF)
-#else
 #define MASK_CHAR ((int)(unsigned char) -1)
-#endif
 
 /* This is the largest known floating point format (for now). It will
    grow when we do 4361 style flonums.  */
index 8b0679cbc4c478d678ae677e134c84a9ccb586a6..c63f3010ea8813258f14826200426669b9e4ba82 100644 (file)
@@ -616,27 +616,6 @@ subsegs_print_statistics (FILE *file)
 
       for (fragp = frchp->frch_root; fragp; fragp = fragp->fr_next)
        {
-#if 0
-         switch (fragp->fr_type)
-           {
-           case rs_fill:
-             fprintf (file, "f"); break;
-           case rs_align:
-             fprintf (file, "a"); break;
-           case rs_align_code:
-             fprintf (file, "c"); break;
-           case rs_org:
-             fprintf (file, "o"); break;
-           case rs_machine_dependent:
-             fprintf (file, "m"); break;
-           case rs_space:
-             fprintf (file, "s"); break;
-           case 0:
-             fprintf (file, "0"); break;
-           default:
-             fprintf (file, "?"); break;
-           }
-#endif
          count++;
        }
       fprintf (file, "\n");
index 04e239a20627154a1c7b2ab51f938160f2de73b4..3ea11ab25f1faa8aaf52d7f9c208930d74c076ee 100644 (file)
@@ -2370,16 +2370,6 @@ int indent_level;
    Available for modification inside a gdb session.  */
 int max_indent_level = 8;
 
-#if 0
-
-static void
-indent (void)
-{
-  printf ("%*s", indent_level * 4, "");
-}
-
-#endif
-
 void
 print_symbol_value_1 (FILE *file, symbolS *sym)
 {
index f9a543a7910cd5d85d6b7a8764a4811e1f38a05c..320e359fb9a9df8f25aa5cb599c95bda1c781229 100644 (file)
@@ -942,12 +942,12 @@ write_relocs (bfd *abfd, asection *sec, PTR xxx ATTRIBUTE_UNUSED)
          continue;
        }
 
-#if 0
-      /* This test is triggered inappropriately for the SH.  */
-      if (fixp->fx_where + fixp->fx_size
-         > fixp->fx_frag->fr_fix + fixp->fx_frag->fr_offset)
-       abort ();
-#endif
+      /*
+       This test is triggered inappropriately for the SH:
+         if (fixp->fx_where + fixp->fx_size
+            > fixp->fx_frag->fr_fix + fixp->fx_frag->fr_offset)
+            abort ();
+      */
 
       s = bfd_install_relocation (stdoutput, reloc,
                                  fixp->fx_frag->fr_literal,
@@ -1929,13 +1929,6 @@ write_object_file (void)
          if (S_IS_DEFINED (symp) == 0
              && S_GET_VALUE (symp) != 0)
            S_SET_SEGMENT (symp, bfd_com_section_ptr);
-#if 0
-         printf ("symbol `%s'\n\t@%x: value=%d flags=%x seg=%s\n",
-                 S_GET_NAME (symp), symp,
-                 S_GET_VALUE (symp),
-                 symbol_get_bfdsym (symp)->flags,
-                 segment_name (S_GET_SEGMENT (symp)));
-#endif
 
 #ifdef obj_frob_symbol
          obj_frob_symbol (symp, punt);
@@ -2083,14 +2076,10 @@ relax_frag (segT segment, fragS *fragP, long stretch)
 #ifdef TC_PCREL_ADJUST
   /* Currently only the ns32k family needs this.  */
   aim += TC_PCREL_ADJUST (fragP);
-/* #else */
-  /* This machine doesn't want to use pcrel_adjust.
-     In that case, pcrel_adjust should be zero.  */
-#if 0
-  assert (fragP->fr_targ.ns32k.pcrel_adjust == 0);
-#endif
 #endif
-#ifdef md_prepare_relax_scan /* formerly called M68K_AIM_KLUDGE  */
+
+#ifdef md_prepare_relax_scan
+  /* Formerly called M68K_AIM_KLUDGE.  */
   md_prepare_relax_scan (fragP, address, aim, this_state, this_type);
 #endif