1 2001-01-12 Nick Clifton <nickc@redhat.com>
3 * as.c (print_args): Update copyright date to 2001.
5 2001-01-12 Peter Targett <peter.targett@arccores.com>
7 * doc/c-arc.texi: New file.
8 Some sections to be expanded.
10 2001-01-12 Alan Modra <alan@linuxcare.com.au>
12 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
13 (md_parse_option): Always accept "--32".
15 2001-01-11 Peter Targett <peter.targett@arccores.com>
17 * as.h (TC_ARC): Ensure struc-symbol.h included.
18 * as.c (dwarf2dbg.h): Include to remove implicit declaration
20 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
21 (TARGET_SYMBOL_FIELDS) added.
23 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
24 * doc/c-arc.texi: New file.
25 Some sections to be expanded.
26 * doc/as.texinfo: Update command-line options.
27 Removed outdated text for ARC dependant features, instead include
30 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
31 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
34 * config/tc-arc.c: New updated configuration for
35 ARC, including selection of core variants, and extensibility of
36 instructions, registers etc. through directives.
38 * config/tc-arc.c (arc_extinst): Minor corrections for
40 (arc_common) Likewise. Make alignment argument optional for local
41 symbols also, with default of zero.
43 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
45 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
46 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
47 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
48 and fix_new_exp() instead.
49 (md_convert_frag): For indexed post byte use the symbol value
50 rather than the displacement.
51 (md_relax_table): Fix indexed offset relax.
53 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
55 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
57 (relaxable_symbol): New function.
59 2001-01-11 Andreas Jaeger <aj@suse.de>
61 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
64 2001-01-10 Nick Clifton <nickc@redhat.com>
66 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
67 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
69 2001-01-10 Nick Clifton <nickc@redhat.com>
71 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
72 character used to dollar local symbols.
73 (LOCAL_LABEL_CHAR): New constant - the magic character used to
75 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
76 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
79 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
80 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
81 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
83 2001-01-08 Bo Thorsen <bo@suse.de>
85 * config/tc-i386.c (i386_immediate, i386_displacement):
88 2001-01-07 Ian Lance Taylor <ian@zembu.com>
90 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
93 2001-01-07 Philip Blundell <philb@gnu.org>
95 * doc/as.texinfo (Bug Reporting): Update email address for
99 Sat Jan 6 13:33:10 MET 2001 Jan Hubicka <jh@suse.cz>
101 * configure.in: Define DEFAULT_ARCH for i386.
102 * tc-i386.c (md_assemble): Return after the error message;
103 move testing for 64bit operands to proper place.
105 2001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
107 * doc/as.texinfo: Document '#' as comment character for i386 and
108 x86_64. Add AMD x86-64 into menu of machine dependent information.
110 * doc/c-i386.texi: Document x86_64 extensions.
112 Fri Jan 5 13:26:42 MET 2001 Jan Hubicka <jh@suse.cz>
114 * tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
116 Thu Jan 4 22:25:26 MET 2001 Jan Hubicka <jh@suse.cz>
118 * tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
119 * NEWS: Add note about Pentium4 support.
121 Wed Jan 3 17:26:32 MET 2001 Jan Hubicka <jh@suse.cz>
123 * tc-i387.c (pi, pte, pt): Update.
124 (type_names): Add new types.
126 Wed Jan 3 16:26:52 MET 2001 Jan Hubicka <jh@suse.cz>
128 * tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
129 CpuUnknown): Renumber
130 (CpuP4, CpuSSE2): New.
131 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
133 2001-01-03 Philip Blundell <pb@futuretv.com>
135 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
137 (alpha_fix_adjustable): Likewise.
138 (md_apply_fix): Likewise.
140 2000-12-31 H.J. Lu <hjl@gnu.org>
142 * listing.c (listing_message): Allocate string only if it is
145 * configure: Rebuild.
147 2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
149 * doc/internals.texi (Relaxing with a table) <after relaxation>:
150 Point out caveats with generating fixups for the opcode in a frag.
152 Sat Dec 30 19:02:48 MET 2000 Jan Hubicka <jh@suse.cz>
154 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
157 2000-12-29 H.J. Lu <hjl@gnu.org>
159 * listing.c (calc_hex): Print the variable part only if the
160 fragment type is rs_fill.
162 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
164 * doc/internals.texi (tc_conditional_pseudoop,
165 TC_LINKRELAX_FIXUP): Fix typos.
167 2000-12-28 Richard Henderson <rth@redhat.com>
169 * write.c (subsegs_finish): Fix thinko last change -- don't
170 "optimize" the alignment == 0 case.
172 2000-12-28 Richard Henderson <rth@redhat.com>
174 * as.h (rs_align_test): New.
175 * frags.c (NOP_OPCODE): Move default from read.c.
176 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
177 (frag_align_code): New.
178 * frags.h (frag_align_code): Declare.
179 * read.c (NOP_OPCODE): Remove.
180 (do_align): Use frag_align_code.
181 * write.c (NOP_OPCODE): Remove.
182 (get_recorded_alignment): New.
183 (cvt_frag_to_fill): Handle rs_align_test.
184 (relax_segment): Likewise.
185 (subsegs_finish): Align last subseg in section to the
186 section alignment. Use frag_align_code.
187 * write.h (get_recorded_alignment): Declare.
188 * config/obj-coff.c (size_section): Handle rs_align_test.
189 (fill_section, fixup_mdeps): Likewise.
190 (write_object_file): Use frag_align_code.
192 * config/tc-alpha.c (alpha_align): Use frag_align_code.
193 (alpha_handle_align): New.
194 * config/tc-alpha.h (HANDLE_ALIGN): New.
195 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
197 * config/tc-i386.h (md_do_align): Use frag_align_code.
198 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
200 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
201 (ia64_handle_align): New.
202 * config/tc-ia64.h (HANDLE_ALIGN): New.
203 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
205 * config/tc-m32r.c (m32r_do_align): Remove.
206 (m32r_handle_align): New.
207 (fill_insn): Use frag_align_code.
208 * config/tc-m32r.h (md_do_align): Remove.
209 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
210 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
211 * config/tc-mips.c, config/tc-mips.h: Similarly.
213 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
214 (sh_handle_align): Likewise. Handle rs_align_code.
215 (sh_do_align): Remove.
216 * config/tc-sh.h (md_do_align): Remove.
217 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
219 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
220 (sparc_handle_align): Likewise. Handle rs_align_code.
221 * config/tc-sparc.h (md_do_align): Remove.
222 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
224 2000-12-22 DJ Delorie <dj@redhat.com>
226 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
227 when we assemble the first half of a pair.
229 2000-12-22 H.J. Lu <hjl@gnu.org>
231 * config/tc-i386.c (reloc): Update the macro for non-bfd
233 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
235 2000-12-22 H.J. Lu <hjl@gnu.org>
237 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
239 Wed Dec 20 14:21:22 MET 2000 Jan Hubicka <jh@suse.cz>
241 * tc-i386.h (i386_target_format): Define even for ELFs.
242 (QWORD_MNEM_SUFFIX): New macro.
243 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
245 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
246 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
248 (Size64, No_qSuf, NoRex64, Rex64): New macros.
249 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
250 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
251 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
252 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
254 (Reg, WordReg): Add Reg64.
255 (Imm): Add Imm32S and Imm64.
257 (Disp): Add Disp64 and Disp32S.
258 (AnyMem): Add Disp32S.
259 (RegRex, RegRex64): New macros.
260 (rex_byte): New type.
261 * tc-i386.c (set_16bit_code_flag): Kill.
262 (fits_in_unsigned_long, fits_in_signed_long): New functions.
263 (reloc): New parameter "signed"; support x86_64.
264 (set_code_flag): New.
265 (DEFAULT_ARCH): New macro; default to "i386".
266 (default_arch): New static variable.
267 (struct _i386_insn): New fields Operand_PCrel; rex.
268 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
269 (flag_code): New enum and static variable.
270 (use_rela_relocations): New static variable.
271 (flag_code_names): New static variable.
272 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
273 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
275 (i386_align_code): Return plain "nop" for x86_64.
276 (mode_from_disp_size): Support Disp32S.
277 (smallest_imm_type): Support Imm32S and Imm64.
278 (offset_in_range): Support size of 8.
279 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
280 (md_pseudo_table): Add "code64"; use set_code_flat.
281 (md_begin): Emit sane error message on hash failure.
282 (tc_i386_fix_adjustable): Support x86_64 relocations.
283 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
284 instructions supported on particular arch just partially,
285 output of 64bit immediates, handling of Imm32S and Disp32S type.
286 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
287 (i386_displacement): Likewise.
288 (i386_index_check): Cleanup; support 64bit addresses.
289 (md_apply_fix3): Support x86_64 relocation and rela.
290 (md_longopts): Add "32" and "64".
291 (md_parse_option): Add OPTION_32 and OPTION_64.
292 (i386_target_format): Call even for ELFs; choose between
293 elf64-x86-64 and elf32-i386.
294 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
295 (tc_gen_reloc): Support rela relocations and x86_64.
296 (intel_e09_1): Support QWORD.
298 2000-12-15 Diego Novillo <dnovillo@redhat.com>
300 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
301 it's not an offset expression.
302 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
303 keep the braces '[' and ']' in the output string.
304 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
305 != FLAT. There is no such op_modifier.
307 2000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
309 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
312 2000-12-13 Kazu Hirata <kazu@hxi.com>
314 * as.h: Fix formatting.
316 * dwarf2dbg.c: Likewise.
317 * input-scrub.c: Likewise.
320 2000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
322 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
323 configure: Regenerate.
325 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
327 * dwarf2dbg.c: #include <limits.h> only if it exists.
329 2000-12-13 Rodney Brown <RodneyBrown@mynd.com>
331 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
332 (md_apply_fix): Here too.
334 2000-12-12 Jim Wilson <wilson@redhat.com>
336 * config/tc-ia64.h (ia64_init): Add prototype.
338 2000-12-12 H.J. Lu <hjl@gnu.org>
340 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
342 * read.h (outputting_stabs_line_debug): Change it to int.
343 * stabs.c (outputting_stabs_line_debug): Likewise.
345 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
347 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
348 the address of a function result.
350 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
352 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
353 (md_assemble): Call dwarf2_emit_insn.
354 (shlib): Fix typo SHILB -> SHLIB.
355 (md_parse_option): Likewise.
356 (ppc_elf_validate_fix): Likewise:
357 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
359 2000-12-12 Nick Clifton <nickc@redhat.com>
361 * cgen.h: Fix formatting.
362 * input-scrub.c: Fix formatting.
363 * macro.c: Fix formatting.
364 * config/tc-mips.c: Fix formatting.
365 * doc/c-mips.texi: Fix formatting.
367 Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
369 * tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
370 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
372 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
374 * tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
377 * i386.h (*_Suf): Remove No_dSuf.
378 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
380 (i386_optab): Remove 'd' in the suffixes.
382 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
384 * config/tc-i386.c (T_SHORT): Undefine before defining.
386 2000-12-05 Kazu Hirata <kazu@hxi.com>
388 * config/tc-mips.c: Fix formatting.
390 2000-12-04 Matthew Hiller <hiller@redhat.com>
392 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
393 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
394 (md_show_usage): Ditto.
395 (md_parse_option): Ditto.
396 (d10v_cleanup): Writes pending instruction only if
397 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
398 Fix compile time warning messages.
400 * doc/c-d10v.texi: Documents new options.
402 2000-12-04 Matthew Hiller <hiller@redhat.com>
404 * stabs.c (outputting_stabs_line_debug): New variable.
405 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
406 function entry and unset at function exit.
408 * read.h (outputting_stabs_line_debug): New extern declaration.
410 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
412 * dwarf2dbg.c: Fix compile time warning messages.
414 2000-12-03 Kazu Hirata <kazu@hxi.com>
416 * config/tc-a29k.c: Fix formatting.
417 * config/tc-alpha.c: Likewise.
418 * config/tc-arm.c: Likewise.
419 * config/tc-cris.c: Likewise.
420 * config/tc-hppa.c: Likewise.
421 * config/tc-i370.c: Likewise.
422 * config/tc-i386.c: Likewise.
423 * config/tc-i860.c: Likewise.
424 * config/tc-i960.c: Likewise.
425 * config/tc-ia64.c: Likewise.
426 * config/tc-m68hc11.c: Likewise.
427 * config/tc-m68k.c: Likewise.
428 * config/tc-m88k.c: Likewise.
429 * config/tc-pj.c: Likewise.
430 * config/tc-ppc.c: Likewise.
431 * config/tc-sh.c: Likewise.
432 * config/tc-sparc.c: Likewise.
433 * config/tc-tahoe.c: Likewise.
434 * config/tc-vax.c: Likewise.
436 2000-12-01 Chris Demetriou <cgd@sibyte.com>
438 * config/tc-mips.c (mips_ip): When calculating offsets,
439 don't accept as constant the difference between the
440 addresses of symbols in two different sections.
442 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
444 (validate_mips_insn): Likewise. Also, update 'B' operand
445 specifier to use OP_*_CODE20 constants and delete 'm' operand
447 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
448 operand specifiers. Change warning generated by 'B' operand
449 specifier to reflect its new multi-purpose usage.
451 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
452 -1, and update comment.
453 (file_mips_isa): Likewise.
454 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
455 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
456 ISA_* constants rather than hard-coded numbers.
457 (mips_cpu_info): New structure.
458 (mips_cpu_info_table): New table describing CPU and ISA names
460 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
461 mips_cpu_info_from_cpu): New functions.
462 (mips_isa_to_str): New function to get string for ISA name.
463 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
465 (md_begin): Redo CPU and ISA selection logic, using
466 mips_cpu_info_from_*. Convert to use ISA_* constants rather
467 than hard-coded numbers.
468 (append_insn, mips_emit_delays, macro, macro2): Convert to use
469 ISA_* constants rather than hard-coded numbers.
470 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
471 (md_longopts): Delete OPTION_NO_MIPS32.
472 (md_parse_option): Convert to use ISA_* constants rather than
473 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
474 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
475 to use strcasecmp to recognize "default" and to use
476 mips_cpu_info_from_name to get CPU numbers from argument.
477 (md_show_usage): Move -mips32 so it's with the rest of the ISA
478 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
480 (s_mipsset): Accept ISA value 32.
481 * doc/as.texinfo: Clean up MIPS options summary slightly,
482 remove -no-mips32. Add note about -mips4 and -mips32
483 specifying those ISA levels. Delete -mips32 and -no-mips32
484 cpu flag descriptions.
485 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
486 up the supported CPU switch list, and replace 4Kc, 4Km, and
487 4Kp entries with a single mips32-4k entry. Note that you can
490 * tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
492 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
494 (md_parse_option): Add cases for OPTION_MIPS5 and
496 (md_show_usage): Mention -mips5 and -mips64 arguments.
497 (s_mipsset): Add cases for MIPS5 and MIPS64.
498 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
500 * doc/as.texinfo: Mention -mips5 and -mips64 options
502 * doc/c-mips.texi: Likewise. Also update introduction
503 and ".set" usage information.
505 * config/tc-mips.c (md_show_usage): Add "sb1" to the
507 (mips_cpu_info_table): Add SB-1 entries.
508 * doc/c-mips.texi: Add "sb1" to the list of CPUs
509 known to the -mcpu option.
511 * doc/as.texinfo: Correct description of MIPS -mcpu
512 option, by copying some of the text from doc/c-mips.texi.
514 2000-12-01 Joel Sherrill <joel@OARcorp.com>
516 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
518 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
519 (sparc*-*-rtems*): Switched from a.out to ELF.
520 * configure: Regenerate.
521 * config.in: Regenerate.
522 * Makefile.in: Regenerate.
523 * aclocal.m4: Regenerate.
524 * po/gas.pot: Regenerate.
526 2000-11-30 Philip Blundell <pb@futuretv.com>
528 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
529 even in non BFD_ASSEMBLER case.
531 2000-11-30 Diego Novillo <dnovillo@redhat.com>
533 * tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
536 2000-11-29 Richard Henderson <rth@redhat.com>
538 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
539 until dwarf2_finish; use relaxation to get cross-fragment offsets;
540 thread multiple subsegments properly; handle multiple code
541 sections properly; emit proper compilation unit info for assembler
544 * as.h (enum _relax_state): Add rs_dwarf2dbg.
545 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
546 (dwarf2dbg_estimate_size_before_relax): Declare.
547 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
548 * write.c: Include dwarf2dbg.h.
549 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
550 (relax_segment): Likewise.
552 2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
554 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
555 jump>: Use as_bad_where instead of as_bad. Tweak error message
556 accordingly. Stabilize frag by updating fix part and resetting
558 <undefined symbol, unconditional jump>: Ditto.
559 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
560 indexing is_end_of_line[].
561 (md_assemble): Initialize size to 0.
562 (md_section_align): Mark parameter seg as unused.
563 (parse_reg): Parse names case-insensitively.
565 2000-11-28 Kazu Hirata <kazu@hxi.com>
567 * config/obj-aout.h: Fix formatting.
568 * config/obj-bout.h: Likewise.
569 * config/obj-coff.c: Likewise.
570 * config/obj-coff.h: Likewise.
571 * config/obj-elf.h: Likewise.
572 * config/obj-som.h: Likewise.
573 * config/obj-vms.c: Likewise.
574 * config/obj-vms.h: Likewise.
575 * config/tc-h8300.h: Likewise.
576 * config/tc-ns32k.h: Likewise.
577 * config/tc-sparc.h: Likewise.
578 * config/tc-tic54x.h: Likewise.
579 * config/tc-z8k.h: Likewise.
581 2000-11-28 Nick Clifton <nickc@redhat.com>
583 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
584 License is present in the sources, but not the output, and
585 also available from the GNU website.
586 (GNU Free Documentation License): Comment out this section.
588 2000-11-28 Hans-Peter Nilsson <hp@axis.com>
590 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
591 targets. Remove i860 from valid a.out targets.
592 * Makefile.in: Regenerate.
594 * config/tc-cris.c: Include dwarf2dbg.h.
595 (md_pseudo_table): Add .file and .loc.
596 (md_assemble): Call dwarf2_emit_insn if generating ELF.
597 (s_cris_file, s_cris_loc): New.
598 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
599 * Makefile.am: Regenerate dependencies.
600 * Makefile.in: Regenerate.
602 2000-11-28 Alan Modra <alan@linuxcare.com.au>
604 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
605 (MRI_MUL_PRECEDENCE): Likewise.
606 (op_rank): Fix a comment typo.
608 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
610 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
612 (get_operand): Fix analysis for movw/movb instructions.
614 2000-11-24 Nick Clifton <nickc@redhat.com>
616 * configure.in (xscale-elf): Add target.
617 (xscale-coff): Add target.
618 * configure: Regenerate.
620 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
622 (ARM_EXT_XSCALE): New ARM architecture extension.
623 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
624 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
625 (ARM_THUMB): Rename to ARM_EXT_THUMB.
626 (ARM_ARCH_V4): Remove processor from architecture.
627 (ARM_ARCH_3M): New architecutre definition.
628 (ARM_ARCH_V5TE): New architecutre definition.
629 (ARM_ARCH_XSCALE): New architecutre definition.
630 (CPU_DEFAULT): Allow to be defaulted to XScale.
631 (atpcs): New boolean variable.
632 (ldr_flags): Support 'd' flag for double word loads.
633 (str_flags): Support 'd' flag for double word stored.
634 (do_mia): New function.
635 (do_mar): New function.
636 (do_mra): New function.
637 (do_pld): New function.
638 (do_ldrd): New function.
639 (do_blx): New function.
640 (do_bkpt): New function.
641 (do_clz): New function.
642 (do_lstc2): New function.
643 (do_cdp2): New function.
644 (do_t_blx): New function.
645 (do_t_bkpt): New function.
646 (do_smla): New function.
647 (do_smlal): New function.
648 (do_smul): New function.
649 (do_qadd): New function.
650 (do_co_reg2c): New function.
651 (LONGEST_INSN): Redefine to 7.
653 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
654 command line switches.
656 2000-11-22 Jim Wilson <wilson@redhat.com>
658 * config/tc-ia64.c (pseudo_func): Add missing initializers.
659 (struct rsrc): Make line unsigned.
660 (gr_values): Add missing initializer.
661 (SLOT_NUM_NOT_SET): Add unsigned cast.
662 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
663 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
664 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
665 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
666 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
667 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
668 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
669 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
670 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
671 Add ATTRIBUTE_UNUSED to unused parameters.
672 (convert_expr_to_ab_reg): Add parens.
673 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
674 (dot_prologue): Initialize grsave when declared.
675 (md_pseudo_table): Add missing initializers.
676 (operand_match): Add casts to bfd_vma.
677 (emit_one_bundle): Delete unused local prev. Make required_template
679 (specify_resource): Cast i to unsigned.
680 (note_register_values): Use fprintf_vma.
681 (print_dependency): Likewise.
683 2000-11-21 Jim Wilson <wilson@redhat.com>
685 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
686 for unwind info section.
687 (dot_endp): Likewise for unwind section.
689 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
692 2000-11-21 Jakub Jelinek <jakub@redhat.com>
694 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
695 (output_insn): Call dwarf2_emit_insn.
696 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
698 2000-11-17 Richard Henderson <rth@redhat.com>
700 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
701 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
702 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
704 2000-11-17 Nick Clifton <nickc@redhat.com>
706 * config/tc-arm.c (md_pseudo_table): Add support for .line and
709 2000-11-17 Richard Henderson <rth@redhat.com>
711 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
713 2000-11-17 Richard Henderson <rth@redhat.com>
715 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
716 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
717 tri-state definition of alpha_flag_mdebug.
718 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
719 (s_alpha_file): Store first .file directive.
721 (md_pseudo_table): Add stabs and stabn.
723 2000-11-17 Richard Henderson <rth@redhat.com>
725 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
727 2000-11-17 Richard Henderson <rth@redhat.com>
729 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
730 (main): Call dwarf2_finish.
731 * as.h (debug_type): Clarify documentation of the meaning
733 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
734 (print_stats): Fix parenthesis problem.
735 (now_subseg_size): New.
736 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
737 (dwarf2_directive_file): Don't set debug_type.
738 (dwarf2_where): Honor DEBUG_DWARF2 first.
739 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
740 do nothing if not emitting dwarf2 debug info, or no work.
741 * dwarf2dbg.h (dwarf2_emit_insn): Update.
742 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
743 (ecoff_new_file): Likewise.
744 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
745 commentary wrt dwarf2.
747 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
748 ATTRIBUTE_UNUSED as needed.
749 (emit_insn): Call dwarf2_emit_insn.
752 (s_alpha_coff_wrapper): Don't handle them.
753 (md_pseudo_table): Update for .file and .loc.
754 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
756 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
757 don't protect with debug_type.
758 * config/tc-hppa.c (md_assemble): Likewise.
759 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
760 * config/tc-mn10300.c (md_assemble): Likewise.
761 * config/tc-sh.c (md_assemble): Likewise.
762 * config/tc-v850.c (md_assemble): Likewise.
764 * config/tc-arm.c (arm_end_of_source): Remove.
765 * config/tc-hppa.c (pa_end_of_source): Remove.
766 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
767 * config/tc-mn10300.c (mn10300_finalize): Remove.
768 * config/tc-sh.c (sh_finalize): Remove.
769 * config/tc-v850.c (sh_finalize): Remove.
771 * config/tc-arm.h (md_end): Remove.
772 * config/tc-hppa.h (md_end): Remove.
773 (DWARF2_LINE_MIN_INSN_LENGTH): New.
774 * config/tc-m68hc11.h (md_end): Remove.
775 * config/tc-mn10300.h (md_end): Remove.
776 * config/tc-sh.h (md_end): Remove.
777 * config/tc-v850.h (md_end): Remove.
779 * config/tc-ia64.c (emit_one_bundle): Don't protect
780 dwarf2 bits with debug_type.
781 (md_assemble): Likewise.
782 (ia64_end_of_source): Don't call dwarf2_finish.
784 2000-11-16 Jim Wilson <wilson@redhat.com>
786 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
787 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
790 2000-11-16 H.J. Lu <hjl@gnu.org>
792 * config/obj-elf.c (obj_elf_symver): Don't check the missing
795 2000-11-15 Kazu Hirata <kazu@hxi.com>
797 * config/tc-tic30.c: Fix formatting.
798 * config/tc-tic80.c: Likewise.
799 * config/tc-v850.c: Likewise.
800 * config/tc-vax.c: Likewise.
801 * config/tc-w65.c: Likewise.
802 * config/tc-z8k.c: Likewise.
804 2000-11-14 DJ Delorie <dj@redhat.com>
806 * config/tc-v850.c: Support dwarf2.
807 * config/tc-v850.h: Ditto.
809 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
810 parse_cons_expression_v850 to initialize hold_cons_reloc.
812 2000-11-15 Bernd Schmidt <bernds@redhat.com>
814 * tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
815 (errata_nops_necessary_p): New function.
816 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
819 2000-11-14 Jim Wilson <wilson@redhat.com>
821 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
822 return little endian bfd formats.
824 2000-11-14 Kazu Hirata <kazu@hxi.com>
826 * config/aout_gnu.h: Fix formatting.
827 * config/atof-vax.c: Likewise.
828 * config/m68k-parse.h: Likewise.
829 * config/m88k-opcode.h: Likewise.
830 * config/obj-elf.c: Likewise.
831 * config/tc-arm.c: Likewise.
832 * config/tc-cris.c: Likewise.
833 * config/tc-i386.c: Likewise.
834 * config/tc-ia64.c: Likewise.
835 * config/tc-mn10300.c: Likewise.
836 * config/te-386bsd.h: Likewise.
837 * config/te-hppa.h: Likewise.
838 * config/te-nbsd.h: Likewise.
839 * config/te-ppcnw.h: Likewise.
840 * config/te-sparcaout.h: Likewise.
841 * config/te-tmips.h: Likewise.
842 * config/vax-inst.h: Likewise.
843 * config/vms-conf.h: Likewise.
845 2000-11-14 Jakub Jelinek <jakub@redhat.com>
847 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
849 2000-11-13 H.J. Lu <hjl@gnu.org>
851 * config/obj-elf.c (elf_frob_symbol): Support
852 ".symver name,name2@@@nodename".
853 (elf_frob_file_before_adjust): Likewise.
855 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
856 and ".symver name,name2@@@nodename".
859 2000-11-12 H.J. Lu (hjl@gnu.org)
861 * config/obj-elf.c (obj_elf_symver): Check missing version
864 2000-11-12 H.J. Lu (hjl@gnu.org)
866 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
867 instead of bfd_vma for non-bfd assemblers.
869 2000-11-09 Kazu Hirata <kazu@hxi.com>
871 * itbl-ops.c: Fix comment typos.
873 2000-11-08 Jim Wilson <wilson@redhat.com>
875 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
876 (struct unwind): Add next_slot_frag field.
877 (slot_index): New parameters slot_frag and first_frag. Add code
878 to add in frag sizes when different. Add comments.
879 (fixup_unw_records): New locals first_frag and last_frag. Pass new
880 arguments to slot_index.
881 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
882 loop end. Set next_slot_frag field.
884 2000-11-07 H.J. Lu <hjl@gnu.org>
886 * doc/as.texinfo (.symver): Updated for versioned symbol
889 * obj.h (format_ops): Add the frob_file_before_adjust field.
891 * config/obj-aout.c (aout_format_ops): Set the
892 frob_file_before_adjust field to 0.
893 * config/obj-coff.c (coff_format_ops): Likewise.
894 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
896 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
898 (elf_frob_file_before_adjust): New function to remove unneeded
899 versioned symbols from the symbol table.
900 (elf_format_ops): Set the frob_file_before_adjust field to
901 elf_frob_file_before_adjust.
903 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
906 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
908 2000-11-07 Peter Targett <peter.targett@arccores.com>
910 * gas/config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
912 * gas/config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
913 Fix compile time warning messages.
915 2000-11-07 Nick Clifton <nickc@redhat.com>
917 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
918 buffer in order to avoid buffer overflows.
920 2000-11-06 Steve Ellcey <sje@cup.hp.com>
922 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
923 Change M to m for -milp32 or -mlp64 to match gcc.
924 (dot_endp): Use bytes_per_address instead of 8.
925 (emit_one_bundle): Use number_to_chars_littleendian instead of
927 (fix_insn): Likewise.
928 (ia64_init): New function.
929 (ia64_target_format): New function.
930 (md_begin): Set endianness, arch, and machine as appropriate.
931 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
932 Make these macros depend on TE_HPUX macro.
933 (TARGET_FORMAT): Define.
934 (HOST_SPECIAL_INIT): Define.
935 * config/te-hpux.h: New file.
936 * configure.in: Add "ia64-*-hpux*" target to configure.
937 * configure: Regenerate.
939 2000-11-06 Kazu Hirata <kazu@hxi.com>
941 * as.c: Fix formatting.
942 * dwarf2dbg.c: Likewise.
943 * input-file.c: Likewise.
944 * input-file.h: Likewise.
945 * input-scrub.c: Likewise.
946 * itbl-ops.c: Likewise.
947 * listing.c: Likewise.
949 * messages.c: Likewise.
951 * subsegs.c: Likewise.
952 * subsegs.h: Likewise.
955 2000-11-06 Nick Clifton <nickc@redhat.com>
957 * doc/as.texinfo: Add GNU Free Documentation License.
958 * doc/gasp.texi: Add GNU Free Documentation License.
959 * doc/as.1: Add GNU Free Documentation License.
961 2000-11-05 Nick Clifton <nickc@redhat.com>
963 * config/tc-arm.c: Add include of "dwarf2dbg.h"
965 2000-11-02 Per Lundberg <plundis@chaosdev.org>
967 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
968 * configure: Regenerate.
970 2000-11-01 Nick Clifton <nickc@redhat.com>
972 * read.c (original_case_string): New global variable.
973 (read_a_source_file): Copy opcode string into
974 original_case_string if clobbering the case of the opcode.
975 * read.h: Export the definition of original_case_string.
976 * config/tc-arm.c (md_assembler): When parsing a .req
977 directive use the original opcode string, not the case
980 2000-11-02 Nick Clifton <nickc@redhat.com>
982 * config/tc-mn10300.c (debug_line): Remove this static
984 (md_assemble): Call dwarf2_generate_asm_lineno instead of
985 dwarf2_where and dwarf2_gen_line_info.
987 2000-11-02 Theo Honohan <th@futuretv.com>
989 * config/tc-arm.c (do_msr): Improve error message.
991 2000-10-31 Eric Christopher <echristo@redhat.com>
993 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
994 or pc-relative, else use fx_offset.
996 2000-10-31 Jim Wilson <wilson@redhat.com>
998 * config/tc-ia64.c (struct md): New field tag_fixups.
999 (ia64_flush_insns): Handle tag_fixups. Error if dangling
1000 qualifying predicate.
1001 (emit_one_bundle): Delete spurious multiplication by one. Handle
1003 (ia64_start_line): Error if dangling qualifying predicate.
1004 (defining_tag): New static variable.
1005 (ia64_unrecognized_line, case '['): Parse tags.
1006 (ia64_frob_label): Create tag_fixups.
1007 (md_assemble): Reset md.qp.X_op after using it.
1009 2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1011 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
1013 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
1015 * tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
1017 2000-10-30 Kazu Hirata <kazu@hxi.com>
1019 * expr.c: Fix formatting.
1020 * flonum-copy.c: Likewise.
1021 * flonum.h: Likewise.
1025 2000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1027 * as.h (OPTION_MD_BASE): Bump to 190.
1028 * as.c (parse_args) <std_longopts>: Add comment about the need to
1029 check OPTION_MD_BASE in as.h.
1031 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
1034 2000-10-27 Nick Clifton <nickc@redhat.com>
1036 * configure.in (emulations): Add m68hc12.
1037 * configure: Regenerate.
1038 * po/gas.pot: Regenerate.
1040 2000-10-27 Aldy Hernandez <aldyh@redhat.com>
1042 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
1044 (arm_psr_parse): Handle lowercase CPSR and SPSR.
1046 2000-10-25 Nick Clifton <nickc@redhat.com>
1048 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
1049 a DWARF2 line number information sequence.
1051 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
1053 * read.c (generate_lineno_debug): Update comment describing why
1054 DWARF2 line number debug information is not generated
1055 automatically by this function.
1057 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
1060 * config/tc-arm.h (md_end): Define.
1061 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1063 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
1064 if generating DWARF2 line numbers.
1065 (arm_end_of_source): New function. Call dwarf2_finish if
1068 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
1069 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
1070 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
1072 2000-10-25 Diego Novillo <dnovillo@cygnus.com>
1074 * tc-i386.c: Fix prototype declarations for functions taking no
1077 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
1079 * tc-i386.c (i386_operand_modifier): Remove.
1080 (build_displacement_string): Remove.
1081 (i386_parse_seg): Remove.
1082 (i386_intel_memory_operand): Remove.
1083 (i386_intel_operand): Re-write using recursive descent parser based
1084 on MASM documentation.
1085 (struct intel_parser_s): New structure.
1086 (intel_parser): New static variable.
1087 (struct intel_token): New structure.
1088 (cur_token, prev_token): New static variables.
1101 (intel_match_token): New function.
1102 (intel_get_token): New function.
1103 (intel_putback_token): New function.
1104 (intel_expr): New function.
1105 (intel_e05): New function.
1106 (intel_e05_1): New function.
1107 (intel_e06): New function.
1108 (intel_e06_1): New function.
1109 (intel_e09): New function.
1110 (intel_e09_1): New function.
1111 (intel_e10): New function.
1112 (intel_e10_1): New function.
1113 (intel_e11): New function.
1115 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1117 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
1118 instructions to loose any special insn->architecture mask.
1120 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
1121 (sparc_md_end, sparc_arch_types, sparc_arch,
1122 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
1123 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
1124 request v9b architecture if they are used).
1126 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1128 * config/tc-m68k.c: Fix the previous misapplied patch.
1130 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1132 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
1133 BFD_ASSEMBLER and !BFD_ASSEMBLER.
1134 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
1137 2000-10-17 Kazu Hirata <kazu@hxi.com>
1139 * debug.c: Fix formatting.
1140 * depend.c: Likewise.
1141 * dwarf2dbg.c: Likewise.
1142 * dwarf2dbg.h: Likewise.
1143 * ecoff.c: Likewise.
1146 * flonum-konst.c: Likewise.
1147 * frags.h: Likewise.
1149 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1151 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
1153 * doc/as.texinfo: Added notes about this new option.
1155 2000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
1157 * config/tc-sh.c (JREG): Remove.
1158 (md_convert_frag): Remove #if 0:d code using JREG.
1160 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
1162 * config/tc-i386.c (i386_operand_modifier): Only match
1163 modifiers SHORT and FLAT if they are followed by a space.
1164 (parse_register): When `allow_naked_reg' is set, do not confuse
1165 identifiers that start with a register name with a register.
1167 2000-10-12 Kazu Hirata <kazu@hxi.com>
1169 * app.c: Fix formatting.
1172 * bit_fix.h: Likewise.
1177 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1179 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
1181 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1183 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
1184 Re-arrange function a little and improve error message.
1186 * write.c (write_relocs): Fix a comment.
1188 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
1191 2000-10-05 Jim Wilson <wilson@cygnus.com>
1193 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
1195 2000-10-05 Alan Modra <alan@linuxcare.com.au>
1197 * config/tc-i386.c: Delete some useless comments, reformat others.
1199 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
1200 non-global syms in linkonce sections.
1202 2000-10-04 Ralf Baechle <ralf@gnu.org>
1204 * config/tc-ia64.c (operand_match): Don't use // style comments.
1205 * config/tc-i370.c: Likewise.
1207 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
1209 Changes to handle varying register prefix and user symbol prefix.
1210 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
1211 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
1212 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
1213 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
1214 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
1215 (demand_register_prefix): New variable.
1216 (md_pseudo_table): New pseudo ".syntax".
1217 (md_longopts): New options --no-underscore and --underscore.
1218 (cris_target_format): Return elf32-us-cris or elf32-cris depending
1219 on symbols_have_leading_underscore.
1220 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
1221 (get_spec_reg): Ditto.
1222 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
1224 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
1226 <case OPTION_NO_US, case OPTION_US>: New.
1227 (md_show_usage): Be brief and reformat to match continuation of
1229 * po/gas.pot: Regenerate.
1231 2000-09-28 Alan Modra <alan@linuxcare.com.au>
1233 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
1234 force relocs for 12 bit branches.
1235 (md_apply_fix): Similarly, adjust logic here.
1237 2000-09-28 Alan Modra <alan@linuxcare.com.au>
1239 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
1240 adjust for external and weak syms as we will use a reloc. Allow
1241 for +8 offset when calculating limits of branches.
1242 (hppa_fix_adjustable): Undo 2000-09-23 change.
1243 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
1244 Correct distance calculation.
1245 (tc_gen_reloc): Print the file name and line number if we can't
1248 From John David Anglin <dave@hiauly1.hia.nrc.ca>
1249 * config/tc-hppa.c (nonzero_dibits): Define.
1250 (arg_reloc_stub_needed): Check each arg and return value
1251 separately for zero case.
1252 (pa_align): Declare argument `bytes'.
1254 2000-09-25 Kazu Hirata <kazu@hxi.com>
1256 * config/tc-cris.c: Fix formatting.
1257 * config/tc-d10v.h: Likewise.
1258 * config/tc-d30v.c: Likewise.
1259 * config/tc-d30v.h: Likewise.
1260 * config/tc-fr30.c: Likewise.
1261 * config/tc-fr30.h: Likewise.
1262 * config/tc-m68k.c: Likewise.
1263 * config/tc-m68k.h: Likewise.
1264 * config/tc-pj.h: Likewise.
1265 * config/tc-ppc.c: Likewise.
1266 * config/tc-ppc.h: Likewise.
1267 * config/tc-sh.c: Likewise.
1268 * config/tc-sh.h: Likewise.
1269 * config/tc-sparc.c: Likewise.
1270 * config/tc-v850.h: Likewise.
1271 * config/tc-vax.h: Likewise.
1272 * config/tc-w65.h: Likewise.
1273 * config/tc-z8k.h: Likewise.
1275 2000-09-23 Alan Modra <alan@linuxcare.com.au>
1277 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
1278 checks only for ELF.
1279 (hppa_force_relocation): Likewise.
1281 2000-09-22 Jim Wilson <wilson@cygnus.com>
1283 * config/tc-ia64.c (dv_sem): Add "stop".
1284 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
1285 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
1286 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
1288 (mark_resources): Check IA64_RS_PRr.
1290 2000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1292 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
1293 md_estimate_size_before_relax): Redesign and clean up the
1294 relaxation mechanism.
1296 2000-09-21 Kazu Hirata <kazu@hxi.com>
1298 * config/tc-ns32k.c: Fix formatting.
1299 * config/tc-ns32k.h: Likewise.
1301 2000-09-20 Kazu Hirata <kazu@hxi.com>
1303 * config/tc-m32r.c: Fix formatting.
1304 * config/tc-m32r.h: Likewise.
1305 * config/tc-m68851.h: Likewise.
1306 * config/tc-m68hc11.c: Likewise.
1307 * config/tc-m68hc11.h: Likewise.
1308 * config/tc-m88k.c: Likewise.
1309 * config/tc-mcore.c: Likewise.
1310 * config/tc-mcore.h: Likewise.
1311 * config/tc-mips.c: Likewise.
1312 * config/tc-mips.h: Likewise.
1313 * config/tc-mn10200.h: Likewise.
1314 * config/tc-mn10300.h: Likewise.
1315 * config/tc-tahoe.c: Likewise.
1316 * config/tc-tahoe.h: Likewise.
1318 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1320 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
1321 Likewise in relaxation description comments.
1323 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1325 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
1326 subtraction of two syms without emitting a relocation.
1328 From David Huggins-Daines <dhd@linuxcare.com>
1329 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
1330 global or weak symbols.
1332 2000-09-15 Kazu Hirata <kazu@hxi.com>
1334 * config/tc-h8300.h: Fix formatting.
1335 * config/tc-h8500.c: Likewise.
1336 * config/tc-h8500.h: Likewise.
1337 * config/tc-hppa.h: Likewise.
1338 * config/tc-i370.h: Likewise.
1339 * config/tc-i386.h: Likewise.
1340 * config/tc-i860.c: Likewise.
1341 * config/tc-i860.h: Likewise.
1342 * config/tc-i960.h: Likewise.
1343 * config/tc-ia64.c: Likewise.
1344 * config/tc-ia64.h: Likewise.
1346 2000-09-14 Kazu Hirata <kazu@hxi.com>
1348 * config/tc-a29k.c: Fix formatting.
1349 * config/tc-alpha.c: Likewise.
1350 * config/tc-arc.c: Likewise.
1351 * config/tc-arc.h: Likewise.
1352 * config/tc-arm.c: Likewise.
1353 * config/tc-arm.h: Likewise.
1354 * config/tc-avr.c: Likewise.
1355 * config/tc-avr.h: Likewise.
1356 * config/tc-tic30.c: Likewise.
1357 * config/tc-tic30.h: Likewise.
1358 * config/tc-tic54x.c: Likewise.
1359 * config/tc-tic54x.h: Likewise.
1360 * config/tc-tic80.c: Likewise.
1361 * config/tc-tic80.h: Likewise.
1363 2000-09-14 Timothy Wall <twall@cygnus.com>
1365 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
1366 parallel comparisons for later use.
1367 (struct rsrc): Add parallel comparison type.
1368 (resources_match): Skip special cases of PR usage (non-conflicting
1371 2000-09-13 Kazu Hirata <kazu@hxi.com>
1373 * config/obj-ecoff.c: Fix formatting.
1374 * config/obj-elf.c: Likewise.
1375 * config/obj-elf.h: Likewise.
1376 * config/obj-evax.h: Likewise.
1377 * config/obj-generic.h: Likewise.
1378 * config/obj-hp300.c: Likewise.
1379 * config/obj-hp300.h: Likewise.
1380 * config/obj-ieee.h: Likewise.
1381 * config/obj-vms.c: Likewise.
1382 * config/obj-vms.h: Likewise.
1384 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1386 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
1387 (md_parse_option): Ditto.
1388 (md_longopts): Add -mips32 option.
1389 (md_show_usage): Document new options.
1390 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
1391 (mips_ip): Assemble mfc0 with a sub-selection code.
1392 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
1393 (mips_cpu_to_str): New function.
1394 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
1395 Use CPU_* defines instead of hardcoded numbers.
1397 * doc/as.texinfo: Document new options.
1398 * doc/c-mips.texi: Ditto.
1400 2000-09-12 Kazu Hirata <kazu@hxi.com>
1402 * as.h: Fix formatting.
1403 * asintl.h: Likewise.
1404 * bit_fix.h: Likewise.
1405 * config/obj-aout.c: Likewise.
1406 * config/obj-aout.h: Likewise.
1407 * config/obj-bout.c: Likewise.
1408 * config/obj-bout.h: Likewise.
1409 * config/obj-coff.c: Likewise.
1410 * config/obj-coff.h: Likewise.
1411 * dwarf2dbg.h: Likewise.
1413 * flonum.h: Likewise.
1414 * frags.h: Likewise.
1415 * itbl-ops.h: Likewise.
1416 * macro.h: Likewise.
1419 * struc-symbol.h: Likewise.
1420 * subsegs.h: Likewise.
1421 * symbols.h: Likewise.
1423 * write.h: Likewise.
1425 2000-09-11 Kazu Hirata <kazu@hxi.com>
1427 * bignum-copy.c: Fix formatting.
1428 * config/tc-i370.c: Likewise.
1429 * config/tc-i960.c: Likewise.
1430 * config/tc-m68k.c: Likewise.
1431 * ehopt.c: Likewise.
1432 * flonum-copy.c: Likewise.
1433 * flonum-konst.c: Likewise.
1434 * flonum-mult.c: Likewise.
1435 * literal.c: Likewise.
1438 * stabs.c: Likewise.
1439 * subsegs.c: Likewise.
1441 2000-09-09 Philip Blundell <philb@gnu.org>
1443 * configure.in (arm*-*-uclinux*): New target.
1444 * configure: Regenerate.
1446 2000-09-09 Kazu Hirata <kazu@hxi.com>
1448 * input-file.c: Fix formatting.
1449 * itbl-ops.c: Likewise.
1450 * messages.c: Likewise.
1452 2000-09-08 Philip Blundell <philb@gnu.org>
1454 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
1457 2000-09-07 H.J. Lu <hjl@gnu.org>
1459 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1460 * configure: Rebuild.
1462 2000-09-07 Kazu Hirata <kazu@hxi.com>
1464 * atof-generic.c: Fix formatting.
1465 * config/tc-mips.c: Likewise.
1466 * config/tc-vax.c: Likewise.
1467 * input-scrub.c: Likewise.
1469 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1471 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
1472 * configure.in (sh-*-linux*): Added.
1473 * configure: Rebuilt.
1475 2000-09-06 Kazu Hirata <kazu@hxi.com>
1477 * config/tc-hppa.c: Fix formatting.
1479 * ecoff.c: Fix formatting.
1481 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1483 * configure: Rebuilt with new libtool.m4.
1485 2000-09-05 Kazu Hirata <kazu@hxi.com>
1487 * cgen.c: Fix formatting.
1488 * config/tc-ia64.c: Likewise.
1490 2000-09-05 Nick Clifton <nickc@redhat.com>
1492 * aclocal.m4: Regenerate.
1493 * config.in: Regenerate.
1494 * configure: Regenerate.
1495 * po/gas.pot: Regenerate.
1497 2000-09-05 Hans-Peter Nilsson <hp@axis.com>
1499 * config/tc-cris.c: Correct comment typos.
1501 2000-09-05 Eric Christopher <echristo@cygnus.com>
1503 * config/tc-mn10300.c: Cleanup.
1504 (md_pcrel_from): Enable.
1506 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1508 * expr.c (operand): Fix a comment typo.
1509 * write.c (write_relocs): Fix a signed/unsigned warning.
1511 * config/tc-hppa.c (fudge_reg_expressions): New
1512 (hppa_force_reg_syms_absolute): New.
1513 (pa_equ): Allow reg_section expressions.
1514 * config/tc-hppa.c (md_optimize_expr): Define.
1515 (hppa_force_reg_syms_absolute): Prototype.
1517 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
1518 (pa_parse_number): Pass in arg to select fp reg parsing.
1519 Return 1 to indicate format checks pass. If strict, then only
1520 accept a register or register symbol. Return value in...
1521 (pa_number): New static for pa_parse_number.
1522 (FP_REG_BASE): Define.
1523 (FP_REG_RSEL): Define.
1524 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
1525 appropriate. White space changes.
1526 (need_pa11_opcode): Don't bother passing any params, get them from
1528 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
1529 Remove extraneous check in case 'Q'.
1530 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
1531 reg, set section of resulting symbol to reg_section.
1532 (pa_parse_space_stmt): Modify call to pa_parse_number.
1533 (pa_space): Likewise.
1535 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
1536 (hppa_force_relocation): Handle vtable relocs.
1537 (pa_vtable_entry): New.
1538 (pa_vtable_inherit): New.
1539 (md_pseudo_table): Add entries for vtable pseudos.
1540 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
1541 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
1543 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
1544 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
1545 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
1547 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
1548 specify a symbol type.
1550 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
1551 dependent things together.
1552 (md_elf_symbol_type): Define.
1554 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
1556 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
1558 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
1559 (obj_elf_vtable_entry): Declare.
1561 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
1562 and export function.
1563 (obj_elf_vtable_entry): Similarly.
1564 (elf_pseudo_table): Fix the damage with a cast.
1566 2000-09-03 Richard Henderson <rth@cygnus.com>
1568 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
1569 for template selection when a label is needed.
1571 2000-09-02 Kazu Hirata <kazu@hxi.com>
1573 * config/tc-ia64.c: Fix formatting.
1575 2000-09-02 Nick Clifton <nickc@redhat.com>
1577 * configure.in: Increase version number to 2.10.91.
1578 * configure: Regenerate.
1579 * aclocal.m4: Regenerate.
1580 * config.in: Regenerate.
1581 * po/gas.pot: Regenerate.
1582 * Makefile.in: Regenerate.
1584 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
1586 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
1587 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
1588 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
1590 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
1593 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1595 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
1596 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
1597 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
1598 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
1599 (GOT_symbol): New variable.
1600 (md_undefined_symbol): Set it.
1602 2000-09-01 Richard Henderson <rth@cygnus.com>
1604 * config/tc-ia64.c (match): Don't inline.
1605 (extra_goodness): New.
1606 (md_begin): Prefer nop.f and nop.b for best_template.
1608 2000-08-31 Kazu Hirata <kazu@hxi.com>
1610 * as.c: Fix formatting.
1612 * frags.c: Likewise.
1613 * macro.c: Likewise.
1615 2000-08-31 Eric Christopher <echristo@cygnus.com>
1617 * config/tc-mn10300.c: Cleanup and fix warnings.
1618 (md_pseudo_table): Add initializers.
1619 (md_show_usage): Cleanup.
1620 (md_parse_option): Fix warnings.
1621 (md_undefined_symbol): Fix warnings.
1622 (md_conver_frag): Fix warnings.
1623 (tc_gen_reloc): Fix warnings.
1624 (md_apply_fix3): Fix warnings.
1625 (check_operand): Fix warnings.
1627 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1629 * acinclude.m4: Include libtool and gettext macros from the
1631 * aclocal.m4, configure: Rebuilt.
1633 2000-08-30 Mark Hatle <mhatle@mvista.com>
1635 * config/tc-ppc.c (md_parse_option): Recognize -m405.
1637 2000-08-31 Kazu Hirata <kazu@hxi.com>
1639 * listing.c: Fix formatting.
1641 2000-08-29 Kazu Hirata <kazu@hxi.com>
1643 * app.c: Fix a comment typo. Fix formatting.
1645 2000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1647 * tc-vax.c (md_convert_frag): Correctly calculate the pc relative
1648 offset of the target destination for jmp instructions.
1649 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
1651 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1653 * NEWS: Mention support for CRIS.
1655 Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
1657 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
1658 Sets `.lcomm' alignment to zero.
1660 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
1662 * config/tc-i386.h <OBJ_MAYBE_ELF, OBJ_MAYBE_COFF>
1663 (TC_FIX_ADJUSTABLE): Define.
1665 2000-08-23 Jim Wilson <wilson@cygnus.com>
1667 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
1668 unwind.personality_routine is set.
1670 2000-08-23 H.J. Lu <hjl@gnu.org>
1672 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
1674 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
1676 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
1679 2000-08-22 H.J. Lu <hjl@gnu.org>
1681 * config.in (STRICTCOFF): New for strict COFF.
1683 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
1684 i386-*-go32* and i386-go32-rtems*.
1685 * configure: Rebuilt.
1687 * config/obj-coff.c (obj_coff_endef): Follow the historical
1688 behavior if STRICTCOFF is not defined.
1690 * doc/internals.texi: Document STRICTCOFF.
1692 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1694 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
1695 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
1696 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
1697 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
1698 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
1699 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
1700 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
1703 2000-08-22 Eric Christopher <echristo@cygnus.com>
1705 * config/tc-mn10300.c: (md_apply_fix): New function.
1706 (mn10300_force_relocation): New function.
1707 (mn10300_fix_adjustable): New function.
1709 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
1710 (TC_HANDLES_FX_DONE): Define.
1711 (obj_fix_adjustable): Define.
1712 (MD_APPLY_FIX3): Define.
1713 (TC_LINKRELAX_FIXUP): Define.
1715 * write.c: (TC_LINKRELAX_FIXUP): Define if not
1717 (fixup_segment): Use TC_LINKRELAX_FIXUP.
1719 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
1721 2000-08-21 Jason Eckhardt <jle@cygnus.com>
1723 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
1724 if the fixup resulted in a relocation.
1726 2000-08-18 Nick Clifton <nickc@redhat.com>
1728 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
1729 Make reference to first element of shift_names explicit.
1731 2000-08-18 Alexandre Oliva <aoliva@redhat.com>
1733 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
1734 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
1735 add a symbol's address. Removed all target-specific #ifdefs that
1736 used to accomplished the same.
1737 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
1738 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
1739 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
1740 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
1741 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
1743 2000-08-17 Kazu Hirata <kazu@hxi.com>
1745 * dwarf2dbg.c: Fix formatting.
1747 2000-08-17 Nick Clifton <nickc@redhat.com>
1749 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
1750 to be recoded as logical shift lefts by zero.
1752 2000-08-16 Jim Wilson <wilson@cygnus.com>
1754 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
1755 postincrement modified registers. Handle IA64_OPND_R3_2 addl
1757 (note_register_values): Handle IA64_OPND_R3_2 operands.
1759 2000-08-16 Jason Eckhardt <jle@cygnus.com>
1761 * config/tc-i860.c (md_operand): Silly typo fixed.
1763 2000-08-16 Nick Clifton <nickc@redhat.com>
1765 * config/tc-arm.c (struct asm_shift): Delete.
1767 (enum asm_shift_index): New.
1768 (struct asm_shift_properties): New.
1769 (struct asm_shift_name): New.
1770 (shift_properties[]); New.
1771 (shift_names[]); New.
1773 (decode_shift): Use new structures.
1774 Issue a warning is "ROR #0" is used.
1775 Issue a warning if "ASR #0" or "LSR #0" is used.
1777 (md_begin): Initialise arm_shift_hsh table from new
1778 asm_shift_name array.
1780 2000-08-16 Jakub Jelinek <jakub@redhat.com>
1782 * config/tc-sparc.c: Kill all warnings.
1783 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
1785 (md_show_usage): Update usage text.
1787 2000-08-16 Nick Clifton <nickc@redhat.com>
1789 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
1792 2000-08-15 Will Cohen <wcohen@redhat.com>
1794 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
1796 * config/tc-sh.c (md_assemble): Changed so debug_type
1797 test performed for ppi_assemble
1798 * config/tc-sh.c: Included dwarf2dbg.h.
1799 (debug_line): Defined.
1800 (md_assemble): Generates dwarf2 line info.
1801 (sh_finalize): New function. Finalize dwarf2 info.
1802 (assemble_ppi): Returns size of code generated.
1803 (build_Mytes): Returns size of code generated.
1804 (md_pseudo_table): Added "file" and "loc" psuedo ops.
1805 * config/tc-sh.h (md_end): Defined.
1806 (sh_finalize): Declared.
1808 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
1810 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
1813 2000-08-14 Nick Clifton <nickc@redhat.com>
1815 * config/tc-arm.c (do_bx): Allow "bx pc".
1817 2000-08-14 Jim Wilson <wilson@cygnus.com>
1819 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
1820 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
1821 (md_begin): Change assignment to md.flag to OR in the new bit.
1823 2000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
1825 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
1826 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
1829 2000-08-14 Jason Eckhardt <jle@cygnus.com>
1831 * NEWS: Mention i860 support.
1833 Mon Aug 14 11:49:12 2000 Jeffrey A Law (law@cygnus.com)
1835 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1837 2000-08-14 Andreas Schwab <schwab@suse.de>
1839 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
1841 2000-08-11 Andreas Schwab <schwab@suse.de>
1843 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
1846 2000-08-11 Kazu Hirata <kazu@hxi.com>
1848 * expr.c: Fix formatting.
1849 * config/obj-bout.c: Likewise.
1851 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1853 * doc/c-i860.texi: Flesh out the i860 section more.
1855 2000-08-10 Kazu Hirata <kazu@hxi.com>
1857 * symbols.c: Fix formatting.
1860 Wed Aug 9 16:28:21 EDT 2000 Diego Novillo <dnovillo@cygnus.com>
1862 * tc-i386.c (md_assemble): Skip suffix check if the opcode modifier
1863 has the IgnoreSize bit set.
1865 2000-08-09 Alan Modra <alan@linuxcare.com.au>
1867 From Rodney Brown <RodneyBrown@mynd.com>
1868 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
1869 * configure: Regenerate.
1871 2000-08-09 Kazu Hirata <kazu@hxi.com>
1873 * hash.c: Fix formatting.
1876 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1878 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
1879 (i860_fix_info): New enum.
1880 (MD_APPLY_FIX3): Define.
1881 (WORKING_DOT_WORD): Define.
1882 (TC_HANDLES_FX_DONE): Define.
1883 (DIFF_EXPR_OK): Define.
1884 (LISTING_HEADER): Define.
1885 (TARGET_FORMAT): Select target format based on endian flag.
1886 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
1887 (target_big_endian): Add external declaration.
1889 * config/tc-i860.c: All existing code reworked completely. Other
1890 new code shown below.
1891 (SYNTAX_SVR4): Define.
1892 (target_warn_expand): New variable.
1893 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
1894 (md_longopts): Declare and define with new options (-EL, -EB,
1896 (md_show_usage): New function.
1897 (md_operand): New function.
1898 (obtain_reloc_for_imm16): New function.
1899 (md_apply_fix3): New function.
1900 (tc_gen_reloc): New function.
1902 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1904 * config/tc-m68hc11.c (build_jump_insn): Make sure the
1905 2 bytes of the jump address are in the same frag.
1906 (find): Accept 68hc12 register indirect modes.
1908 * NEWS: Mention 68HC11 & 68HC12 support.
1910 2000-08-07 Richard Henderson <rth@cygnus.com>
1912 * config/tc-ia64.c (unwind): Add prologue_mask member.
1913 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
1914 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
1915 (dot_body): Clear unwind.prologue_mask.
1916 (dot_prologue): Set it. Accept a register second argument.
1918 2000-08-07 Kazu Hirata <kazu@hxi.com>
1920 * config/atof-ieee.c: Fix formatting.
1921 * config/atof-tahoe.c: Likewise.
1923 2000-08-06 Nick Clifton <nickc@cygnus.com>
1925 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
1928 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
1929 of .popsection, .previous, .pushsection, .subsection,
1930 .version, .vtable_entry, .vtable_inherit and .weak.
1932 2000-08-05 Kazu Hirata <kazu@hxi.com>
1934 * config/tc-cris.c: Fix formatting.
1935 * config/tc-i386.c: Likewise.
1936 * config/tc-sparc.c (sparc_ip): Simplify the code.
1938 2000-08-04 Kazu Hirata <kazu@hxi.com>
1940 * config/tc-cris.c: Rearrange code for readability.
1941 * config/tc-d10v.c: Fix formatting.
1942 * config/tc-m32r.c: Likewise.
1943 * config/tc-sparc.c: Likewise.
1945 2000-08-02 Jim Wilson <wilson@cygnus.com>
1947 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
1948 before ia64_find_opcode.
1949 (md_assemble): Likewise.
1951 2000-08-01 Nick Clifton <nickc@cygnus.com>
1953 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
1954 Undo some formatting fixes.
1956 2000-08-01 Kazu Hirata <kazu@hxi.com>
1958 * config/obj-som.c: Fix formatting.
1959 * config/obj-ieee.c: Likewise.
1960 * config/tc-arm.c: Likewise.
1961 * config/tc-v850.c: Likewise.
1963 2000-08-01 Nick Clifton <nickc@redhat.com>
1965 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
1966 index by command line option.
1968 2000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1970 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
1971 (@node M68K-Branch): Rewrite to match the reality.
1973 2000-07-31 Jason Eckhardt <jle@cygnus.com>
1975 * doc/c-i860.texi: New file.
1976 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
1977 * doc/Makefile.in: Regenerate.
1978 * doc/all.texi: Add I860 as relevant architecture.
1979 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
1981 2000-07-31 Kazu Hirata <kazu@hxi.com>
1983 * config/tc-d30v.c: Fix formatting.
1985 2000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1987 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
1988 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
1989 long emit a long branch if available instead of an absolute jump, never
1990 emit absolute jumps for anything with --pcrel.
1992 * doc/c-m68k.texi: Document new command line option.
1994 2000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
1996 * config/tc-avr.c: Use PARAMS macro in function declarations.
1997 Don't declare md_pcrel_from_section (already in tc-avr.h).
1998 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
1999 (avr_operand): Don't set (unsigned) op_mask to -1.
2001 2000-07-28 Jason Eckhardt <jle@cygnus.com>
2003 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
2004 * configure: Regenerated.
2005 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
2006 of operand to the .type directive (.e.g, "type").
2008 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2010 * as.h (warn_comment, found_comment, found_comment_file): Declare.
2011 * app.c (do_scrub_chars): Record where first comment found.
2012 * read.c (read_a_source_file): Init found_comment on entry, and
2013 notify whether comments found on exit.
2014 * config/tc-hppa.c (md_shortopts): Add "c".
2015 (md_longopts): Add warn-comment.
2016 (md_parse_option): Handle it.
2017 (md_show_usage): Show available options.
2018 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
2020 Thu Jul 27 11:25:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
2022 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
2023 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
2025 (md_estimate_size_before_relax): Don't fall off end of function.
2027 2000-07-27 Kazu Hirata <kazu@hxi.com>
2029 * config/tc-avr.c: Fix formatting.
2030 * config/tc-ns32k.c: Likewise.
2032 2000-07-27 Alan Modra <alan@linuxcare.com.au>
2034 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
2036 2000-07-27 Kazu Hirata <kazu@hxi.com>
2038 * config/tc-d10v.c: Fix formatting.
2039 * config/tc-z8k.c: Likewise.
2040 * config/tc-sparc.c: Likewise.
2042 2000-07-26 Dave Brolley <brolley@redhat.com>
2044 * cgen.c (queue_fixup): Declare opinfo.
2045 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
2046 (gas_cgen_md_operand): Ditto.
2047 (gas_cgen_md_apply_fix3): Ditto.
2049 2000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
2051 * config/obj-coff.c (obj_frob_symbol): Don't merge
2052 labels. Don't merge if the symbol isn't constant. Return
2053 immediately if a symbol is merged.
2055 2000-07-22 Alan Modra <alan@linuxcare.com.au>
2057 * frags.c (frag_align): Correct absolute section alignment.
2059 2000-07-20 DJ Delorie <dj@redhat.com>
2061 * config/obj-coff.c (obj_frob_symbol): revert previous change,
2062 it breaks linking against DLLs.
2064 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2066 * configure.in: Add CRIS support.
2067 * configure: Regenerate.
2068 * Makefile.am: (CPU_TYPES): Add cris.
2069 (CPU_OBJ_VALID) [aout]: Add cris.
2070 (MULTI_CPU_TYPES): Add cris.
2071 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
2072 [coff]: Only i386 and mips are valid.
2073 (TARGET_CPU_CFILES): Add config/tc-cris.c.
2074 (TARGET_CPU_HFILES): Add config/tc-cris.h.
2075 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
2076 Regenerate dependencies.
2077 * Makefile.in: Regenerate.
2078 * aclocal.m4: Regenerate.
2079 * as.c: Declare crisaout, criself.
2080 * config/tc-cris.h, config/tc-cris.c: New.
2081 * config/e-criself.c, config/e-crisaout.c: New.
2082 * po/POTFILES.in, po/gas.pot: Regenerate.
2084 2000-07-20 Kazu Hirata <kazu@hxi.com>
2086 * read.c: Fix formatting.
2087 * write.c: Fix formatting.
2089 2000-07-19 H.J. Lu <hjl@gnu.org>
2091 * sb.c: Include <stdlib.h> if exists for abort ().
2093 2000-07-19 Alan Modra <alan@linuxcare.com.au>
2095 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
2096 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
2097 (pa_type_args): Same here.
2099 2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
2101 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
2102 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
2103 the storage class is already set.
2105 2000-07-17 Kazu Hirata <kazu@hxi.com>
2107 * config/tc-m68hc11.c: Fix formatting.
2108 * config/tc-mn10200.c: Likewise.
2109 * config/tc-mn10300.c: Likewise.
2110 * config/tc-pj.c: Likewise.
2111 * config/tc-tic80.c: Likewise.
2112 * config/tc-w65.c: Likewise.
2114 2000-07-17 Frank Ch. Eigler <fche@redhat.com>
2116 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
2119 2000-07-15 Ian Lance Taylor <ian@zembu.com>
2121 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
2124 2000-07-15 Alan Modra <alan@linuxcare.com.au>
2126 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
2127 ELF as are used for SOM (except the 32-bit reloc one) to decide
2128 whether a symbol can be reduced to a section symbol. Expand on
2129 the comment for symbols involved in LR% and RR% expressions.
2131 2000-07-14 Nick Clifton <nickc@cygnus.com>
2133 * config/tc-mips.c (mips_disable_float_construction): New
2134 static variable. Set to true if doubles should not be
2135 constructed by loading two single width fp registers with
2136 halves of the value.
2137 (mips_ip): Test mips_disable_float_construction.
2138 (md_longopts): Add command line switches --construct-floats
2139 and --no-construct-floats.
2140 (md_parse_option): Parse new command line options.
2141 (md_show_usage): Describe new command line options.
2143 * doc/c-mips.texi: Document new command line options.
2145 2000-07-13 Koundinya K <kk@ddeorg.soft.net>
2147 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
2148 * configure: Regenerate.
2150 2000-07-13 Hans-Peter Nilsson <hp@axis.com>
2152 * configure.in (DEFAULT_EMULATION setting): Revert part of
2153 2000-07-01 change that set te_multi=multi unless set to tmips.
2154 * configure: Regenerate.
2156 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2158 * config/obj-coff.c (coff_frob_section): Add padding to the last
2159 section when aligning it increases its size.
2161 2000-07-11 Kazu Hirata <kazu@hxi.com>
2163 * config/tc-tic54x.c: Fix formatting.
2165 2000-07-10 Kazu Hirata <kazu@hxi.com>
2167 * config/tc-h8500.c: Fix formatting.
2168 * config/tc-tic54x.c: Fix formatting.
2170 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2172 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
2173 displacements correctly.
2175 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
2177 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
2179 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
2183 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2185 From David Huggins-Daines <dhd@linuxcare.com>
2186 * config/te-hppalinux64.h: Add a new emulation.
2187 * configure.in (emulations): Add configure bits to support the
2188 64-bit Linux/parisc target.
2189 * configure: Regenerate.
2191 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
2192 (md_shortopts): Add `V' for ELF.
2194 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
2195 when SOM or ELF_ARG_RELOC are defined.
2196 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
2197 ELF_ARG_RELOC are defined.
2198 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
2199 (pa_stringer): ..Do it here instead. Fix comment typos.
2200 (hppa_force_relocation): Cast enums to int before comparing with
2203 From Ryan Bradetich <rbradetich@uswest.net>
2204 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
2205 redifinition warning.
2206 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
2207 (hppa_force_relocation): ditto
2208 (md_apply_fix): Added cast to buf to fix warnings.
2210 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
2211 cons_fix_new_hppa, hppa_force_relocation): Prototype.
2213 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
2214 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
2215 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
2216 reloc_type** to avoid warnings in switch.
2217 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
2218 little earlier instead.
2220 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
2222 (pa_type_args): Use symbol_arg_reloc_info.
2223 (struct pa_it): Make arg_reloc unsigned int.
2224 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
2225 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
2226 (pa_code): Delete. pa_text duplicates this function.
2227 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
2228 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
2230 (cons_fix_new_hppa): Actually change selector to e_fsel when
2231 warning about assuming so.
2232 (tc_gen_reloc): More example elf arg reloc code.
2233 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
2234 (hppa_force_relocation): Likewise.
2236 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
2238 (pa_end_of_source): Prototype.
2239 (hppa_fix_adjustable): Prototype.
2240 (LABELS_WITHOUT_COLONS): Move it..
2241 * config/te-hppa.h: To here.
2243 * config/te-hppa64.h: New file.
2245 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
2247 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
2248 format -10, -16, 16 relocs.
2249 (hppa_elf_mark_end_of_function): Test for null
2250 last_call_info->start_symbol
2252 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
2253 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
2254 re_assesmble_* functions. Delete extraneous statements. Fix
2256 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
2257 insn to re_assemble_*.
2259 2000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
2261 * doc/internals.texi (Expressions): Fix typo.
2263 2000-07-08 Kazu Hirata <kazu@hxi.com>
2265 * config/tc-sh.c: Fix formatting.
2266 * config/tc-tic54x.c: Fix formatting.
2267 * depend.c: Fix formatting.
2268 * flonum-konst.c: Likewise.
2269 * flonum-mult.c: Likewise.
2271 2000-07-07 Kazu Hirata <kazu@hxi.com>
2273 * config/tc-sh.c: Fix comments.
2274 * config/obj-vms.c: Fix comments.
2275 * config/tc-a29k.c: Likewise.
2276 * config/tc-alpha.c: Likewise.
2277 * config/tc-h8300.c: Likewise.
2278 * config/tc-h8500.c: Likewise.
2279 * config/tc-i370.c: Likewise.
2280 * config/tc-ia64.c: Likewise.
2281 * config/tc-m68hc11.c: Likewise.
2282 * config/tc-m68k.c: Likewise.
2283 * config/tc-mips.c: Likewise.
2284 * config/tc-ns32k.c: Likewise.
2285 * config/tc-ppc.c: Likewise.
2286 * config/tc-z8k.c: Likewise.
2288 2000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
2290 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
2291 Default to '(SEC_LOAD | SEC_DATA)'.
2292 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
2294 * doc/internals.texi (CPU Backend): Describe
2295 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
2297 Thu Jul 6 17:20:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
2299 * as.c (parse_args): NULL terminate the long option list.
2301 Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
2303 * config/tc-d30v.h: Include "write.h" for fixS.
2304 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
2306 2000-07-05 Nick Clifton <nickc@cygnus.com>
2308 * config/tc-d30v.c (write_2_short): Further changes to warning
2309 messages produced when combining EITHER_BUT_PREFER_MU attributed
2312 2000-07-05 DJ Delorie <dj@redhat.com>
2316 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2318 * config/tc-arm.c (psrs): Accept combinations of flags.
2320 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2322 * config/tc-avr.c: Change _ () to _() around all strings marked
2323 for translation (exception from the usual coding style).
2324 (avr_opt): New struct variable, how the new switches are set.
2325 (OPTION_MMCU): Define as 'm' and actually use.
2326 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
2327 (show_mcu_list): New function, display the list of known MCUs.
2328 (md_show_usage): Document the new switches. Call show_mcu_list.
2329 (avr_set_arch): Change 'm' to OPTION_MMCU.
2330 (md_parse_option): Call show_mcu_list if unknown MCU specified.
2331 Handle the new switches.
2332 (avr_operands): Disable warnings for undefined combinations of
2333 operands if -mall-opcodes. Disable warnings for skipping two-word
2334 instructions if enhanced core or -mno-skip-bug.
2335 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
2336 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
2337 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
2338 (avr_ldi_expression): Warn about implicit lo8().
2339 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
2341 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2343 * configure.in: Add entry for mips-*-sysv4*MP*
2344 * configure: Rebuild
2345 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
2346 elf32-tradlittlemips for traditional mips targets.
2347 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
2348 test for Link Once sections as in adjust_reloc_syms.
2349 * config/te-tmips.h: New file for traditional mips targets. Define
2352 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2354 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
2355 flags argument is not present, don't change an existing section's
2356 section's attributes. If the flags argument is present, warn if the
2357 attributes don't match the section's current attributes. When
2358 long section names are supported, set SEC_LINK_ONCE and
2359 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
2361 Thu Jun 29 21:30:00 2000 Hans-Peter Nilsson <hp@axis.com>
2363 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
2364 symbols; create them.
2366 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2368 * write.c (set_segment_vma): New: Set vma and lma for a segment.
2369 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
2371 2000-06-27 Aldy Hernandez <aldyh@redhat.com>
2373 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
2374 expressions. Ignore the problem when handling 16 bit signed
2375 immediates, because the assembler will take care of the relocation
2378 2000-06-27 Nick Clifton <nickc@cygnus.com>
2380 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
2381 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
2382 sequential order, and emit warning messages if the input source
2383 code contains constructs like that, or parallel constructs
2384 containing such opcodes.
2386 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2388 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
2389 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
2390 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
2391 (md_show_usage): Update usage message.
2392 (md_parse_option): Allow redefinition of MCU type within the
2393 same avr[1-5] bfd machine type. Show both old and new MCU type
2394 in the error message.
2395 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
2396 Simplify 8K wrap code.
2398 2000-06-25 Kazu Hirata <kazu@hxi.com>
2400 * config/obj-aout.c: Remove all uses of DEFUN.
2401 * config/obj-ieee.c: Likewise.
2402 * config/tc-sh.c: Fix comment typos.
2403 * config/tc-tahoe.c: Likewise.
2404 * config/tc-vax.c: Likewise.
2405 * config/tc-w65.c: Likewise.
2406 * config/tc-z8k.c: Likewise.
2407 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
2409 2000-06-24 DJ Delorie <dj@cygnus.com>
2411 * config/tc-i386.c (md_estimate_size_before_relax): Revert
2412 more changes from Sept 1999
2413 (tc_i386_fix_adjustable): ditto
2414 (md_apply_fix3): ditto
2416 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
2418 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
2419 (gas_cgen_parse_operand): Set it around expression() call.
2420 (gas_cgen_md_operand): Test for it before longjmp().
2422 2000-06-24 Kazu Hirata <kazu@hxi.com>
2424 * config/tc-h8500.c: Remove all uses of DEFUN.
2425 * config/tc-sh.c: Likewise.
2426 * config/tc-w65.c: Likewise.
2427 * config/tc-z8k.c: Likewise.
2429 * config/tc-h8500.c: Fix typos in comments.
2431 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
2433 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
2436 2000-06-23 matthew green <mrg@redhat.com>
2438 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
2439 defined. Fix error message for `[' grouping.
2441 2000-06-22 Kazu Hirata <kazu@hxi.com>
2443 * config/tc-h8300.c: Fix formatting and comment typos.
2445 2000-06-22 Timothy Wall <twall@cygnus.com>
2447 * config/tc-ia64.c (note_register_values): Move premature QP
2448 notation clearing into the appropriate place.
2450 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2452 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
2453 first before anything else. Add bin-bugs.h, emul.h and progress.h
2454 Sort list of files as for $(OBJS) in Makefile.am.
2456 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
2457 find one. Remake dependencies.
2458 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
2459 * Makefile.in: Regenerate.
2460 * doc/Makefile.in: Regenerate.
2462 * config/tc-i386.c (i386_displacement): Don't assume a constant
2463 displacement is necessarily 16 bits when in 16 bit code mode.
2464 (md_assemble): Instead size the displacement here after we know
2465 for sure that a .code16gcc operand hasn't automatically added
2466 operand size prefixes.
2468 2000-06-21 H.J. Lu <hjl@gnu.org>
2470 * Makefile.am: Rebuild dependency.
2471 * Makefile.in: Rebuild.
2473 2000-06-21 Kazu Hirata <kazu@hxi.com>
2475 * config/tc-h8300.c (parse_reg): Make the function static.
2476 (parse_exp): Likewise.
2478 2000-06-20 DJ Delorie <dj@cygnus.com>
2480 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
2481 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
2482 for cygwin import libraries to work properly.
2484 2000-06-20 H.J. Lu <hjl@gnu.org>
2486 * Makefile.am: Rebuild dependency.
2487 * Makefile.in: Rebuild.
2488 * configure: Likewise.
2489 * doc/Makefile.in: Likewise.
2491 2000-06-20 Timothy Wall <twall@cygnus.com>
2493 * doc/internals.texi (CPU backend): Add @itemx for
2494 TC_START_LABEL_WITHOUT_COLON.
2495 * doc/c-tic54x.texi: New.
2496 * doc/as.texinfo: Add tic54x features and include primary tic54x
2498 * doc/all.texi: Add C54X.
2499 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
2500 * doc/Makefile.in: Regenerate.
2501 * configure.in: Add tic54x and define LIBM for tic54x.
2502 * configure: Regenrate.
2503 * config/tc-tic54x.[ch]: New.
2504 * config/obj-coff.h: Add tic54x.
2505 * Makefile.am: (CPU_TYPES): Add tic54x.
2506 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
2507 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
2508 (as_new_LDADD): Add $(LIBM).
2509 * Makefile.in: Regenerate.
2511 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2513 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
2514 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
2515 * doc/as.texinfo: Likewise.
2517 * configure, Makefile.in: Regenerate.
2518 * configure.in (emulations): Recognize m6811 and m6812.
2519 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
2520 Added files for 68hc11 and 68hc12 assembler.
2521 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
2522 * config/tc-m68hc11.h: Header definition for that assembler.
2524 2000-06-18 Nick Clifton <nickc@redhat.com>
2526 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
2527 instead of OCTETS_PER_BYTE.
2529 * config/tc-v850.c: Fix compile time warnings.
2530 * config/tc-ppc.c: Fix compile time warnings.
2532 2000-06-18 H.J. Lu <hjl@gnu.org>
2534 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
2535 * configure: Rebuild.
2537 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
2539 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
2542 2000-06-16 Nick Clifton <nickc@cygnus.com>
2544 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
2545 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
2547 * doc/c-mips.texi: Document newly accepted cpu variants.
2549 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2551 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
2553 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
2555 * macro.c (getstring): Make it possible to escape the quote
2558 Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
2560 * config/tc-hppa.c (pa_export): Weak symbols can be global.
2562 2000-06-13 H.J. Lu <hjl@gnu.org>
2564 * configure: Regenerate.
2566 2000-06-09 Alan Modra <alan@linuxcare.com.au>
2568 * app.c (do_scrub_begin): Don't default lex[';'] as a line
2570 * doc/internals.texi (line_separator_chars): Semicolon is no
2571 longer a default. Mention null and newline as defaults.
2573 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
2575 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
2576 * config/tc-i860.h (line_separator_chars): Likewise.
2577 * config/tc-h8300.c (line_separator_chars): Likewise.
2578 * config/tc-i960.c (line_separator_chars): Likewise.
2579 * config/tc-m68k.c (line_separator_chars): Likewise.
2580 * config/tc-mips.c (line_separator_chars): Likewise.
2581 * config/tc-ns32k.c (line_separator_chars): Likewise.
2582 * config/tc-sparc.c (line_separator_chars): Likewise.
2583 * config/tc-vax.c (line_separator_chars): Likewise.
2585 * config/tc-h8300.c (comment_chars): Use string initialiser.
2586 * config/tc-i960.c (line_comment_chars): Likewise.
2587 * config/tc-z8k.c (comment_chars, line_comment_chars,
2588 line_separator_chars): Likewise.
2590 * config/tc-arm.c (line_separator_chars): Always use `;', not just
2593 2000-06-08 Nick Clifton <nickc@cygnus.com>
2595 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
2598 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2600 * configure.in (VERSION): Update to show this is the CVS mainline.
2602 2000-06-08 Matthew Jacob <mjacob@feral.com>
2604 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
2605 $at is the integer register $r28, vs. both $r28 and the floating
2606 point register $f28.
2608 2000-06-08 James E. Wilson <wilson@cygnus.com>
2610 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
2611 (dot_endp): Don't call ia64_flush_insns.
2612 (emit_one_bundle): Don't delete prologue/body records from
2613 unwind_record list in first loop. Rewrite second loop to account for
2616 2000-06-07 David Mosberger <davidm@hpl.hp.com>
2618 * config/tc-ia64.c: Add missing prototypes.
2619 (generate_unwind_image): Cast argument to output_unw_records call.
2621 Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
2623 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
2625 Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
2627 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
2628 (REGISTER_P): likewise.
2629 (avr_opcodes): uses include/opcode/avr.h
2630 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
2632 2000-06-04 Alan Modra <alan@linuxcare.com.au>
2634 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
2637 2000-06-03 H.J. Lu <hjl@gnu.org>
2639 * read.c (is_end_of_line): Put back `;'.
2641 2000-06-03 Alan Modra <alan@linuxcare.com.au>
2643 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
2645 2000-06-01 Alan Modra <alan@linuxcare.com.au>
2647 * expr.c (operand): Test is_end_of_line outside switch to catch
2648 line separator chars that are also operators.
2649 (operator): Return O_illegal for line separator chars.
2651 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
2652 entry (or `!' entry for TC_HPPA).
2654 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
2655 before indexing is_end_of_line. Remove redundant check for '\0'.
2657 * config/tc-h8500.c (md_assemble): Likewise.
2658 * config/tc-mcore.c (md_assemble): Likewise.
2659 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
2662 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
2664 * config/tc-mcore.c (mcore_cons): Likewise.
2665 (mcore_float_cons): Likewise.
2666 (mcore_stringer): Likewise.
2667 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
2669 2000-06-01 Scott Bambrough <scottb@netwinder.org>
2671 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
2673 2000-05-29 Nick Clifton <nickc@cygnus.com>
2675 * config/tc-sh.c: Fix compile time warning messages.
2677 * config/tc-mips.c: Fix compile time warning messages.
2679 2000-05-29 Philip Blundell <philb@gnu.org>
2681 * doc/as.texinfo: Update copyright dates.
2682 (Local Labels): Delete misplaced mention of ARM.
2683 * NEWS: Mention ARM ELF support.
2685 2000-05-27 Alexandre Oliva <aoliva@cygnus.com>
2687 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
2688 it is modified, and use the real_size to compute the frag address
2689 for dwarf2 line info.
2691 2000-05-27 Alan Modra <alan@linuxcare.com.au>
2693 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
2694 line-matching scheme to cope with automake moving variables around.
2695 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
2696 * Makefile.in: Regenerate.
2698 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2700 * config/tc-sparc.c (sparc_relax): New.
2701 (md_longopts): Add -relax and -no-relax options.
2702 (md_parse_options, md_show_usage): Likewise.
2703 (md_apply_fix3): Optimize tail call into branch always if possible.
2705 Thu May 4 15:27:07 2000 Donald Lindsay <dlindsay@cygnus.com>
2707 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
2708 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
2709 rules, with warning when a GAS statement specifies a packing that
2710 will result in an instruction being squashed.
2711 Added typdef packing_type and enumerals, changed various integer
2712 literals to use the enumerals.
2714 2000-05-24 David Mosberger <davidm@hpl.hp.com>
2716 * config/tc-ia64.c (dot_restorereg_p): New function.
2717 (md_pseudo_table): Add restorereg.p.
2718 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
2719 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
2721 * config/tc-ia64.h (unw_record_type): Add unwabi.
2722 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
2723 called MASK with members for imask, and the masks produced by
2724 fr_mem, gr_mem, br_mem, and frgr_mem.
2725 (unw_p_record): Add members ABI and CONTEXT.
2726 (unw_x_record): Add member AB.
2727 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
2728 as pseudo-register for use during unwind info generation.
2729 (AR_PFS, AR_LC): New macros.
2730 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
2731 whose names start with an at sign (as in "@priunat").
2732 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
2734 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
2735 proc_end, unwind_info, personality_routine): Consolidate into
2736 "unwind" structure to reduce offset-table use. Add member
2737 NEXT_SLOT_NUMBER to track the slot number for the next instruction
2739 (output_R1_format, output_R3_format, output_P3_format,
2740 output_P6_format): Initialize R with zero to reduce compiler warnings.
2741 (output_P7_format): Ditto. Add `default' branch to switch
2742 statement to reduce compiler warnings.
2743 (output_P8_format, output_B1_format, output_B4_format): Ditto.
2744 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
2745 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
2746 into single argument.
2747 (output_X1_format, output_X3_format): Initialize R with zero to reduce
2748 compiler warnings. Merge A and B args into single argument.
2749 (output_X2_format, output_X4_format): Remove unused variable R. Merge
2750 A and B args into single argument.
2751 (free_record): Removed (wasn't used).
2752 (free_list_records): Also free imasks in prologue records.
2753 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
2754 (output_spill_mask): Remove.
2755 (output_unwabi): New function.
2756 (output_epilogue, output_label_state, output_copy_state): Call
2758 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
2759 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
2761 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
2762 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
2763 as part of handling the prologue records. Emit region's imask if
2764 we have one. Handle unwabi, epilogue, label_state, copy_state,
2765 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
2766 spill_sprel_p, and spill_reg_p records.
2767 (set_imask, count_bits, slot_index): New function.
2768 (fixup_unw_records): Fix region size computation. Handle
2769 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
2770 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
2771 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
2772 set_imask accordingly. Update imask for gr_gr, and br_gr records.
2773 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
2774 (dot_save): Use manifest constants for applicaton registers.
2775 Handle REG_PR and REG_PRIUNAT.
2776 (dot_restore): Don't just ignore it.
2777 (dot_restorereg): New function..
2778 (generate_unwind_image): Ensure unwind info is a multiple of eight
2779 bytes, not just four bytes.
2780 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
2781 (dot_altrp): Don't just ignore it.
2782 (dot_savemem): New function. Replaces dot_savesp() and
2783 dot_savepsp(). Use manifest constants for applicaton registers.
2784 Handle REG_PR and REG_PRIUNAT.
2785 (dot_savef): Simplify.
2786 (dot_saveb): Support generation of br_gr.
2787 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
2788 dot_label_state, dot_copy_state): New function.
2789 (dot_unwabi): Don't just ignore it.
2790 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
2791 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
2792 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
2793 (emit_one_bundle): Set slot number for prologue/body records
2794 *before* emitting the first insn.
2795 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
2796 (md_begin): Declare "psp" pseudo-register.
2797 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
2798 so we don't get segfault.
2799 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
2800 counts as required per SW Conventions manual
2801 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
2802 output_preds_psprel, output_preds_sprel, output_spill_base,
2803 output_unat_psprel, output_unat_sprel, output_lc_psprel,
2804 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
2805 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
2806 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
2807 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
2808 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
2809 (dot_vframe): Implement.
2810 (dot_vframesp, dot_vframepsp): New function.
2812 Tue May 23 00:57:05 2000 Hans-Peter Nilsson <hp@axis.com>
2814 * configure.in (i386-*-freebsd a.out entry): Quote properly.
2815 * configure: Regenerate.
2817 2000-05-23 Alan Modra <alan@linuxcare.com.au>
2819 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
2820 (md_estimate_size_before_relax): so we can use it here instead of
2821 old kludges. Localise vars to blocks. Comment.
2823 * frags.c (frag_new): Update fr_var comments.
2824 * frags.h (struct frag): Ditto.
2826 2000-05-22 Richard Henderson <rth@cygnus.com>
2828 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
2829 (pseudo_func): Add pcrel.
2830 (operand_match): Handle IA64_OPND_TGT64.
2831 (build_insn): Likewise.
2832 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
2833 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
2834 (fix_insn): Handle all three 64-bit relocation types.
2836 Mon May 22 22:43:32 2000 Hans-Peter Nilsson <hp@axis.com>
2838 * obj.h (struct format_ops): New members begin, app_file,
2839 s_set_other, s_set_desc, s_get_type, s_set_type,
2840 separate_stab_sections, init_stab_section.
2842 * config/obj-multi.h: Update GPL notice to v2.
2844 (obj_app_file): New.
2845 (S_SET_SIZE): Test s_set_size for NULL before calling.
2846 (S_SET_ALIGN): Similar for s_set_align.
2851 (SEPARATE_STAB_SECTIONS): New.
2852 (INIT_STAB_SECTION): New.
2853 (EMIT_SECTION_SYMBOLS): New.
2854 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
2856 * config/obj-elf.h: Update GPL notice to v2.
2857 Mention that this file is included from obj-multi.h.
2858 (obj_begin): Wrap definition in ifndef.
2859 (elf_file_symbol): Constify declaration.
2860 (obj_app_file): Ditto.
2861 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
2862 Wrap in ifndef SEPARATE_STAB_SECTIONS.
2864 * config/obj-elf.c (elf_s_set_other): New.
2865 (elf_file_symbol): Constify argument.
2866 (elf_separate_stab_sections): New.
2867 (elf_init_stab_section): New.
2868 (elf_format_ops): Add new members. Remove comma at end.
2870 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
2871 (ecoff_format_ops): Add new fields. Remove comma at end.
2872 Mention inconsistency for emit_section_symbols.
2874 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
2876 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
2877 (coff_separate_stab_sections): New.
2878 (coff_format_ops): Add new members.
2880 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
2881 (obj_aout_s_set_other): New.
2882 (obj_aout_s_set_desc): New.
2883 (obj_aout_s_get_type): New.
2884 (obj_aout_s_set_type): New.
2885 (obj_aout_separate_stab_sections): New.
2886 (aout_format_ops): New members added. Use obj_aout_process_stab,
2887 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
2888 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
2890 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
2892 2000-05-22 Alan Modra <alan@linuxcare.com.au>
2894 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
2895 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
2896 (md_estimate_size_before_relax): Ensure jumps to weak and
2897 externally visible symbols are relocatable.
2899 Sat May 20 16:41:55 2000 Hans-Peter Nilsson <hp@axis.com>
2901 * stabs.c (aout_process_stab): Make global.
2902 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
2903 * read.h (aout_process_stab): Declare.
2905 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
2906 Generalize to *aout, *coff *elf.
2907 * configure: Regenerated.
2909 * doc/internals.texi (Object format backend): Say
2910 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
2912 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
2913 * Makefile.in: Regenerated.
2915 2000-05-19 Catherine Moore <clm@cygnus.com>
2917 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
2919 2000-05-18 Alan Modra <alan@linuxcare.com.au>
2921 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
2922 instruction to reflect change in re_assemble_*.
2924 Thu May 18 10:52:14 2000 Jeffrey A Law (law@cygnus.com)
2926 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
2927 build PA64 ELF tools.
2928 * configure: Rebuilt.
2930 2000-05-17 Alan Modra <alan@linuxcare.com.au>
2932 * Makefile.am: Regenerate dependencies.
2933 * Makefile.in: Regenerate.
2935 2000-05-15 Nick Clifton <nickc@cygnus.com>
2937 * config/tc-arm.c (struct asm_psr): Add boolean field
2938 distinguishing between CSPR and SPSR. Rename 'number' field
2940 (psrs): Rearrange contents to match new asm_psr structure.
2941 (arm_psr_parse): Move next to psr_required_here. Make it
2942 return an asm_psr structure.
2943 (psr_required_here): Use asm_psr structure returned by
2945 (do_msr): Reorganise to allow psr_required_here to be called
2947 (md_undefined_name): Mark 'name' parameter as unused, since
2948 the COFF target does not use it.
2950 2000-05-14 David O'Brien <obrien@FreeBSD.org>
2952 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
2954 * config/te-aux.h: Likewise.
2955 * config/te-dpx2.h: Likewise.
2956 * config/te-go32.h: Likewise.
2957 * config/te-hp300.h: Likewise.
2958 * config/te-hppa.h: Likewise.
2959 * config/te-i386aix.h: Likewise.
2960 * config/te-ic960.h: Likewise.
2961 * config/te-interix.h: Likewise.
2962 * config/te-nbsd532.h: Likewise.
2963 * config/te-pc532mach.h: Likewise.
2964 * config/te-ppcnw.h: Likewise.
2965 * config/te-psos.h: Likewise.
2966 * config/te-sparcaout.h: Likewise.
2967 * config/te-sun3.h: Likewise.
2968 * config/te-sysv32.h: Likewise.
2970 2000-05-14 Alan Modra <alan@linuxcare.com.au>
2972 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
2973 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
2974 and sign extend without an if statement.
2975 (build_bytes): Likewise.
2977 2000-05-14 Kazu Hirata <kazu@hxi.com>
2979 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
2980 X_add_symbol L_32 case.
2982 2000-05-14 David O'Brien <obrien@FreeBSD.org>
2984 * config/te-freebsd.h: New file.
2986 2000-05-13 Alan Modra <alan@linuxcare.com.au>
2988 * asintl.h (gettext, dgettext, dcgettext, textdomain,
2989 bindtextdomain): Replace defines with those from intl/libgettext.h
2990 to quieten gcc warnings.
2992 * NEWS: Mention x86 .arch and -q.
2994 * config/tc-i386.c (quiet_warnings): New.
2995 (md_assemble): Use quiet_warnings.
2996 (md_parse_option): Set quiet_warnings from -q.
2997 (md_show_usage): Mention -q, delete -m.
2998 (flag_do_long_jump): Delete.
2999 (md_parse_option): Remove -m.
3000 (md_show_usage): Remove -m.
3001 (md_create_long_jump): Remove useless flag_do_long_jump code.
3003 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
3004 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
3006 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3007 Alexander Sokolov <robocop@netlink.ru>
3009 * doc/c-i386.texi (i386-Arch): New section.
3010 (i386-Syntax): Mention .intel_syntax and .att_syntax.
3012 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
3013 (smallest_imm_type): Use smallest opcode for shift by one if cpu
3014 architecture has been given and is not 486.
3015 (set_cpu_arch): New.
3016 (md_pseudo_table): Add .arch.
3017 (md_assemble): Warn if cpu architecture has been given and an
3018 unsupported instruction.
3020 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
3021 Move operand_types bit defines after relevant template field.
3022 (template): Add cpu_flags.
3026 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3028 * config/tc-mn10300.h (md_end): Define.
3029 (mn10300_finalize): Declare.
3030 * config/tc-mn10300.c: Include dwarf2dbg.h.
3031 (debug_line): Define.
3032 (md_assemble): Generate dwarf2 line info.
3033 (mn10300_finalize): New function. Finalize dwarf2 info.
3035 2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
3037 * config/tc-mips.c (md_estimate_size_before_relax): Use the
3038 external version of the relocation for weak symbols.
3040 2000-05-08 David Mosberger <davidm@hpl.hp.com>
3042 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
3043 frame size in units of 16 bytes, as required per SW Conventions manual.
3044 (output_unw_records): Output info-block header as a dword to get
3047 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3049 * as.h: #include "file", not <file> on files from ../include.
3050 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
3051 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
3052 (md_convert_frag): Add ATTRIBUTE_UNUSED.
3053 (tc_coff_symbol_emit_hook): Ditto.
3054 (OPTCOUNT): Cast to int to avoid compiler warning.
3055 (md_begin): Fix signed/unsigned warnings.
3057 2000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3059 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
3060 ABRANCH LONG case for a conditional branch on a 68000.
3061 (md_estimate_size_before_relax): Likewise. Also handle
3062 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
3063 (m68k-ip: case ABSL): Relax absolute references to 16-bit
3064 PC-relative on all CPUs.
3065 (md_estimate_size_before_relax): Likewise.
3067 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3069 * as.c (parse_args): Just mention current year in printed
3072 2000-05-03 J.T. Conklin <jtc@redback.com>
3074 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
3076 (md_parse_option): Recognize -m7400.
3078 2000-05-03 Ian Lance Taylor <ian@zembu.com>
3080 * config/atof-ieee.c (gen_to_words): When adding carry back in,
3081 don't permit lp to become less than the words array.
3083 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
3085 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
3086 Fix little-endian case.
3088 2000-05-03 David O'Brien <obrien@NUXI.com>
3090 * as.c (parse_args): Update copyright.
3092 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3094 * gas/config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
3095 for the .bss section too.
3097 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3099 * configure.in: Set em=linux for hppa-*-linux.
3100 * configure: Regenerate.
3101 * doc/Makefile.in: Regenerate with correct automake.
3103 * frags.c (frag_grow): Sanity check chunk_size.
3105 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
3106 * config/obj-som.h: Likewise.
3107 * config/obj-ieee.h: Likewise.
3109 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
3111 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
3112 (md_pseudo_table): Fully initialise OBJ_ELF cases.
3113 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
3114 (pa_ip): low_sign_unext now returns via function value. Use
3115 re_assemble_* instead of dis_assemble_* and
3116 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
3118 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
3119 (md_section_align, md_parse_option, md_show_usage,
3120 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
3121 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
3122 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
3123 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
3124 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
3126 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
3127 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
3128 outside of switch. Correct mask and shifting errors in case 10
3129 and case -11. In case 21, compare against signed range to suit
3130 hppa_field_adjust changes. In case 12, use re_assemble_12. In
3131 case 17 and case 22, use offsetT variable to properly check range.
3132 Use re_assemble_* here too.
3133 (evaluate_absolute): Change type of value to offsetT. Call
3134 hppa_field_adjust to do the work for us.
3135 (pa_parse_cmpb_64_cmpltr): Delete save_s.
3136 (pa_parse_cmpib_64_cmpltr): Ditto.
3137 (pa_build_unwind_subspace): Delete unused var subseg. Change type
3138 of i to unsigned int.
3139 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
3140 (pa_end_of_source): Return type is void.
3142 Mon May 1 08:54:23 2000 Catherine Moore <clm@cygnus.com>
3144 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
3146 Mon May 1 14:19:39 2000 Denis Chertykov <denisc@overta.ru>
3148 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
3149 More comments added.
3150 (md_begin): Removed "construct symbols for each register name".
3151 Because register names conflicts with GCC generated function
3153 (avr_operand): Now constant numbers can be used as a register
3154 identifiers (0 as r0, 31 as r31).
3155 (md_assemble): use skip_space () before parsing instruction
3158 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3160 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
3161 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
3162 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
3163 * configure: Regenerate.
3165 2000-04-29 Andreas Jaeger <aj@suse.de>
3167 * as.h: Correctly check GCC version.
3169 2000-04-26 David O'Brien <obrien@FreeBSD.org>
3171 * doc/as.1: Fix unbalanced brackets.
3173 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
3175 (line_comment_chars): Set to '/' if TE_FreeBSD.
3177 Tue Apr 25 11:02:02 2000 Jeffrey A Law (law@cygnus.com)
3179 * configure.in: Configury support for PA64 (currently disabled).
3180 * configure: Rebuilt.
3182 2000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
3184 * config/tc-mips.c (s_change_sec): Use record_alignment, not
3185 bfd_set_section_alignment.
3187 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3189 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
3192 2000-04-24 Nick Clifton <nickc@cygnus.com>
3194 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
3195 * doc/as.texinfo (Align): Include arm and strongarm in list of
3196 targets that have the second form of the behaviour of the .align
3199 2000-04-24 Mark Klein <mklein@dis.com>
3201 * obj-som.c: Terminate obj_pseudo_table.
3203 Mon Apr 24 15:21:11 2000 Clinton Popetz <cpopetz@cygnus.com>
3205 * as.c (parse_args): Allow md_parse_option to override -a listing
3207 * config/obj-coff.c (add_lineno): Change type of offset parameter
3208 from "int" to "bfd_vma."
3209 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
3210 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
3211 (ppc_change_csect): Align correctly for XCOFF64.
3212 (ppc_machine): New function, which discards "ppc_machine" line.
3213 (ppc_tc): Cons for 8 when code is 64 bit.
3214 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
3216 (md_parse_option): Handle -a64 and -a32.
3218 * config/tc-ppc.h (TARGET_MACH): Define.
3219 (TARGET_FORMAT): Move to function.
3220 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
3222 Sun Apr 23 16:45:45 2000 Denis Chertykov <denisc@overta.ru>
3224 * config/tc-avr.c: New AVR_ISA_ defined.
3225 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
3226 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
3227 for `fmul', `movw' and `lpm R,Z' instructions.
3228 (avr_operands): Warn if current opcode is a two-word instruction
3229 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
3230 (avr_opcodes): New commands added.
3231 (REGISTER_P): Check 'a' and 'v' constraint letters.
3232 (mcu_types): New MCU added.
3234 2000-04-22 Timothy Wall <twall@cygnus.com>
3236 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
3238 (operand_match): Conditionally insert default bit values for IMMU9.
3240 2000-04-14 Matthew Green <mrg@cygnus.com>
3242 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
3243 * configure: Rebuilt.
3245 Fri Apr 21 14:29:43 2000 Jeffrey A Law (law@cygnus.com)
3246 Jason Eckhardt <jle@cygnus.com>
3248 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
3250 * config/tc-hppa.c (CHECK_ALIGN): New macro.
3251 Added handling of new operand types l,y,&,fe,fE,fx.
3253 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3254 David Mosberger <davidm@hpl.hp.com>
3255 Timothy Wall <twall@cygnus.com>
3256 Andrew MacLeod <amacleod@cygnus.com>
3257 Jim Wilson <wilson@cygnus.com>
3259 * Makefile.am (CPU_TYPES): Add ia64.
3260 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
3261 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
3262 * Makefile.in: Rebuild.
3263 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
3264 * configure: Rebuild.
3265 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
3266 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
3267 * expr.c (expr): Handle md_optimize_expr.
3268 * read.c (LEX_HASH): Add comment.
3269 * config/tc-ia64.c, config/tc-ia64.h: New files.
3271 2000-04-21 Richard Henderson <rth@cygnus.com>
3273 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
3274 bundling a non-delayed branch type instruction.
3276 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
3278 * config/tc-mn10300.c (HAVE_AM30): Define.
3279 (md_assemble): Use it.
3281 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3283 * config/obj-elf.c (obj_elf_change_section): Check for changed
3286 * Makefile.am: (CPU_MULTI_VALID): Remove.
3287 (MULTI_CPU_TYPES): Define.
3288 (MULTI_CPU_OBJ_VALID): Define.
3289 (DEPTC): Use the above.
3290 (DEPOBJ): Same here.
3292 Regenerate dependencies.
3293 * Makefile.in: Regenerate.
3295 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3297 * Makefile.am (YACC, LEX): Get them from configure.
3299 2000-04-18 H.J. Lu (hjl@gnu.org)
3301 * config/tc-i386.c (offset_in_range): Use addressT instead of
3302 bfd_vma for non-bfd assemblers.
3304 2000-04-17 Alan Modra <alan@linuxcare.com.au>
3306 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
3307 doesn't give spurious errors.
3309 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3311 * as.h (SEEK_SET): Define if undefined.
3313 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3315 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
3316 constants, and don't assume offsetT is 32 bits.
3318 2000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
3320 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
3321 (md_pcrel_from_section): Add prototype.
3322 (d10v_fix_adjustable): Add prototype.
3323 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
3325 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
3327 2000-04-12 Nick Clifton <nickc@cygnus.com>
3329 * config/tc-d10v.c (find_opcode): Correctly calculate position of
3330 symbol in frag chain.
3332 2000-04-10 Alan Modra <alan@linuxcare.com.au>
3334 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
3335 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
3336 (fits_in_signed_word, smallest_imm_type): Ditto.
3337 (md_assemble): Use an offsetT var to hold offsetT values, not a
3339 (offset_in_range): New.
3340 (md_assemble): Use it.
3341 (md_convert_frag): Change type of target_address, opcode_address,
3342 and displacement_from_opcode_start to offsetT.
3343 (md_create_short_jump): Change type of offset to offsetT.
3344 (md_create_long_jump): Ditto.
3345 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
3346 (md_chars_to_number): Remove.
3347 (output_invalid): Remove duplicate prototype.
3349 2000-04-09 Nick Clifton <nickc@cygnus.com>
3351 * Makefile.am (CPU_TYPES): Add 'avr'.
3352 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
3353 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
3355 * Makefile.in: Regenerate.
3357 * doc/as.texinfo: Add M32R documentation.
3359 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3361 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3362 --enable-build-warnings option.
3363 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3364 * Makefile.in, configure: Re-generate.
3366 2000-04-07 Nick Clifton <nickc@cygnus.com>
3368 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
3369 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
3370 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
3371 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
3372 (arm_force_relocation): Force relocations for
3373 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
3375 Wed Apr 5 22:26:32 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3377 * config/tc-sh.c (get_operands): There's no third operand if the
3378 first operand is an immediate.
3380 Wed Apr 5 22:07:19 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3382 * config/tc-sh.c (immediate): Delete.
3383 (sh_operand_info): Add immediate member.
3384 (parse_reg): Use A_PC for pc.
3385 (parse_exp): Add second argument 'op'. All callers changed.
3386 (parse_at): Expect pc to be coded as A_PC.
3387 Use immediate field in *op.
3388 (insert): Add fourth argument 'op'. All callers changed.
3389 (build_relax): Add second argument 'op'. All callers changed.
3390 (insert_loop_bounds): New function.
3391 (build_Mytes): Remove DISP_4.
3392 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
3393 (assemble_ppi): Use immediate field in *operand.
3394 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
3395 (md_apply_fix): Likewise.
3396 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
3398 Wed Apr 5 06:35:45 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3400 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
3402 Tue Apr 4 19:27:50 2000 Hans-Peter Nilsson <hp@axis.com>
3404 * internals.texi (CPU backend): Document
3405 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
3407 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3409 * po/gas.pot: Regenerate.
3411 * as.c (show_usage): Restore translated part of bug string.
3412 * gasp.c (show_usage): Likewise.
3414 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
3415 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
3416 than move-if-change.
3417 (DEP1): Modify for "gcc -MM".
3421 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
3422 Update dependencies.
3423 * Makefile.in: Regenerate.
3425 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
3427 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
3428 (md_begin): Likewise.
3429 (HAVE_AM33): New macro.
3430 (md_assemble): Use it. Match r_regs and xr_regs only if
3433 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3435 * as.h: #include "bin-bugs.h"
3436 * as.c (show_usage): Use REPORT_BUGS_TO.
3437 * gasp.c: #include "bin-bugs.h"
3438 (show_usage): Use REPORT_BUGS_TO.
3440 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
3442 Mon Apr 3 13:56:03 2000 Hans-Peter Nilsson <hp@axis.com>
3444 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
3445 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
3448 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3450 * config/tc-i386.c (i386_immediate): Don't assume a constant
3451 immediate is necessarily 16 bits when in 16 bit code mode.
3452 (md_assemble): Instead set guess_suffix here after we have checked
3455 2000-04-02 Richard Henderson <rth@cygnus.com>
3457 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
3458 quantities. Correct right shift sign extension.
3459 (build_insn): Make `number' unsigned long. Mask top 6 bits of
3460 32-bit value when shifting into place.
3462 2000-04-01 Ian Lance Taylor <ian@zembu.com>
3464 * app.c: Add ATTRIBUTE_UNUSED as needed.
3465 * config/tc-ppc.c: Likewise.
3466 (ppc_size): Make unsigned long.
3467 (ppc_insert_operand): Add casts to avoid warnings.
3469 2000-03-31 Nick Clifton <nickc@cygnus.com>
3471 * config/tc-d10v.h (md_flush_pending_output): Define.
3473 2000-03-29 Nick Clifton <nickc@cygnus.com>
3475 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
3476 segment. Works for both BFD_ASSEMBLER and others.
3477 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
3479 2000-03-29 Nick Clifton <nickc@cygnus.com
3481 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
3483 2000-03-28 Alan Modra <alan@linuxcare.com.au>
3485 * listing.c (LISTING_LHS_WIDTH): Default depends on
3487 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
3489 2000-03-27 Ian Lance Taylor <ian@zembu.com>
3491 * config/tc-sh.c (md_show_usage): Use backslash before newline in
3494 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3496 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
3498 * config/tc-avr.c (mcu_types): Add missing initialiser.
3499 (md_pcrel_from_section): Add prototype.
3500 (avr_operand): Remove redundant test of unsigned < 0.
3501 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
3503 2000-03-27 Denis Chertykov <denisc@overta.ru>
3505 * config/tc-avr.c: New file for AVR support.
3506 * config/tc-avr.h: Likewise.
3507 * configure.in: Add AVR support.
3508 * configure: Regenerate.
3510 2000-03-26 Timothy Wall <twall@cygnus.com>
3512 * gasp.c (macro_op): Add new argument to check_macro call.
3513 Macro structure definitions moved to macro.h
3514 * sb.h: Add argument to prototype for input_scrub_include_sb.
3515 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
3516 nesting checks with an additional flag.
3517 (struct input_save): Add flag to indicate whether current sb
3518 should be checked for proper macro/conditional nesting.
3519 (input_scrub_push/pop): Save/restore nest check flag.
3520 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
3522 * macro.c (check_macro): Allow caller to retrieve parsed macro
3523 information if a pointer is provided. This information may be
3524 used by the new macro hooks.
3525 * macro.h: Update prototype for check_macro. Macro struct
3526 definitions moved here from macro.c/gasp.c.
3527 * read.c (read_a_source_file): Add parameter to check_macro call,
3528 and pass macro info to the macro hook, if defined.
3529 (input_scrub_insert_line): New. Allow insertion of a line of
3530 characters into the input stream.
3531 (input_scrub_insert_file): New. Allow insertion of an arbitrary
3532 file into the input stream.
3533 (s_include): Use input_scrub_insert_file.
3534 * internals.texi: Document new macro hooks.
3535 * as.h: New prototypes added.
3537 2000-03-26 Alan Modra <alan@linuxcare.com.au>
3539 * config/tc-i386.c: Don't start any as_bad or as_warn message with
3540 an initial capital letter.
3541 (i386_index_check): Reindent.
3543 2000-03-19 Nick Clifton <nickc@cygnus.com>
3545 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
3548 2000-03-17 Thomas de Lellis <tdel@windriver.com>
3550 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
3551 instruction operand bad if Rd > 7 when generating
3552 thumb instructions. Prevents for example,
3553 "adr r12,label" from silently failing and generating
3554 the wrong instruction.
3556 2000-03-17 Nick Clifton <nickc@cygnus.com>
3558 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
3559 that have a destingation >= 0x400000.
3560 Fix compile time warning messages.
3562 Thu Mar 16 23:45:16 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3564 * config/tc-sh.c (md_begin): When encountering insn that are
3565 not supported by the current arch, only change the name if
3566 its contents are the same as prev_name.
3567 (get_specific): If the the architecture doesn't match, fail.
3569 Thu Mar 16 21:18:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3571 * config/tc-sh.c (IDENT_CHAR): Define.
3572 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
3573 matching back where it came from.
3575 Thu Mar 16 20:58:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3577 * config/tc-sh.c (md_show_usage): Add description of -dsp.
3579 2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
3581 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
3584 2000-03-15 Kazu Hirata <kazu@hxi.com>
3586 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
3588 Mon Mar 13 22:02:59 2000 Hans-Peter Nilsson <hp@axis.se>
3590 * expr.c (operand) [case 'f']: When testing if '0f' can start a
3591 floating-point-number, make sure 'f' is in FLT_CHARS.
3593 Sat Mar 11 00:01:39 2000 Hans-Peter Nilsson <hp@axis.se>
3595 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
3596 (s_lcomm_internal): Use it.
3597 * doc/internals.texi (CPU backend): Document it.
3598 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
3601 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3603 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
3606 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
3607 implementation doesn't have special handling for switch
3609 (macro_build): Allow for code in sections other than .text.
3611 (mips_ip): Likewise.
3612 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
3613 Don't perform relocs if we will be outputting them.
3614 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
3615 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
3618 2000-03-09 Catherine Moore <clm@cygnus.com>
3620 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
3621 relocation type based on the entry in the fixup structure.
3622 Put S_IS_EXTERN processing back in.
3624 2000-03-08 H.J. Lu (hjl@gnu.org)
3626 * Makefile.am (install-exec-tooldir): Depend on
3627 install-exec-bindir for parallel make.
3628 * Makefile.in: Regenerated.
3630 2000-03-06 Nick Clifton <nickc@cygnus.com>
3632 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
3634 (md_parse_option): Parse -m32r command line switch - disable m32rx
3636 (md_show_usage): Document new option.
3638 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
3639 * doc/Makefile.in: Regenerate.
3640 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
3642 2000-03-02 Michael Meissner <meissner@redhat.com>
3644 * config/tc-d30v.c (check_range): Remove code that incorrectly
3645 sign extended values where bits < 32.
3647 2000-03-02 H.J. Lu (hjl@gnu.org)
3649 * configure.in: Support --enable-targets=all on ia32.
3650 * configure: Regenerated.
3652 2000-03-01 Nick Clifton <nickc@cygnus.com>
3654 * gasp.c (do_align): Remove bogus check of alignment value.
3656 2000-02-27 Thomas de Lellis <tdel@windriver.com>
3658 * config/obj-elf.c (elf_frob_symbol): Remove code which when
3659 TC_PPC was defined forced the type of a symbol with no other type
3662 2000-02-27 Hans-Peter Nilsson <hp@axis.com>
3664 * doc/internals.texi (CPU backend): Mention that
3665 line_separator_chars do not break up comments. Fix typos for
3666 LEX_AT and LEX_NAME descriptions. Document operands for
3667 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
3668 description of md_create_short_jump usage. Document argument for
3669 md_undefined_symbol.
3671 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3673 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
3674 (md_parse_option): Handle it.
3675 (md_show_usage): Document it.
3677 2000-02-27 Ian Lance Taylor <ian@zembu.com>
3679 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
3680 opcode, for the instruction `pal19'. From Andrea Arcangeli
3683 2000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
3685 * config/tc-i386.c (i386_immediate): Move constant operand sizing
3687 (md_assemble): To here, before template operands are matched.
3688 Also ensure a constant immediate is sign extended when we know the
3689 size is at most 16 bits. This is to catch cases like "add
3690 $0xffc0,%ax" where we don't know the size, and thus that the
3691 immediate can be represented as Imm8S until after parsing the
3693 (i386_displacement): Similarly sign extend 16 bit constant
3695 (md_assemble): Relax 16-bit jump constant range check to suit sign
3696 extended displacements.
3698 2000-02-26 Andreas Jaeger <aj@suse.de>
3700 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
3702 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
3704 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
3705 call operands when intel_syntax.
3706 (intel_float_operand): Return 2 for "fi...".
3707 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
3708 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
3709 earlier "SHORT" change.
3710 (md_assemble): When determining suffix from Regs, exclude
3713 2000-02-24 Nick Clifton <nickc@cygnus.com>
3715 * configure: Add arm-wince, mips-pe and sh-pe targets.
3716 * configure: Regenerate.
3718 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
3720 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
3721 "pe-mips" for the mips-pe target.
3723 * config/tc-arm.c (insns): Change displacement encoded in BL
3724 and B instructions if the target port is arm-wince.
3725 (do_ldst): Do not bias the relocation offset if the target
3727 (md_pcrel_from): Add in missing relocation offset bias if the
3728 target os arm-wince.
3730 * config/tc-mips.c (mips_target_format): Support COFF flavour.
3731 (md_begin): Disable -G support for mips-pe target.
3732 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
3733 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
3736 * config/tc-sh.c (md_begin): sh-pe target is little endian.
3737 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
3738 assembler, just set the alignment to 4.
3740 * config/te-wince-pe.h: New file for WinCE targets. Define
3743 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
3745 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
3746 string instructions.
3747 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
3748 (i386_intel_memory_operand): After finding a segment override,
3749 check again for no `[' before looking for a displacement. Bomb if
3750 more than one displacement rather than silently discarding the
3751 second and subsequent ones. Free strings malloc'd by
3752 build_displacement_string.
3754 2000-02-24 Catherine Moore <clm@cygnus.com>
3756 * config/obj-som.c (obj_pseudo_table): Add "weak".
3757 (obj_som_weak): New routine.
3759 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
3761 * config/tc-i386.c (union i386_op): New.
3762 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
3763 Throughout file replace occurences of disps[n], imms[n], regs[n]
3764 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
3765 intel mode operand swapping. Add assert in regKludge and
3766 fake_zero_displacement code. Test i.types[n] when outputting
3767 displacements and immediates. Combine output of Disp16 with
3769 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
3770 when in intel mode by (not) reversing fsub and fdiv operands
3771 before the template search. This fails for single operand
3772 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
3773 undefined. Instead fix the base_opcode after we've found the
3774 template. Move base_opcode xor with found_reverse_match from
3775 opcode output code to before this fix so we test for the correct
3777 (md_assemble): Don't use strcmp when deciding to ignore the suffix
3778 check in intel mode. Instead compare opcodes.
3780 * config/tc-i386.h (TC_RELOC): Delete.
3781 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
3782 with equivalent call to reloc.
3784 * as.h (flag_m68k_mri): Move declaration after target include, and
3785 only declare when TC_M68K defined. Define as zero otherwise.
3786 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
3787 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
3788 Define as zero otherwise.
3789 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
3790 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
3791 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
3792 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
3793 testing whether defined.
3794 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
3795 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
3796 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
3797 rather than testing whether defined.
3798 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
3799 (parse_mri_cons): Declare and use only when TC_M68K.
3800 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
3801 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
3802 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
3804 * NEWS: Mention IBM 370 support.
3806 2000-02-23 Richard Henderson <rth@cygnus.com>
3808 * config/tc-i386.c (md_assemble): When swapping operands for
3809 intel_syntax, assume everything that's not Imm or Disp is a
3812 2000-02-23 Linas Vepstas <linas@linas.org>
3814 * config/tc-i370.c, config/tc-i370.h: New files.
3815 * Makefile.am: Add support for Linux/IBM 370.
3816 * configure.in: Likewise.
3817 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
3818 * config/obj-elf.c: Include elf/i370.h
3819 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
3821 * Makefile.in: Regenerate.
3822 * configure: Regenerate.
3824 * doc/c-i370.texi: New file.
3825 * doc/all.texi: Include it.
3826 * doc/as.texinfo: And here.
3827 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
3828 * doc/Makefile.in: Regenerate.
3830 2000-02-19 Michael Meissner <meissner@redhat.com>
3832 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
3833 determine if an instruction can be used in parallel with an ADDppp
3834 or SUBppp instruction.
3836 2000-02-22 Andrew Haley <aph@cygnus.com>
3838 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
3840 2000-02-22 Andrew Haley <aph@cygnus.com>
3842 * config/tc-mips.c (mips_gp32): New variable.
3843 (macro_build) Use mips_gp32.
3845 (md_longopts): Add "-mgp32" and "-mgp64".
3846 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
3848 (OPTION_M7900): Change offset
3849 (OPTION_NO_M7900): Ditto.
3851 2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3853 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
3854 warning, and bump it to 1.
3856 2000-02-22 Ian Lance Taylor <ian@zembu.com>
3858 From Brad Lucier <lucier@math.purdue.edu>:
3859 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
3862 2000-02-21 Catherine Moore <clm@cygnus.com>
3864 * config/tc-mips.c (MF_HILO_INSN): Define.
3865 (mips_7000_hilo_fix): Declare.
3866 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
3867 (md_parse_option): Check for 7000_HILO_FIX options.
3868 (OPTION_M7000_HILO_FIX): Define.
3869 (OPTION_NO_M7000_HILO_FIX): Define.
3870 * doc/c-mips.texi (-mfix7000): Describe.
3872 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3874 * listing.c (print_lines): Remove unused variable `end'.
3876 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
3877 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
3878 reloc_type when BFD_ASSEMBLER.
3879 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
3880 reloc_type when BFD_ASSEMBLER. Move common code out of switch
3881 statement and quell signed vs. unsigned comparison warning.
3883 2000-02-18 Nick Clifton <nickc@cygnus.com>
3885 * config/tc-d10v.c (find_opcode): Add a symbol's value to
3886 the computed frag offset, rather than overwriting it.
3888 Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3890 * config/tc-sh.c ("elf/sh.h"): Include.
3891 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
3892 (md.begin): Initialize target_arch.
3893 Only include opcodes in has table that match selected architecture.
3894 (parse_reg): Recognize register names for sh-dsp.
3895 (parse_at): Recognize post-modify addressing.
3896 (get_operands): The leading space is now optional.
3897 (get_specific): Remove FDREG_N support. Add support for sh-dsp
3898 arguments. Update valid_arch.
3899 (build_Mytes): Add support for SDT_REG_N.
3900 (find_cooked_opcode): New function, broken out of md_assemble.
3901 (assemble_ppi, sh_elf_final_processing): New functions.
3902 (md_assemble): Use find_cooked_opcode and assemble_ppi.
3903 (md_longopts, md_parse_option): New option: -dsp.
3904 * config/tc-sh.h (elf_tc_final_processing): Define.
3905 (sh_elf_final_processing): Declare.
3907 Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
3909 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
3910 the unwinder subspace. Save the current seg/subseg before creating
3913 2000-02-10 Nick Clifton <nickc@cygnus.com>
3915 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
3916 little endian targets.
3917 (INST_BYTE1): Redefine to handle big and little endian
3919 (cpu_type): New type: Select between M340 and M210.
3920 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
3921 instructions of the M340.
3922 (md_assemble): Add support for the MULSH and OPSR classes of
3924 (md_atof): Add support for little endian targets.
3925 (md_parse_option): Add support for -EL, -EB and -mcpu command
3927 (md_convert_frag): Add support for little endian targets.
3928 (md_apply_fix3): Add support for little endian targets.
3929 (md_number_to_chars): Add support for little endian targets.
3931 2000-02-10 Timothy Wall <twall@redhat.com>
3933 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
3934 defined, use it to verify the symbol just read should be a label.
3936 2000-02-10 Timothy Wall <twall@redhat.com>
3938 * app.c (do_scrub_chars): Handle "||" for parallel instructions
3939 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
3940 around colons when KEEP_WHITE_AROUND_COLON is defined.
3941 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
3942 and KEEP_WHITE_AROUND_COLON.
3944 2000-02-08 Timothy Wall <twall@redhat.com>
3946 * read.c (s_rept): Call do_repeat, which abstracts the repeat
3948 (do_repeat): New. Abstract repeat logic so that a "break" can be
3950 (end_repeat): New. Provide support for a "break" out of the
3952 * read.h: Add prototypes for new functions.
3954 2000-02-08 Timothy Wall <twall@redhat.com>
3956 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
3957 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
3958 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
3961 2000-02-08 Timothy Wall <twall@redhat.com>
3963 * read.c: Added elseif to directives table.
3964 * read.h: Added prototype for s_elseif.
3965 * doc/as.texinfo: Added description for elseif.
3966 * cond.c (s_elseif): New function
3968 2000-02-04 Timothy Wall <twall@redhat.com>
3970 * listing.c (print_lines): Remove conditionals causing bug in
3973 2000-02-03 Timothy Wall <twall@cygnus.com>
3975 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
3977 * frags.c (frag_new): Calculate fr_fix in octets
3978 (frag_now_fix) Return offset as target address offset (bytes).
3979 (frag_now_fix_octets) New - Return offset in octets (8-bit
3981 * frags.h: Added prototype for frag_now_fix_octets().
3982 Distinguish between octets and bytes in field descriptions.
3983 * listing.c (calc_hex): Account for octets vs bytes when
3984 printing addresses/offsets.
3985 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
3986 target is little-endian, print the octets in a word in big-endian
3987 order so that the display looks like a proper hexadecimal number,
3988 instead of having the octets reversed.
3989 * read.c (do_align): When recording alignment, alignment power
3990 should be in terms of target bytes (minimum addressible unit)
3992 (do_org) Convert ORG target address (byte) argument into an
3993 octet offset when generating a variable fragment.
3994 * symbols.c (resolve_symbol_value): Symbol final value
3995 converted to a target address offset (bytes) from its octet offset.
3996 * config/obj-coff.c (coff_frob_symbol): Symbol target address
3997 offset (bytes) is adjusted by the frag offset (octets) converted
3999 (coff_frob_section) Section alignment power is in terms of bytes;
4000 convert it to an octet alignment power when calculating size (and
4001 size mask) in octets. Don't modify the section size in order to
4002 "align" it for TI COFF, since that format has a different method
4003 for storing alignment information.
4005 2000-02-01 Timothy Wall <twall@cygnus.com>
4007 * stabs.c (generate_asm_file): Escape backslashes in stabs file
4008 entries, matching the way GCC generates them. If not escaped, the
4009 filename is encoded incorrectly.
4011 2000-01-31 Nick Clifton <nickc@cygnus.com>
4013 * config/tc-arm.c (reg_table): Add support for ATPCS register
4016 2000-01-31 Geoff Keating <geoffk@cygnus.com>
4018 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
4020 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
4022 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
4023 of a symbol when we really care about its value.
4025 2000-01-19 Chandra Chavva <cchavva@cygnus.com>
4027 * config/tc-mcore.c (md_assemble): Give warning message if
4028 operands passes to instruction are more than the spec.
4030 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4032 * config/tc-arm.c (armadjust_symtab): If the assembler is in
4033 Thumb mode but the label seen was not declared as '.thumb_func'
4034 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
4035 correct disassembly of Thumb code bounded by non function labels.
4037 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4039 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
4040 Add dependencies for e-i386aout.o. Fix 2 comment lines.
4042 * Makefile.in: Same here.
4045 * configure.in: Set bfd_gas for i386-aout when primary target
4046 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
4047 we may need the primary te_file. Remove incorrect comment.
4049 * configure: Regenerate.
4051 * config/e-i386aout.c: New file.
4053 * as.c (USE_EMULATIONS): Move to before print_version_id.
4054 (struct emulation): Add i386aout.
4055 (show_usage): Split text strings. Reformat -a text. Add --em
4059 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
4060 (aout_format_ops): New.
4063 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
4064 preprocessor conditional and add aout USE_EMULATIONS tests.
4065 (read_a_source_file): Don't pass error strings to printf as
4069 * gasp.c (exp_get_abs): Don't pass error strings to printf as
4071 (do_data): Same here.
4072 (process_file): And here.
4075 * symbols.c (colon): Rewrite "already defined" fatal message
4076 code for aout with USE_EMULATIONS.
4079 * config/obj-aout.c (OBJ_HEADER): Define.
4080 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
4082 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
4083 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
4085 (obj_aout_type): Expand S_SET_OTHER here too.
4086 (obj_read_begin_hook): Remove.
4087 (aout_pop_insert): New.
4088 (obj_aout_s_get_other): New.
4089 (obj_aout_s_get_desc): New.
4090 (aout_format_ops): New.
4093 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
4094 gets aout_pseudo_table.
4095 (aout_pseudo_table): Declare.
4096 (obj_read_begin_hook): Define.
4099 * config/obj-coff.c (obj_pseudo_table): Rename to
4101 (coff_pop_insert): Use coff_pseudo_table.
4102 (coff_sec_sym_ok_for_reloc): Remove.
4103 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
4104 and comment all zero entries and remove #if 0 code.
4107 * config/obj-coff.h (obj_pop_insert): Define.
4108 (coff_pseudo_table): Declare.
4111 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
4112 s_get_size, s_set_size. Comment all zero entries.
4115 * config/obj-elf.c (elf_s_get_other): New function.
4116 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
4117 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
4118 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
4120 (obj_elf_parse_section_letters): Don't pass error strings to
4121 printf as format arg.
4124 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
4126 (elf_s_get_other): Declare.
4127 (S_GET_OTHER) Define as elf_s_get_other if not already
4129 (S_SET_OTHER): Only define when not already defined.
4130 (elf_obj_read_begin_hook): Declare.
4131 (obj_read_begin_hook): Define.
4132 (elf_obj_symbol_new_hook): Declare.
4133 (obj_symbol_new_hook): Define.
4136 * config/obj-multi.h: Add copyright header and protect against
4137 multiple inclusion. Add * to all function pointers.
4138 (OBJ_HEADER): If defined, include it rather than other defines
4140 (obj_frob_file_after_relocs): Test for NULL.
4141 (obj_symbol_new_hook): Here too.
4142 (obj_sec_sym_ok_for_reloc): And here.
4143 (S_GET_OTHER): Define.
4144 (S_GET_DESC): Define.
4145 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
4146 (OBJ_MAYBE_ELF): Update comment.
4148 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
4149 OBJ_AOUT preprocessor conditional and handle emulation by
4150 testing OUTPUT_FLAVOR.
4151 (i386_displacement): Here too.
4152 (md_section_align): Similarly here.
4153 (i386_target_format): Conditionally compile when more than one
4154 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
4155 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
4156 (i386_displacement): Here too.
4159 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
4160 Define TARGET_FORMAT for aout only when not multi.
4163 * config/te-multi.h: Delete file as it's identical to te-generic.h
4165 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
4167 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
4168 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
4171 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
4173 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
4176 2000-01-13 Clinton Popetz <cpopetz@cygnus.com>
4178 * config/tc-mips.c (mips_do_align): New function.
4179 * config/tc-mips.h (md_do_align): Define.
4181 2000-01-10 Philip Blundell <philb@gnu.org>
4183 * doc/c-arm.texi (ARM Options): Fix typo.
4184 (ARM-Chars): Correct description of `#'. Mention that `;' is a
4185 line separator for Linux.
4186 * doc/as.texinfo (Comments): Mention the ARM.
4188 2000-01-10 Philip Blundell <pb@futuretv.com>
4190 * configure.in (arm*-*-conix*): New target.
4191 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
4193 * configure: Regenerate.
4195 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4197 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
4198 (obj_elf_visibility): New function.
4200 * doc/as.texinfo (Visibility): New node: document visibility
4203 For older changes see ChangeLog-9899