aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-alpha.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-12-13 08:23:05 +0000
committerAlan Modra <amodra@gmail.com>2003-12-13 08:23:05 +0000
commite13bab5a71e5c7274ffbe699673c38744940fe01 (patch)
tree927d3197723e492670657b9c6b496dc7027dc43a /gas/config/tc-alpha.h
parent503ff15d3831702b6020a5e0f37540cbd41c77d2 (diff)
downloadgdb-e13bab5a71e5c7274ffbe699673c38744940fe01.zip
gdb-e13bab5a71e5c7274ffbe699673c38744940fe01.tar.gz
gdb-e13bab5a71e5c7274ffbe699673c38744940fe01.tar.bz2
* read.c: Remove unneeded prototypes.
(s_comm): Split out code to.. (s_comm_internal): ..here. Tidy error returns. Rearrange so that "name" from input line may be used in more places. Merge code testing for valid size from elf_common. Merge code from s_lcomm_internal. Call comm_parse_extra. (bss_alloc): New function, split out of s_lcomm_internal and elf_common. (parse_align): Likewise. (s_lcomm_internal): Rewrite. (s_lcomm, s_lcomm_bytes): Use s_comm_internal. * read.h (bss_alloc, parse_align, s_comm_internal): Declare. * config/obj-elf.c (elf_common): Split out code to.. (elf_common_parse): ..here. Remove code common to s_comm_internal, parse_align and bss_alloc. Rearrange and Tidy. * config/tc-alpha.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Define.
Diffstat (limited to 'gas/config/tc-alpha.h')
-rw-r--r--gas/config/tc-alpha.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gas/config/tc-alpha.h b/gas/config/tc-alpha.h
index 5287686..939a14f 100644
--- a/gas/config/tc-alpha.h
+++ b/gas/config/tc-alpha.h
@@ -80,6 +80,21 @@ extern valueT alpha_gp_value;
: BFD_RELOC_ALPHA_LINKAGE);
#endif
+#ifndef VMS
+#define TC_IMPLICIT_LCOMM_ALIGNMENT(size, align) \
+ do \
+ { \
+ align = 0; \
+ if (size > 1) \
+ { \
+ addressT temp = 1; \
+ while ((size & temp) == 0) \
+ ++align, temp <<= 1; \
+ } \
+ } \
+ while (0)
+#endif
+
#define md_number_to_chars number_to_chars_littleendian
extern int tc_get_register PARAMS ((int frame));