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