diff options
author | Nick Clifton <nickc@redhat.com> | 2003-04-08 12:47:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-04-08 12:47:08 +0000 |
commit | 9cc92a36ed6e61f930a367557dc8e92dcdda5a79 (patch) | |
tree | 3911383693ed532701a5e3abdef4b2572f665c0c /gas/cgen.c | |
parent | 983aea3412d8271befd6b83ba2464f5ae2baa674 (diff) | |
download | binutils-gdb-9cc92a36ed6e61f930a367557dc8e92dcdda5a79.tar.gz |
* 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/cgen.c')
-rw-r--r-- | gas/cgen.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gas/cgen.c b/gas/cgen.c index 76e6826b1ea..e0740f57952 100644 --- a/gas/cgen.c +++ b/gas/cgen.c @@ -716,3 +716,15 @@ gas_cgen_tc_gen_reloc (section, fixP) reloc->address = fixP->fx_frag->fr_address + fixP->fx_where; return reloc; } + +/* Perform any cgen specific initialisation. + Called after gas_cgen_cpu_desc has been created. */ + +void +gas_cgen_begin () +{ + if (flag_signed_overflow_ok) + cgen_set_signed_overflow_ok (gas_cgen_cpu_desc); + else + cgen_clear_signed_overflow_ok (gas_cgen_cpu_desc); +} |