Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gas/config (s_common): Convert byte alignment to po...
details: https://anonhg.NetBSD.org/src/rev/850bb304a909
branches: trunk
changeset: 481832:850bb304a909
user: kleink <kleink%NetBSD.org@localhost>
date: Mon Feb 07 12:25:47 2000 +0000
description:
(s_common): Convert byte alignment to power of two to record alignment of
the bss section.
diffstat:
gnu/dist/gas/config/tc-sparc.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 34696199dbcd -r 850bb304a909 gnu/dist/gas/config/tc-sparc.c
--- a/gnu/dist/gas/config/tc-sparc.c Mon Feb 07 11:44:15 2000 +0000
+++ b/gnu/dist/gas/config/tc-sparc.c Mon Feb 07 12:25:47 2000 +0000
@@ -3106,7 +3106,19 @@
old_sec = now_seg;
old_subsec = now_subseg;
- align = temp;
+ if (temp)
+ {
+ /* convert to a power of 2 alignment */
+ for (align = 0; (temp & 1) == 0; temp >>= 1, ++align);
+ if (temp != 1)
+ {
+ as_bad ("Alignment not a power of 2");
+ ignore_rest_of_line ();
+ return;
+ } /* not a power of two */
+ }
+ else
+ align = 0;
record_alignment (bss_section, align);
subseg_set (bss_section, 0);
if (align)
Home |
Main Index |
Thread Index |
Old Index