Patch to gas/read.c to control implicit lcomm alignment

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Fri Mar 10 15:10:00 GMT 2000


I don't want each and every datum allocated with .lcomm to have
any implicit alignment; I handle that by .lcomm:ing a larger
datum in the gcc port.

I hope this is an acceptable way to let the target control this
by a define in tc-target.h.  If it is, then perhaps those two
old FIXME:s can be removed.  One is seen below, another one a
few lines further is wrapped in #ifdef OBJ_VAX.

Sat Mar 11 00:01:39 2000  Hans-Peter Nilsson  <hp@axis.se>

	* read.c (s_lcomm_internal): Wrap implicit alignment in #ifndef
	NO_IMPLICIT_LCOMM_ALIGNMENT. 

Index: gas/read.c
===================================================================
RCS file: /cvs/src/src/gas/read.c,v
retrieving revision 1.16
diff -c -p -r1.16 read.c
*** read.c	2000/02/24 01:56:31	1.16
--- read.c	2000/03/10 22:09:42
*************** s_lcomm_internal (needs_align, bytes_p)
*** 1973,1978 ****
--- 1973,1980 ----
  	}
      }
  #endif
+ 
+ #ifndef NO_IMPLICIT_LCOMM_ALIGNMENT
     if (!needs_align)
       {
         /* FIXME. This needs to be machine independent. */
*************** s_lcomm_internal (needs_align, bytes_p)
*** 1992,1997 ****
--- 1994,2000 ----
  
         record_alignment(bss_seg, align);
       }
+ #endif /* not NO_IMPLICIT_LCOMM_ALIGNMENT */
  
    if (needs_align)
      {

brgds, H-P


More information about the Binutils mailing list