aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.h
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2007-04-14 14:21:11 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2007-04-14 14:21:11 +0000
commit0cc3409506a056370ab1f7d00c1d1e82f7e67644 (patch)
tree081a67dd9bc7bd47fa3e9a7a27f2a553fc0ac7c6 /gas/config/tc-sh.h
parent3fcd97f16cb46d4c493e892f85a188969e0a95e7 (diff)
downloadgdb-0cc3409506a056370ab1f7d00c1d1e82f7e67644.zip
gdb-0cc3409506a056370ab1f7d00c1d1e82f7e67644.tar.gz
gdb-0cc3409506a056370ab1f7d00c1d1e82f7e67644.tar.bz2
* config/tc-sh.c (align_test_frag_offset_fixed_p): New.
(sh_optimize_expr): Likewise. * config/tc-sh.h (md_optimize_expr): Define. (sh_optimize_expr): Prototype.
Diffstat (limited to 'gas/config/tc-sh.h')
-rw-r--r--gas/config/tc-sh.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h
index 0ad914e..b023b48 100644
--- a/gas/config/tc-sh.h
+++ b/gas/config/tc-sh.h
@@ -44,6 +44,12 @@ extern int sh_small;
#define md_cons_align(nbytes) sh_cons_align (nbytes)
extern void sh_cons_align (int);
+/* We need to optimize expr with taking account of rs_align_test
+ frags. */
+
+#define md_optimize_expr(l,o,r) sh_optimize_expr (l, o, r)
+extern int sh_optimize_expr (expressionS *, operatorT, expressionS *);
+
/* When relaxing, we need to generate relocations for alignment
directives. */
#define HANDLE_ALIGN(frag) sh_handle_align (frag)