1 2004-03-22 Bob Wilson <bob.wilson@acm.org>
3 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
4 tables even when use_literal_section flag is not set.
6 2004-03-22 Alan Modra <amodra@bigpond.net.au>
8 * config/tc-sh.c: Remove trailing whitespace.
10 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
12 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
13 --mul-bug-abort and the default behavior.
14 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
15 (err_for_dangerous_mul_placement): New variable.
16 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
18 (md_cris_relax_table): Have placeholder for STATE_MUL.
19 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
20 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
22 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
24 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
25 alignment and position of this frag, emit error message if
27 (md_assemble): For a multiply insn and when checking it,
28 transform the current frag into a special frag for that purpose.
29 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
30 OPTION_MULBUG_ABORT_ON>: Handle new options.
32 2004-03-19 Bob Wilson <bob.wilson@acm.org>
34 * config/tc-xtensa.c (mark_literal_frags): New function.
35 (xtensa_move_literals): Call mark_literal_frags for all literal
36 segments, including init and fini literal segments.
37 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
39 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
41 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
42 (pa_comm): Set BSF_OBJECT in symbol flags.
44 2004-03-19 Alan Modra <amodra@bigpond.net.au>
46 * Makefile.am: Run "make dep-am".
47 * Makefile.in: Regenerate.
48 * doc/Makefile.in: Regenerate.
49 * config.in: Regenerate.
50 * po/gas.pot: Regenerate.
52 2004-03-18 Nathan Sidwell <nathan@codesourcery.com>
54 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
55 (demand_empty_rest_of_line): Issue an error here.
56 (ignore_rest_of_line): Silently skip to end.
57 (demand_copy_string): Issue an error, not warning.
59 * config/obj-elf.c (obj_elf_section_name): Likewise.
60 (obj_elf_section): Likewise.
61 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
62 (arc_extinst): Likewise.
63 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
64 (dot_spill): Likewise.
65 (dot_unwabi): Likewise.
66 (dot_prologue): Likewise.
68 * expr.c (operand): Reject ++ and --.
71 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
73 * config/tc-sh.c: Include dw2gencfi.h.
74 (sh_cfi_frame_initial_instructions): New function.
75 (sh_regname_to_dw2regnum): Likewise.
76 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
78 (TARGET_USE_CFIPOP): Define.
79 (tc_cfi_frame_initial_instructions): Likewise.
80 (tc_regname_to_dw2regnum): Likewise.
81 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
82 * Makefile.am: Update dependencies.
83 * Makefile.in: Regenerate.
85 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
87 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
88 * configure: Regenerate.
90 2004-03-12 Bob Wilson <bob.wilson@acm.org>
92 * read.c (s_leb128): Call md_flush_pending_output.
94 2004-03-12 Michal Ludvig <mludvig@suse.cz>
96 * config/tc-i386.c (output_insn): Handle PadLock instructions.
97 * config/tc-i386.h (CpuPadLock): New define.
98 (CpuUnknownFlags): Added CpuPadLock.
100 2004-03-07 Andreas Schwab <schwab@suse.de>
102 * doc/c-hppa.texi (HPPA Directives): Fix typo.
104 2004-03-07 Richard Henderson <rth@redhat.com>
106 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
107 (cfi_finish): Likewise for fde.
109 2004-03-05 H.J. Lu <hongjiu.lu@intel.com>
111 * config/tc-ia64.c (md_assemble): Properly handle NULL
113 (ia64_handle_align): Don't abort if failed to add a stop bit.
115 2004-03-04 H.J. Lu <hongjiu.lu@intel.com>
117 * Makefile.in: Regenerated.
118 * aclocal.m4: Likewise.
119 * configure: Likewise.
120 * doc/Makefile.in: Likewise.
122 2004-03-03 H.J. Lu <hongjiu.lu@intel.com>
124 * config/tc-ia64.c (dot_align): New.
125 (ia64_do_align): Make it static.
126 (md_pseudo_table): Use "dot_align" for "align".
127 (ia64_md_do_align): Don't set align_frag here.
128 (ia64_handle_align): Add a stop bit to the previous bundle if
131 * config/tc-ia64.h (ia64_do_align): Removed.
133 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
135 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
136 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
137 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
138 the most general type or the user specifically requested it.
139 (md_assemble): Add a new error message for when an instruction
140 is understood, but is not allowed due to an -isa option.
142 2004-03-02 H.J. Lu <hongjiu.lu@intel.com>
144 * config/tc-ia64.c (align_frag): New.
145 (md_assemble): Set the tc_frag_data field in align_frag for
146 IA64_OPCODE_FIRST instructions.
147 (ia64_md_do_align): Set align_frag.
148 (ia64_handle_align): Add a stop bit if needed.
150 * config/tc-ia64.h (TC_FRAG_TYPE): New.
153 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
155 * config/tc-frv.c (fr400_audio): New variable.
156 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
157 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
158 (target_implements_insn_p): New function.
159 (md_assemble): Report an error if the processor doesn't implement
162 2004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
164 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
165 (md_parse_option): Ditto.
166 (OPTION_NO_SPECIAL_M32R): Added.
167 (md_show_usage): Document it.
168 (enable_speial_m32r): Changed a default value from 0 to 1.
169 * doc/c-m32r.texi: Document the -no-bitinst option.
171 2004-02-27 Nick Clifton <nickc@redhat.com>
173 * config/tc-sh.c (get_operand): Revert previous delta.
174 (tc_gen_reloc): Check for an unknown reloc type before processing
177 2004-02-27 Hannes Reinecke <hare@suse.de>
179 * config/tc-s390.c (s390_insn): Correct range check for opcode in
180 .insn pseudo operation.
182 2004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
184 * config/tc-sh.c (get_operand): In case of #Imm, check has been
185 added for wrong syntax.
187 2004-02-26 Eric Christopher <echristo@redhat.com>
189 * config/tc-mips.c (mips_dwarf2_addr_size): New.
190 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
192 2004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
194 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
195 nibble types to assembler.
197 2004-02-25 Fred Fish <fnf@redhat.com>
199 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
201 2004-02-20 James E Wilson <wilson@specifixinc.com>
203 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
205 (fixup_unw_records): New arg before_relax. Pass to slot_index.
206 (ia64_estimate_size_before_relax): New.
207 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
208 (generate_unwind_image): Pass 1 to fixup_unw_records.
209 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
210 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
212 2004-02-19 Jakub Jelinek <jakub@redhat.com>
214 * stabs.c (generate_asm_file): Avoid warning about use of
215 uninitialized variable.
217 2004-02-18 David Mosberger <davidm@hpl.hp.com>
219 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
220 body, and endp, allow unwind records which do not have a "t"
221 (time/instruction) field.
223 2004-02-17 Petko Manolov <petkan@nucleusys.com>
225 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
226 (do_mav_dspsc_2): Likewise.
227 Fix accumulator registers move opcodes.
229 2004-02-13 Hannes Reinecke <hare@suse.de>
230 Jakub Jelinek <jakub@redhat.com>
232 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
234 2004-02-10 Steve Ellcey <sje@cup.hp.com>
236 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
237 (tc_frob_symbol): New macro definition.
238 * config/tc-ia64.c (ia64_frob_symbol): New routine.
240 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
242 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
245 2004-02-09 Nathan Sidwell <nathan@codesourcery.com>
247 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
248 (TC_CASE_SENSITIVE): ... this.
249 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
250 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
252 2004-02-06 James E Wilson <wilson@specifixinc.com>
254 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
255 (generate_unwind_image): Re-add it here.
257 2004-02-06 Nathan Sidwell <nathan@codesourcery.com>
259 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
260 * read.h (SKIP_WHITESPACE): Turn into an expression.
261 * read.c (read_a_source_file): A pseudo is removed by having a
264 2004-02-05 James E Wilson <wilson@specifixinc.com>
266 * config/tc-ia64.c (output_endp): New.
267 (count_bits): Delete.
268 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
270 (fixup_unw_records): Handle endp unwind records. Delete code for
271 shortening prologue regions not followed by a body record.
272 (dot_endp): Call add_unwind_entry to emit endp unwind record.
273 * config/tc-ia64.h (unw_record_type): Add endp.
275 2004-02-03 James E Wilson <wilson@specifixinc.com>
277 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
278 fill padding bytes with zeroes.
279 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
280 sets unwind_record slot_number and slot_frag fields.
282 2004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
284 * config/tc-mips.c (add_got_offset_hilo): New function.
285 (macro): Use load_register() and add_got_offset_hilo() to load
286 constants instead of hardcoding code sequences throughout.
288 2004-01-28 H.J. Lu <hongjiu.lu@intel.com>
290 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
292 2004-01-26 Bernardo Innocenti <bernie@develer.com>
294 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
296 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
297 of hard-coded test for TARGET_OS=elf.
299 2004-01-24 Chris Demetriou <cgd@broadcom.com>
301 * config/tc-mips.c (hilo_interlocks): Change definition
302 so that MIPS32, MIPS64 and later ISAs are included, along with
303 the already-included machines. Update comments.
305 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
307 * config/tc-arm.c (tc_gen_reloc): Improve error message for
308 undefined local labels.
310 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
312 * config/tc-mips.c (load_address, macro): Update comments about
313 NewABI GP relaxation.
315 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
317 * config/tc-mips.c (macro_build): Remove place and counter arguments.
318 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
319 (mips16_macro_build, macro_build_jalr): Remove counter argument.
320 (set_at, load_register, load_address, move_register): Likewise.
321 (load_got_offset, add_got_offset): Likewise.
322 Update all calls and tidy accordingly.
324 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
326 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
327 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
328 (RELAX_USE_SECOND): Bump to 0x10000.
329 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
330 (mips_macro_warning): New variable.
331 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
332 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
333 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
335 (append_insn): Update mips_macro_warning.sizes.
336 (macro_start, macro_warning, macro_end): New functions.
337 (macro_build): Don't emit warnings here.
338 (macro_build_lui, md_estimate_size_before_relax): ...or here.
339 (md_convert_frag): Check for cases where one macro alternative
340 needs a warning and the other doesn't. Emit a warning if the
341 longer sequence was chosen.
343 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
345 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
346 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
347 the first sequence, the size of the second sequence, and a flag
348 that says whether we should warn.
349 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
350 (RELAX_FIRST, RELAX_SECOND): New.
351 (mips_relax): New variable.
352 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
353 (append_insn): Remove "place" argument. Use mips_relax.sequence
354 rather than "place" to check whether we're expanding the second
355 alternative of a relaxable macro. Remove redundant check for
356 branch relaxation. If generating a normal insn, and there
357 is not enough room in the current frag, call relax_close_frag()
358 to close it. Update mips_relax.sizes[]. Emit fixups for the
359 second version of a relaxable macro. Record the first relaxable
360 fixup in mips_relax. Remove tc_gen_reloc workaround.
361 (macro_build): Remove all uses of "place". Use mips_relax.sequence
362 in the same way as in append_insn.
363 (mips16_macro_build): Remove "place" argument.
364 (macro_build_lui): As for macro_build. Don't drop the add_symbol
365 when generating the second version of a relaxable macro.
366 (load_got_offset, add_got_offset): New functions.
367 (load_address, macro): Use new relaxation machinery. Remove
368 tc_gen_reloc workarounds.
369 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
370 version of a relaxable macro is needed. Return -RELAX_SECOND if the
371 first version is needed.
372 (tc_gen_reloc): Remove relaxation handling.
373 (md_convert_frag): Go through the fixups for a relaxable macro and
374 mark those that belong to the unneeded alternative as done. If the
375 second alternative is needed, adjust the fixup addresses to account
376 for the deleted first alternative.
378 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
380 * frags.h (frag_room): Declare.
381 * frags.c (frag_room): New function.
382 * doc/internals.texi: Document it.
384 2004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
386 * config/tc-mips.c (append_insn): Don't do r3900 interlock
387 optimization for -mtune=r3900, as this will break on other CPUs.
389 2004-01-11 Tom Rix <tcrix@worldnet.att.net>
391 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
392 be relaxed, use fixup.
393 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
395 2004-01-19 Jakub Jelinek <jakub@redhat.com>
397 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
400 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
402 * config/tc-mips.c (append_insn): Properly detect variant frags
403 that preclude swapping of relaxed branches. Correctly swap
404 instructions between frags when dealing with relaxed branches.
406 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
408 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
410 * aclocal.m4: Regenerate.
411 * configure: Regenerate.
413 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
415 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
418 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
420 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
421 reloc, reserve space for the delay slot as well as the jalr itself.
423 2004-01-09 Paul Brook <paul@codesourcery.com>
425 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
426 (do_vfp_sp2_from_reg2): New function.
428 (do_vfp_dp_from_reg2): Check return values properly.
430 2004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
432 * config/tc-mips.c (warn_nops): Remove static variable.
433 (macro): Remove test of warn_nops.
434 (md_shortops): Remove 'n'.
435 (md_parse_option): Remove 'n' case.
436 (md_show_usage): Remove -n.
437 * doc/as.texinfo (Overview): Remove MIPS -n option.
438 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
439 * NEWS: Mention removal of MIPS -n option.
441 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
442 (cop_interlocks): Check ISA level.
443 (cop_mem_interlocks): Define.
444 (reg_needs_delay): Check cop_interlocks rather than
445 ISA_HAS_COPROC_DELAYS.
446 (append_insn): Likewise. Use cop_mem_interlocks rather than
447 directly checking mips_opts.isa.
448 (mips_emit_delays): Likewise.
450 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
452 * config/tc-ia64.c (unwind): Move next_slot_number and
453 next_slot_frag to ...
454 (unw_rec_list): Here.
455 (free_list_records): Removed.
456 (output_unw_records): Likewise.
457 (generate_unwind_image): Make it void.
458 (alloc_record): Initialize next_slot_number and next_slot_frag.
459 (slot_index): Take .org, .space and .align into account.
460 (fixup_unw_records): Don't set slot_number to 0. Use
461 list->next_slot_number and list->next_slot_frag instead of
462 unwind.next_slot_number and unwind.next_slot_frag.
463 (ia64_convert_frag): New.
464 (generate_unwind_image): Generate a rs_machine_dependent frag
466 (emit_one_bundle): Use list->next_slot_number and
467 list->next_slot_frag instead of unwind.next_slot_number and
468 unwind.next_slot_frag.
470 * config/tc-ia64.h (md_convert_frag): Defined as
472 (md_estimate_size_before_relax): Defined as (f)->fr_var.
474 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
476 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
477 * config/tc-frv.h (md_apply_fix3): Don't define.
478 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
480 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
481 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
482 * config/tc-frv.c (line_separator_chars): Add `!'.
483 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
484 * config/tc-frv.c (md_assemble): Clear insn upfront.
485 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
486 * config/tc-frv.c (OPTION_FDPIC): New macro.
487 (md_longopts): Add mfdpic.
488 (md_parse_option): Handle it.
489 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
490 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
491 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
492 (frv_pic_ptr): Parse funcdesc.
494 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
496 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
497 gasver.texi. Remove duplicate symbol definitions for texi2pod.
499 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
501 * Makefile.am (Makefile): Move the dependency on
502 $(BFDDIR)/configure.in to...
503 (CONFIG_STATUS_DEPENDENCIES): ... here.
504 (AUTOMAKE_OPTIONS): Require automake 1.8.
505 * Makefile.in: Regenerate.
506 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
507 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
508 $(BFDDIR)/configure.in here as well.
509 * doc/Makefile.in: Regenerate.
511 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
513 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
514 * Makefile.in: Regenerate.
515 * aclocal.m4: Regenerate.
516 * doc/Makefile.am (install, install-info): Remove.
517 (install-data-local): A new hook for install-info.
518 (AUTOMAKE_OPTIONS): Require automake 1.8.
519 * doc/Makefile.in: Regenerate.
521 2004-01-02 Nutan Singh <nutan@kpitcummins.com>
523 * doc/c-sh.texi: Update description about floating point behavior
526 2004-01-02 Bernardo Innocenti <bernie@develer.com>
528 * configure.in: Add m68k-uClinux target.
529 * configure: Regenerate.
531 For older changes see ChangeLog-0203
537 version-control: never