diff options
author | Alan Modra <amodra@gmail.com> | 2025-05-19 00:32:22 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-05-23 08:26:08 +0930 |
commit | 0c951ab895a5b3977dad6718e6571774db1237c6 (patch) | |
tree | 87f14ec0809b513b47e4a2ec389663c7ff1f436a | |
parent | 83d94ae428b1a41ebee64a78b868cf1668cefcf7 (diff) | |
download | binutils-0c951ab895a5b3977dad6718e6571774db1237c6.zip binutils-0c951ab895a5b3977dad6718e6571774db1237c6.tar.gz binutils-0c951ab895a5b3977dad6718e6571774db1237c6.tar.bz2 |
Re: gas .align limit
Now that rs_align_code has been corrected for all targets, put the
.align limit back to bits_per_address-1. Also fix a comment.
* frags.h (fr_var): Correct comment.
* read.c (TC_ALIGN_LIMIT): Revert commit ff4c03516c change.
-rw-r--r-- | gas/frags.h | 3 | ||||
-rw-r--r-- | gas/read.c | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/gas/frags.h b/gas/frags.h index 695277d..c2fea09 100644 --- a/gas/frags.h +++ b/gas/frags.h @@ -44,8 +44,7 @@ struct frag { /* (Fixed) number of octets we know we have. May be 0. */ valueT fr_fix; - /* May be used for (Variable) number of octets after above. - The generic frag handling code no longer makes any use of fr_var. */ + /* May be used for (Variable) number of octets after above. */ offsetT fr_var; /* For variable-length tail. */ offsetT fr_offset; @@ -1514,12 +1514,7 @@ s_abort (int ignore ATTRIBUTE_UNUSED) } #ifndef TC_ALIGN_LIMIT -/* Limit alignment in code to 1G, to limit the amount of memory used - by rs_code_align frags. */ -#define TC_ALIGN_LIMIT \ - ((subseg_text_p (now_seg) \ - && stdoutput->arch_info->bits_per_address >= 32) \ - ? 30 : stdoutput->arch_info->bits_per_address - 1) +#define TC_ALIGN_LIMIT (stdoutput->arch_info->bits_per_address - 1) #endif /* Handle the .align pseudo-op. A positive ARG is a default alignment |