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