Tue Aug 19 08:59:12 1997 Fred Fish <fnf@cygnus.com>
authorFred Fish <fnf@specifix.com>
Tue, 19 Aug 1997 16:46:03 +0000 (16:46 +0000)
committerFred Fish <fnf@specifix.com>
Tue, 19 Aug 1997 16:46:03 +0000 (16:46 +0000)
* read.c (s_lcomm_internal): Renamed from s_lcomm, added arg to
flag when alignment is in bytes instead of power of 2, and code to
use that flag to convert alignment to bytes.
(s_lcomm, s_lcomm_bytes):  New helpers that call s_lcomm_internal.
* read.h (s_lcomm_bytes): Add prototype.
* config/obj-coff.c (write_object_file): If ALIGNMENT_IN_S_FLAGS is
defined, write alignment to alignment bits in section header s_flags
rather than the s_align field.
start-sanitize-tic80
* config/obj-coff.h (ALIGNMENT_IN_S_FLAGS): Define for TC_TIC80.
* config/tc-tic80.c (md_pseudo_table): Use s_lcomm_bytes for bss
pseudo, instead of s_lcomm which wants a power of two for alignment.
end-sanitize-tic80
PR 12215 and PR 13061

gas/ChangeLog
gas/config/tc-tic80.c

index 33c6c04652bb2f6b912836ceb99bcd1e49a7eeeb..93301d57a08faffcdddf44b2e310f14c557c0324 100644 (file)
@@ -1,3 +1,19 @@
+Tue Aug 19 08:59:12 1997  Fred Fish  <fnf@cygnus.com>
+
+       * read.c (s_lcomm_internal): Renamed from s_lcomm, added arg to
+       flag when alignment is in bytes instead of power of 2, and code to
+       use that flag to convert alignment to bytes.
+       (s_lcomm, s_lcomm_bytes):  New helpers that call s_lcomm_internal.
+       * read.h (s_lcomm_bytes): Add prototype.
+       * config/obj-coff.c (write_object_file): If ALIGNMENT_IN_S_FLAGS is
+       defined, write alignment to alignment bits in section header s_flags
+       rather than the s_align field.
+start-sanitize-tic80
+       * config/obj-coff.h (ALIGNMENT_IN_S_FLAGS): Define for TC_TIC80.
+       * config/tc-tic80.c (md_pseudo_table): Use s_lcomm_bytes for bss
+       pseudo, instead of s_lcomm which wants a power of two for alignment.
+end-sanitize-tic80
+
 Mon Aug 18 20:42:23 1997  Richard Henderson  <rth@cygnus.com>
 
        * macro.c (check_macro): use alloca instead of xmalloc to plug leak.
index 1ef46c075cec7fbdf130b7adb7950ac52250d710..9c33eaa34ecf634465cb7427d6a5abb6bb0c684b 100644 (file)
@@ -61,7 +61,7 @@ const pseudo_typeS md_pseudo_table[] =
 {
   { "align",   s_align_bytes,          4 },    /* Do byte alignment, default is a 4 byte boundary */
   { "word",    cons,                   4 },    /* FIXME: Should this be machine independent? */
-  { "bss",     s_lcomm,                1 },
+  { "bss",     s_lcomm_bytes,          1 },
   { "sect",    obj_coff_section,       0},     /* For compatibility with TI tools */
   { "section", obj_coff_section,       0},     /* Standard COFF .section pseudo-op */
   { NULL,      NULL,                   0 }