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