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