* config/tc-mips.c (macro_build): Handle MIPS16 insns.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2
3 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4 (mips_ip): Likewise.
5
6 2002-07-09 Alan Modra <amodra@bigpond.net.au>
7
8 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
9 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
10 (md_apply_fix3): Formatting. Remove redundant test.
11 (tc_gen_reloc): Remove redundant code.
12 (tc_i386_force_relocation): Delete. Movy body of function to..
13 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
14
15 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
16
17 * configure.in: Add hppa-*-openbsd* target, change
18 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
19 with sparc64 cpu.
20 * configure: Regenerate.
21
22 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
23
24 * config/tc-mips.c (macro): Shift the 32-bit address range
25 accessible with a lone "lui" down by 32768.
26
27 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
28
29 * config/tc-mips.c (load_address): Use non-trapping "daddu"
30 instead of "dadd" in address calculations.
31 (macro): Likewise.
32
33 2002-07-08 Alan Modra <amodra@bigpond.net.au>
34
35 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
36 movzx fudges.
37 (md_assemble): Instead, zap the suffix here.
38
39 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
40
41 * NEWS: Remove next release number until the release is actually
42 upon us.
43
44 2002-07-03 Alan Modra <amodra@bigpond.net.au>
45
46 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
47 Run "make dep-am".
48 * Makefile.in: Regenerate.
49
50 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
51
52 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
53 to symbols in merge sections, even non pc-relative ones.
54
55 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
56
57 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
58
59 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
60
61 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
62 .softregs and .eeprom.
63
64 2002-06-28 David O'Brien <obrien@FreeBSD.org>
65
66 * NEWS: Note the next release is 2.13.
67
68 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
69
70 * po/tr.po: New translation imported.
71
72 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
73
74 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
75 (ecoff_directive_def): Likewise.
76 (ecoff_directive_tag): Likewise.
77 * listing.c (file_info): Likewise.
78 * hash.c (what): Likewise.
79
80 2002-06-25 H.J. Lu <hjl@gnu.org>
81
82 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
83 * Makefile.in: Regenerated.
84
85 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
86
87 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
88 (assemble_ppi): Generate warning if the same register is used
89 twice as destination in the same padd / pmuls instruction.
90
91 2002-06-18 Dave Brolley <brolley@redhat.com>
92
93 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
94 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
95 * configure.in: Support frv-*-*.
96 * Makefile.am (CPU_TYPES): Add frv.
97 (TARGET_CPU_CFILES): Add tc-frv.c.
98 (TARGET_CPU_HFILES): Add tc-frv.h.
99 (DEPTC_frv_coff): New variable.
100 (DEPTC_frv_elf): New variable.
101 (DEPOBJ_frv_coff): New variable.
102 (DEPOBJ_frv_elf): New variable.
103 (DEP_frv_coff): New variable.
104 (DEP_frv_elf): New variable.
105 * tc-frv.c: New file.
106 * tc-frv.h: New file.
107
108 2002-06-17 Catherine Moore <clm@redhat.com>
109
110 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
111
112 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
113
114 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
115
116 2002-06-17 Tom Rix <trix@redhat.com>
117
118 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
119
120 2002-06-14 H.J. Lu <hjl@gnu.org>
121 Daniel Jacobowitz <drow@mvista.com>
122
123 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
124 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
125 * config/tc-mips.c (s_mips_file): Call s_app_file_string
126 and new_logical_line for the first .file directive.
127 * read.c (s_app_file_string): New function.
128 (s_app_file): Call it.
129 * read.h (s_app_file_string): Add declaration.
130
131 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
132
133 * configure.in: Remove MIPS_STABS_ELF.
134 * configure: Regenerated.
135 * config.in: Regenerated.
136 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
137 for MIPS targets.
138 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
139 ".extern".
140 (pdr_seg): Declare unconditionally.
141 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
142 (s_mips_end): Likewise. Generate stabs function markers.
143 (s_mips_ent): Generate stabs function markers.
144 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
145 ELF.
146 (s_mips_mask): Likewise.
147 (mips_flag_mdebug): New.
148 (md_longopts): Add "mdebug" and "no-mdebug".
149 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
150 (mips_after_parse_args): Set mips_flag_mdebug.
151 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
152
153 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
154
155 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
156 value twice for RELA relocations.
157
158 2002-06-12 Ben Elliston <bje@redhat.com>
159
160 * symbols.c (resolve_symbol_value): Initialise final_val.
161
162 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
163
164 2002-06-11 Tom Rix <trix@redhat.com>
165
166 * config/tc-ppc.c (ppc_subseg_align): Delete.
167 (ppc_change_csect): Default csect align is 2.
168 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
169
170 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
171
172 * config/tc-avr.c (mcu_types): Update.
173
174 2002-06-08 Matt Thomas <matt@3am-software.com>
175
176 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
177 (vax-*-netbsd*): New targets.
178 * configure: Regenerate.
179 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
180 * config/tc-vax.c: Add support for ELF and PIC.
181 (flag_want_pic): New flag.
182 (float_cons): Fix prototype.
183 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
184 (md_assemble): Introduce a new is_absolute local, and use it
185 rather than repeating the test. Make fatal errors actually
186 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
187 Add support for ELF. Add support for PIC.
188 (md_convert_frag): Adjust for BFD_ASSEMBLER.
189 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
190 BFD_ASSEMBLER.
191 (vax_reg_parse): Make the % register prefix mandatory for ELF,
192 optional for a.out, and not allowed for VMS. Adjust all callers.
193 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
194 (md_create_long_jump): Likewise.
195 (md_undefined_symbol): Likewise.
196 (md_section_align): Likewise.
197 (md_shortopts): Allow -k and -K for ELF.
198 (md_parse_option): Set flag_want_pic if -k or -K.
199 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
200 (tc_gen_reloc): New function if BFD_ASSEMBLER.
201 * config/tc-vax.h (tc_headers_hook): Remove.
202 (TARGET_FORMAT): Set according to object format and target
203 environment.
204 (BFD_ARCH, TARGET_ARCH): Define.
205 (NO_RELOC): Adjust for BFD_ASSEMBLER.
206 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
207 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
208 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
209
210 2002-06-08 Alan Modra <amodra@bigpond.net.au>
211
212 * Makefile.am: Run "make dep-am".
213 * Makefile.in: Regenerate.
214
215 * as.c: Replace CONST with const.
216 * write.c: Likewise.
217 * config/obj-coff.c: Likewise.
218 * config/tc-a29k.c: Likewise.
219 * config/tc-arm.c: Likewise.
220 * config/tc-dlx.c: Likewise.
221 * config/tc-h8300.c: Likewise.
222 * config/tc-h8500.c: Likewise.
223 * config/tc-i370.c: Likewise.
224 * config/tc-i860.c: Likewise.
225 * config/tc-i960.c: Likewise.
226 * config/tc-m68hc11.c: Likewise.
227 * config/tc-m68k.c: Likewise.
228 * config/tc-m88k.c: Likewise.
229 * config/tc-mcore.c: Likewise.
230 * config/tc-mips.c: Likewise.
231 * config/tc-ns32k.c: Likewise.
232 * config/tc-pdp11.c: Likewise.
233 * config/tc-pj.c: Likewise.
234 * config/tc-s390.c: Likewise.
235 * config/tc-sh.c: Likewise.
236 * config/tc-sparc.c: Likewise.
237 * config/tc-tahoe.c: Likewise.
238 * config/tc-tic80.c: Likewise.
239 * config/tc-v850.c: Likewise.
240 * config/tc-vax.c: Likewise.
241 * config/tc-w65.c: Likewise.
242 * config/tc-z8k.c: Likewise.
243
244 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
245
246 Based on patch from Matt Green:
247 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
248 * config/tc-mips.c (s_mips_file): Renamed from s_file.
249 (s_mips_loc): New function.
250 (mips_nonecoff_pseudo_table): Call them.
251 (append_insn): Call dwarf2_emit_insn.
252
253 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
254
255 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
256 to -1.
257 (file_ase_mips16): New veriable.
258 (mips_eabi64): Remove.
259 (CPU_HAS_MIPS16): New define.
260 (CPU_HAS_MDMX): Fix data type.
261 (md_begin): Code cleanup. Use file_ase_mips16.
262 (mips_elf_final_processing): Handle mips16 header flag.
263 Handle EABI flag without intermediate variable.
264
265 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
266
267 * doc/as.texinfo: Update MIPS documentation.
268
269 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
270
271 * config/tc-mips.c: Add define for $zero register.
272 (md_begin): Add $zero as alias name for $0.
273 (insn_uses_reg): Use ZERO define.
274 (mips_ip): Add $zero as alias name for $0.
275 (mips16_ip): Likewise.
276 (s_cplocal): Demand empty rest of input line.
277 (tc_get_register): Likewise. Add support for $kt0, kt1 register
278 names. Use ZERO define. Fix input_line_pointer progress.
279
280 2002-06-07 Alan Modra <amodra@bigpond.net.au>
281
282 * symbols.c: Replace CONST by const throughout.
283 (symbol_find_exact): Split out from..
284 (symbol_find_base): ..here.
285 * symbols.h: Replace CONST by const throughout.
286 (symbol_find_exact): Declare.
287 * config/obj-elf.c: #include "struc-symbol.h".
288 (elf_frob_file): If group name matches an exported symbol, use that
289 symbol for the signature and ".group" as the section name.
290
291 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
292
293 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
294 but warn about it.
295 * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
296 * testsuite/gas/sh/pcrel.d: Update.
297 * testsuite/gas/sh/pcrel.l: New file.
298
299 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
300
301 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
302 and mips_opts.ase_mdmx if they are uninitialized.
303
304 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
305
306 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
307 (hppa_force_relocation): Check if a stub just before the start symbol
308 of the last call_info is reachable before forcing relocation. Fix
309 typo.
310
311 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
312
313 * config/tc-mips.c (mips_after_parse_args): New function.
314 (md_begin): Move processing of defaults to mips_after_parse_args.
315 config/tc-mips.h (md_after_parse_args): Define.
316
317 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
318
319 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
320 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
321 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
322 * configure: Regenerate.
323 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
324 environment.
325
326 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
327
328 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
329
330 2002-06-04 Alan Modra <amodra@bigpond.net.au>
331
332 * config/obj-elf.c (obj_elf_change_section): Set and check elf
333 linkonce flag. Print all warnings.
334 (obj_elf_section): Parse ",comdat" for groups.
335 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
336 consistency of comdat flag.
337
338 2002-06-02 Richard Henderson <rth@redhat.com>
339
340 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
341 with LITERALs without sequence numbers.
342
343 2002-06-01 Richard Henderson <rth@redhat.com>
344
345 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
346 Rename them LITUSE_ALPHA_*.
347
348 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
349
350 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
351 accept parentheses enclosed register lists.
352
353 2002-05-31 Alan Modra <amodra@bigpond.net.au>
354
355 * Makefile.am: Run "make dep-am".
356 * Makefile.in: Regenerate.
357 * po/POTFILES.in: Regenerate.
358
359 2002-05-31 Graeme Peterson <gp@qnx.com>
360
361 * configure.in: Add i386-*-nto-qnx*.
362 * configure: Regenerate.
363
364 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
365
366 * config/tc-mips.c (mips_ip): Use unsigned long values for
367 warning output.
368
369 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
370
371 * config/tc-mips.c (s_cpsetup): Fix initialization of
372 mips_cpreturn_register and mips_cpreturn_offset.
373
374 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
375
376 * config/tc-mips.c (s_cpsetup): Fix comment.
377
378 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
379
380 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
381 (mips_ip): Likewise.
382 (mips16_ip): Likewise.
383 (tc_get_register): Likewise.
384
385 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
386 Ed Satterthwaite <ehs@broadcom.com>
387
388 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
389 (mips_opts): Initialize "ase_mdmx" member.
390 (file_ase_mdmx): New variable.
391 (CPU_HAS_MDMX): New macro.
392 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
393 based on command line options and configuration defaults.
394 (macro_build): Note in comment that use of MDMX in macros is
395 not currently allowed.
396 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
397 "Z" MDMX operand types.
398 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
399 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
400 types.
401 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
402 Add support for "-mdmx" and "-no-mdmx" options.
403 (OPTION_ELF_BASE): Move to accomodate new options.
404 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
405 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
406 file_ase_mdmx was set.
407 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
408 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
409 nomdmx" directives.
410
411 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
412
413 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
414 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
415 command line switch conforming to gcc conventions.
416 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
417
418 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
419
420 * config/tc-mips.c (macro_build_jalr): New Function.
421 (md_begin): NewABI uses big GOTs.
422 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
423 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
424 (load_address): Add some NewABI PIC support.
425 (macro): Likewise.
426 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
427 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
428
429 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
430
431 * config/tc-mips.c (load_address): Use mips_gp_register instead
432 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
433 instead.
434 (macro): Use mips_gp_register instead of hardcoded value.
435
436 2002-05-30 Richard Henderson <rth@redhat.com>
437
438 * expr.h (operatorT): Add O_md17..O_md32.
439 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
440 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
441 O_tprelhi, O_tprello, O_tprel): New.
442 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
443 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
444 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
445 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
446 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
447 (md_apply_fix3): Handle TLS relocations.
448 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
449 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
450 associated TLS reloc. Check lituse_tls relocs match up.
451 (emit_insn): Handle TLS relocations.
452 (ldX_op): Remove.
453
454 * doc/c-alpha.texi: Add docs for tls relocations.
455
456 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
457
458 * config/tc-mips.c (mips_gprel_offset): New variable.
459 (s_gpvalue): Use it.
460
461 2002-05-30 Diego Novillo <dnovillo@redhat.com>
462
463 * gas/config/tc-d10v.c (check_resource_conflict): Only check
464 write-write conflicts.
465 (md_assemble): Reformat introductory comment.
466 (parallel_ok): Prevent packing only if the first
467 instruction cannot be packed.
468
469 2002-05-30 Jason Eckhardt <jle@redhat.com>
470 Tom Rix <trix@redhat.com>
471
472 * config/tc-d10v.c (build_insn): Check for immediates.
473
474 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
475
476 * config/tc-mips.c: Replace GP in comments by $gp.
477 (mips_big_got): Initialize.
478 (mips_trap): Initialize.
479 (load_address): Use mips_gp_register instead of hardcoded value.
480 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
481 (macro): Use mips_gp_register instead of hardcoded value.
482 (macro2): Change load_address calls.
483 (md_pcrel_from): Comment formatting.
484 (s_cpload): Use mips_gp_register instead of hardcoded value.
485 (s_cprestore): Likewise. Comment formatting.
486 (s_gpword): Fix data type.
487 (s_cpadd): Use mips_gp_register instead of hardcoded value.
488 (nopic_need_relax): Replace GP in comments by $gp.
489 (mips_elf_final_processing): Better comment.
490
491 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
492
493 * configure.in: Add DLX configuraton
494 * Makefile.am: Add DLX configuraton
495 * configure: Regenerate.
496 * Makefile.in: Regenerate.
497 * config/tc-dlx.c: New file.
498 * config/tc-dlx.h: New files.
499 * NEWS: Mention new support.
500
501 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
502
503 * config/obj-coff.c (write_object_file): Add missing semicolon.
504
505 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
506
507 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
508 by the define. Remove superfluous check of mips_opts.mips16.
509 (append_insn): Likewise. Canonicalize variable increments.
510 (macro_build): Canonicalize variable increments.
511 (macro_build_lui): Likewise.
512 (load_register): Likewise.
513 (load_address): Move pointer initialization.
514 (macro): Move pointer to a more local scope. Canonicalize variable
515 increments. Better comments. Replace magic constant for RA by the
516 define.
517 (macro2): Replace magic constant for RA by the define. Canonicalize
518 variable increments.
519 (mips_ip): Canonicalize variable increments.
520 (mips16_ip): Replace magic constant for RA by the define.
521 (my_getSmallParser): Canonicalize variable increments/decrements.
522 (my_getPercentOp): Likewise.
523 (my_getSmallExpression): Likewise.
524 (s_align): Likewise.
525 (s_mipsset): Likewise.
526 (s_cpsetup): Likewise.
527 (s_insn): Remove superfluous check of mips_opts.mips16.
528 (s_mips_stab): Likewise.
529 (mips_handle_align): Canonicalize variable increments.
530 (s_mips_ent): Likewise.
531 (s_mips_end): Add comment.
532
533 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
534
535 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
536 * configure: Regenerate.
537
538 2002-05-25 Alan Modra <amodra@bigpond.net.au>
539
540 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
541 * Makefile.in: Regenerate.
542 * dep-in.sed: Reorder to match OBJS in Makefile.am.
543 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
544 * configure: Regenerate.
545 * as.h: Use #include "" instead of <> for local header files.
546 * flonum-konst.c: Likewise.
547 * flonum-mult.c: Likewise.
548 * gasp.c: Likewise.
549 * listing.c: Likewise.
550 * config/tc-ia64.h: Likewise.
551 * config/tc-v850.h: Likewise.
552
553 2002-05-24 TAMURA Kent <kent@netbsd.org>
554
555 * configure.in: Add a target for i386-netbsdpe.
556 * configure: Regenerate.
557
558 2002-05-23 Jakub Jelinek <jakub@redhat.com>
559
560 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
561 (obj_elf_common): Call elf_common.
562 (obj_elf_tls_common): New function.
563 (elf_pseudo_tab): Support .tls_common.
564 (special_sections): Add .tdata and .tbss.
565 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
566 sections.
567 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
568 (obj_elf_parse_section_letters): Include T in error message.
569 * config/tc-ppc.c (ppc_section_letter): Likewise.
570 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
571 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
572 SEC_MERGE.
573 * config/tc-sparc.c (md_apply_fix3): Likewise.
574 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
575 Define them if not BFD_ASSEMBLER.
576 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
577 and @NTPOFF.
578 (md_apply_fix3): Add TLS relocs.
579 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
580 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
581 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
582 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
583 (ia64_elf_section_letter): Include T in error message.
584 (md_begin): Support TLS operators.
585 (md_operand): Likewise.
586 (ia64_gen_real_reloc_type): Support TLS relocs.
587 * testsuite/gas/i386/tlspic.s: New file.
588 * testsuite/gas/i386/tlsd.s: New file.
589 * testsuite/gas/i386/tlsnopic.s: New file.
590 * testsuite/gas/i386/tlsd.d: New file.
591 * testsuite/gas/i386/tlsnopic.d: New file.
592 * testsuite/gas/i386/tlspic.d: New file.
593 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
594 * testsuite/gas/ia64/tls.s: New file.
595 * testsuite/gas/ia64/tls.d: New file.
596 * testsuite/gas/ia64/ia64.exp: Add tls test.
597 * write.c (adjust_reloc_syms): Don't change symbols in
598 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
599
600 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
601
602 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
603 round the relocation up rather than down.
604
605 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
606
607 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
608 flag.
609 * doc/as.texinfo: Document that the COFF version of .section
610 ignores the 'a' flag.
611
612 2002-05-23 Alan Modra <amodra@bigpond.net.au>
613
614 * config/tc-alpha.c (assemble_tokens): Protect use of
615 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
616
617 * write.c (size_seg): Check adjustment to last frag.
618 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
619 section alignment.
620 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
621 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
622 (write_object_file): Invoke md_do_align if available, and use
623 frag_align_code on text sections.
624 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
625 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
626 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
627 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
628 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
629 BFD_ASSEMBLER too.
630
631 2002-05-22 H.J. Lu <hjl@gnu.org>
632
633 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
634 for source file.
635
636 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
637
638 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
639 as ELF builds.
640
641 2002-05-22 H.J. Lu <hjl@gnu.org>
642
643 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
644 for one .loc for compiler.
645
646 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
647
648 * config/tc-mips.c (macro): Relax warning, it's toot strict for
649 embedded-PIC.
650
651 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
652
653 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
654 Optimize the rotate by zero case.
655
656 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
657
658 * configure.in: Remove accidental enabling of bfd_gas=yes for
659 sh-coff targets.
660 * configure: Regenerate.
661
662 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
663
664 * app.c: Fix formatting.
665 * as.c: Likewise.
666 * ehopt.c: Likewise.
667 * expr.c: Likewise.
668 * input-file.c: Likewise.
669 * listing.c: Likewise.
670 * macro.h: Likewise.
671 * stabs.c: Likewise.
672 * symbols.c: Likewise.
673
674 2002-05-17 Alan Modra <amodra@bigpond.net.au>
675
676 * config/obj-generic.c: Delete file.
677 * config/obj-generic.h: Likewise.
678
679 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
680
681 * config/tc-avr.c (mcu_types): Update for new devices.
682
683 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
684
685 * config/tc-mips.c (macro): Warn about wrong la/dla use.
686
687 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
688
689 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
690 worked sometimes by accident. Fix copy&paste comment.
691
692 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
693
694 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
695 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
696 (mips_elf_final_processing): Let n32 use .reginfo.
697
698 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
699
700 * config/tc-mips.c (append_insn): Fix too small range of variable.
701
702 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
703
704 * config/tc-arm.c (arm_cleanup): Remove redundant call to
705 listing_prev_line().
706
707 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
708
709 * config/tc-arm.c (md_assemble): Remove redundant call to
710 listing_prev().
711
712 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
713 loc_directive_seen.
714
715 * stabs.c (s_stab_generic): Fix grammatical error in warning
716 message.
717
718 2002-05-13 Alan Modra <amodra@bigpond.net.au>
719
720 * write.c (subsegs_finish): Don't specially align last subseg.
721
722 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
723
724 * stabs.c (s_stab_generic): Warn about a description field that is
725 too big.
726
727 * config/obj-coff.c: Fix compile time warnings when compiling
728 without BFD_ASSEMBLER defined.
729 Fix formatting.
730
731 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
732 target.
733 (md_pcrel_from_section): Use md_pcrel_from().
734
735 2002-05-11 Bruno Haible <bruno@clisp.org>
736
737 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
738 by dwarf2_directive_loc, instead of calling dwarf2_where.
739
740 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
741
742 * config/obj-coff.h: Fix formatting.
743 * config/tc-mcore.c: Likewise.
744 * config/tc-mn10300.c: Likewise.
745 * config/tc-openrisc.c: Likewise.
746 * config/tc-or32.c: Likewise.
747 * config/tc-pdp11.c: Likewise.
748 * config/tc-ppc.c: Likewise.
749 * config/tc-ppc.h: Likewise.
750 * config/tc-sh64.c: Likewise.
751 * config/tc-sh.c: Likewise.
752 * config/tc-tic54x.c: Likewise.
753 * config/tc-xstormy16.c: Likewise.
754 * config/tc-xstormy16.h: Likewise.
755
756 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
757
758 * config/obj-coff.c: Fix formatting.
759 * config/obj-elf.c: Likewise.
760 * config/tc-alpha.c: Likewise.
761 * config/tc-arm.c: Likewise.
762 * config/tc-d10v.c: Likewise.
763 * config/tc-d30v.c: Likewise.
764 * config/tc-h8300.c: Likewise.
765 * config/tc-hppa.c: Likewise.
766
767 2002-05-09 Alan Modra <amodra@bigpond.net.au>
768
769 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
770 reloc when no_cond_jump_promotion.
771
772 2002-05-08 Jim Wilson <wilson@redhat.com>
773
774 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
775 current variable part of frag.
776
777 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
778
779 * config/tc-mmix.c: Fix formatting.
780 * config/tc-mmix.h: Likewise.
781
782 2002-05-08 Alan Modra <amodra@bigpond.net.au>
783
784 * configure: Regenerate.
785
786 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
787
788 * config/tc-m68k.c: Fix formatting.
789
790 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
791
792 * Makefile.am: Honour DESTDIR.
793 * Makefile.in: Regenerate.
794
795 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
796
797 * config/tc-ia64.c: Fix formatting.
798 * config/tc-ia64.h: Likewise.
799
800 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
801
802 * config/tc-mips.c: Fix formatting.
803 * config/tc-s390.c: Likewise.
804 * config/tc-s390.h: Likewise.
805
806 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
807
808 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
809 information for instructions.
810
811 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
812
813 * as.h: Fix formatting.
814 * cgen.c: Likewise.
815 * cgen.h: Likewise.
816 * dwarf2dbg.c: Likewise.
817 * frags.h: Likewise.
818 * gasp.c: Likewise.
819 * macro.c: Likewise.
820 * read.c: Likewise.
821 * stabs.c: Likewise.
822 * symbols.c: Likewise.
823
824 2002-05-02 Alan Modra <amodra@bigpond.net.au>
825
826 * app.c (mri_pseudo): Only declare for TC_M68K.
827
828 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
829 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
830 BFD_RELOC_16_BASEREL.
831 (md_assemble): Likewise.
832 (md_apply_fix3): Likewise.
833
834 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
835
836 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
837 zero into an add of zero - it is not the same.
838
839 2002-05-01 Arati Dikey <aratid@kpit.com>
840
841 * tc-sh.c (get_specific): Generate warning if the same
842 destination register is used in parallel instructions.
843
844 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
845
846 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
847
848 2002-05-01 Alan Modra <amodra@bigpond.net.au>
849
850 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
851 backwards to prevent cascading errors.
852
853 2002-04-30 Mark Mitchell <mark@codesourcery.com>
854
855 * configure.in: Add support for powerpc-*-windiss.
856 * configure: Regenerated.
857
858 2002-04-28 Alan Modra <amodra@bigpond.net.au>
859
860 * config/tc-s390.c (md_parse_option): Formatting.
861
862 * config/tc-i386.c: Formatting fixes, add missing space in error
863 message.
864
865 2002-04-24 Christian Groessler <chris@groessler.org>
866
867 * config/tc-z8k.c (build_bytes): Add support for new cases:
868 CLASS_IGNORE and ARG_NIM4.
869 (md_assemble): Prevent destruction of input_line_pointer if
870 get_operands returns failure.
871
872 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
873
874 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
875 instructions to be generated by macros.
876
877 2002-04-24 Andreas Schwab <schwab@suse.de>
878
879 * config/tc-i386.c (output_jump, output_disp)
880 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
881 more.
882 (md_apply_fix3): Remember addend value for rela relocations.
883 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
884
885 2002-04-22 Chris Demetriou <cgd@broadcom.com>
886
887 * config/tc-mips.c (macro_build): Add close-parenthesis missing
888 from previous change.
889
890 2002-04-22 Eric Christopher <echristo@redhat.com>
891
892 * config/tc-mips.c (macro_build): Add warning if macro instructions
893 are expanded into a branch delay slot.
894
895 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
896
897 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
898 numbers, gdb relies on them to detect the start of the prologue.
899
900 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
901
902 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
903 symbols in merge sections.
904
905 2002-04-16 Alan Modra <amodra@bigpond.net.au>
906
907 * as.c (main): Don't reference _bfd_chunksize.
908
909 2002-04-15 Tom Rix <trix@redhat.com>
910
911 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
912 symbols in merge sections.
913
914 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
915
916 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
917 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
918 argument for the precision.
919 (gen_to_words): Update accordingly.
920
921 2002-04-10 Alan Modra <amodra@bigpond.net.au>
922
923 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
924 BFD_VERSION_STRING unavailable.
925 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
926
927 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
928
929 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
930 symbol_used_in_reloc_p is true.
931
932 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
933 endian hosts.
934
935 2002-04-04 Alan Modra <amodra@bigpond.net.au>
936
937 * dep-in.sed: Cope with absolute paths.
938 * Makefile.am (dep.sed): Subst TOPDIR.
939 Run "make dep-am".
940 * Makefile.in: Regenerate.
941
942 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
943
944 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
945 (mips_ip): Remove unused variable.
946 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
947 unsigned char with bfd_byte.
948 (s_file): Remove unused variable.
949 (s_mips_ent): Likewise.
950
951 2002-04-03 Tom Rix <trix@redhat.com>
952
953 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
954 (build_insn): Same.
955 (find_opcode): Fix warning in as_warn.
956 * config/tc-d10v.h: Update Copyright.
957
958 2002-04-03 Alan Matsuoka <alanm@redhat.com>
959 Tom Rix <trix@redhat.com>
960
961 From Jeff Knaggs <jknaggs@redhat.com>
962 * config/tc-d10v.c (check_resource_conflict): New function to
963 check for resource conflicts.
964
965 From Jason Eckhardt <jle@redhat.com>
966 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
967 imm3 fields.
968 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
969 reserved control registers is used.
970 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
971 imm3 fields.
972
973 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
974 * tc-d10v.c (parallel_ok): Prevent packing only if the first
975 instruction cannot be packed.
976
977 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
978 * gas/config/tc-d10v.c (check_resource_conflict): Only check
979 write-write conflicts.
980 (md_assemble): Reformat introductory comment.
981 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
982 arguments.
983
984 2002-04-03 Alan Modra <amodra@bigpond.net.au>
985
986 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
987 O_logical_not>): Derive final_seg from add_symbol.
988 <O_multiply..O_logical_or>: More final_seg twiddles.
989
990 2002-04-01 Jessica Han <jessica@cup.hp.com>
991
992 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
993 in 32-bit mode.
994
995 2002-03-27 Andreas Schwab <schwab@suse.de>
996
997 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
998 field for pc-relative fixups.
999 (output_disp): Likewise.
1000 (md_estimate_size_before_relax): Likewise.
1001 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
1002 pc-relative fixups in 64bit mode.
1003
1004 2002-03-22 Alan Modra <amodra@bigpond.net.au>
1005
1006 * config/te-aix5.h: Typo fix.
1007
1008 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1009
1010 * Makefile.am: Run "make dep-am".
1011 * Makefile.in: Regenerate.
1012 * doc/Makefile.in: Regenerate.
1013
1014 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
1015
1016 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
1017 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
1018
1019 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
1020
1021 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
1022 the EXTENDED bit here; report the estimate according to the
1023 current size.
1024
1025 2002-03-18 Tom Rix <trix@redhat.com>
1026
1027 * configure.in: Add AIX 5 support.
1028 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
1029 * config/te-aix5.h: New file. AIX 5 support.
1030 * configure: Regenerate.
1031
1032 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1033
1034 * po/fr.po: Updated version.
1035
1036 2002-03-16 Andreas Jaeger <aj@suse.de>
1037
1038 * doc/c-mips.texi (Machine Dependencies): Add new node.
1039
1040 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
1041
1042 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
1043 (mips_opts): Initialize "ase_mips3d" member.
1044 (file_ase_mips3d): New variable.
1045 (CPU_HAS_MIPS3D): New macro.
1046 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
1047 based on command line options and configuration defaults.
1048 (macro_build, mips_ip): Accept MIPS-3D instructions if
1049 mips_opts.ase_mips3d is set.
1050 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
1051 Add support for "-mips3d" and "-no-mips3d" options.
1052 (OPTION_ELF_BASE): Move to accomodate new options.
1053 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
1054 (mips_elf_final_processing): Add a comment indicating that a
1055 MIPS-3D ASE ELF header flag should be set, when one exists.
1056 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
1057 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
1058 nomips3d" directives.
1059
1060 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
1061
1062 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
1063 a weak symbol in same section to be within reach.
1064
1065 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1066
1067 * po/fr.po: Updated version.
1068
1069 2002-03-12 Andreas Schwab <schwab@suse.de>
1070
1071 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
1072 body record so that an error is given for misplaced .save
1073 pseudo-ops.
1074
1075 2002-03-09 Alan Modra <amodra@bigpond.net.au>
1076
1077 * config/tc-i386.h (REX_OPCODE): Define.
1078 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
1079 (rex_byte): typedef to int.
1080 * config/tc-i386.c: Group prototypes and vars together.
1081 Formatting fixes. Remove occurrences of "register" keyword.
1082 (true): Delete.
1083 (false): Delete.
1084 (mode_from_disp_size): Add INLINE keyword to prototype.
1085 (fits_in_signed_byte): Likewise.
1086 (fits_in_unsigned_byte): Likewise.
1087 (fits_in_unsigned_word): Likewise.
1088 (fits_in_signed_word): Likewise.
1089 (fits_in_unsigned_long): Likewise.
1090 (fits_in_signed_long): Likewise.
1091 (type_names): Constify.
1092 (intel_float_operand): Constify param.
1093 (add_prefix): Use REX_OPCODE.
1094 (md_assemble): Likewise. Modify for changed rex_byte.
1095 (parse_insn): Split out of md_assemble.
1096 (parse_operands): Likewise.
1097 (swap_operands): Likewise.
1098 (optimize_imm): Likewise.
1099 (optimize_disp): Likewise.
1100 (match_template): Likewise.
1101 (check_string): Likewise.
1102 (process_suffix): Likewise.
1103 (check_byte_reg): Likewise.
1104 (check_long_reg): Likewise.
1105 (check_qword_reg): Likewise.
1106 (check_word_reg): Likewise.
1107 (finalize_imm): Likewise.
1108 (process_operands): Likewise.
1109 (build_modrm_byte): Likewise.
1110 (output_insn): Likewise.
1111 (output_branch): Likewise.
1112 (output_jump): Likewise.
1113 (output_interseg_jump): Likewise.
1114 (output_disp): Likewise.
1115 (output_imm): Likewise.
1116
1117 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1118
1119 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1120
1121 2002-03-06 Alan Modra <amodra@bigpond.net.au>
1122
1123 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
1124 relocs except when BFD64.
1125
1126 * write.c (number_to_chars_bigendian): Don't abort when N is
1127 larger than sizeof (VAL).
1128 (number_to_chars_littleendian): Likewise.
1129
1130 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1131
1132 * config/tc-hppa.c (md_apply_fix3): Add cast.
1133 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
1134 e_rrsel.
1135
1136 2002-03-05 Paul Koning <pkoning@equallogic.com>
1137
1138 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
1139 (parse_ac5): New function for parsing float regs in float operand.
1140 (parse_expression): Remove attempt to make literals be octal.
1141 (parse_op_no_deferred): Support float literals.
1142 (parse_op): Reject attempts to refer to float regs.
1143 (parse_fop): New function, like parse_op but for float operand.
1144 (md_assemble): Add cases to parse float operands. Also fix
1145 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
1146
1147 2002-03-04 H.J. Lu <hjl@gnu.org>
1148
1149 * config/obj-elf.c (special_section): Add .init_array,
1150 .fini_array and .preinit_array.
1151
1152 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
1153 .init_array and .fini_array.
1154
1155 2002-03-01 Jakub Jelinek <jakub@redhat.com>
1156
1157 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
1158 visibility.
1159 (obj_frob_symbol): Copy visibility.
1160
1161 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1162
1163 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
1164 s_text.
1165 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
1166
1167 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
1168
1169 * po/es.po: Updated.
1170
1171 2002-02-26 Chris Demetriou <cgd@broadcom.com>
1172
1173 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
1174 only, undo the changes made on 2001-06-08, with the
1175 effect being that common or extern symbols are
1176 adjusted for embedded-PIC, but weak symbols are not.
1177 (md_estimate_size_before_relax: Likewise, with the effect
1178 that extern symbols are treated the same as weak symbols
1179 only if not embedded-PIC.
1180 (mips_fix_adjustable) Likewise, with the effect that
1181 weak or extern symbols are not adjusted for embedded-PIC.
1182 (md_apply_fix3): Tweak so that the case where value is zero
1183 is handled more correctly for embedded-PIC code.
1184
1185 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
1186
1187 * doc/as.texinfo (Overview): Add missing @ifset IA64
1188
1189 * configure.in (LINGUAS): Add es.po.
1190 * configure: Regenerate.
1191 * po/es.po: New file.
1192
1193 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1194
1195 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
1196 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
1197 and NO_PIC cases. Code cleanup.
1198 (macro2): Fix handling of 64bit register loads.
1199
1200 2002-02-25 David Mosberger <davidm@hpl.hp.com>
1201
1202 * doc/as.texinfo: Add entry for IA64.
1203 * doc/c-ia64.texi: New file.
1204
1205 2002-02-25 Alan Modra <amodra@bigpond.net.au>
1206
1207 * config/tc-hppa.c: Update copyright date.
1208
1209 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
1210 Remove references to chip manufacturers.
1211 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1212 Correct comments.
1213 (md_show_usage): Remove references to chip manufacturers. Mention
1214 -mpower4.
1215 (md_begin): Test power4 opcode flag bits.
1216
1217 2002-02-22 David Mosberger <davidm@hpl.hp.com>
1218
1219 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
1220 count exceeds prologue count.
1221 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
1222 (unwind.label_prologue_count): New member.
1223
1224 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1225
1226 (get_saved_prologue_count): New function.
1227 (save_prologue_count): New function.
1228 (free_saved_prologue_count): New function.
1229 (dot_label_state): Record state label by calling save_prologue_count().
1230 (dot_copy_state): Restore prologue count by calling
1231 get_saved_prologue_count().
1232 (generate_unwind_image): Free up list of saved prologue
1233 counts by calling free_saved_prologue_counts().
1234
1235 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
1236
1237 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1238 function declarations.
1239
1240 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
1241
1242 * NEWS: Note that GASP is now deprecated.
1243 * Makefile.am: Do not build gasp-new by default.
1244 * Makefile.in: Regenerate.
1245 * doc/Makefile.am: Do not install gasp.info.
1246 * doc/Makefile.in: Regenerate.
1247 * gas/gasp.texi: Note that gasp is now deprecated.
1248
1249 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1250
1251 * NEWS: Mark 2.12 branch.
1252
1253 2002-02-19 Tom Tromey <tromey@redhat.com>
1254
1255 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1256
1257 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1258
1259 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1260 option input.
1261
1262 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1263
1264 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1265 Make bit size independent of architecture switch.
1266 (md_begin): Add warning for -m64 with -Aesa.
1267 (s390_md_end): Use renamed architecture defines.
1268
1269 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
1270
1271 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1272
1273 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
1274
1275 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1276 instead of CRIS.
1277
1278 2002-02-15 Chris Demetriou <cgd@broadcom.com>
1279
1280 * config/tc-mips.c (md_estimate_size_before_relax): Really
1281 make sure we treat weak like extern only for ELF. (Fixes
1282 patch from 2001-07-25.)
1283
1284 2002-02-15 Ben Elliston <bje@redhat.com>
1285
1286 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
1287 works as expected.
1288
1289 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1290
1291 * NEWS: Mention support for MMIX.
1292
1293 2002-02-13 Chris Demetriou <cgd@broadcom.com>
1294
1295 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1296 a sequence of indpendent 'if' statements for easier debugging
1297 and future modification.
1298
1299 2002-02-13 Matt Fredette <fredette@netbsd.org>
1300
1301 * config/tc-m68k.c (md_show_usage): No longer display a
1302 hard-coded "68020" for the default CPU, instead display the
1303 canonical name of the true, configured default CPU.
1304 (m68k_elf_final_processing): Mark objects for sub-68020
1305 CPUs with the new EF_M68000 flag.
1306
1307 2002-02-13 Andreas Schwab <schwab@suse.de>
1308
1309 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1310 pc-relative relocations to merge sections in 64-bit mode.
1311
1312 2002-02-13 Ben Elliston <bje@redhat.com>
1313
1314 * NEWS: Document floating point number handling in gasp.
1315 * gasp.c: Include <assert.h> and "xregex.h".
1316 (is_flonum): New function.
1317 (chew_flownum): Likewise.
1318 (change_base): Consume flonums from the input, where possible.
1319 * doc/gasp.texi (Constants): Document floating point numbers.
1320
1321 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1322
1323 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1324 that implicitly use LR and RR selectors.
1325
1326 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
1327
1328 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
1329 and `epsw' as available on AM33 and above only.
1330 (other_register_name): Add logic to handle machine type encoded in
1331 reg_number.
1332
1333 2002-02-11 Tom Rix <trix@redhat.com>
1334
1335 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
1336 xcoff64.
1337
1338 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
1339
1340 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1341 Use all over.
1342
1343 2002-02-11 Jan Hubicka <jh@suse.cz>
1344
1345 * i386.c (md_assemble): Support 32bit address prefix.
1346 (i386_displacement): Likewise.
1347 (i386_index_check): Accept 32bit addressing in 64bit mode.
1348
1349 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1350
1351 * config/tc-sh.c (dot): Removed unused function.
1352
1353 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1354
1355 * Makefile.am: "make dep-am".
1356 * Makefile.in: Regenerate.
1357 * aclocal.m4: Regenerate.
1358 * config.in: Regenerate.
1359 * configure: Regenerate.
1360 * doc/Makefile.in: Regenerate.
1361
1362 2002-02-10 Richard Henderson <rth@redhat.com>
1363
1364 * doc/c-alpha.texi: New file.
1365 * doc/Makefile.am (CPU_DOCS): Add it.
1366 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1367
1368 2002-02-09 Richard Henderson <rth@redhat.com>
1369
1370 * config/tc-alpha.c (O_samegp): New.
1371 (USER_RELOC_P): Include it.
1372 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1373 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1374 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1375 (alpha_validate_fix): New.
1376 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
1377
1378 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
1379
1380 * doc/c-cris.texi: New.
1381 * doc/all.texi: @set CRIS.
1382 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
1383 Include c-cris.texi.
1384 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1385 * doc/Makefile.in: Regenerate.
1386
1387 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1388
1389 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1390 determine if a number is a sign-extended 32-bit number.
1391 (load_register): Use IS_SEXT_32BIT_NUM.
1392 (macro): Check if load/store macro handling is using a
1393 constant 32-bit address on 64-bit address systems, and if
1394 so optimize the generation of that address.
1395
1396 2002-02-08 Richard Henderson <rth@redhat.com>
1397
1398 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
1399 we've eliminated all foreign relocation types yet.
1400 (alpha_fix_adjustable): Likewise.
1401
1402 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1403
1404 Contribute sh64-elf.
1405 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1406 Stephen Clarke <Stephen.Clarke@st.com>
1407 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1408 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
1409 * config/tc-sh.c (md_relax_table): Added default sizes for
1410 non-PC-relative UNDEF_MOVI, and relaxation sequences for
1411 MOVI_16, MOVI_32 and MOVI_48.
1412 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1413 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1414 and MOVI_16.
1415 (shmedia_md_estimate_size_before_relax): Remove redundant
1416 blocks. Set fragP->fr_var even if relaxation type unchanged.
1417 Retain UNDEF_MOVI until expression decays to number.
1418 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1419 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1420 relocation types. Take fixP->fx_addnumber into account too.
1421 (shmedia_md_apply_fix): Likewise.
1422 (shmedia_md_convert_frag): Likewise.
1423 (shmedia_build_Mytes): Likewise.
1424 (sh64_consume_datalabel): Complain about nested datalabel.
1425 Support PIC relocs. Call sh_parse_name.
1426 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
1427 in tc-sh.h to SHmedia reloc types.
1428 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
1429 MOVI_GOTPC): New relaxation constants.
1430 (md_relax_table): Introduce relaxation directives for PIC-related
1431 constants.
1432 (sh_PIC_related_p): Handle datalabel.
1433 (sh_check_fixup): Choose SH5 PIC relocations.
1434 (sh_cons_fix_new): Added BDF_RELOC_64.
1435 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
1436 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1437 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
1438 current ISA is SHmedia, get 7 bytes.
1439 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
1440 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
1441 void function.
1442 * config/tc-sh64.c (shmedia_apply_fix): Rename to
1443 shmedia_apply_fix3 and make void.
1444 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
1445 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
1446 as_bad.
1447 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
1448 * config/tc-sh64.h (md_parse_name): Take &c as argument.
1449 2001-03-14 DJ Delorie <dj@redhat.com>
1450 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
1451 * doc/Makefile.in(CPU_DOCS): Ditto.
1452 * doc/c-sh64.texi: New file.
1453 * doc/as.texinfo: Add SH64 support.
1454 2001-03-13 DJ Delorie <dj@redhat.com>
1455 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
1456 A_REUSE_PREV so that its purpose is more obvious.
1457 (shmedia_build_Mytes): Ditto.
1458 2001-03-07 DJ Delorie <dj@redhat.com>
1459 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
1460 before processing.
1461 (sh64_vtable_inherit): Ditto.
1462 (strip_datalabels): New, strip "datalabel" from given line.
1463 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
1464 pseudos.
1465 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
1466 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
1467 call ...
1468 (shmedia_build_Mytes): ... to here.
1469 2001-03-06 DJ Delorie <dj@redhat.com>
1470 * config/tc-sh.c: Remove sh64-specific uaquad now that there
1471 is a generic one.
1472 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
1473 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
1474 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
1475 address by one in call to dwarf2_emit_insn.
1476 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
1477 Implement ".abi" pseudo and correct .cranges descriptors. Correct
1478 alignment handling broken by imported changes.
1479 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
1480 (sh64_handle_align): Declare.
1481 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
1482 (sh64_max_mem_for_rs_align_code): Declare.
1483 (enum sh64_isa_values): Moved here from tc-sh64.c.
1484 (md_do_align): Define.
1485 (sh64_do_align): Declare.
1486 (struct sh64_tc_frag_data): New.
1487 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
1488 changed.
1489 (TC_FRAG_INIT): Change to set new datatype.
1490 (struct sh64_segment_info_type): Rename member
1491 last_flushed_location to last_contents_mark. All users changed.
1492 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
1493 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
1494 * config/tc-sh.c (md_pseudo_table): Add ".abi".
1495 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
1496 of unsetting seen_insn.
1497 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
1498 call sh64_update_contents_mark.
1499 (sh_handle_align): Remove HAVE_SH64-conditioned code.
1500 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
1501 enum sh64_isa_values.
1502 (sh64_set_contents_type): Drop segT parameter. All callers changed.
1503 (emitting_crange): Boolean guard moved to file scope from function
1504 scope in sh64_set_contents_type.
1505 (s_sh64_abi): New.
1506 (sh64_update_contents_mark): New; most split out from
1507 sh64_flush_pending_output.
1508 (shmedia_md_end): Call sh64_update_contents_mark. Set
1509 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
1510 (sh64_do_align): New function.
1511 (sh64_max_mem_for_rs_align_code): New function.
1512 (sh64_handle_align): Rename from shmedia_do_align. Make
1513 non-static. Add head comment. Emit zero bytes for n bytes modulo
1514 four. Change return-type to void.
1515 (shmedia_elf_new_section): Remove.
1516 (shmedia_md_assemble): Call sh64_update_contents_mark.
1517 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
1518 new frag. Call sh64_update_contents_mark after making the new
1519 frag.
1520 (sh64_flush_pending_output): Just call sh64_update_contents_mark
1521 and sh_flush_pending_output.
1522 (sh64_flag_output): Also call md_flush_pending_output, but add
1523 condition on not emitting_crange.
1524 (sh64_tc_cons_fix_new): Remove.
1525 2001-01-12 Nick Clifton <nickc@redhat.com>
1526 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
1527 alignment handling scheme imported from sourceware.
1528 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
1529 * config/tc-sh64.h (TARGET_FORMAT): Define.
1530 (sh64_target_format): Prototype.
1531 * config/tc-sh64.c (sh64_target_mach): New function.
1532 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
1533 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
1534 zero_address_frag instead of copying the frag of the symbol.
1535 (shmedia_frob_file_before_adjust): Ditto.
1536 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
1537 to valueT to remove signedness.
1538 (shmedia_md_convert_frag): Add parameter final. Rename parameter
1539 headers to output_bfd. Do not evaluate symbols if final is false;
1540 do emit fixups.
1541 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
1542 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
1543 to the current frag, call shmedia_md_convert_frag to emit fixups
1544 and make frag_wane neutralize the frag. Update comments.
1545 * config/tc-sh.c (md_convert_frag): Change caller of
1546 shmedia_md_convert_frag.
1547 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1548 * config/tc-sh64.h: Tweak comments and correct formatting.
1549 * config/tc-sh64.c: Ditto.
1550 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
1551 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
1552 for the no-relocation case.
1553 (shmedia_check_limits): Fix range check being off-by-one for PTA.
1554 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
1555 wrappers.
1556 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
1557 comment.
1558 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
1559 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
1560 expansion.
1561 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
1562 Correct comment.
1563 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1564 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
1565 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
1566 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
1567 al>: Set lowest bit of field to relocate to 1 and rest to empty,
1568 if reloc is emitted.
1569 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1570 New options plus bugfixes.
1571 * config/tc-sh.c (md_longopts): New options "-no-expand" and
1572 "-expand-pt32".
1573 (md_parse_option): Handle new options.
1574 (md_show_usage): Add blurb for new options.
1575 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
1576 (sh64_expand, sh64_pt32): New variables.
1577 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
1578 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
1579 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
1580 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
1581 <resolved previously-pc-relative relocs>: Handle
1582 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
1583 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
1584 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
1585 points to SHcompact code.
1586 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
1587 SH64PCREL16)>: Check that ISA of what operand points at and
1588 PTA/PTB matches, or emit error.
1589 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
1590 SHMEDIA_BFD_RELOC_PT.
1591 (shmedia_immediate_op): If pcrel, emit fixup also for constant
1592 operand.
1593 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
1594 condition for MOVI expansion.
1595 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
1596 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
1597 sh64_expand.
1598 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
1599 fixup.
1600 (sh64_target_format): Error-check setting of sh64_pt32 and
1601 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
1602 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
1603 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
1604 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1605 * config/tc-sh64.c: Improve comments.
1606 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
1607 not say the linker will check correctness of PTA/PTB expansion.
1608 (shmedia_md_end): Make non-static.
1609 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
1610 prototype.
1611 * config/tc-sh.c (sh_finalize): Remove.
1612 * config/tc-sh.h (md_end): Do not define.
1613 Remove prototype for sh_finalize.
1614 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1615 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
1616 sh64_section_data container when storing section type in tdata
1617 field in elf_section_data.
1618 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
1619 EF_SH5.
1620 * Makefile.am: Update dependencies.
1621 * Makefile.in: Regenerate.
1622 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
1623 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
1624 dwarf2_emit_insn call with test on debug_type.
1625 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1626 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
1627 CRT_SH5_ISA32 sticky for 64-bit.
1628 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1629 Generate .crange sections when switching ISA mode or emitting
1630 constants in same section as code.
1631 * config/tc-sh64.c: Reformat structure definitions.
1632 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
1633 variables.
1634 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
1635 to emit a .cranges descriptor when contents type changes. Only
1636 emit error if changing contents type and -no-mix is in effect.
1637 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
1638 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
1639 (shmedia_md_end): Set sh64_end_of_assembly. Pass
1640 sh64_flush_last_crange over sections.
1641 When checking main symbol of datalabel symbol, check for
1642 STO_SH5_ISA32, not ISA type of section in definition.
1643 (shmedia_frob_file_before_adjust): Check main symbol for
1644 STO_SH5_ISA32; don't check ISA type of section in definition.
1645 (shmedia_frob_section_type): Adjust for .cranges; set section flag
1646 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
1647 .cranges entries have been output.
1648 (shmedia_elf_new_section): Just call md_flush_pending_output.
1649 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
1650 fix. Do not set tc_segment_info_data.in_code for section. Call
1651 sh64_set_contents_type for SHmedia code.
1652 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
1653 false. Call md_flush_pending_output.
1654 (sh64_target_format): Check that -no-mix and
1655 -shcompact-const-crange are used in sane combination with other
1656 options.
1657 (shmedia_md_pcrel_from_section): Check type of fix for how to
1658 adjust pc-relative.
1659 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
1660 not ISA type of section in definition.
1661 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
1662 hold contents-type state.
1663 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
1664 (sh64_flush_pending_output): Declare.
1665 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
1666 (sh64_tc_cons_fix_new): Declare.
1667 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
1668 call sh64_flag_output.
1669 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
1670 call sh64_set_contents_type to mark SHcompact code and set
1671 seen_insn.
1672 (md_longopts): New options "-no-mix" and
1673 "-shcompact-const-crange".
1674 (md_parse_option): Handle new options.
1675 (md_show_usage): Add blurb for new options.
1676 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
1677 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1678 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
1679 (sh64_last_insn_frag): New.
1680 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
1681 to get frag for insn opcode for generating fixups; do not assume it
1682 is the same frag.
1683 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
1684 for new insn.
1685 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
1686 section.
1687 (TC_FRAG_TYPE): Define as fragS *.
1688 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
1689 (sh64_last_insn_frag): Declare.
1690 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
1691 not == NULL before dereferencing.
1692 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1693 Get rid of BFD section flag and EF_SH64_ABI64.
1694 * config/tc-sh64.c (shmedia_frob_section_type): Use
1695 elf_section_data (sec)->tdata, not a specific BFD section flag, to
1696 communicate the section as containing SHmedia code. Describe why.
1697 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
1698 EF_SH64 regardless of ABI.
1699 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
1700 in error message. Handle resolved expressions for
1701 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1702 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
1703 (shmedia_check_limits): Handle BFD_RELOC_64.
1704 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
1705 a STO_SH5_ISA32 symbol, only the BFD value.
1706 2000-12-11 Ben Elliston <bje@redhat.com>
1707 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
1708 dwarf2_generate_asm_lineno.
1709 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
1710 Handle PC-relative MOVI expansions with assembler relaxation.
1711 Generate PC-relative relocs from 16-bit PC-relative expressions.
1712 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
1713 (shmedia_md_pcrel_from_section): ...here.
1714 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
1715 turned completely resolved. Adjust relocation type for 16-bit
1716 immediate operands that has turned PC-relative. Adjust back for
1717 MD_PCREL_FROM_SECTION being applied twice.
1718 (shmedia_md_convert_frag): Always emit reloc for expression with
1719 global or weak symbol. Handle relaxation result for PC-relative
1720 expressions.
1721 (shmedia_md_estimate_size_before_relax): An expression with a weak
1722 or global symbol can not be relaxed. Break out tests for
1723 relaxable symbol into variable sym_relaxable.
1724 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
1725 UNDEF_MOVI)>: Break out any PC-relative expression and change
1726 relaxation type.
1727 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
1728 opjp.
1729 <case A_IMMS16>: Fix typo for initial minor relaxation type of
1730 MOVI expansion. If X_op_symbol of the immediate expression is
1731 set, make an expression symbol for the argument to frag_var.
1732 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
1733 relaxations.
1734 (END): Adjust for new relaxations.
1735 (md_relax_table): Add entries for new relaxations.
1736 2000-12-07 Ben Elliston <bje@redhat.com>
1737 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
1738 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1739 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
1740 SHORI operand offsets in PT/PTA/PTB expansions.
1741 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1742 Implement DataLabel semantics.
1743 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
1744 shmedia_frob_file_before_adjust.
1745 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
1746 (DATALABEL_SUFFIX): Define.
1747 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
1748 symbol list to update "datalabel" symbols to their main symbol
1749 counterparts.
1750 (shmedia_frob_file_before_adjust): New.
1751 (sh64_adjust_symtab): For remaining datalabel symbols, set to
1752 undefined and set STT_DATALABEL.
1753 (sh64_frob_label): Initialize TC symbol field.
1754 (sh64_consume_datalabel): Actually implement semantics. New
1755 parameter operandf, call it instead of expression.
1756 (sh64_exclude_symbol): New.
1757 * config/tc-sh64.h (md_parse_name): Pass on the function operand
1758 to sh64_consume_datalabel.
1759 (tc_symbol_new_hook): Define to tc_frob_symbol.
1760 (TC_SYMFIELD_TYPE): Define to symbolS *.
1761 (tc_frob_symbol): Define to call sh64_exclude_symbol.
1762 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
1763 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
1764 case.
1765 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
1766 generating dwarf2 debug information.
1767 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1768 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
1769 elf64-sh64 for the 64-bit ABI.
1770 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
1771 option.
1772 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1773 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
1774 case-insensitivity.
1775 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1776 * config/tc-sh64.c: Tweak comments, formatting and error messages.
1777 (enum sh64_abi_values): New type.
1778 (enum sh64_isa_values): New type.
1779 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
1780 (seen_shcompact_mode, seen_shmedia_mode): Delete.
1781 (sh64_abi): Replace shmedia_64.
1782 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
1783 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
1784 (s_sh64_mode): Check validity for this target.
1785 (sh64_target_format): Initialize defaults for ISA and ABI.
1786 Fallback to old object format if no SH64 ISA or ABI has been
1787 specified.
1788 * config/tc-sh.c (md_parse_option): Check combinations for errors.
1789 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
1790 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
1791 * config/tc-sh64.h: Fix typo in comment.
1792 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
1793 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
1794 <PT fixups for absolute values>: Size will be longest, not
1795 shortest.
1796 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
1797 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
1798 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
1799 and l1 to hold lowercase of two first characters. Change all
1800 remaining TO_LOWER to tolower.
1801 * config/tc-sh64.c (TO_LOWER): Delete.
1802 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
1803 (md_parse_name): Define.
1804 (sh64_consume_datalabel): Declare.
1805 (DOLLAR_DOT): Define.
1806 * config/tc-sh64.c (shmedia_parse_exp): New.
1807 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
1808 (shmedia_parse_reg): Remove const from src
1809 parameter.
1810 (shmedia_get_operands): Ditto for args parameter and ptr variable.
1811 (shmedia_md_assemble): Ditto for op_end variable.
1812 (shmedia_get_operand): Ditto for ptr parameter and src variable.
1813 Use shmedia_parse_exp, not parse_exp.
1814 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
1815 parameter. All callers changed.
1816 (shmedia_get_operand): Add shmedia_arg_type parameter. All
1817 callers changed.
1818 (shmedia_parse_reg): Put first two character in local variables.
1819 Use tolower, not TO_LOWER. If no register is found and argtype
1820 indicates a control register, scan shmedia_creg_table
1821 case-insensitive.
1822 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1823 * Makefile.am (CPU_TYPES): Add sh64.
1824 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
1825 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
1826 Regenerate dependencies.
1827 * Makefile.in: Regenerate.
1828 * configure.in: Add support for sh64-*-elf*.
1829 * configure: Regenerate.
1830 * config/tc-sh64.h: New.
1831 * config/tc-sh64.c: New.
1832 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
1833 .mode, .isa and .uaquad.
1834 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
1835 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
1836 [HAVE_SH64] (END): Define as 10.
1837 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
1838 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
1839 MOVI_64): Define.
1840 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
1841 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
1842 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
1843 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
1844 Define.
1845 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
1846 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
1847 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
1848 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
1849 SHmedia instructions. Handle state-change after switching to
1850 SHcompact.
1851 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
1852 (md_parse_option) [HAVE_SH64]: Parse new options.
1853 (md_show_usage) [HAVE_SH64]: Show usage of new options.
1854 (md_convert_frag) [HAVE_SH64] <default>: Call
1855 shmedia_md_convert_frag instead of abort.
1856 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
1857 BFD_RELOC_SH_SHMEDIA_CODE.
1858 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
1859 SHcompact or SHmedia code.
1860 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
1861 shmedia_md_apply_fix instead of abort.
1862 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
1863 result from calling shmedia_md_estimate_size_before_relax instead
1864 of calling abort.
1865 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
1866 do the work.
1867 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
1868 shmedia_init_reloc and do nothing more if it returns non-zero.
1869 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
1870 * po/POTFILES.in: Regenerate.
1871 * po/gas.pot: Regenerate.
1872
1873 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
1874
1875 * config/tc-sh.c (parse_at): Install the correct version of
1876 2002-02-04's patch.
1877
1878 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
1879 assume fixP->fx_subsy is non-NULL.
1880
1881 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1882
1883 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
1884 A_DISP_PC_ABS, and adjust it by -4.
1885 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
1886 expected.
1887 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
1888 the operand type is not A_DISP_PC_ABS.
1889
1890 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1891
1892 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
1893 common and weak symbols. Handle common and weak symbols as
1894 undefined symbols with regards to GREG handling and merging.
1895 (mmix_frob_file): Ditto.
1896
1897 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1898
1899 * configure.in (hppa-*-netbsd*): New target.
1900 * configure: Regenerate.
1901 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
1902
1903 2002-02-02 Alan Modra <amodra@bigpond.net.au>
1904
1905 * config/tc-v850.c: Add missing prototypes amd use old-style
1906 function definitions.
1907 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
1908 (sdata_section tdata_section, zdata_section, sbss_section,
1909 tbss_section, zbss_section, rosdata_section, rozdata_section,
1910 scommon_section, tcommon_section, zcommon_section,
1911 call_table_data_section, call_table_text_section): Delete.
1912 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1913 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
1914 v850_call_table_data, v850_call_table_text): Delete.
1915 (struct v850_seg_entry): New.
1916 (v850_seg_table): New.
1917 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
1918 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
1919 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
1920 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
1921 (do_v850_seg): New.
1922 (v850_seg): New.
1923 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
1924 recording of alignment.
1925 (md_pseudo_table): Use v850_seg.
1926 (md_begin): Don't init .call_table_data and .call_table_text here.
1927 Set v850_seg_table bss entry.
1928
1929 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1930
1931 Support on-demand global register allocation by passing on
1932 base-plus-offset relocs to the linker.
1933 * config/tc-mmix.c: Tweak and fix typos in comments.
1934 (allocate_undefined_gregs_in_linker): New variable.
1935 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
1936 (md_longopts): Add --linker-allocated-gregs.
1937 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
1938 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
1939 (md_show_usage): Update text for -x. Add text for
1940 --linker-allocated-gregs.
1941 (tc_gen_reloc): Derive default value for addend from val and
1942 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
1943 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
1944 GREG if allocate_undefined_gregs_in_linker.
1945 * doc/as.texinfo (Overview) <Target MMIX options>: Add
1946 --linker-allocated-gregs.
1947 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
1948 --linker-allocated-gregs. Mention that it's implied by -x.
1949 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
1950 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
1951
1952 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
1953
1954 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1955
1956 * Makefile.am: Run "make dep-am"
1957 * Makefile.in: Regenerate.
1958
1959 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1960
1961 * config/tc-or32.c: New file.
1962 * config/tc-or32.h: New file.
1963 * configure.in: Add support for or32 targets.
1964 * configure: Regenerate.
1965 * config/obj-coff.c: Add support for or32 targets.
1966 * config/obj-coff.h: Add support for or32 targets.
1967 * Makefile.am: Add support for or32 targets.
1968 * Makefile.in: Regenerate.
1969 * NEWS: Mention support for OpenRISC.
1970 * doc/Makefile.in: Regenerate.
1971 * po/POTFILES.in: Regenerate.
1972 * po/gas.pot: Regenerate.
1973
1974 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
1975
1976 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
1977 and mod.
1978
1979 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1980
1981 * config/tc-mips.c (tc_gen_reloc): Arrange for
1982 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
1983 their LO16 parts, even for ELF.
1984
1985 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
1986
1987 * config/tc-i386.c: Protect definitions of true and false
1988 from redefinition.
1989
1990 2002-01-28 Jakub Jelinek <jakub@redhat.com>
1991
1992 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
1993 made because of .weak, if they are neither defined nor used in any
1994 way.
1995
1996 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1997
1998 * configure: Regenerated.
1999
2000 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2001
2002 * doc/Makefile.am (install): Depend on install-info.
2003 * doc/Makefile.in: Regenerate.
2004
2005 2002-01-26 Nick Clifton <nick@redhat.com>
2006
2007 * po/fr.po: Updated version
2008
2009 2002-01-24 Kazu Hirata <kazu@hxi.com>
2010
2011 * config/tc-h8300.c (check_operand): Don't print a warning
2012 when a valid 24-bit address is given to a 16-bit address
2013 operand.
2014
2015 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2016
2017 * config/tc-sh.c (sh_elf_suffix): Removed.
2018 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
2019 sh_end_of_match, sh_parse_name): New functions.
2020 (sh_elf_cons): Simplify.
2021 (parse_exp): Reject misplaced PIC operands.
2022 (md_undefined_symbol): Simplify.
2023 (sh_fix_adjustable): Let @GOTOFF be adjusted.
2024 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
2025 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
2026 Complain if subsy remains at the end.
2027 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
2028 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
2029
2030 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
2031
2032 * config/tc-mn10300.c (xr_registers): Move `pc'...
2033 (other_registers): ... here.
2034
2035 2002-01-22 Alan Modra <amodra@bigpond.net.au>
2036
2037 * Makefile.am: Run "make dep-am".
2038 * Makefile.in: Regenerate.
2039 * gas/po/POTFILES.in: Regenerate.
2040
2041 2002-01-21 DJ Delorie <dj@redhat.com>
2042
2043 * config/obj-coff.c (obj_coff_init_stab_section): Make the
2044 stabstr_name allocation permanent, as it will be referenced from
2045 the section hash.
2046
2047 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2048
2049 * configure.in (ia64-*-netbsd*): New target.
2050 * configure: Regenerate.
2051
2052 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
2053
2054 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
2055 to @dots call.
2056 <Detailed description, ARM options>: Ditto.
2057 * doc/c-arm.texi (ARM Options): Ditto.
2058
2059 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2060
2061 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
2062 do_mia, do_mar and do_mra respectively.
2063 (do_mav_*): Renamed from do_c_*.
2064 (mav_reg_required_here, mav_parse_offset): Renamed from
2065 cirrus_reg_required_here and cirrus_parse_offset respectively.
2066 (MAV_MODE?): Renamed from CIRRUS_MODE?.
2067
2068 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2069 Keith Walker <keith.walker@arm.com>
2070
2071 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
2072 (insns): Add pattern for bxj instruction.
2073 (do_bxj): New function.
2074 (arm_cpus): Add arm926ej.
2075 (arm_archs): Add armv5tej.
2076
2077 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2078
2079 * doc/c-arm.texi: Add new fpe options to list of supported flags.
2080
2081 2002-01-19 Keith Walker <keith.walker@arm.com>
2082
2083 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
2084
2085 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2086
2087 * NEWS: Mention new ARM command-line options and VFP support.
2088
2089 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
2090 uses changed.
2091 (ARM_CEXT_MAVERICK): Similarly.
2092 (ARM_ANY): Now means any core instruction.
2093 (CPU_DEFAULT): Default to ARM_ANY.
2094 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
2095 (pic_code): Declare for all object types. Make type int.
2096 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
2097 (march_fpu_opt, mfpu_opt): Declare.
2098 (md_longopts): Tidy up conditional definitions.
2099 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
2100 (arm_long_opts): New tables.
2101 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
2102 (arm_parse_extension): New function.
2103 (md_parse_option): Rewrite using new table-driven system.
2104 (md_show_usage): Use new table-driven system.
2105 (md_begin): Calculate cpu_variant from command line option data.
2106 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
2107 command-line options.
2108 * doc/c-arm.texi: Likewise.
2109
2110 2002-01-18 Andreas Jaeger <aj@suse.de>
2111
2112 * as.c (parse_args): Update year.
2113
2114 2002-01-17 Timothy Wall <twall@alum.mit.edu>
2115
2116 * config/tc-tic54x.c (encode_address): Add a more informative
2117 warning about incorrect syntax.
2118
2119 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2120
2121 * po/gas.pot: Regenerate.
2122
2123 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2124
2125 * macro.c (get_any_string): Add no-c-format comment to prevent
2126 confusion when translating string.
2127 * gasp.c (get_any_string): Add no-c-format comment to prevent
2128 confusion when translating string.
2129
2130 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2131 Johannes Stezenbach <js@convergence.de>
2132 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
2133 matched before the shorter ones.
2134 (my_getSmallParser): Fix handling of nested parentheses in
2135 percent_op's. Code cleanup.
2136 (my_getPercentOp): New function, code from my_getSmallParser.
2137 (my_getSmallExpression): Fix handling of closing parentheses.
2138 Code cleanup. Better comments.
2139
2140 2002-01-16 Nick Clifton <nickc@redhat.com>
2141
2142 po/tr.po: New file: Turkish translation.
2143 configure.in (LINGUAS): Add "tr".
2144 configure: Regenerate.
2145
2146 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
2147
2148 Support for VFP instructions
2149 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
2150 (cp_address_required_here): New argument wb_ok. When false, do not
2151 accept write-back forms of addressing. Change all callers.
2152 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
2153 (FPU_VFP_EXT_V2): Define.
2154 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
2155 Define in terms of above.
2156 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
2157 (vfp_reg): New struct.
2158 (vfp_regs): New array of registers.
2159 (insns): Add VFP instructions.
2160 (sn_table): New array of VFP single-precision register names.
2161 (dn_table): New array of VFP double-precision register names.
2162 (all_reg_maps): Add the new register tables.
2163 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
2164 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
2165 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
2166 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
2167 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
2168 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
2169 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
2170 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
2171 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
2172 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
2173 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
2174 (do_vfp_sp_dp_cvt): New functions.
2175 (md_begin): Set soft-float flag for appropriate VFP work.
2176 (md_atof): Handle VFP-format doubles.
2177 (md_parse_option): Handle VFP command-line options.
2178 (md_show_usage): Display VFP command-line options.
2179
2180 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
2181
2182 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
2183 various command line options.
2184
2185 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2186
2187 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
2188 vtinherit relocs.
2189 (xstormy16_md_apply_fix3): Do not return a value.
2190
2191 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2192
2193 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
2194 the -EL/-EB option that matches the target's endianness.
2195 (md_parse_option): Likewise.
2196
2197 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2198
2199 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
2200 is not dependent on ARM_BI_ENDIAN.
2201
2202 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2203
2204 * tc-arm.c (all error messages): Normalize capitalization of messages.
2205
2206 * tc-arm.h (md_operand): Delete define.
2207 * tc-arm.c (in_my_get_expression): New static variable.
2208 (my_get_expression): Set and clear it.
2209 (md_operand): New function. If called from my_get_expression
2210 put the error in inst.error.
2211 (output_inst): Now takes argument of instruction being assembled.
2212 Print it out with any error message.
2213 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2214 with '=' syntax.
2215 (end_of_line): Don't update inst.error if it is already set.
2216
2217 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2218
2219 * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
2220 op that can be translated into a mvn instruction.
2221
2222 2002-01-11 Steve Ellcey <sje@cup.hp.com>
2223
2224 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2225 setting default md.flags.
2226 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
2227 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
2228 * gas/config/tc-ia64.c (setup_unwind_header): Add support
2229 for 32 bit unwind info blocks.
2230 (generate_unwind_image): Add support for different types
2231 of unwind images (32 bits and/or big-endian).
2232 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2233 (ia64_target_format): Add support for hpux target formats.
2234 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2235 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2236 SHT_FINI_ARRAY elf section types.
2237
2238 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
2239
2240 * tc-arm.c (struct reg_entry): Move before prototypes.
2241 (int_register, cp_register, fp_register): Delete.
2242 (reg_table): Delete. Replaced with ...
2243 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2244 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2245 (mav_dspsc_table): ... one table per register set.
2246 (arm_reg_hsh): Delete.
2247 (struct reg_map): New structure.
2248 (all_reg_maps): New array.
2249 (enum arm_reg_type): New enums.
2250 (build_reg_hsh): New function.
2251 (insert_reg_alias): Use hash table passed by caller. Adjust all
2252 callers.
2253 (create_register_alias): New function, split out from ...
2254 (md_assemble): ... here.
2255 (md_begin): Build new register hash tables.
2256 (arm_reg_parse): New argument for the hash table to search. Adjust all
2257 callers.
2258 (arm_reg_parse_any): New function.
2259 (co_proc_number): Look up the processor number in the processor hash
2260 table.
2261 (cirrus_regtype): Delete.
2262 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2263 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2264 (ARM_EXT_MAVERICKsc_register): Delete.
2265 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2266 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2267 functions.
2268 (do_c_triple_4, do_c_triple_5): Delete.
2269 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2270 (do_c_quad_6): Delete.
2271 (do_c_quad_6[ab]): New functions.
2272 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2273 arguments to use new register parsing methods.
2274 (cirrus_reg_required_here): Likewise.
2275 (insns): Reclassify cirrus maverick worker functions.
2276 (cirrus_valid_reg): Delete.
2277
2278 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2279
2280 * configure.in (sh*le): Set cpu_type=sh and endian=little.
2281 (sh*-*-netbsdelf*): New target.
2282 * configure: Regenerate.
2283 * tc-sh.h: Update copyright years.
2284 (TARGET_FORMAT): Add version for TE_NetBSD.
2285
2286 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2287
2288 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2289 negative.
2290
2291 2002-01-06 Alan Modra <amodra@bigpond.net.au>
2292
2293 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2294 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2295
2296 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
2297
2298 * tc-mips.c (mips_cprestore_valid): New flag.
2299 (mips_frame_reg_valid): New flag.
2300 (macro) [M_JAL_2]: Check both flags.
2301 [M_JAL_A]: Likewise.
2302 (s_cprestore): Set mips_cprestore_valid.
2303 (tc_get_register): If setting mips_frame_reg, set
2304 mips_frame_reg_valid and clear mips_cprestore_valid.
2305 (s_mips_ent): Clear both flags.
2306 (s_mips_end): Clear both flags.
2307
2308 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2309
2310 * write.c (write_object_file): Make use of bfd_section_list_remove.
2311 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
2312 * config/tc-mmix.c (mmix_frob_file): Likewise.
2313
2314 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2315
2316 * configure.in (i386-*-netbsdelf*): Collapse target into...
2317 (i386-*-netbsd*): ...this. Add support for x86-64.
2318 * configure: Regenerated.
2319
2320 2002-01-03 matthew green <mrg@redhat.com>
2321
2322 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2323
2324 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2325
2326 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2327 NULL frag link.
2328
2329 For older changes see ChangeLog-0001
2330 \f
2331 Local Variables:
2332 mode: change-log
2333 left-margin: 8
2334 fill-column: 74
2335 version-control: never
2336 End:
This page took 0.105819 seconds and 5 git commands to generate.