Last of the gas cleanups

Ben Elliston bje@au1.ibm.com
Mon Jan 31 23:40:00 GMT 2005


This little patch keeps code wrapped in #if 1 and removes any #else
cases.  Okay for mainline?

Ben

2005-02-01  Ben Elliston  <bje@au.ibm.com>

	* config/obj-coff.c, config/obj-ieee.c, config/tc-alpha.c,
	config/tc-i860.c, config/tc-ia64.c: Keep #if 1 code.

Index: config/obj-coff.c
===================================================================
RCS file: /home/bje/src-cvs/src/gas/config/obj-coff.c,v
retrieving revision 1.76
diff -u -p -u -r1.76 obj-coff.c
--- config/obj-coff.c	31 Jan 2005 23:18:24 -0000	1.76
+++ config/obj-coff.c	31 Jan 2005 23:39:58 -0000
@@ -4189,8 +4189,6 @@ fixup_mdeps (frags, h, this_segment)
     }
 }
 
-#if 1
-
 #ifndef TC_FORCE_RELOCATION
 #define TC_FORCE_RELOCATION(fix) 0
 #endif
@@ -4377,7 +4375,6 @@ fixup_segment (segP, this_segment_type)
 		  sub_symbolP = 0;
 		  fixP->fx_subsy = 0;
 		}
-#endif
 	      else
 		{
 		  as_bad_where (fixP->fx_file, fixP->fx_line,
Index: config/obj-ieee.c
===================================================================
RCS file: /home/bje/src-cvs/src/gas/config/obj-ieee.c,v
retrieving revision 1.10
diff -u -p -u -r1.10 obj-ieee.c
--- config/obj-ieee.c	31 Jan 2005 23:18:24 -0000	1.10
+++ config/obj-ieee.c	31 Jan 2005 23:39:58 -0000
@@ -482,8 +482,6 @@ obj_symbol_new_hook (symbolP)
   symbolP->sy_symbol.sy.the_bfd = abfd;
 }
 
-#if 1
-
 #ifndef SUB_SEGMENT_ALIGN
 #ifdef HANDLE_ALIGN
 /* The last subsegment gets an alignment corresponding to the alignment
@@ -569,8 +567,6 @@ write_object_file ()
   bfd_as_write_hook ();
   bfd_close (abfd);
 }
-
-#endif
 
 H_SET_TEXT_SIZE (a, b)
 {
Index: config/tc-alpha.c
===================================================================
RCS file: /home/bje/src-cvs/src/gas/config/tc-alpha.c,v
retrieving revision 1.63
diff -u -p -u -r1.63 tc-alpha.c
--- config/tc-alpha.c	31 Jan 2005 23:18:25 -0000	1.63
+++ config/tc-alpha.c	31 Jan 2005 23:39:58 -0000
@@ -159,30 +159,17 @@ struct alpha_macro
 /* XXX: The non-shift version appears to trigger a compiler bug when
    cross-assembling from x86 w/ gcc 2.7.2.  */
 
-#if 1
 #define range_signed_16(x) \
 	(((offsetT) (x) >> 15) == 0 || ((offsetT) (x) >> 15) == -1)
 #define range_signed_32(x) \
 	(((offsetT) (x) >> 31) == 0 || ((offsetT) (x) >> 31) == -1)
-#else
-#define range_signed_16(x)	((offsetT) (x) >= -(offsetT) 0x8000 &&	\
-				 (offsetT) (x) <=  (offsetT) 0x7FFF)
-#define range_signed_32(x)	((offsetT) (x) >= -(offsetT) 0x80000000 && \
-				 (offsetT) (x) <=  (offsetT) 0x7FFFFFFF)
-#endif
 
 /* Macros for sign extending from 16- and 32-bits.  */
 /* XXX: The cast macros will work on all the systems that I care about,
    but really a predicate should be found to use the non-cast forms.  */
 
-#if 1
 #define sign_extend_16(x)	((short) (x))
 #define sign_extend_32(x)	((int) (x))
-#else
-#define sign_extend_16(x)	((offsetT) (((x) & 0xFFFF) ^ 0x8000) - 0x8000)
-#define sign_extend_32(x)	((offsetT) (((x) & 0xFFFFFFFF) \
-					   ^ 0x80000000) - 0x80000000)
-#endif
 
 /* Macros to build tokens.  */
 
Index: config/tc-i860.c
===================================================================
RCS file: /home/bje/src-cvs/src/gas/config/tc-i860.c,v
retrieving revision 1.27
diff -u -p -u -r1.27 tc-i860.c
--- config/tc-i860.c	31 Oct 2003 21:33:59 -0000	1.27
+++ config/tc-i860.c	31 Jan 2005 23:39:58 -0000
@@ -454,21 +454,14 @@ static void
 i860_process_insn (char *str)
 {
   char *s;
-  const char *args;
+  const char *args = 0;
   char c;
-  struct i860_opcode *insn;
-  char *args_start;
-  unsigned long opcode;
+  struct i860_opcode *insn = 0;
+  char *args_start = 0;
+  unsigned long opcode = 0;
   unsigned int mask;
   int match = 0;
   int comma = 0;
-
-#if 1 /* For compiler warnings.  */
-  args = 0;
-  insn = 0;
-  args_start = 0;
-  opcode = 0;
-#endif
 
   for (s = str; ISLOWER (*s) || *s == '.' || *s == '3'
        || *s == '2' || *s == '1'; ++s)
Index: config/tc-ia64.c
===================================================================
RCS file: /home/bje/src-cvs/src/gas/config/tc-ia64.c,v
retrieving revision 1.128
diff -u -p -u -r1.128 tc-ia64.c
--- config/tc-ia64.c	31 Jan 2005 23:18:29 -0000	1.128
+++ config/tc-ia64.c	31 Jan 2005 23:39:58 -0000
@@ -11198,16 +11198,11 @@ ia64_handle_align (fragp)
   if (!bytes && fragp->tc_frag_data)
     {
       if (fragp->fr_fix < 16)
-#if 1
 	/* FIXME: It won't work with
 	   .align 16
 	   alloc r32=ar.pfs,1,2,4,0
 	 */
 	;
-#else
-	as_bad_where (fragp->fr_file, fragp->fr_line,
-		      _("Can't add stop bit to mark end of instruction group"));
-#endif
       else
 	/* Bundles are always in little-endian byte order. Make sure
 	   the previous bundle has the stop bit.  */

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20050131/68035bf0/attachment.sig>


More information about the Binutils mailing list