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