summaryrefslogtreecommitdiff
path: root/gas/read.c
Commit message (Collapse)AuthorAgeFilesLines
* Use FOPEN_.. macros in calls to fopen().Nick Clifton2001-07-101-8/+10
|
* Add .incbin pseudo opNick Clifton2001-07-091-0/+116
|
* 2001-07-05 Ben Elliston <bje@redhat.com>Ben Elliston2001-07-051-2/+2
| | | | * read.c (s_fill): Correct spelling error in comments.
* * read.c (emit_leb128_expr): Call md_cons_align.Richard Henderson2001-05-311-0/+5
|
* Revert last patch.Alan Modra2001-05-251-4/+3
|
* * expr.c (expr): Set return value to absolute_section forAlan Modra2001-05-251-3/+4
| | | | | subtractive operations on symbols within a segment. * read.c (pseudo_set): Set segment for complex expressions.
* * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;Richard Henderson2001-05-141-0/+7
| | | | | | | | | | also collect whether to expect an FDE augmentation. (check_eh_frame): Rewrite as a state machine. Track where in an FDE we are located, skip any augmentation. (eh_frame_estimate_size_before_relax): Get code alignment from the fragment subtype. (eh_frame_relax_frag, eh_frame_convert_frag): Likewise. * read.c (emit_leb128_expr): Call check_eh_frame.
* 2001-03-28 H.J. Lu <hjl@gnu.org>H.J. Lu2001-03-281-1/+9
| | | | | * read.c (equals): Set to local for COFF only if it hasn't been defined before.
* (for COFF) default symbols to being local.Nick Clifton2001-03-271-0/+6
|
* Teach .org to handle complex expressionsAlan Modra2001-03-171-2/+10
|
* Fix copyright noticesNick Clifton2001-03-081-2/+2
|
* * as.h (rs_align_test): New.Richard Henderson2000-12-281-20/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * frags.c (NOP_OPCODE): Move default from read.c. (MAX_MEM_FOR_RS_ALIGN_CODE): New default. (frag_align_code): New. * frags.h (frag_align_code): Declare. * read.c (NOP_OPCODE): Remove. (do_align): Use frag_align_code. * write.c (NOP_OPCODE): Remove. (get_recorded_alignment): New. (cvt_frag_to_fill): Handle rs_align_test. (relax_segment): Likewise. (subsegs_finish): Align last subseg in section to the section alignment. Use frag_align_code. * write.h (get_recorded_alignment): Declare. * config/obj-coff.c (size_section): Handle rs_align_test. (fill_section, fixup_mdeps): Likewise. (write_object_file): Use frag_align_code. * config/tc-alpha.c (alpha_align): Use frag_align_code. (alpha_handle_align): New. * config/tc-alpha.h (HANDLE_ALIGN): New. (MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-i386.h (md_do_align): Use frag_align_code. (MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment. (ia64_handle_align): New. * config/tc-ia64.h (HANDLE_ALIGN): New. (MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-m32r.c (m32r_do_align): Remove. (m32r_handle_align): New. (fill_insn): Use frag_align_code. * config/tc-m32r.h (md_do_align): Remove. (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-m88k.c, config/tc-m88k.h: Similarly. * config/tc-mips.c, config/tc-mips.h: Similarly. * config/tc-sh.c (sh_cons_align): Use rs_align_test. (sh_handle_align): Likewise. Handle rs_align_code. (sh_do_align): Remove. * config/tc-sh.h (md_do_align): Remove. (MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-sparc.c (sparc_cons_align): Use rs_align_test. (sparc_handle_align): Likewise. Handle rs_align_code. * config/tc-sparc.h (md_do_align): Remove. (MAX_MEM_FOR_RS_ALIGN_CODE): New.
* * as.c (debug_type): Init to DEBUG_UNSPECIFIED.Richard Henderson2000-11-171-21/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * as.h (debug_type): Clarify documentation of the meaning of this variable. * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1. (print_stats): Fix parenthesis problem. (now_subseg_size): New. (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info. (dwarf2_directive_file): Don't set debug_type. (dwarf2_where): Honor DEBUG_DWARF2 first. (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno; do nothing if not emitting dwarf2 debug info, or no work. * dwarf2dbg.h (dwarf2_emit_insn): Update. * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED. (ecoff_new_file): Likewise. * read.c (generate_lineno_debug): Kill ecoff hackery. Update commentary wrt dwarf2. * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add ATTRIBUTE_UNUSED as needed. (emit_insn): Call dwarf2_emit_insn. (s_alpha_file): New. (s_alpha_loc): New. (s_alpha_coff_wrapper): Don't handle them. (md_pseudo_table): Update for .file and .loc. * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New. * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn; don't protect with debug_type. * config/tc-hppa.c (md_assemble): Likewise. * config/tc-m68hc11.c (m68hc11_new_insn): Likewise. * config/tc-mn10300.c (md_assemble): Likewise. * config/tc-sh.c (md_assemble): Likewise. * config/tc-v850.c (md_assemble): Likewise. * config/tc-arm.c (arm_end_of_source): Remove. * config/tc-hppa.c (pa_end_of_source): Remove. * config/tc-m68hc11.c (m68hc11_end_of_source): Remove. * config/tc-mn10300.c (mn10300_finalize): Remove. * config/tc-sh.c (sh_finalize): Remove. * config/tc-v850.c (sh_finalize): Remove. * config/tc-arm.h (md_end): Remove. * config/tc-hppa.h (md_end): Remove. (DWARF2_LINE_MIN_INSN_LENGTH): New. * config/tc-m68hc11.h (md_end): Remove. * config/tc-mn10300.h (md_end): Remove. * config/tc-sh.h (md_end): Remove. * config/tc-v850.h (md_end): Remove. * config/tc-ia64.c (emit_one_bundle): Don't protect dwarf2 bits with debug_type. (md_assemble): Likewise. (ia64_end_of_source): Don't call dwarf2_finish.
* 2000-11-06 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-11-071-14/+12
| | | | | | | | | | | | | * as.c: Fix formatting. * dwarf2dbg.c: Likewise. * itbl-ops.c: Likewise. * listing.c: Likewise. * macro.h: Likewise. * messages.c: Likewise. * read.c: Likewise. * subsegs.c: Likewise. * subsegs.h: Likewise. * write.c: Likewise.
* Preserve copy of case clobber opcodes so that .req pseudo op worksNick Clifton2000-11-021-1/+8
|
* Add --gdwarf2 support to ARM toolchainNick Clifton2000-10-251-1/+8
|
* 2000-09-11 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-09-121-59/+59
| | | | | | | | | | | | | * bignum-copy.c: Fix formatting. * ehopt.c: Likewise. * flonum-copy.c: Likewise. * flonum-konst.c: Likewise. * flonum-mult.c: Likewise. * literal.c: Likewise. * read.c: Likewise. * sb.c: Likewise. * stabs.c: Likewise. * subsegs.c: Likewise.
* comment-finding hack for hppa-linux.Alan Modra2000-07-281-0/+11
|
* Fix formatting.Nick Clifton2000-07-201-520/+510
|
* Don't treat `;' as a line separator by default.Alan Modra2000-06-091-4/+0
| | | | Explicitly mention `;' in line_separator_chars in each backend.
* (is_end_of_line): Add three missing lines of 0 initializers.Alan Modra2000-06-041-0/+3
|
* (is_end_of_line): No ';' for TC_HPPA.Alan Modra2000-06-041-0/+4
|
* 2000-06-03 H.J. Lu <hjl@gnu.org>H.J. Lu2000-06-031-1/+1
| | | | * read.c (is_end_of_line): Put back `;'.
* is_end_of_line fixes.Alan Modra2000-06-021-21/+14
|
* IA-64 ELF support.Jim Wilson2000-04-211-0/+2
|
* Add macro handling extensions and line substitution support.Timothy Wall2000-03-261-7/+41
|
* * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.Hans-Peter Nilsson2000-03-131-15/+20
| | | | | | | (s_lcomm_internal): Use it. * doc/internals.texi (CPU backend): Document it. * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3 bytes.
* Remove dead code when not TC_M68K.Alan Modra2000-02-241-15/+11
|
* Check label validity with TC_START_LABEL_WITHOUT_COLON if defined.Timothy Wall2000-02-101-1/+6
|
* Remove redundant code for checking numbers with suffixes. AddTimothy Wall2000-02-081-4/+34
| | | | functionality to break out of assembler loops.
* New elseif directive has been added.Timothy Wall2000-02-081-0/+1
|
* octets vs bytes changes for GASTimothy Wall2000-02-031-2/+2
|
* Make copyright date lists comply with GNU requirementAlan Modra2000-01-261-2/+2
|
* This set of patches add support for aout emulation on the x86Alan Modra2000-01-261-8/+13
| | | | | | | | | | assembler. ie. You will be able to do "as --em=i386aout" on an x86 linux-elf assembler to generate aout format object files, rather than using a separate assembler. The aout emulation is enabled by giving "--enable-targets=i386-linuxaout" to configure. Oh yeah, there's a couple of fixes too. Error messages shouldn't be passed to printf in the format arg just in case someone puts a `%' in the message.
* * read.c (pseudo_set): Reject attempts to set the value of aIan Lance Taylor1999-11-031-0/+2
| | | | section symbol.
* * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1999-07-111-25/+25
| | | | | | | as appropriate. Fill in structure initializations. Add variable initializations. Add casts. * dwarf2dbg.c (print_stats): Change i to size_t. * listing.c (listing_listing): Change list_line to unsigned int.
* * subsegs.c (subseg_text_p): New function.Ian Lance Taylor1999-06-121-15/+1
| | | | | | | | | | | | * as.h (subseg_text_p): Declare. * read.c (do_align): Use subseg_text_p to set the default fill. * write.c (subsegs_finish): Likewise. * config/obj-coff.c (write_object_file): Likewise. * config/tc-i386.h (md_maybe_text): Don't define. (md_do_align): Use subseg_text_p to set the default fill. * config/tc-m32r.c (m32r_do_align): Likewise. * config/tc-sh.c (sh_do_align): Likewise. * config/tc-sparc.h (md_do_align): Likewise.
* * read.c (read_a_source_file): Only declare inescape ifIan Lance Taylor1999-06-101-1/+4
| | | | QUOTES_IN_INSN.
* * dwarf2dbg.c (*): Convert to K&R + prototypes.Richard Henderson1999-06-051-2/+8
| | | | | | | | | | | | | | | (dwarf2_gen_line_info): Kill unused variables. (dwarf2_finish): Likewise. (dwarf2_where): Likewise. (dwarf2_directive_file): If we've only got a string, hand off to s_app_file. * ecoff.c: Move the include of ecoff.h. * symbols.h (S_IS_FUNCTION): Prototype. * read.c (LEX_HASH): Supply a default. (lex_type): Use it. (s_globl): Update `c' after skipping whitespace. * read.h (LEX_END_NAME, is_name_ender): New. * expr.c (get_symbol_end): Respect it.
* * read.c (read_a_source_file): Conditionally allow matched "Richard Henderson1999-06-031-2/+10
| | | | in lines passed to md_assemble.
* * app.c (input_buffer): New static variable.Ian Lance Taylor1999-06-031-31/+40
| | | | | | | | | | | | | (app_push): Save saved_input in allocated buffer. (app_pop): Restored saved_input. (do_scrub_chars): Change get parameter to take char * and int as arguments. Change GET macro to pass input_buffer to get function. Don't save input into allocated buffer. * as.h (do_scrub_chars): Update declaration. * input-file.c (input_file_get): Change to take char * and int. Read data into passed in buffer. Remove static buffer. * read.c (scrub_from_string): Change to take char * and int. Copy data into passed in buffer.
* /Alan Modra1999-05-171-3/+11
| | | | | | | Move bitfield overflow checks to after the md_apply_fix call in fixup_segment so that md_apply_fix has a chance to modify value. Handle 8 and 16-bit pcrel relocs for i386. Prototypes and other minor code cleanups.
* 19990502 sourceware importbinu_ss_19990502Richard Henderson1999-05-031-0/+5054