aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
1995-08-01 * gas/mri/*: New tests for MRI mode.Ian Lance Taylor14-0/+152
1995-08-01 * config/tc-m68k.c (init_table): Add "control", "status", "iaddr",Ian Lance Taylor1-7/+14
"sfcr", and "dfcr" as synonyms for existing entries. (md_begin): In MRI mode, force flag_reg_prefix_optional to 1. (md_parse_option): Removed unused locals i and arch. Change type of arch (another one) to unsigned long. (tc_coff_sizemachdep): Add return after abort to avoid warning.
1995-08-01 Initial support for MRI style labels and expressions.Ian Lance Taylor2-243/+606
* as.h (flag_mri): Declare/define. * as.c (show_usage): Mention -M and its synonym --mri. (parse_args): Add 'M' to std_shortopts. Add "mri" to std_longopts. Set flag_mri if -M is seen. (main): Call parse_args before input_scrub_begin. Call expr_begin. * app.c (do_scrub_begin): Don't set lex for '"' or '\'' in MRI mode. Do set lex for ';', '*', and '!' in MRI mode. (do_scrub_next_char): Remove MRI ifdef in LEX_IS_WHITESPACE case. In MRI mode, keep spaces between labels and colons. Remove MRI ifndef around LEX_IS_ONECHAR_QUOTE case. In MRI mode, don't use '!' or '*' as comment characters even if they are in comment_chars. * read.h (lex_type): No longer const. * read.c: Include libiberty.h. (lex_type): No longer const. (read_begin): In MRI mode, set lex_type of '?' to 3. (potable): Add dc, dc.b, dc.d, dc.l, dc.s, dc.w, dc.x, ds, ds.b, ds.l, ds.w, and xdef. (read_a_source_file): Change LABELS_WITHOUT_COLON ifdef to check for MRI mode at runtime rather than compile time. Handle the EQU pseudo-op in MRI mode. Remove bogus MRI ifdef around done_pseudo. Change NO_PSEUDO_DOT ifdef to also take effect for MRI mode at runtime. (cons): In MRI mode, always call parse_mri_cons rather than TC_PARSE_CONS_EXPRESSION. (parse_mri_cons): Always compile, not just when MRI is defined. Call TC_PARSE_CONS_EXPRESSION, not expression, when the input is not a string constant. Handle A and E modifiers. (float_cons): Accept :xxxx, where the x's are hex digits. * expr.h (operatorT): Add O_eq, O_ne, O_lt, O_le, O_ge, O_gt. (expr_begin): Declare. * expr.c (integer_constant): In MRI mode, if the base was not specified, look for a suffix on the number to set the base. (mri_char_constant): New static function. (operand): Remove MRI ifdef. In MRI mode, do various things: Pass 0 as the base when calling integer_constant if there was no prefix. Check for a hex constant suffix if when a leading '0' is seen. Don't accept 0x or 0b as a prefix. Check for E'chars' and A'chars'. Handle MRI character constants. Treat '"' as the unary bitwise not operator. Treat $ as the program counter, or as the prefix for a hex constant. Treat % as the prefix for a binary constant and @ as the prefix for an octal constant. Treat : as the prefix for a hex constant. (op_encoding): Set '"' to O_bit_not, '<' to O_lt, and '>' to O_gt. (op_rank): No longer const. Change rank values. (expr_begin): New function. (operator): New static function. (expr): Use operator. Don't bother to mention the operator in warnings. Remove bogus #if 0 code. Handle new operatorT values. * atof-generic.c (atof_generic): In MRI mode, accept underscores around the exponent in floating point numbers. * symbols.h (symbols_case_sensitive): Declare. * symbols.c (symbols_case_sensitive): New global variable. (symbol_create): Check symbols_case_sensitive. (symbol_find_base): Likewise. (resolve_symbol_value): Handle new operatorT values. (print_expr_1): Likewise. (S_IS_LOCAL): In MRI mode, names beginning with two '?' characters are local.
1995-08-01 * Makefile.in: Remove superfluous runtest gasp.Steve Chamberlain2-1/+19
1995-08-01Tue Aug 1 11:35:18 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+5
* tc-sh.c (md_convert_frag): Make some error messages more explict.
1995-08-01 * gasp.c (main): Parse -I option.Steve Chamberlain2-5/+55
(do_include): Look through include list. * gasp.c (change_base): Don't modify numbers in strings. (pr7583) * testsuite/gasp/*: New. * testsuite/Makefile.in: Use gasp tests. * testsuite/config/default.exp: Add gasp stuff.
1995-08-01 * testsuite/Makefile.in: Use gasp tests.Steve Chamberlain2-1/+16
* testsuite/config/default.exp: Add gasp stuff.
1995-08-01Keep gasp.Steve Chamberlain1-1/+2
1995-08-01gasp is gone from here.Steve Chamberlain1-1/+0
1995-08-01 moved.Steve Chamberlain1-40/+0
1995-08-01moved.Steve Chamberlain6-77/+0
1995-08-01 new file.Steve Chamberlain1-0/+35
1995-08-01 New order.Steve Chamberlain73-435/+208
1995-08-01yet more vms workKen Raeburn2-80/+87
1995-08-01 * gasp.c (change_base): Don't modify numbers in strings. (pr7583)Steve Chamberlain10-0/+135
* testsuite/gas/gasp/*: New.
1995-07-31remove local variables, change-log-mode does all of thatKen Raeburn1-8/+15
1995-07-28more vms changesKen Raeburn3-63/+78
1995-07-25more vms work from patKen Raeburn1-786/+716
1995-07-25fix more compilation problemsKen Raeburn1-0/+8
1995-07-24 * config/tc-sh.c (md_pseudo_table): Add "uses".Ian Lance Taylor2-16/+110
(s_uses): New static function. (sh_coff_frob_file): New function. (md_convert_frag): Call subseg_change before calling fix_new. (sh_handle_align): New function. (SWITCH_TABLE): Define. (sh_force_relocation): New function. (md_apply_fix): Handle R_SH_USES, R_SH_COUNT and R_SH_ALIGN. (sh_coff_reloc_mangle): Likewise. Also handle switch table entries. * config/tc-sh.h (HANDLE_ALIGN): Define. (sh_handle_align): Declare. (TC_FORCE_RELOCATION): Define. (sh_force_relocation): Declare. (TC_COUNT_RELOC): Simplify; rely on TC_FORCE_RELOCATION instead. (tc_frob_file): Define. (sh_coff_frob_file): Declare. * config/obj-coff.c (write_object_file): Call tc_frob_file if it is defined. (fixup_mdeps): Call HANDLE_ALIGN if it is defined. (TC_FORCE_RELOCATION): Define if not defined. (fixup_segment): Use TC_FORCE_RELOCATION to decide whether to clear the symbol fields of fixP.
1995-07-20* configure.in (arm-*-riscix*): Don't set emulation.Ken Raeburn1-0/+2
1995-07-20* config/tc-m68k.c (md_convert_frag): Rename argument seg to sec, since seg isKen Raeburn1-0/+5
a macro name in this file.
1995-07-19 * config/obj-coff.h (TE_PE): Delete.David Edelsohn1-0/+13
* config/tc-arm.h (BYTE_ORDER): Delete. (TARGET_FORMAT): Provide value for OBJ_COFF and TE_PE. (ARM_BI_ENDIAN): Define if OBJ_COFF and TE_PE. * config/tc-arm.c (byte_order): Delete. (md_number_to_chars): Reference target_big_endian, not byte_order. (md_chars_to_number): Likewise. (md_longopts): Add -EB/-EL if ARM_BI_ENDIAN. (md_parse_options): Recognize -EB/-EL. (md_show_usage): List -EB/-EL.
1995-07-19 * gasp.c (process_assigns): Use toupper before comparing againstIan Lance Taylor2-29/+42
upper case letter. (whatcond): Likewise. PR 7281.
1995-07-19 * config/tc-sh.c (sh_relax): Rename from relax, and make global.Ian Lance Taylor11-135/+242
Renamed all uses. (insert): Pass a size of 2, not 4. (build_relax): Remove unused len variable. (md_show_usage): Mention -little option. (md_convert_frag): Add segT argument. Rewrite to generate relocs rather than to generate complete instructions here. (md_apply_fix): Adjust and clarify R_SH_PCRELIMM8BY4 case for changes in insert and md_pcrel_from. Add cases for R_SH_PCDISP and R_SH_PCDISP8BY2. (md_pcrel_from): Don't subtract 1, add 2. (tc_coff_fix2rtype): Remove. (sh_coff_reloc_mangle): New function. * config/tc-sh.h (TC_COFF_FIX2RTYPE): Just return fx_r_type. (sh_relax): Declare. (TC_COUNT_RELOC): If relaxing, count PC relative relocs. (TC_RELOC_MANGLE): Define. (sh_coff_reloc_mangle): Declare. (tc_coff_sizemachdep): Declare. * tc.h (md_convert_frag): Add segT parameter to non BFD_ASSEMBLER declaration. * write.c (cvt_frag_to_fill): Add sec argument to non BFD_ASSEMBLER version. Pass it to md_convert_frag. (write_object_file): Pass SEG_TEXT to cvs_frag_to_fill. * config/obj-coff.c (do_relocs_for): Pass segment info to TC_RELOC_MANGLE. (fixup_mdeps): Pass segment type to md_convert_frag. * config/tc-a29k.c (md_convert_frag): Add segT argument. * config/tc-h8300.c (md_convert_frag): Likewise. * config/tc-h8500.c (md_convert_frag): Likewise. * config/tc-i386.c (md_convert_frag): Likewise. * config/tc-i860.c (md_convert_frag): Likewise. * config/tc-i960.c (md_convert_frag): Likewise. * config/tc-m68k.c (md_convert_frag): Likewise. * config/tc-m88k.h (md_convert_frag): Likewise. * config/tc-ns32k.c (md_convert_frag): Likewise. * config/tc-rce.c (md_convert_frag): Likewise. * config/tc-tahoe.c (md_convert_frag): Likewise. * config/tc-vax.c (md_convert_frag): Likewise. * config/tc-w65.c (md_convert_frag): Likewise. * config/tc-z8k.c (md_convert_frag): Likewise. * config/tc-h8300.h (TC_RELOC_MANGLE): Add segment argument. * config/tc-h8500.h (TC_RELOC_MANGLE): Likewise. * config/tc-rce.h (TC_RELOC_MANGLE): Likewise. * config/tc-w65.h (TC_RELOC_MANGLE): Likewise. * config/tc-z8k.h (TC_RELOC_MANGLE): Likewise.
1995-07-18vms fixes from pat rankinKen Raeburn1-110/+84
1995-07-15Allow compiler to mark relocs that are ok for -mrelocatable.Michael Meissner1-0/+10
1995-07-15 Add support for SPARC SunOS PIC:Ian Lance Taylor1-0/+20
* config/tc-sparc.h (sparc_pic_code): Always declare, not just when OBJ_ELF. (TC_RELOC_RTSYM_LOC_FIXUP): Define when OBJ_AOUT. (tc_fix_adjustable): New definition for OBJ_AOUT. * config/tc-sparc.c (sparc_pic_code): Always define, not just when OBJ_ELF. (md_apply_fix): Adjust reloc addend for OBJ_AOUT and PIC. In BFD_RELOC_32_PCREL_S2 case, don't increment val for an external symbol when PIC. (tc_gen_reloc): Generate different PIC relocs when OBJ_AOUT, as well as when OBJ_ELF. (md_shortopts): If OBJ_AOUT, include `k'. (md_parse_option): If OBJ_AOUT, handle 'k'. (md_show_usage): Mention -k if OBJ_AOUT, and -KPIC if OBJ_ELF. (md_pcrel_from): Don't add in size for an external symbol when PIC.
1995-07-14* config/tc-arc.c (byte_order): Provide explicit initial value.David Edelsohn1-39/+83
1995-07-14* config/tc-arc.c (byte_order): Provide explicit initial value.David Edelsohn1-8/+6
Also delete entry for reverted -m{big,little}-endian patch.
1995-07-14 * config/tc-hppa.h (UNDEFINED_DIFFERENCE_OK): Define for SOM.Jeff Law1-0/+9
* write.c (adjust_reloc_syms): Set sy_used_in_reloc for both symbols in a fixup where a defined symbol is subtracted from an undefined symbol (when UNDEFINED_DIFFERENCE_OK is defined). (fixup_segment): Do nothing for the difference of two symbols if UNDEFINED_DIFFERENCE_OK is defined.
1995-07-13Use "&" instead of "#" for immediate operands.Ken Raeburn1-0/+72
1995-07-13Fix debug info bugs for SGIJim Wilson1-0/+7
* ecoff.c (add_file): Don't collapse multiple .file commands into a single file structure. (ecoff_build_lineno): Set ilineBase to sum of previous file's ilineBase and cline.
1995-07-13 * config/obj-coff.c (fixup_segment): Support MD_APPLY_FIX3.Ian Lance Taylor1-2/+6
1995-07-12fix more compilation bugsKen Raeburn2-2/+25
1995-07-11 * doc/c-mips.texi: Document -m4010 and -mno-4010.Ian Lance Taylor1-0/+18
1995-07-11Tue Jul 11 14:28:55 1995 Jeff Spiegel <jeffs@lsil.com>Ian Lance Taylor1-12/+57
* config/tc-mips.c (mips_4010): New static variable. (interlocks): New static variable. (md_begin): Check for a cpu of "r4010". Set mips_4010 correctly. If mips_4650 or mips_4010, set interlocks. (append_insn): Check interlocks, not mips_4650. (mips_emit_delays): Likewise. (mips_ip): Only permit INSN_4010 instructions if mips_4010. (md_longopts): Add "m4010" and "no-m4010". (md_parse_option): Accept -mcpu=r4010. Handle -m4010 and -no-m4010. (md_show_usage): Document -m4010 and -no-m4010.
1995-07-11 * ecoff.c (struct efdr): Add new field fake.Ian Lance Taylor1-0/+11
(init_file): Initialize fake. (add_file): Add new parameter fake. Change all callers. (ecoff_build_debug): Don't warn about a missing .end for a fake file. PR 6509.
1995-07-10split cpu-specific documentation out to separate filesKen Raeburn5-0/+1068
1995-07-10* read.c (po_hash): Now static.Ken Raeburn1-0/+4
1995-07-10 Based on patches from H.J. Lu <hjl@nynexst.com>:Ian Lance Taylor1-0/+7
* config/tc-i386.c (md_apply_fix3): Rename from md_apply_fix1. Accept pointer to value and segment. Fix OBJ_ELF PCREL case to handle global defined symbols correctly. (md_apply_fix): Remove both versions. * config/tc-i386.h (MD_APPLY_FIX3): Define.
1995-07-10 * configure.in: When switching on ${cpu}, use ${cpu}, notIan Lance Taylor1-0/+6
$[target_cpu}, in default case. * configure: Rebuild.
1995-07-08 * write.c (fixup_segment): Call resolve_symbol_value onIan Lance Taylor1-0/+5
sub_symbolP, in case it isn't in the symbol table. PR 7131.
1995-07-07 * read.c (s_lcomm): For .lcomm 1, set align to 0, not 1.Ian Lance Taylor2-1/+3
PR 5167.
1995-07-07 * config/obj-coff.c (coff_frob_symbol): If SF_GET_FUNCTION, setIan Lance Taylor1-0/+10
BSF_FUNCTION. (symbol_globalP, symbol_global_lastP): New global variables. (yank_symbols): Sort defined global symbols to the end, just before the undefined symbols. (glue_symbols): Add two arguments, and use them instead of referring directly to global variables. (crawl_symbols): Call glue_symbols twice, once for defined globals and once for undefined. Add corresponding know calls. PR 5491.
1995-07-07 * app.c (do_scrub_next_char): Always accept \v. Don't make itIan Lance Taylor3-5/+6
conditional on BACKSLASH_V. * read.c (next_char_of_string): Likewise. * config/obj-bout.h (BACKSLASH_V): Don't define. * config/tc-mips.h (BACKSLASH_V): Don't define. PR 5604.
1995-07-07 Add SPARC ELF PIC support.Ian Lance Taylor3-7/+23
* write.c (fixup_segment): Pass fixP to TC_RELOC_RTSYM_LOC_FIXUP, not fixP->fx_r_type. * config/tc-sparc.c (sparc_pic_code): New global variable. (md_apply_fix): If generating PIC, adjust fx_addnumber for any non PC relative reloc. (tc_gen_reloc): If generating PIC, adjust various reloc types. Remove fx_pcrel assert, since it is no longer true. (md_parse_option): Handle -K PIC. * config/tc-sparc.h (sparc_pic_code): Declare if OBJ_ELF. (TC_RELOC_RTSYM_LOC_FIXUP): Define if OBJ_ELF. (tc_fix_adjustable): Don't adjust PC relative relocs if PIC. * config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Take a fixp, not a reloc type. PR 7131.
1995-07-07 * Makefile.in (Makefile): Add dependency on conf.in, so that confIan Lance Taylor1-0/+5
is rebuilt when conf.in changes.
1995-07-06fsf address updateKen Raeburn45-245/+445
1995-07-06add trailing newlinesKen Raeburn3-3/+3