summaryrefslogtreecommitdiff
path: root/gas/expr.c
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.am (GAS_CFILES): Remove bignum-copy.c.Ben Elliston2005-04-291-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GENERIC_OBJS): Likewise, remove bignum-copy.o. (bignum-copy.o): Remove. * Makefile.in: Regenerate. * makefile.vms (OBJS): Remove bignum-copy.obj. * symbols.h (local_symbol_make): Remove declaration. (verify_symbol_chain_2): Likewise. * symbols.c (local_symbol_make): Make static. (max_indent_level): Likewise. (verify_symbol_chain_2): Remove. * macro.c (macro_hash): Make static. * messages.c (fprint_value): Remove. * read.h (get_absolute_expr): Remove. (emit_leb128_expr): Likewise. (do_s_func): Likewise. * read.c (do_s_func): Make static. (emit_leb128_expr): Likewise. (get_absolute_expr): Likewise. * as.h (as_howmuch): Remove declaration. (fprint_value): Likewise. * as.c (myname): Make static. * input-scrub.c (as_howmuch): Remove. (as_1_char): Likewise. * input-file.h (input_file_is_open): Remove. * input-file.c (input_file_is_open): Likewise. * expr.h (expr_build_unary): Remove declaration. (expr_build_binary): Likewise. * expr.c (expr_build_unary): Remove. (expr_build_binary): Likewise. * hash.h (hash_replace): Remove declaration. (hash_delete): Likewise. * hash.c (hash_replace): Remove. (hash_delete): Likewise. * bignum-copy.c (bignum_copy): Move from here .. * config/tc-vax.c (bignum_copy): .. to here. * bignum.h (LOG_TO_BASE_2_OF_10): Remove. (bignum_copy): Remove extern declaration. * sb.h (string_count): Remove extern declaration. (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise. (sb_name): Likewise. * sb.c (dsize): Replace preprocessor macro with static int. (string_count): Make static. (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise. (sb_name): Likewise. * config/obj-coff.c (dim_index): Make static. * config/tc-i386.c (GOT_symbol): Likewise. (output_invalid_buf): Likewise. * doc/internals.texi (Warning and error messages): Remove the prototype for fprint_value.
* gas/Jan Beulich2005-03-151-19/+15
| | | | | | | 2005-03-15 Jan Beulich <jbeulich@novell.com> * expr.c (operand): Merge handling of unary + into that for unary -, !, and ~.
* Remove redundant code enclosed by #ifdef RELAX_PAREN_GROUPING....#endif.Nick Clifton2005-03-031-6/+1
|
* * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.Alan Modra2005-03-011-5/+1
| | | | * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
* * as.h (assert): Warning fix.Alan Modra2005-03-011-1/+1
| | | | | | | | | | | * expr.c (expr): Correct assertion. * read.c (s_comm_internal): Remove assertion. * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER. (fixup_segment): Remove assertion. * config/tc-dlx.c (machine_ip): Remove untrue assertions. (md_apply_fix3): Likewise. * config/tc-i370.c (md_begin): Correct assertion. (i370_macro): Warning fix for assertion.
* * expr.c (operand): Handle the "~", "-", and "!" operators appliedMark Mitchell2004-08-111-0/+29
| | | | | | | to bignums. * gas/arm/bignum1.s: New test. * gas/arm/arm.exp: Run it.
* * expr.c (operand, operator): Don't reject '++' and '--'.Alan Modra2004-05-231-6/+9
|
* * expr.c (operand): Correct checks for ++ and --.Alan Modra2004-04-161-2/+2
|
* * expr.c (operand): Reject ++ and --.Nathan Sidwell2004-03-181-0/+15
| | | | (operator): Likewise.
* * ehopt.c: Convert to ISO-C.Kazu Hirata2003-11-221-49/+30
| | | | | | | | | | | * emul.h: Likewise. * expr.c: Likewise. * expr.h: Likewise. * flonum-copy.c: Likewise. * flonum-mult.c: Likewise. * flonum.h: Likewise. * frags.c: Likewise. * frags.h: Likewise.
* * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into theRichard Henderson2003-05-271-10/+2
| | | | | | | | symbol_create call. (current_location): Use symbol_temp_new_now. * stabs.c (s_stab_generic): Use symbol_temp_new. * symbols.c (temp_label_name): Remove. (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
* * expr.c (operand): Add support for n.nn flonums.Alan Modra2002-10-181-16/+28
|
* * expr.c (expr): Simplify foo-foo here.Alan Modra2002-09-201-18/+2
| | | | (clean_up_expression): Remove O_subtract code.
* * write.h (struct fix): Add fx_dot_value.Alan Modra2002-09-191-0/+4
| | | | | | | (dot_value): Declare. * write.c (dot_value): New var. (fix_new_internal): Save dot_value as fx_dot_value. * expr.c (expr): Update dot_value.
* * dwarf2dbg.c: Always include dwarf2dbg.h.Alan Modra2002-08-271-4/+2
| | | | | | | | | | (dwarf2_directive_file): Adjust dummy version args. * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED. * expr.c (clean_up_expression <O_subtract>): Allow subtraction when symbol values differ. * read.c (do_align): Add ATTRIBUTE_UNUSED to label. (pseudo_set <O_subtract>): Remove unnecessary segment test. * config/obj-bout.c (obj_pseudo_table): Warning fix.
* * app.c: Fix formatting.Kazu Hirata2002-05-181-1/+1
| | | | | | | | | | | * as.c: Likewise. * ehopt.c: Likewise. * expr.c: Likewise. * input-file.c: Likewise. * listing.c: Likewise. * macro.h: Likewise. * stabs.c: Likewise. * symbols.c: Likewise.
* * app.c: Fix comment typos.Kazu Hirata2001-10-111-3/+3
| | | | | | * bit_fix.h: Likewise. * expr.c: Likewise. * itbl-ops.c: Likewise.
* Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu2001-09-191-10/+5
|
* * expr.c (expr): Move code setting "retval" to the end of the loop,Alan Modra2001-09-091-18/+24
| | | | | | | | | | | | | | | | | | | | | and rearrange for efficiency. For "PIC code" subtraction, use "rightseg" rather than recalculating. For "symbol OP symbol" subtract, set "retval" to absolute_section if symbols in same section. * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an O_symbol. Simplify a +/- b code. Allow equality and non-equality comparisons on symbols from any section. Allow other comparison operators as for subtraction. (symbol_equated_reloc_p): New predicate function. * symbols.h (symbol_equated_reloc_p): Declare. * write.c (adjust_reloc_syms): Use symbol_equated_reloc_p. (write_relocs): Likewise. (write_object_file): Likewise. (relax_segment <rs_machine_dependent>): Ensure segment for expression syms is set correctly. * config/tc-mips.c (md_estimate_size_before_relax): Likewise. * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part of a complex expression when setting up frag_var.
* 2001-08-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-141-0/+3
| | | | | | | * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as a label, not a hex constant. This patch was approved by Nick Clifton.
* * read.c: Standardize error/warning messages - don't capitalise, noAlan Modra2001-08-011-10/+11
| | | | | | | | | | | | | | | | | | | | | final period or newline, don't say "ignored" or "zero assumed" for as_bad messages. In some cases, change the wording to that used elsewhere for similar messages. * app.c, as.c, atof-generic.c, cgen.c, cond.c, depend.c, dwarf2dbg.c, ecoff.c, expr.c, frags.c, input-file.c, input-scrub.c, listing.c, output-file.c, stabs.c, subsegs.c, symbols.c, write.c: Likewise. * ecoff.c (ecoff_directive_end): Test for missing name by comparing input line pointers rather than reading string. (ecoff_directive_ent): Likewise. * read.c (s_set): Likewise. (s_align): Report a warning rather than an error for alignment too large. (s_comm): Check for missing symbol name. (s_lcomm_internal): Likewise. (s_lsym): Likewise. (s_globl): Use is_end_of_line instead of looking for '\n'. (s_lcomm_internal): Likewise. (ignore_rest_of_line): Report a warning rather than an error.
* Fix typo in commentNick Clifton2001-06-131-1/+1
|
* Revert last patch.Alan Modra2001-05-251-13/+0
|
* * expr.c (expr): Set return value to absolute_section forAlan Modra2001-05-251-0/+13
| | | | | subtractive operations on symbols within a segment. * read.c (pseudo_set): Set segment for complex expressions.
* * symbols.c (resolve_symbol_value): Remove "finalize" param,Alan Modra2001-05-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead use finalize_syms directly. Don't treat expressions specially with regard to finalize_syms. Update calls to self. (resolve_local_symbol): Update call to resolve_symbol_value. (S_GET_VALUE): Likewise. Return resolve_symbol_value if !finalize_syms. * symbols.h (resolve_symbol_value): Update prototype. * config/obj-aout.c (obj_crawl_symbol_chain): Update call to resolve_symbol_value. * config/obj-bout.c (obj_crawl_symbol_chain): Likewise. * config/obj-coff.c (do_relocs_for): Likewise. (yank_symbols): Likewise. (fixup_segment): Likewise. * config/obj-vms.c (obj_crawl_symbol_chain): Likewise. * config/tc-mips.c (md_convert_frag): Likewise. * config/tc-ppc.c (ppc_frob_symbol): Likewise. (ppc_fix_adjustable): Likewise. * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise. (dwarf2dbg_convert_frag): Likewise. * ehopt.c (eh_frame_estimate_size_before_relax): Likewise. (eh_frame_convert_frag): Likewise. * expr.c (make_expr_symbol): Likewise. * write.c (adjust_reloc_syms): Likewise. (write_object_file): Likewise. (relax_segment): Likewise. (fixup_segment): Likewise. (finalize_syms): Init to zero, and update comment. (write_object_file): Set finalize_syms to 1 rather than 2. * doc/internals.texi (sy_value): Mention finalize_syms. (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
* * expr.c (operand): Pass &c to md_parse_name().Alexandre Oliva2001-04-121-1/+1
| | | | * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
* Pass finalize_syms on calls to resolve_symbol_value.Alan Modra2001-03-301-1/+1
|
* Fix copyright noticesNick Clifton2001-03-081-1/+2
|
* Update copyright date.Alan Modra2001-02-131-1/+1
|
* Fix parsing of multi-char operators.Alan Modra2001-02-131-14/+17
|
* Correct {STANDARD,MRI}_MUL_PRECEDENCE value.Alan Modra2000-11-281-3/+3
|
* 2000-10-30 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-10-301-3/+2
| | | | | | | | * expr.c: Fix formatting. * flonum-copy.c: Likewise. * flonum.h: Likewise. * gasp.c: Likewise. * hash.c: Likewise.
* 2000-10-17 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-10-171-6/+4
| | | | | | | | | | | | * debug.c: Fix formatting. * depend.c: Likewise. * dwarf2dbg.c: Likewise. * dwarf2dbg.h: Likewise. * ecoff.c: Likewise. * expr.c: Likewise. * expr.h: Likewise. * flonum-konst.c: Likewise. * frags.h: Likewise.
* Miscellaneous tiny fixes.Alan Modra2000-09-051-1/+1
|
* fix formattingNick Clifton2000-09-031-9/+9
|
* 2000-08-11 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-08-111-8/+8
| | | | * expr.c: Fix formatting.
* 2000-08-10 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-08-101-245/+221
| | | | * expr.c: Fix formatting.
* * new parsing optionFrank Ch. Eigler2000-07-171-0/+6
| | | | | | | 2000-07-17 Frank Ch. Eigler <fche@redhat.com> * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN is defined.
* * $literal supportFrank Ch. Eigler2000-06-231-0/+6
| | | | | | | 2000-06-23 Frank Ch. Eigler <fche@redhat.com> * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX is defined.
* (operand): Do not as_bad() if RELAX_PAREN_GROUPING isAlan Modra2000-06-231-4/+8
| | | | | defined. Fix error message and double increment of input_line_pointer for `[' grouping.
* Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add supportNick Clifton2000-06-191-3/+3
| | | | for m68hc11 and m68hc12 processors.
* is_end_of_line fixes.Alan Modra2000-06-021-4/+7
|
* IA-64 ELF support.Jim Wilson2000-04-211-0/+7
|
* * expr.c (operand) [case 'f']: When testing if '0f' can start aHans-Peter Nilsson2000-03-131-1/+2
| | | | floating-point-number, make sure 'f' is in FLT_CHARS.
* Remove dead code when not TC_M68K.Alan Modra2000-02-241-1/+11
|
* NUMBERS_WITH_SUFFIX *doesn't* want to handle 'x', since that is validTimothy Wall2000-02-081-1/+1
| | | | when the 0x prefix is used.
* Remove redundant code for checking numbers with suffixes. AddTimothy Wall2000-02-081-24/+7
| | | | functionality to break out of assembler loops.
* Add handling for numbers with suffixed radix.Timothy Wall2000-02-081-8/+30
|
* Add more md operatorsMichael Meissner1999-11-051-0/+8
|
* Add md expression support; Cleanup alpha warningsMichael Meissner1999-10-181-0/+8
|