aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-04-08 12:47:08 +0000
committerNick Clifton <nickc@redhat.com>2003-04-08 12:47:08 +0000
commit9cc92a36ed6e61f930a367557dc8e92dcdda5a79 (patch)
tree3911383693ed532701a5e3abdef4b2572f665c0c /gas/as.c
parent983aea3412d8271befd6b83ba2464f5ae2baa674 (diff)
downloadgdb-9cc92a36ed6e61f930a367557dc8e92dcdda5a79.zip
gdb-9cc92a36ed6e61f930a367557dc8e92dcdda5a79.tar.gz
gdb-9cc92a36ed6e61f930a367557dc8e92dcdda5a79.tar.bz2
* as.c (perform_an_assembly_pass): If using cgen, call gas_cgen_begin.
* cgen.c (gas_cgen_begin): New function. If flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok otherwise call cgen_clear_signed_overflow_ok. * cgen.h: Prototype gas_cgen_begin. * testsuite/gas/m32r/m32r.exp: Run signed-relocs test. * testsuite/gas/m32r/signed-relocs.s: New file: Test signed relocs. * testsuite/gas/m32r/signed-relocs.d: New file: Expected results
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/as.c b/gas/as.c
index 43f413f..23ed9f7 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -65,6 +65,10 @@ static void parse_args PARAMS ((int *, char ***));
static void dump_statistics PARAMS ((void));
static void perform_an_assembly_pass PARAMS ((int argc, char **argv));
static int macro_expr PARAMS ((const char *, int, sb *, int *));
+#ifdef USING_CGEN
+/* Perform any cgen specific initialisation for gas. */
+extern void gas_cgen_begin PARAMS ((void));
+#endif
/* True if a listing is wanted. */
int listing;
@@ -1064,6 +1068,9 @@ perform_an_assembly_pass (argc, argv)
and sections already created, in BFD_ASSEMBLER mode. */
md_begin ();
+#ifdef USING_CGEN
+ gas_cgen_begin ();
+#endif
#ifdef obj_begin
obj_begin ();
#endif