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