summaryrefslogtreecommitdiff
path: root/gas/frags.c
Commit message (Collapse)AuthorAgeFilesLines
* * frags.c (frag_grow): Never shrink the obstack size requestedMaciej W. Rozycki2012-08-031-2/+4
| | | | below the default.
* * frags.h (frag_offset_fixed_p): Update prototype.Alan Modra2012-06-301-3/+3
| | | | | * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT. * expr.c (expr, resolve_expression): Likewise for frag_off var.
* * as.c (main): Define .gasversion. rather than __GAS_VERSION__.Alan Modra2011-10-121-2/+2
| | | | | | | | | | * frags.h (bss_address_frag): Delete (predefined_address_frag): New. * frags.c (frag_init): Init predefined_address_frag. Delete ref to bss_addres_frag. * symbols.c (S_CAN_BE_REDEFINED): New function. * symbols.h (S_CAN_BE_REDEFINED): Declare. * read.c (assign_symbol): Use S_CAN_BE_REDEFINED.
* 2011-08-01 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-08-011-18/+25
| | | | * frags.c (frag_grow): Simplify the code.
* 2011-07-29 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-07-291-32/+30
| | | | | | * frags.c (frag_var_init): New function. (frag_var): Call frag_var_init to initialize. (frag_variant): Ditto.
* 2011-07-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-07-271-26/+20
| | | | * frags.c (frag_grow): Revert previous patch.
* 2011-07-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-07-251-20/+26
| | | | * frags.c (frag_grow): Simplify the code.
* * po/bfd.pot: Updated by the Translation project.Nick Clifton2009-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * po/binutils.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gprof.pot: Updated by the Translation project. * po/sv.po: Updated Swedish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. Updated soruces in ld/* to compile cleanly with -Wc++-compat: * ld.h (enum endian_enum,enum symbolic_enum,enum dynamic_list_enum): Move to top level. * ldcref.c: Add casts. * ldctor.c: Add casts. * ldexp.c * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level. * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead of integer. * ldlang.h (enum statement_enum): Move to top level. * ldmain.c: Add casts. * ldwrite.c: Add casts. * lexsup.c: Add casts. (enum control_enum): Move to top level. * mri.c: Add casts. (mri_draw_tree): Use enum name instead of integer. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. * as.c (main): Call dwarf2_init. * config/obj-elf.c (struct group_list): New field. (build_group_lists): Use hash lookup. (free_section_idx): New function. (elf_frob_file): Adjust. * dwarf2dbg.c (all_segs_hash, last_seg_ptr): New variables. (get_line_subseg): Adjust. (dwarf2_init): New function. * dwarf2dbg.h (dwarf2_init): New declaration.
* update copyright datesAlan Modra2009-09-021-1/+1
|
* * gas/app, gas/as.c, gas/as.h, gas/atof-generic.c, gas/cgen.c,Nick Clifton2009-06-221-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | gas/config/atof-ieee.c, gas/config/obj-aout.c, gas/config/obj-coff.c, gas/config/obj-ecoff.c, gas/config/obj-elf.c, gas/config/obj-som.c, gas/config/tc-alpha.c, gas/config/tc-arc.c, gas/config/tc-arm.c, gas/config/tc-cr16.c, gas/config/tc-cris.c, gas/config/tc-crx.c, gas/config/tc-d30v.c, gas/config/tc-dlx.c, gas/config/tc-hppa.c, gas/config/tc-i370.c, gas/config/tc-i386-intel.c, gas/config/tc-i386.c, gas/config/tc-i860.c, gas/config/tc-i960.c, gas/config/tc-ia64.c, gas/config/tc-iq2000.c, gas/config/tc-m32c.c, gas/config/tc-m32r.c, gas/config/tc-m68hc11.c, gas/config/tc-m68k.c, gas/config/tc-maxq.c, gas/config/tc-mcore.c, gas/config/tc-mep.c, gas/config/tc-mips.c, gas/config/tc-mmix.c, gas/config/tc-mn10300.c, gas/config/tc-moxie.c, gas/config/tc-ns32k.c, gas/config/tc-pj.c, gas/config/tc-ppc.c, gas/config/tc-s390.c, gas/config/tc-score.c, gas/config/tc-score7.c, gas/config/tc-sh.c, gas/config/tc-sparc.c, gas/config/tc-spu.c, gas/config/tc-tic30.c, gas/config/tc-vax.c, gas/config/tc-xtensa.c, gas/config/xtensa-relax.c, gas/dw2gencfi.c, gas/dwarf2dbg.c, gas/ehopt.c, gas/expr.c, gas/frags.c, gas/input-file.c, gas/read.c, gas/sb.c, gas/subsegs.c, gas/symbols.c, gas/write.c: Change the name of the gas macro `assert' to `gas_assert'.
* Remove unnecessary casts on obstack_alloc invocations.Alan Modra2008-10-211-1/+1
|
* Switch to GPLv3Nick Clifton2007-07-031-2/+2
|
* * frags.c (frag_offset_fixed_p): Constify args.Alan Modra2006-04-181-2/+2
| | | | * frags.h (frag_offset_fixed_p): Ditto.
* * frags.c (frag_offset_fixed_p): Reinitialise offset beforeAlan Modra2006-04-061-0/+1
| | | | second scan.
* PR 997Alan Modra2006-04-041-1/+53
| | | | | | | * frags.c (frag_offset_fixed_p): New function. * frags.h (frag_offset_fixed_p): Declare. * expr.c (expr): Use frag_offset_fixed_p when simplifying subtraction. (resolve_expression): Likewise.
* gas/Michael Matz2005-05-101-1/+8
| | | | | | | | | * frags.c (frag_grow): Don't be too greedy in allocating memory. * config/tc-hppa.c (pa_block): Check arguments to .block[z]. gas/testsuite/ * gas/hppa/parse/block1.s: Use official limit (0x3fffffff) for .block.
* Update the address and phone number of the FSFNick Clifton2005-05-051-2/+2
|
* update copyright datesAlan Modra2005-03-031-1/+1
|
* * frags.h (frag_room): Declare.Richard Sandiford2004-01-231-0/+8
| | | | | * frags.c (frag_room): New function. * doc/internals.texi: Document it.
* * ehopt.c: Convert to ISO-C.Kazu Hirata2003-11-221-45/+20
| | | | | | | | | | | * 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.
* * frags.c (frag_more): Move segment checks to..Alan Modra2003-07-151-13/+23
| | | | | (frag_alloc_check): ..here. New function. (frag_append_1_char): Call frag_alloc_check.
* revert last change.Alan Modra2001-11-151-6/+0
|
* Use frag_make_room() to grow the obstack.Nick Clifton2001-11-141-0/+6
|
* * read.c: Standardize error/warning messages - don't capitalise, noAlan Modra2001-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | 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 copyright noticesNick Clifton2001-03-081-1/+2
|
* * as.h (rs_align_test): New.Richard Henderson2000-12-281-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2000-08-31 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-08-311-77/+56
| | | | | * frags.c: Fix formatting. * macro.c: Likewise.
* Correct absolute section alignment.Alan Modra2000-07-221-2/+3
|
* Missed copyright update in last patch.Alan Modra2000-05-231-1/+1
|
* Pass jump reloc in fr_var so it can be used inAlan Modra2000-05-231-5/+8
| | | | md_estimate_size_before_relax, replacing old kludge.
* Assorted code cleanup and fixes for hppa. Re-enable elf32-hppa asAlan Modra2000-05-021-5/+7
| | | | it now compiles even if it doesn't work too well.
* octets vs bytes changes for GASTimothy Wall2000-02-031-4/+11
|
* Initial revisionRichard Henderson1999-05-031-0/+359