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