This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] avr port: `.lcomm' variables alignment = 0
- To: binutils at sourceware dot cygnus dot com
- Subject: [patch] avr port: `.lcomm' variables alignment = 0
- From: Denis Chertykov <denisc at overta dot ru>
- Date: Thu, 24 Aug 2000 20:48:53 +0400
Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
* config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
Sets `.lcomm' alignment to zero.
Index: config/tc-avr.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-avr.h,v
retrieving revision 1.2
diff -c -3 -p -r1.2 tc-avr.h
*** tc-avr.h 2000/07/03 22:25:33 1.2
--- tc-avr.h 2000/08/24 16:48:49
*************** extern long md_pcrel_from_section PARAMS
*** 118,120 ****
--- 118,129 ----
#define LEX_DOLLAR 0
/* AVR port uses `$' as a logical line separator */
+
+ #define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) (P2VAR) = 0
+ /* An `.lcomm' directive with no explicit alignment parameter will
+ use this macro to set P2VAR to the alignment that a request for
+ SIZE bytes will have. The alignment is expressed as a power of
+ two. If no alignment should take place, the macro definition
+ should do nothing. Some targets define a `.bss' directive that is
+ also affected by this macro. The default definition will set
+ P2VAR to the truncated power of two of sizes up to eight bytes. */