]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
tidy tilegx and tilepro MAX_MEM_FOR_RS_ALIGN_CODE
authorAlan Modra <amodra@gmail.com>
Tue, 2 Sep 2025 12:15:39 +0000 (21:45 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 3 Sep 2025 00:59:08 +0000 (10:29 +0930)
These weren't wrong, but should use the BUNDLE_SIZE macros, in case
they ever change.

* config/tc-tilegx.h (MAX_MEM_FOR_RS_ALIGN_CODE): Use
TILEGX_BUNDLE_SIZE_IN_BYTES.
* config/tc-tilepro.h (MAX_MEM_FOR_RS_ALIGN_CODE): Use
TILEPRO_BUNDLE_SIZE_IN_BYTES.

gas/config/tc-tilegx.h
gas/config/tc-tilepro.h

index e3789e4ed9768e498e13ee023ba3ed1e10153b6d..ad935ef6060d28844b6e30950ca45593095af5b1 100644 (file)
@@ -42,7 +42,8 @@ extern const char * tilegx_target_format (void);
 #define HANDLE_ALIGN(sec, fragp) tilegx_handle_align (fragp)
 extern void tilegx_handle_align (struct frag *);
 
-#define MAX_MEM_FOR_RS_ALIGN_CODE(p2align, max) (7 + 8)
+#define MAX_MEM_FOR_RS_ALIGN_CODE(p2align, max) \
+  (2 * TILEGX_BUNDLE_SIZE_IN_BYTES - 1)
 
 struct tilegx_operand;
 #define TC_FIX_TYPE const struct tilegx_operand *
index f985053d8156695c4cdf6faa6c79ab8cbbae1f4c..4f57309194c43b3bd0fade3f3af83e80924a8aeb 100644 (file)
@@ -42,7 +42,8 @@
 #define HANDLE_ALIGN(sec, fragp) tilepro_handle_align (fragp)
 extern void tilepro_handle_align (struct frag *);
 
-#define MAX_MEM_FOR_RS_ALIGN_CODE(p2align, max) (7 + 8)
+#define MAX_MEM_FOR_RS_ALIGN_CODE(p2align, max) \
+  (2 * TILEPRO_BUNDLE_SIZE_IN_BYTES - 1)
 
 struct tilepro_operand;
 #define TC_FIX_TYPE const struct tilepro_operand *