* config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
[external/binutils.git] / gas / ChangeLog
1 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2
3         * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
4
5 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
6
7         * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
8         (OPTION_MEMBEDDED_PIC): Remove.
9         (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
10         (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
11         (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
12         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
13         (OPTION_ELF_BASE): Renumber.
14         (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
15         (md_show_usage): Remove mention of -membedded-pic.
16         * doc/as.texinfo: Remove mention of -membedded-pic.
17
18 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
19
20         * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
21         * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
22         a.out support.
23         (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
24         s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
25         USE_GLOBAL_POINTER_OPT.
26
27 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
28
29         * config/tc-mips.c (macro): One more use of load_delay_nop.
30
31 2004-04-22  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
32
33         * config/tc-mips.c (load_delay_nop): New function.
34         (load_address, macro): Use load_delay_nop() to build a nop
35         which can be omitted with gpr_interlocks.
36
37 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
38
39         * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
40         cop_interlocks): Remove superfluous CPU entries.
41
42 2004-04-22  Paul Brook  <paul@codesourcery.com>
43
44         * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
45
46 2004-04-22  Peter Barada <peter@the-baradas.com>
47
48         * NEWS: Added support for EMAC instructions and MAC/EMAC
49         Motorola syntax.
50         * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
51         scale factor tokens, trailing_ampersand to mark mask addressing
52         for MAC/EMAC instructions.
53         * config/m68k-parse.y: Add options_ampersand clause, '<<',
54         '>>'.
55         (yylex): Handle '>', '<', and '&' following '+'.
56         * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
57         architectures in archs[].  
58         (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
59         for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
60         respectively.
61         (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
62         (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
63         cases.
64         Add EMAC operands to init_table[].
65
66 2004-04-22  Bruno De Bus <bdebus@elis.ugent.be>
67
68         * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
69         state.
70         (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
71         * config/tc-arm.c (enum mstate): Delete from here.
72         (mapping_state): Remove the static mapstate variable and instead
73         store the state in the segment.  This allows a per-section mapping
74         state.  Handle and ignore MAP_UNDEFINED states.
75         (arm_elf_change_section): Get the current mapping state from the
76         new section.
77         (s_ltorg): Set the mapping state to MAP_DATA.
78         (arm_cleanup): Use arm_elf_change_section to get the mapping state
79         for each pool as it is emitted.
80
81 2004-04-22  Nick Clifton  <nickc@redhat.com>
82
83         * config/tc-arm.h: Formatting tidy ups.
84
85 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
86
87         * NEWS: Note that MIPS -membedded-pic option is deprecated.
88
89 2004-04-20  DJ Delorie  <dj@redhat.com>
90
91         * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
92         * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
93         [TE_PE] (O_secrel): Define.
94         [TE_PE] (x86_pe_cons_fix_new): New.
95         [TE_PE] (pe_directive_secrel): Likewise.
96         (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
97
98 2004-04-19  Eric Christopher  <echristo@redhat.com>
99
100         * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
101         of previous patch for fix in gcc.
102
103 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
104
105         * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
106
107 2004-04-19  Nathan Sidwell  <nathan@codesourcery.com>
108
109         * read.c (do_align): Call md_flush_pending_output, if defined.
110
111 2004-04-16  Alan Modra  <amodra@bigpond.net.au>
112
113         * expr.c (operand): Correct checks for ++ and --.
114
115 2004-04-14  H.J. Lu  <hongjiu.lu@intel.com>
116
117         * config/tc-generic.c: Add some comments.
118
119 2004-04-14  Richard Sandiford  <rsandifo@redhat.com>
120
121         * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
122         -{no-}mfix-vr4122-bugs.
123         * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
124         (append_insn, mips_emit_delays): Update accordingly.
125         (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
126         (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
127         (md_parse_option): Update after above changes.
128         (md_show_usage): Add -mfix-vr4120.
129
130 2004-04-13  Bob Wilson  <bob.wilson@acm.org>
131
132         * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
133         of .section directive; add a reference to the ELF .subsection
134         directive.
135
136 2004-04-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
137
138         * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
139         in parallel.
140
141 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
142
143         * Makefile.am: Remove mips from aout targets.
144         * Makefile.in: Regenerate.
145         * configure.in: Remove mips-dec-bsd* target.
146         * configure: Regenerate.
147
148 2004-04-07  Alan Modra  <amodra@bigpond.net.au>
149
150         PR 96
151         * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
152         to struct map_bfd.  Adjust MAP macro, and define MAP32, MAP64.
153         Update "mapping".  Restrict some @ modifiers to 32 bit.
154
155 2004-04-01  Asgari Jinia  <asgarij@kpitcummins.com>
156             Dhananjay Deshpande <dhananjayd@kpitcummins.com>
157
158         * config/tc-sh.c (dont_adjust_reloc_32): New variable.
159         (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
160         dont_adjust_reloc_32 is set.
161         (md_longopts): Add option -renesas.
162         (md_parse_option, md_show_usage): Likewise.
163         * doc/c-sh.texi: Likewise.
164
165 2004-04-01  Dave Korn  <dk@artimi.com>
166
167         * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
168         hi16 and lo16 fixS structs.
169         (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
170         exactly the same way as for RELOC_DLX_REL16.
171         (machine_ip): properly respect LO flag in the_insn and
172         output RELOC_DLX_LO16 rather than RELOC_DLX_16.
173         (md_apply_fix3): apply RELOC_DLX_LO16.
174
175 2004-03-30  Stan Shebs  <shebs@apple.com>
176
177         Remove long-obsolete MPW support.
178         * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
179         * configure.in: Remove mention of ppc-*-mpw* config.
180         * configure.in: Likewise.
181
182 2004-03-30  Nick Clifton  <nickc@redhat.com>
183
184         * config/tc-arm.c (meabi_flags): Make its use conditional upon
185         OBJ_ELF being defined.
186
187 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
188
189         * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
190
191 2004-03-23  Paul Brook  <paul@codesourcery.com>
192
193         * config/tc-arm.c (meabi_flags): New variable.
194         (arm_parse_eabi): New function.
195         (md_begin): Set flags for EABI v3.
196         (arm_eabis): Add.
197         (arm_long_opts): Add meabi.
198         * doc/as.texinf <ARM>: Document -meabi.
199         * doc/c-arm.texi: Ditto.
200
201 2004-03-22  Bob Wilson  <bob.wilson@acm.org>
202
203         * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
204         tables even when use_literal_section flag is not set.
205
206 2004-03-22  Alan Modra  <amodra@bigpond.net.au>
207
208         * config/tc-sh.c: Remove trailing whitespace.
209
210 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
211
212         * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
213         --mul-bug-abort and the default behavior.
214         * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
215         (err_for_dangerous_mul_placement): New variable.
216         (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
217         macros.
218         (md_cris_relax_table): Have placeholder for STATE_MUL.
219         (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
220         (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
221         case doing nothing.
222         (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
223         STATE_BYTE)>: Ditto.
224         (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
225         alignment and position of this frag, emit error message if
226         suspicious.
227         (md_assemble): For a multiply insn and when checking it,
228         transform the current frag into a special frag for that purpose.
229         (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
230         OPTION_MULBUG_ABORT_ON>: Handle new options.
231
232 2004-03-19  Bob Wilson  <bob.wilson@acm.org>
233
234         * config/tc-xtensa.c (mark_literal_frags): New function.
235         (xtensa_move_literals): Call mark_literal_frags for all literal
236         segments, including init and fini literal segments.
237         (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
238
239 2004-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
240
241         * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
242         (pa_comm): Set BSF_OBJECT in symbol flags.
243
244 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
245
246         * Makefile.am: Run "make dep-am".
247         * Makefile.in: Regenerate.
248         * doc/Makefile.in: Regenerate.
249         * config.in: Regenerate.
250         * po/gas.pot: Regenerate.
251
252 2004-03-18  Nathan Sidwell  <nathan@codesourcery.com>
253
254         * read.c (read_a_source_file): Use demand_empty_rest_of_line.
255         (demand_empty_rest_of_line): Issue an error here.
256         (ignore_rest_of_line): Silently skip to end.
257         (demand_copy_string): Issue an error, not warning.
258         (equals): Likewise.
259         * config/obj-elf.c (obj_elf_section_name): Likewise.
260         (obj_elf_section): Likewise.
261         * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
262         (arc_extinst): Likewise.
263         * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
264         (dot_spill): Likewise.
265         (dot_unwabi): Likewise.
266         (dot_prologue): Likewise.
267
268         * expr.c (operand): Reject ++ and --.
269         (operator): Likewise.
270
271 2004-03-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
272
273         * config/tc-sh.c: Include dw2gencfi.h.
274         (sh_cfi_frame_initial_instructions): New function.
275         (sh_regname_to_dw2regnum): Likewise.
276         * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
277         file.
278         (TARGET_USE_CFIPOP): Define.
279         (tc_cfi_frame_initial_instructions): Likewise.
280         (tc_regname_to_dw2regnum): Likewise.
281         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
282         * Makefile.am: Update dependencies.
283         * Makefile.in: Regenerate.
284
285 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
286
287         * configure.in: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
288         * configure: Regenerate.
289
290 2004-03-12  Bob Wilson  <bob.wilson@acm.org>
291
292         * read.c (s_leb128): Call md_flush_pending_output.
293
294 2004-03-12  Michal Ludvig  <mludvig@suse.cz>
295
296         * config/tc-i386.c (output_insn): Handle PadLock instructions.
297         * config/tc-i386.h (CpuPadLock): New define.
298         (CpuUnknownFlags): Added CpuPadLock.
299
300 2004-03-07  Andreas Schwab  <schwab@suse.de>
301
302         * doc/c-hppa.texi (HPPA Directives): Fix typo.
303
304 2004-03-07  Richard Henderson  <rth@redhat.com>
305
306         * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
307         (cfi_finish): Likewise for fde.
308
309 2004-03-05  H.J. Lu  <hongjiu.lu@intel.com>
310
311         * config/tc-ia64.c (md_assemble): Properly handle NULL
312         align_frag.
313         (ia64_handle_align): Don't abort if failed to add a stop bit.
314
315 2004-03-04  H.J. Lu  <hongjiu.lu@intel.com>
316
317         * Makefile.in: Regenerated.
318         * aclocal.m4: Likewise.
319         * configure: Likewise.
320         * doc/Makefile.in: Likewise.
321
322 2004-03-03  H.J. Lu  <hongjiu.lu@intel.com>
323
324         * config/tc-ia64.c (dot_align): New.
325         (ia64_do_align): Make it static.
326         (md_pseudo_table): Use "dot_align" for "align".
327         (ia64_md_do_align): Don't set align_frag here.
328         (ia64_handle_align): Add a stop bit to the previous bundle if
329         needed.
330
331         * config/tc-ia64.h (ia64_do_align): Removed.
332
333 2003-03-03  Andrew Stubbs  <andrew.stubbs@superh.com>
334
335         * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
336         -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
337         (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
338         the most general type or the user specifically requested it.
339         (md_assemble): Add a new error message for when an instruction
340         is understood, but is not allowed due to an -isa option.
341
342 2004-03-02  H.J. Lu  <hongjiu.lu@intel.com>
343
344         * config/tc-ia64.c (align_frag): New.
345         (md_assemble): Set the tc_frag_data field in align_frag for
346         IA64_OPCODE_FIRST instructions.
347         (ia64_md_do_align): Set align_frag.
348         (ia64_handle_align): Add a stop bit if needed.
349
350         * config/tc-ia64.h (TC_FRAG_TYPE): New.
351         (TC_FRAG_INIT): New.
352
353 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
354
355         * config/tc-frv.c (fr400_audio): New variable.
356         (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
357         (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
358         (target_implements_insn_p): New function.
359         (md_assemble): Report an error if the processor doesn't implement
360         the instruction.
361
362 2004-02-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
363
364         * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
365         (md_parse_option): Ditto.
366         (OPTION_NO_SPECIAL_M32R): Added.
367         (md_show_usage): Document it.
368         (enable_speial_m32r): Changed a default value from 0 to 1.
369         * doc/c-m32r.texi: Document the -no-bitinst option.
370
371 2004-02-27  Nick Clifton  <nickc@redhat.com>
372
373         * config/tc-sh.c (get_operand): Revert previous delta.
374         (tc_gen_reloc): Check for an unknown reloc type before processing
375         the addend.
376
377 2004-02-27  Hannes Reinecke  <hare@suse.de>
378
379         * config/tc-s390.c (s390_insn): Correct range check for opcode in
380         .insn pseudo operation.
381
382 2004-02-27  Anil Paranjpe  <anilp1@kpitcummins.com>
383
384         * config/tc-sh.c (get_operand):  In case of #Imm, check has been
385         added for wrong syntax.
386
387 2004-02-26  Eric Christopher  <echristo@redhat.com>
388
389         * config/tc-mips.c (mips_dwarf2_addr_size): New.
390         * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
391
392 2004-02-26  Andrew Stubbs <andrew.stubbs@superh.com>
393
394         * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
395         nibble types to assembler.
396
397 2004-02-25  Fred Fish  <fnf@redhat.com>
398
399         * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
400
401 2004-02-20  James E Wilson  <wilson@specifixinc.com>
402
403         * config/tc-ia64.c (slot_index): New arg before_relax.  Use instead of
404         finalize_syms.
405         (fixup_unw_records): New arg before_relax.  Pass to slot_index.
406         (ia64_estimate_size_before_relax): New.
407         (ia64_convert_frag): Pass 0 to fixup_unw_records.  Add comment.
408         (generate_unwind_image): Pass 1 to fixup_unw_records.
409         * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
410         (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
411
412 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
413
414         * stabs.c (generate_asm_file): Avoid warning about use of
415         uninitialized variable.
416
417 2004-02-18  David Mosberger  <davidm@hpl.hp.com>
418
419         * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
420         body, and endp, allow unwind records which do not have a "t"
421         (time/instruction) field.
422
423 2004-02-17  Petko Manolov  <petkan@nucleusys.com>
424
425         * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
426         (do_mav_dspsc_2): Likewise.
427         Fix accumulator registers move opcodes.
428
429 2004-02-13  Hannes Reinecke  <hare@suse.de>
430             Jakub Jelinek  <jakub@redhat.com>
431
432         * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
433
434 2004-02-10  Steve Ellcey  <sje@cup.hp.com>
435
436         * config/tc-ia64.h (ia64_frob_symbol): New declaration.
437         (tc_frob_symbol): New macro definition.
438         * config/tc-ia64.c (ia64_frob_symbol): New routine.
439
440 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
441
442         * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
443         read-only.
444
445 2004-02-09  Nathan Sidwell  <nathan@codesourcery.com>
446
447         * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
448         (TC_CASE_SENSITIVE): ... this.
449         * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
450         * doc/internals.texi (TC_CASE_SENSITIVE): Document.
451
452 2004-02-06  James E Wilson  <wilson@specifixinc.com>
453
454         * config/tc-ia64.c (dot_endp): Delete call to output_endp.
455         (generate_unwind_image): Re-add it here.
456
457 2004-02-06  Nathan Sidwell  <nathan@codesourcery.com>
458
459         * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
460         * read.h (SKIP_WHITESPACE): Turn into an expression.
461         * read.c (read_a_source_file): A pseudo is removed by having a
462         NULL handler.
463
464 2004-02-05  James E Wilson  <wilson@specifixinc.com>
465
466         * config/tc-ia64.c (output_endp): New.
467         (count_bits): Delete.
468         (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
469         endp unwind records.
470         (fixup_unw_records): Handle endp unwind records.  Delete code for
471         shortening prologue regions not followed by a body record.
472         (dot_endp): Call add_unwind_entry to emit endp unwind record.
473         * config/tc-ia64.h (unw_record_type): Add endp.
474
475 2004-02-03  James E Wilson  <wilson@specifixinc.com>
476
477         * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
478         fill padding bytes with zeroes.
479         (emit_one_bundle): New locals last_ptr, end_ptr.  Rewrite code that
480         sets unwind_record slot_number and slot_frag fields.
481
482 2004-02-02  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
483
484         * config/tc-mips.c (add_got_offset_hilo): New function.
485         (macro): Use load_register() and add_got_offset_hilo() to load
486         constants instead of hardcoding code sequences throughout.
487
488 2004-01-28  H.J. Lu  <hongjiu.lu@intel.com>
489
490         * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
491
492 2004-01-26  Bernardo Innocenti  <bernie@develer.com>
493
494         * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
495         like m68k-elf.
496         * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
497         of hard-coded test for TARGET_OS=elf.
498
499 2004-01-24  Chris Demetriou  <cgd@broadcom.com>
500
501         * config/tc-mips.c (hilo_interlocks): Change definition
502         so that MIPS32, MIPS64 and later ISAs are included, along with
503         the already-included machines.  Update comments.
504
505 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
506
507         * config/tc-arm.c (tc_gen_reloc): Improve error message for
508         undefined local labels.
509
510 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
511
512         * config/tc-mips.c (load_address, macro): Update comments about
513         NewABI GP relaxation.
514
515 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
516
517         * config/tc-mips.c (macro_build): Remove place and counter arguments.
518         (mips_build_lui, macro_build_ldst_constoffset): Likewise.
519         (mips16_macro_build, macro_build_jalr): Remove counter argument.
520         (set_at, load_register, load_address, move_register): Likewise.
521         (load_got_offset, add_got_offset): Likewise.
522         Update all calls and tidy accordingly.
523
524 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
525
526         * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
527         (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
528         (RELAX_USE_SECOND): Bump to 0x10000.
529         (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
530         (mips_macro_warning): New variable.
531         (md_assemble): Wrap macro expansion in macro_start() and macro_end().
532         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
533         (relax_close_frag): Set mips_macro_warning.first_frag.  Adjust use
534         of RELAX_ENCODE.
535         (append_insn): Update mips_macro_warning.sizes.
536         (macro_start, macro_warning, macro_end): New functions.
537         (macro_build): Don't emit warnings here.
538         (macro_build_lui, md_estimate_size_before_relax): ...or here.
539         (md_convert_frag): Check for cases where one macro alternative
540         needs a warning and the other doesn't.  Emit a warning if the
541         longer sequence was chosen.
542
543 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
544
545         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
546         * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
547         the first sequence, the size of the second sequence, and a flag
548         that says whether we should warn.
549         (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
550         (RELAX_FIRST, RELAX_SECOND): New.
551         (mips_relax): New variable.
552         (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
553         (append_insn): Remove "place" argument.  Use mips_relax.sequence
554         rather than "place" to check whether we're expanding the second
555         alternative of a relaxable macro.  Remove redundant check for
556         branch relaxation.  If generating a normal insn, and there
557         is not enough room in the current frag, call relax_close_frag()
558         to close it.  Update mips_relax.sizes[].  Emit fixups for the
559         second version of a relaxable macro.  Record the first relaxable
560         fixup in mips_relax.  Remove tc_gen_reloc workaround.
561         (macro_build): Remove all uses of "place".  Use mips_relax.sequence
562         in the same way as in append_insn.
563         (mips16_macro_build): Remove "place" argument.
564         (macro_build_lui): As for macro_build.  Don't drop the add_symbol
565         when generating the second version of a relaxable macro.
566         (load_got_offset, add_got_offset): New functions.
567         (load_address, macro): Use new relaxation machinery.  Remove
568         tc_gen_reloc workarounds.
569         (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
570         version of a relaxable macro is needed.  Return -RELAX_SECOND if the
571         first version is needed.
572         (tc_gen_reloc): Remove relaxation handling.
573         (md_convert_frag): Go through the fixups for a relaxable macro and
574         mark those that belong to the unneeded alternative as done.  If the
575         second alternative is needed, adjust the fixup addresses to account
576         for the deleted first alternative.
577
578 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
579
580         * frags.h (frag_room): Declare.
581         * frags.c (frag_room): New function.
582         * doc/internals.texi: Document it.
583
584 2004-01-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
585
586         * config/tc-mips.c (append_insn): Don't do r3900 interlock
587         optimization for -mtune=r3900, as this will break on other CPUs.
588
589 2004-01-11  Tom Rix   <tcrix@worldnet.att.net>
590
591         * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
592         be relaxed, use fixup.
593         (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
594
595 2004-01-19  Jakub Jelinek  <jakub@redhat.com>
596
597         * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
598         precision operands.
599
600 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
601
602         * config/tc-mips.c (append_insn): Properly detect variant frags
603         that preclude swapping of relaxed branches.  Correctly swap
604         instructions between frags when dealing with relaxed branches.
605
606 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
607
608         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
609         throughout.
610         * aclocal.m4: Regenerate.
611         * configure: Regenerate.
612
613 2004-01-12  Anil Paranjpe  <anilp1@KPITCummins.com>
614
615         * config/tc-h8300.c (build_bytes): Apply relaxation to bit
616         manipulation insns.
617
618 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
619
620         * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
621         reloc, reserve space for the delay slot as well as the jalr itself.
622
623 2004-01-09  Paul Brook  <paul@codesourcery.com>
624
625         * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
626         (do_vfp_sp2_from_reg2): New function.
627         (insns): Use them.
628         (do_vfp_dp_from_reg2): Check return values properly.
629
630 2004-01-08  Ian Lance Taylor  <ian@wasabisystems.com>
631
632         * config/tc-mips.c (warn_nops): Remove static variable.
633         (macro): Remove test of warn_nops.
634         (md_shortops): Remove 'n'.
635         (md_parse_option): Remove 'n' case.
636         (md_show_usage): Remove -n.
637         * doc/as.texinfo (Overview): Remove MIPS -n option.
638         * doc/c-mips.texi (MIPS Opts): Remove mention -n.
639         * NEWS: Mention removal of MIPS -n option.
640
641         * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
642         (cop_interlocks): Check ISA level.
643         (cop_mem_interlocks): Define.
644         (reg_needs_delay): Check cop_interlocks rather than
645         ISA_HAS_COPROC_DELAYS.
646         (append_insn): Likewise.  Use cop_mem_interlocks rather than
647         directly checking mips_opts.isa.
648         (mips_emit_delays): Likewise.
649
650 2004-01-07  H.J. Lu  <hongjiu.lu@intel.com>
651
652         * config/tc-ia64.c (unwind): Move next_slot_number and
653         next_slot_frag to ...
654         (unw_rec_list): Here.
655         (free_list_records): Removed.
656         (output_unw_records): Likewise.
657         (generate_unwind_image): Make it void.
658         (alloc_record): Initialize next_slot_number and next_slot_frag.
659         (slot_index): Take .org, .space and .align into account.
660         (fixup_unw_records): Don't set slot_number to 0. Use
661         list->next_slot_number and list->next_slot_frag instead of
662         unwind.next_slot_number and unwind.next_slot_frag.
663         (ia64_convert_frag): New.
664         (generate_unwind_image): Generate a rs_machine_dependent frag
665         for unwind record.
666         (emit_one_bundle): Use list->next_slot_number and
667         list->next_slot_frag instead of unwind.next_slot_number and
668         unwind.next_slot_frag.
669
670         * config/tc-ia64.h (md_convert_frag): Defined as
671         ia64_convert_frag.
672         (md_estimate_size_before_relax): Defined as (f)->fr_var.
673
674 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
675
676         2003-12-19  Alexandre Oliva  <aoliva@redhat.com>
677         * config/tc-frv.h (md_apply_fix3): Don't define.
678         * config/tc-frv.c (md_apply_fix3): New.  Shift/truncate %hi/%lo
679         operands.
680         * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
681         2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
682         * config/tc-frv.c (line_separator_chars): Add `!'.
683         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
684         * config/tc-frv.c (md_assemble): Clear insn upfront.
685         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
686         * config/tc-frv.c (OPTION_FDPIC): New macro.
687         (md_longopts): Add mfdpic.
688         (md_parse_option): Handle it.
689         2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
690         * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
691         FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
692         (frv_pic_ptr): Parse funcdesc.
693
694 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
695
696         * doc/as.texinfo: Let texi2pod parse asconfig.texi and
697         gasver.texi.  Remove duplicate symbol definitions for texi2pod.
698
699 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
700
701         * Makefile.am (Makefile): Move the dependency on
702         $(BFDDIR)/configure.in to...
703         (CONFIG_STATUS_DEPENDENCIES): ... here.
704         (AUTOMAKE_OPTIONS): Require automake 1.8.
705         * Makefile.in: Regenerate.
706         * doc/Makefile.am (BASEDIR, BFDDIR): Define.
707         (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
708         $(BFDDIR)/configure.in here as well.
709         * doc/Makefile.in: Regenerate.
710
711 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
712
713         * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
714         * Makefile.in: Regenerate.
715         * aclocal.m4: Regenerate.
716         * doc/Makefile.am (install, install-info): Remove.
717         (install-data-local): A new hook for install-info.
718         (AUTOMAKE_OPTIONS): Require automake 1.8.
719         * doc/Makefile.in: Regenerate.
720
721 2004-01-02  Nutan Singh <nutan@kpitcummins.com>
722
723         * doc/c-sh.texi: Update description about floating point behavior
724         of SH family.
725
726 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
727
728         * configure.in: Add m68k-uClinux target.
729         * configure: Regenerate.
730
731 For older changes see ChangeLog-0203
732 \f
733 Local Variables:
734 mode: change-log
735 left-margin: 8
736 fill-column: 74
737 version-control: never
738 End: