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