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