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