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