From Fernando: call generic_mourn_inferior() when closing rdi and sim
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
c5e54cc2
ILT
12000-02-27 Thomas de Lellis <tdel@windriver.com>
2
3 * config/obj-elf.c (elf_frob_symbol): Remove code which when
4 TC_PPC was defined forced the type of a symbol with no other type
5 to be BSF_OBJECT.
6
65fd87bc
ILT
72000-02-27 Hans-Peter Nilsson <hp@axis.com>
8
9 * doc/internals.texi (CPU backend): Mention that
10 line_separator_chars do not break up comments. Fix typos for
11 LEX_AT and LEX_NAME descriptions. Document operands for
12 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
13 description of md_create_short_jump usage. Document argument for
14 md_undefined_symbol.
15
a25fe906
ILT
162000-02-27 Jakub Jelinek <jakub@redhat.com>
17
18 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
19 (md_parse_option): Handle it.
20 (md_show_usage): Document it.
21
21b10511
ILT
222000-02-27 Ian Lance Taylor <ian@zembu.com>
23
24 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
25 opcode, for the instruction `pal19'. From Andrea Arcangeli
26 <andrea@suse.de>.
27
773f551c
AM
282000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
29
30 * config/tc-i386.c (i386_immediate): Move constant operand sizing
31 from here..
32 (md_assemble): To here, before template operands are matched.
33 Also ensure a constant immediate is sign extended when we know the
34 size is at most 16 bits. This is to catch cases like "add
35 $0xffc0,%ax" where we don't know the size, and thus that the
36 immediate can be represented as Imm8S until after parsing the
37 register operand.
38 (i386_displacement): Similarly sign extend 16 bit constant
39 displacements.
40 (md_assemble): Relax 16-bit jump constant range check to suit sign
41 extended displacements.
42
28d33191
JL
432000-02-26 Andreas Jaeger <aj@suse.de>
44
45 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
46
cc5ca5ce
AM
472000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
48
49 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
50 call operands when intel_syntax.
51 (intel_float_operand): Return 2 for "fi...".
52 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
53 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
54 earlier "SHORT" change.
55 (md_assemble): When determining suffix from Regs, exclude
56 InOutPortReg.
57
056350c6
NC
582000-02-24 Nick Clifton <nickc@cygnus.com>
59
60 * configure: Add arm-wince, mips-pe and sh-pe targets.
61 * configure: Regenerate.
62
63 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
64 sh-pe targets.
65 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
66 "pe-mips" for the mips-pe target.
67
68 * config/tc-arm.c (insns): Change displacement encoded in BL
69 and B instructions if the target port is arm-wince.
70 (do_ldst): Do not bias the relocation offset if the target
71 port is arm-wince.
72 (md_pcrel_from): Add in missing relocation offset bias if the
73 target os arm-wince.
74
75 * config/tc-mips.c (mips_target_format): Support COFF flavour.
76 (md_begin): Disable -G support for mips-pe target.
77 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
78 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
79 COFF flavour.
80
81 * config/tc-sh.c (md_begin): sh-pe target is little endian.
82 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
83 assembler, just set the alignment to 4.
84
85 * config/te-wince-pe.h: New file for WinCE targets. Define
86 TE_WINCE.
87
36bf8ab9
AM
882000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
89
90 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
91 string instructions.
92 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
93 (i386_intel_memory_operand): After finding a segment override,
94 check again for no `[' before looking for a displacement. Bomb if
95 more than one displacement rather than silently discarding the
96 second and subsequent ones. Free strings malloc'd by
97 build_displacement_string.
98
f5795b08
CM
992000-02-24 Catherine Moore <clm@cygnus.com>
100
101 * config/obj-som.c (obj_pseudo_table): Add "weak".
102 (obj_som_weak): New routine.
103
abd63a32
AM
1042000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
105
520dc8e8
AM
106 * config/tc-i386.c (union i386_op): New.
107 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
108 Throughout file replace occurences of disps[n], imms[n], regs[n]
109 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
110 intel mode operand swapping. Add assert in regKludge and
111 fake_zero_displacement code. Test i.types[n] when outputting
112 displacements and immediates. Combine output of Disp16 with
113 Disp32.
7f3f1ea2
AM
114 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
115 when in intel mode by (not) reversing fsub and fdiv operands
116 before the template search. This fails for single operand
117 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
118 undefined. Instead fix the base_opcode after we've found the
119 template. Move base_opcode xor with found_reverse_match from
120 opcode output code to before this fix so we test for the correct
121 opcodes.
122 (md_assemble): Don't use strcmp when deciding to ignore the suffix
123 check in intel mode. Instead compare opcodes.
520dc8e8
AM
124
125 * config/tc-i386.h (TC_RELOC): Delete.
126 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
127 with equivalent call to reloc.
128
abd63a32
AM
129 * as.h (flag_m68k_mri): Move declaration after target include, and
130 only declare when TC_M68K defined. Define as zero otherwise.
131 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
132 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
133 Define as zero otherwise.
134 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
135 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
136 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
137 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
138 testing whether defined.
139 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
140 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
141 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
142 rather than testing whether defined.
143 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
144 (parse_mri_cons): Declare and use only when TC_M68K.
145 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
146 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
147 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
148
149 * NEWS: Mention IBM 370 support.
150
7e052742
RH
1512000-02-23 Richard Henderson <rth@cygnus.com>
152
153 * config/tc-i386.c (md_assemble): When swapping operands for
154 intel_syntax, assume everything that's not Imm or Disp is a
155 register.
156
5b93d8bb
AM
1572000-02-23 Linas Vepstas <linas@linas.org>
158
159 * config/tc-i370.c, config/tc-i370.h: New files.
160 * Makefile.am: Add support for Linux/IBM 370.
161 * configure.in: Likewise.
162 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
163 * config/obj-elf.c: Include elf/i370.h
164 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
165
166 * Makefile.in: Regenerate.
167 * configure: Regenerate.
168
169 * doc/c-i370.texi: New file.
170 * doc/all.texi: Include it.
171 * doc/as.texinfo: And here.
172 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
173 * doc/Makefile.in: Regenerate.
174
25f2196d
CC
1752000-02-19 Michael Meissner <meissner@redhat.com>
176
177 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
178 determine if an instruction can be used in parallel with an ADDppp
179 or SUBppp instruction.
180
6349b5f4
AH
1812000-02-22 Andrew Haley <aph@cygnus.com>
182
183 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
184
c97ef257
AH
1851999-12-30 Andrew Haley <aph@cygnus.com>
186
187 * config/tc-mips.c (mips_gp32): New variable.
188 (macro_build) Use mips_gp32.
189 (mips_ip): Ditto.
190 (md_longopts): Add "-mgp32" and "-mgp64".
191 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
192
b985eaa8
ILT
1932000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
194
195 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
196 warning, and bump it to 1.
197
52454417
ILT
1982000-02-22 Ian Lance Taylor <ian@zembu.com>
199
200 From Brad Lucier <lucier@math.purdue.edu>:
201 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
202 match format.
203
6b76fefe
CM
2042000-02-21 Catherine Moore <clm@cygnus.com>
205
206 * config/tc-mips.c (MF_HILO_INSN): Define.
207 (mips_7000_hilo_fix): Declare.
208 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
209 (md_parse_option): Check for 7000_HILO_FIX options.
210 (OPTION_M7000_HILO_FIX): Define.
211 (OPTION_NO_M7000_HILO_FIX): Define.
212 * doc/c-mips.texi (-mfix7000): Describe.
213
f6af82bd
AM
2142000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
215
216 * listing.c (print_lines): Remove unused variable `end'.
217
218 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
219 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
220 reloc_type when BFD_ASSEMBLER.
221 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
222 reloc_type when BFD_ASSEMBLER. Move common code out of switch
223 statement and quell signed vs. unsigned comparison warning.
224
8c8281f4
NC
2252000-02-18 Nick Clifton <nickc@cygnus.com>
226
227 * config/tc-d10v.c (find_opcode): Add a symbol's value to
228 the computed frag offset, rather than overwriting it.
229
d4845d57
JR
230Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
231
232 * config/tc-sh.c ("elf/sh.h"): Include.
233 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
234 (md.begin): Initialize target_arch.
235 Only include opcodes in has table that match selected architecture.
236 (parse_reg): Recognize register names for sh-dsp.
237 (parse_at): Recognize post-modify addressing.
238 (get_operands): The leading space is now optional.
239 (get_specific): Remove FDREG_N support. Add support for sh-dsp
240 arguments. Update valid_arch.
241 (build_Mytes): Add support for SDT_REG_N.
242 (find_cooked_opcode): New function, broken out of md_assemble.
243 (assemble_ppi, sh_elf_final_processing): New functions.
244 (md_assemble): Use find_cooked_opcode and assemble_ppi.
245 (md_longopts, md_parse_option): New option: -dsp.
246 * config/tc-sh.h (elf_tc_final_processing): Define.
247 (sh_elf_final_processing): Declare.
248
c97305a1
JL
249Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
250
251 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
252 the unwinder subspace. Save the current seg/subseg before creating
253 the new seg/subseg.
254
bec50466
NC
2552000-02-10 Nick Clifton <nickc@cygnus.com>
256
257 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
258 little endian targets.
259 (INST_BYTE1): Redefine to handle big and little endian
260 targets.
261 (cpu_type): New type: Select between M340 and M210.
262 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
263 instructions of the M340.
264 (md_assemble): Add support for the MULSH and OPSR classes of
265 instructions.
266 (md_atof): Add support for little endian targets.
267 (md_parse_option): Add support for -EL, -EB and -mcpu command
268 line switches.
269 (md_convert_frag): Add support for little endian targets.
270 (md_apply_fix3): Add support for little endian targets.
271 (md_number_to_chars): Add support for little endian targets.
272
a25c045a
TW
2732000-02-10 Timothy Wall <twall@redhat.com>
274
275 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
276 defined, use it to verify the symbol just read should be a label.
277
f28e8eb3
TW
2782000-02-10 Timothy Wall <twall@redhat.com>
279
280 * app.c (do_scrub_chars): Handle "||" for parallel instructions
281 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
282 around colons when KEEP_WHITE_AROUND_COLON is defined.
283 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
284 and KEEP_WHITE_AROUND_COLON.
285
6dc19fc4
TW
2862000-02-08 Timothy Wall <twall@redhat.com>
287
288 * read.c (s_rept): Call do_repeat, which abstracts the repeat
289 logic.
290 (do_repeat): New. Abstract repeat logic so that a "break" can be
291 implemented.
292 (end_repeat): New. Provide support for a "break" out of the
293 repeat loop.
294 * read.h: Add prototypes for new functions.
295
f805106c
TW
2962000-02-08 Timothy Wall <twall@redhat.com>
297
298 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
299 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
300 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
301 non-zero.
302
4469be0f
TW
3032000-02-08 Timothy Wall <twall@redhat.com>
304
305 * read.c: Added elseif to directives table.
306 * read.h: Added prototype for s_elseif.
307 * doc/as.texinfo: Added description for elseif.
308 * cond.c (s_elseif): New function
309
24a17b6c
TW
3102000-02-04 Timothy Wall <twall@redhat.com>
311
312 * listing.c (print_lines): Remove conditionals causing bug in
313 listings.
314
bea9907b
TW
3152000-02-03 Timothy Wall <twall@cygnus.com>
316
317 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
318 default values.
319 * frags.c (frag_new): Calculate fr_fix in octets
320 (frag_now_fix) Return offset as target address offset (bytes).
321 (frag_now_fix_octets) New - Return offset in octets (8-bit
322 quantities).
323 * frags.h: Added prototype for frag_now_fix_octets().
324 Distinguish between octets and bytes in field descriptions.
325 * listing.c (calc_hex): Account for octets vs bytes when
326 printing addresses/offsets.
327 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
328 target is little-endian, print the octets in a word in big-endian
329 order so that the display looks like a proper hexadecimal number,
330 instead of having the octets reversed.
331 * read.c (do_align): When recording alignment, alignment power
332 should be in terms of target bytes (minimum addressible unit)
333 instead of octets.
334 (do_org) Convert ORG target address (byte) argument into an
335 octet offset when generating a variable fragment.
336 * symbols.c (resolve_symbol_value): Symbol final value
337 converted to a target address offset (bytes) from its octet offset.
338 * config/obj-coff.c (coff_frob_symbol): Symbol target address
339 offset (bytes) is adjusted by the frag offset (octets) converted
340 to bytes.
341 (coff_frob_section) Section alignment power is in terms of bytes;
342 convert it to an octet alignment power when calculating size (and
343 size mask) in octets. Don't modify the section size in order to
344 "align" it for TI COFF, since that format has a different method
345 for storing alignment information.
346
210dcc61
TW
3472000-02-01 Timothy Wall <twall@cygnus.com>
348
349 * stabs.c (generate_asm_file): Escape backslashes in stabs file
350 entries, matching the way GCC generates them. If not escaped, the
351 filename is encoded incorrectly.
352
557537a5
NC
3532000-01-31 Nick Clifton <nickc@cygnus.com>
354 * config/tc-arm.c (reg_table): Add support for ATPCS register
355 naming conventions.
2c1c4c62 356
557537a5
NC
3572000-01-31 Geoff Keating <geoffk@cygnus.com>
358
2c1c4c62
GK
359 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
360 already defined.
361 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
362 New macro.
363 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
364 of a symbol when we really care about its value.
365
3662000-01-19 Chandra Chavva <cchavva@cygnus.com>
2d473ce9
NC
367
368 * config/tc-mcore.c (md_assemble): Give warning message if
369 operands passes to instruction are more than the spec.
370
2f0ca46a
NC
3712000-01-27 Thomas de Lellis <tdel@windriver.com>
372
373 * config/tc-arm.c (armadjust_symtab): If the assembler is in
374 Thumb mode but the label seen was not declared as '.thumb_func'
375 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
376 correct disassembly of Thumb code bounded by non function labels.
377
4c63da97
AM
3782000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
379
380 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
381 Add dependencies for e-i386aout.o. Fix 2 comment lines.
382
383 * Makefile.in: Same here.
384 Update copyright.
385
386 * configure.in: Set bfd_gas for i386-aout when primary target
387 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
388 we may need the primary te_file. Remove incorrect comment.
389
390 * configure: Regenerate.
391
392 * config/e-i386aout.c: New file.
393
394 * as.c (USE_EMULATIONS): Move to before print_version_id.
395 (struct emulation): Add i386aout.
396 (show_usage): Split text strings. Reformat -a text. Add --em
397 help.
398 Update copyright.
399
400 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
401 (aout_format_ops): New.
402 Update copyright.
403
404 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
405 preprocessor conditional and add aout USE_EMULATIONS tests.
406 (read_a_source_file): Don't pass error strings to printf as
407 format arg.
408 Update copyright.
409
410 * gasp.c (exp_get_abs): Don't pass error strings to printf as
411 format arg.
412 (do_data): Same here.
413 (process_file): And here.
414 Update copyright.
415
416 * symbols.c (colon): Rewrite "already defined" fatal message
417 code for aout with USE_EMULATIONS.
418 Update copyright.
419
420 * config/obj-aout.c (OBJ_HEADER): Define.
421 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
422 fields of sentinel.
423 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
424 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
425 forms here.
426 (obj_aout_type): Expand S_SET_OTHER here too.
427 (obj_read_begin_hook): Remove.
428 (aout_pop_insert): New.
429 (obj_aout_s_get_other): New.
430 (obj_aout_s_get_desc): New.
431 (aout_format_ops): New.
432 Update copyright.
433
434 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
435 gets aout_pseudo_table.
436 (aout_pseudo_table): Declare.
437 (obj_read_begin_hook): Define.
438 Update copyright.
439
440 * config/obj-coff.c (obj_pseudo_table): Rename to
441 coff_pseudo_table.
442 (coff_pop_insert): Use coff_pseudo_table.
443 (coff_sec_sym_ok_for_reloc): Remove.
444 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
445 and comment all zero entries and remove #if 0 code.
446 Update copyright.
447
448 * config/obj-coff.h (obj_pop_insert): Define.
449 (coff_pseudo_table): Declare.
450 Update copyright.
451
452 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
453 s_get_size, s_set_size. Comment all zero entries.
454 Update copyright.
455
456 * config/obj-elf.c (elf_s_get_other): New function.
457 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
458 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
459 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
460 comment.
461 (obj_elf_parse_section_letters): Don't pass error strings to
462 printf as format arg.
463 Update copyright.
464
465 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
466 OBJ_MAYBE_ECOFF.
467 (elf_s_get_other): Declare.
468 (S_GET_OTHER) Define as elf_s_get_other if not already
469 defined.
470 (S_SET_OTHER): Only define when not already defined.
471 (elf_obj_read_begin_hook): Declare.
472 (obj_read_begin_hook): Define.
473 (elf_obj_symbol_new_hook): Declare.
474 (obj_symbol_new_hook): Define.
475 Update copyright.
476
477 * config/obj-multi.h: Add copyright header and protect against
478 multiple inclusion. Add * to all function pointers.
479 (OBJ_HEADER): If defined, include it rather than other defines
480 in this file.
481 (obj_frob_file_after_relocs): Test for NULL.
482 (obj_symbol_new_hook): Here too.
483 (obj_sec_sym_ok_for_reloc): And here.
484 (S_GET_OTHER): Define.
485 (S_GET_DESC): Define.
486 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
487 (OBJ_MAYBE_ELF): Update comment.
488
489 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
490 OBJ_AOUT preprocessor conditional and handle emulation by
491 testing OUTPUT_FLAVOR.
492 (i386_displacement): Here too.
493 (md_section_align): Similarly here.
494 (i386_target_format): Conditionally compile when more than one
495 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
496 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
497 (i386_displacement): Here too.
498 Update copyright.
499
500 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
501 Define TARGET_FORMAT for aout only when not multi.
502 Update copyright.
503
504 * config/te-multi.h: Delete file as it's identical to te-generic.h
505
add0c677
AM
5062000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
507
508 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
509 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
510 LONG_MNEM_SUFFIX.
511
512 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
513 DWORD_MNEM_SUFFIX.
514 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
515 comments.
516
a19d8eb0
CP
5172000-01-13 Clinton Popetz <cpopetz@cygnus.com>
518
519 * config/tc-mips.c (mips_do_align): New function.
520 * config/tc-mips.h (md_do_align): Define.
521
550262c4
NC
5222000-01-10 Philip Blundell <philb@gnu.org>
523
524 * doc/c-arm.texi (ARM Options): Fix typo.
525 (ARM-Chars): Correct description of `#'. Mention that `;' is a
526 line separator for Linux.
527 * doc/as.texinfo (Comments): Mention the ARM.
528
0decc840
NC
5292000-01-10 Philip Blundell <pb@futuretv.com>
530
531 * configure.in (arm*-*-conix*): New target.
532 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
533 armv*-*-linux-gnu.
534 * configure: Regenerate.
535
2e13b764
NC
5362000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
537
538 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
539 (obj_elf_visibility): New function.
540
541 * doc/as.texinfo (Visibility): New node: document visibility
542 pseudo ops.
543
3138f287
AM
5441999-12-27 Alan Modra <alan@spri.levels.unisa.edu.au>
545
546 * config/tc-i386.c (MATCH): Relax JumpAbsolute check. Emit a
547 warning for absolute jump/call without `*' in non-intel mode. No
548 need to set i.types[0] JumpAbsolute in intel mode.
549
df32bc61
NC
5501999-12-22 Philip Blundell <pb@futuretv.com>
551
552 * config/tc-arm.c (arm_s_text): If OBJ_ELF, call the appropriate
553 hook function when changing sections.
554 (arm_s_data): Likewise.
555
b4d0b2b3
NC
5561999-12-14 Nick Clifton <nickc@cygnus.com>
557
558 * config/tc-arm.c (md_parse_option): Add support for -marm720
df32bc61 559 command line switch.
b4d0b2b3 560
85cb2cf9
JL
561Tue Nov 30 22:59:00 1999 Jeffrey A Law (law@cygnus.com)
562
563 * config/tc-mn10300.c (md_pseudo_table): Add ".am33" pseudo-op.
564 (r_registers, xr_registers): Define.
565 (r_register_name, xr_register_name): New functions.
566 (md_assemble): Handle new am33 operand types and instruction
567 formats.
568 (mn10300_insert_operand, check_operand): Likewise.
569
a64bcdd8
NC
5701999-11-29 Nick Clifton <nickc@cygnus.com>
571
572 * config/tc-arm.c (thumb_mode): Turn into a tristate variable.
573 (s_force_thumb): Set thumb_mode to 2.
574 (md_assemble): Do not complain about thumb instructions on a
575 non-thumb target if thumb_mode is set to 2.
576
43b4c25e
MM
5771999-11-28 Michael Meissner <meissner@cygnus.com>
578
579 * config/tc-alpha.c (toplevel): Include struc-symbol.h.
580 (alpha_macro_arg): Add MACRO_{LITERAL,BASE,BYTOFF,JSR} cases.
581 (O_...): Add new machine dependent expressions if we are handling
582 explicit relocations.
583 (alpha_reloc_op): New static table holding the explicit relocation
584 information.
585 (alpha_literal_hash): New static to hold the hash table for
586 explicit relocations.
587 (alpha_macros): Add support for explicit relocations.
588 (md_begin): If explicit relocations, initialize hash table.
589 (md_assemble): Don't print a second error if tokenize_arguments
590 already printed an error message.
591 (md_apply_fix): Add support for explicit relocations.
592 (alpha_force_relocation): Ditto.
593 (alpha_fix_adjustable): Ditto.
594 (alpha_adjust_symtab): New function to support explicit
595 relocations.
596 (alpha_adjust_symtab_relocs): Ditto.
597 (debug_exp): Debug stub compiled if DEBUG_ALPHA is defined.
598 (tokenize_arguments): Add debug code if DEBUG_ALPHA is defined.
599 Add support for explicit relocations. Return -2 if an error
600 message was already printed.
601 (find_macro_match): Add support for explicit relocations. Comment
602 each of the cases.
603 (emit_insn): Add support for explicit relocations.
604 (assemble_tokens): Ditto.
605 (emit_ldgp): Ditto.
606 (load_expression): Ditto.
607 (emit_lda): Ditto.
608 (emit_ldah): Ditto.
609 (emit_ir_load): Ditto.
610 (emit_loadstore): Ditto.
611 (emit_ldXu): Ditto.
612 (emit_ldil): Ditto.
613 (emit_sextX): Ditto.
614 (emit_division): Ditto.
615 (emit_jsrjmp): Ditto.
616 (emit_retjcr): Ditto.
617
618 * config/tc-alpha.h (RELOC_OP_P): Enable explicit relocations if
619 ELF object format.
620 (tc_adjust_symtab): If explicit relocations, call the function
621 alpha_adjust_symtab.
622 (TC_FIX_TYPE): Add fields to be able to move explicit lituse
623 relocations next to the literal relocation they reference.
624 (TC_INIT_FIX_DATA): Initialize the new fields.
625 (TC_FIX_DATA_PRINT): Print the new fields if DEBUG5 is defined.
626
afbf211f
JL
627Wed Nov 24 20:27:58 1999 Jeffrey A Law (law@cygnus.com)
628
629 * config/tc-hppa.c (pa_ip): Handle PA2.0 unit completers. Handle
630 'B' operand for PA2.0 bb instruction.
631
f11900d0
NC
6321999-11-18 Nick Clifton <nickc@cygnus.com>
633
634 * config/tc-mcore.h (TC_FORCE_RELOCATION): Define for Mcore-pe
635 target.
636
637 * config/tc-mcore.c (tc_gen_reloc): Support generation of RVA
638 relocs.
639 (mcore_force_relocation): Force relocations to be generated for
640 RVA relocs.
641
2daf4fd8
AM
6421999-11-16 Alan Modra <alan@spri.levels.unisa.edu.au>
643
644 * config/tc-i386.c (i386_immediate): Disallow O_big immediates.
645 (i386_displacement): Disallow O_big displacements.
646
eb726e5d
DL
647Mon Nov 15 20:12:43 1999 Donald Lindsay <dlindsay@cygnus.com>
648
649 * config/tc-arm.c (do_mia,do_mar,do_mra,do_pld,do_ldrl,do_co_reg): Small
650 improvements in error checking.
651 (md_assemble): Support for unconditional ARM instructions.
652 (md_parse_option): Support for -m[arm]v5e flag.
653
035349a4
NC
6541999-11-12 Nick Clifton <nickc@cygnus.com>
655
656 * macro.c (buffer_and_nest): Do not check beyond the end of the
657 buffer.
658
c1eae114
NC
6591999-11-11 Nick Clifton <nickc@cygnus.com>
660
661 * macro.c (buffer_and_nest): Look for seperator after TO and
662 FROM tokens.
663
c5c834aa
AH
6641999-11-08 Andrew Haley <aph@cygnus.com>
665
666 * app.c (do_scrub_chars): When in State 10, treat backslash
667 characters in the same way as as symbol characters.
668
98007ce7
RH
6691999-11-07 Richard Henderson <rth@cygnus.com>
670
671 * config/tc-alpha.c (alpha_align): Check, don't assert, that
672 the previous label was in the current section before playing
673 with auto-alignment.
674
d6c497c7
NC
6751999-11-06 Nick Clifton <nickc@cygnus.com>
676
677 * config/tc-v850.c (v850_force_relocation): Force relocation
678 for weak symbols.
679 (v850_pcrel_from_selection): Do not compute a pcrel offset if
680 the symbol is weak.
681
dd33dc0f
MM
6821999-11-05 Michael Meissner <meissner@cygnus.com>
683
684 * expr.h (operatorT): Increase machine dependent operators to 16.
685 * expr.c (op_rank): Ditto.
686
5f91fe03
ILT
6871999-11-03 Ian Lance Taylor <ian@zembu.com>
688
53b0d397
ILT
689 * read.c (pseudo_set): Reject attempts to set the value of a
690 section symbol.
691
5f91fe03
ILT
692 * config/obj-elf.c (obj_elf_ident): Call md_flush_pending_output
693 if it is defined.
694
695 * config/obj-elf.c (elf_set_index): Add ATTRIBUTE_UNUSED.
696
697 * config/obj-elf.c (elf_frob_file_after_relocs): Don't pass NULL
698 to bfd_set_section_contents.
699
829ce307
NC
7001999-11-03 Nick Clifton <nickc@cygnus.com>
701
702 * config/tc-mcore.h (TARGET_BYTES_BIG_ENDIAN): Change to false.
703
2bd7f1f3
GRK
7041999-11-01 Gavin Romig-Koch <gavin@cygnus.com>
705
706 * config/tc-mips.c (macro_build): Use OPCODE_IS_MEMBER.
707 (mips_ip): Use OPCODE_IS_MEMBER.
708
90ca882f
JL
709Wed Oct 27 16:50:44 1999 Don Lindsay <dlindsay@cygnus.com>
710
acb56623
JL
711 * config/tc-arm.c (reg_required_here): Improve comments.
712
b49cfa5d
JL
713 * config/tc-arm.c (thumb_opcode): Add "variants" field.
714 (tinsns): Initialize variants field.
715
716 * config/tc-arm.c (bad_args, bad_pc): Renamed to BAD_ARGS and
717 BAD_PC respectively.
90ca882f 718
29c4c6b5
NC
7191999-10-27 Scott Bambrough <scottb@netwinder.org>
720
721 * config/tc-arm.c (reloc_map[]): Fix compiler warning.
722 * config/tc-arm.h: Fix compile time warnings.
723
d9fd9852
DN
724Mon Oct 18 18:11:10 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
725
726 * tc_d10v.c (find_opcode): Allow ATSIGN to match expressions of the
727 form @abs16, @(abs16) and @(abs16 + imm).
728
9ce8a5dd
GRK
7291999-10-21 Gavin Romig-Koch <gavin@cygnus.com>
730
731 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS) : New.
732 (ISA_HAS_64_BIT_REGS) New.
733 (gpr_interlocks,md_begin,reg_needs_delay,append_insn,
734 mips_emit_delays,macro_build,load_register,load_addresss,
735 macro,macro2,mips_ip,s_cprestore,s_cpadd): Simplify
736 and/or use new ISA_xxx macros in expressions involving
737 ISA, particularly mips_opts.isa.
738
446a06c9
MM
7391999-10-18 Michael Meissner <meissner@cygnus.com>
740
741 * expr.h (operatorT): Add machine dependent operators md1..md8.
742 (expressionS): Make X_op 8 bits instead of 7. Add a X_md field
743 for the machine dependent operators to use.
744
745 * expr.c (op_rank): Add machine dependent operators.
746
747 * config/tc-alpha.c (O_pregister): Define as a machine dependent
748 operator.
749 (O_cpregister): Ditto.
750 (md_begin): Change X_op test that field is wide enough to use
751 O_max instead of O_alpha_max.
752 (cpu_types): Fill in missing initializer.
753 (alpha_num_macros): Make unsigned.
754 (md_assemble): Make opnamelen be size_t.
755 (md_apply_fix): Cast alpha_num_operands to int before testing.
756 (alpha_force_relocation): Ditto.
757 (alpha_fix_adjustable): Ditto.
758 (alpha_fix_adjustable): Mark unused arguments ATTRIBUTE_UNUSED.
759 (tc_gen_reloc): Ditto.
760 (tc_get_register): Ditto.
761 (emit_ldgp): Ditto.
762 (emit_lda): Ditto.
763 (emit_ldah): Ditto.
764 (emit_ldil): Ditto.
765 (s_alpha_ent): Ditto.
766 (s_alpha_end): Ditto.
767 (s_alpha_frame): Ditto.
768 (s_alpha_prologue): Ditto.
769 (s_alpha_file): Ditto.
770 (s_alpha_gprel32): Ditto.
771 (s_alpha_proc): Ditto.
772 (s_alpha_set): Ditto.
773 (s_alpha_base): Ditto.
774 (s_alpha_align): Ditto.
775 (s_alpha_arch): Ditto.
776 (alpha_align): Ditto.
777 (assemble_insn): Suppress unused variable warning.
778 (emit_insn): Ditto.
779 (assemble_insn): Don't assume X_op and X_unsigned are in a given
780 order in the structure.
781 (s_alpha_coff_wrapper): Avoid int/unsigned comparison.
782
476cdcb8
JL
783Sun Oct 17 17:15:58 1999 Jeffrey A Law (law@cygnus.com)
784
785 * config/tc-hppa.c (md_apply_fix): Make "fmt" an int.
786
c388dee8
AM
7871999-10-12 Alan Modra <alan@spri.levels.unisa.edu.au>
788
789 * config/tc-i386.c (i386_index_check): Correct #endif location.
790
2bdd6cf5
GK
791Mon Oct 11 14:02:40 1999 Geoffrey Keating <geoffk@cygnus.com>
792
793 * as.c (show_usage): Document new options.
794 (parse_args): Add --no-warn, --warn, --fatal-warnings,
795 which become 'W', OPTION_WARN, and OPTION_WARN_FATAL.
796 (parse_args): Parse the new options.
797 (main): If there were warnings, and --fatal-warnings
798 was specified, print an error.
799 * as.h: New variable, flag_fatal_warnings, for new option.
800
d53d2751
JL
801Sun Oct 10 01:47:23 1999 Jerry Quinn <jerry.quinn.adv91@alum.dartmouth.org>
802
803 * config/tc-hppa.c (pa_ip): Add new codes 'cc', 'cd', 'cC', 'co',
804 '@'. Change autoincrement completers to fall through to cache control
805 completers.
806
807 * config/tc-hppa.c (pa_ip): Remove unused args. Add code to '?W'
808 arg.
809 (pa_parse_addb_64_cmpltr): New function.
810
811 * config/tc-hppa.c (pa_ip): Change error message.
812 (pa_ip,pa_parse_cmpb_64_cmpltr,pa_parse_cmpib_64_cmpltr) Fix '?N' and
813 '?Q' args to allow falling through.
814
815 * configtc-hppa.c (pa_ip): Implement conditional codes "?N", "?Q".
816 Remove unused conditional codes.
817 (pa_parse_cmpb_64_cmpltr,pa_parse_cmpib_64_cmpltr): New.
818
ba09cd8d
DN
819Thu Oct 7 00:23:53 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
820
821 * config/tc-d30v.c (CHAR_BIT): Define.
822 (check_range): Fix bit operations to support integers bigger than
823 32 bits.
824
c43185de
DN
825Thu Oct 7 00:11:50 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
826
827 * config/tc-d10v.c (check_range): Check range for RESTRICTED_NUM3
828 operands.
829
925c058e
DE
830Mon Oct 4 17:24:23 1999 Nick Clifton <nickc@cygnus.com>
831 Doug Evans <devans@cygnus.com>
832
833 Add support for m32rx.
834 * config/tc-m32r.c (enable_m32rx): New static global.
835 (enable_special,warn_explicit_parallel_conflicts,optimize): Ditto.
836 (allow_m32rx): New function.
837 (M32R_SHORTOPTS): Add `O'.
838 (md_longopts): Add --m32rx plus several warning options.
839 (md_parse_option): Handle new options.
840 (md_show_usage): Print them.
841 (md_begin): Enable m32rx.
842 (OPERAND_IS_COND_BIT): New macro.
843 (first_writes_to_seconds_operands): New function.
844 (writes_to_pc,can_make_parallel,make_parallel): New functions.
845 (target_make_parallel,assemble_two_insns): New functions.
846 (md_assemble): Recognize "insn1 -> insn2" and "insn1 || insn2".
847 If optimizing and m32rx, try to make consecutive insns parallel.
848
fba2b7f9
GK
849Tue Sep 28 14:06:44 1999 Geoffrey Keating <geoffk@cygnus.com>
850
851 * config/tc-mips.c (nopic_need_relax): Allow for the
852 .sdata.foo sections generated by -fdata-sections,
853 and for the .gnu.linkonce.s sections generated by C++.
854
fd232ac8
JL
855Thu Sep 23 07:13:45 1999 Jerry Quinn <jquinn@nortelnetworks.com>
856
ce674324
JL
857 * config/tc-hppa.c (pa_ip): Replace 'B', 'M', 'l' and 'g' handling
858 with cleaner code using completer prefixes. Add 'Y'.
859
fd232ac8
JL
860 * config/tc-hppa.c (pa_ip): Add parens to silence compiler.
861
b1039fc4
JL
862Wed Sep 22 09:37:19 1999 Jeffrey A Law (law@cygnus.com)
863
864 * config/tc-hppa.c (pa_ip): Avoid ANSI specific initialization.
865 (pa_ip, case 'm'): Failure to get a CBIT specifier just means the
866 insn does not match and we should try the next insn in the table.
867
913f265c
NC
8681999-09-22 Nick Clifton <nickc@cygnus.com>
869
870 * config/tc-arm.c (MULTI_SET_PSR): Rename to LDM_TYPE_2_OR_3.
871
54af6ff6
JL
872Mon Sep 20 04:01:41 1999 Jeffrey A Law (law@cygnus.com)
873
874 * config/tc-hppa.c (pa_ip): Fix thinkos in recent cleanup
875 of PA2.0 support.
876
4cc782b5
ILT
8771999-09-19 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
878
879 * config/tc-i386.c (md_shortopts): Check OBJ_MAYBE_ELF as well as
880 OBJ_ELF. If ELF, add "sq".
881 (md_parse_option): If ELF, ignore -s and -q.
882 (md_show_usage): Mention ELF options.
883
6be78360
JL
884Sun Sep 19 10:43:31 1999 Jeffrey A Law (law@cygnus.com)
885
65fab780
JL
886 * config/tc-hppa.c (pa_ip): Handle 'J', 'K' and 'cc'
887 operands.
888
71823da4
JL
889 * config/tc-hppa.c (pa_ip); Handle "fe", and 'cJ'.
890
61dd1d31
JL
891 * config/tc-hppa.c (pa_ip): Handle 'd', '#' and 'cq'.
892
1cf6ae67
JL
893 * config/tc-hppa.c (struct pa_it): New field "trunc".
894 (pa_ip): Hadnle 'h', 'm', '=', '{', and '_' operands.
895 (pa_parse_ftest_gfx_completer): New function
896 (pa_parse_fp_cnv_format): New function.
897
77c02e18
JL
898 * config/tc-hppa.c (pa_ip): Handle 'X' operand.
899 (md_apply_fix): Handle 22bit pc-rel branches.
900
629d9417
JL
901 * config/tc-hppa.c (pa_ip): Handle 'B' operand.
902
dbe2f9ee
JL
903 * config/tc-hppa.c (pa_ip): Handle 'L' and 'M' operands.
904
3db6e6bd
JL
905 * config/tc-hppa.c (pa_ip): Handle 'l' operand.
906
6be78360
JL
907 * config/tc-hppa.c (pa_ip): Handle 'g' operand.
908
e061d86f
JL
909at Sep 18 12:13:28 1999 Jeffrey A Law (law@cygnus.com)
910
911 * config/tc-hppa.c (md_assemble): Fix dwarf2 line handling.
912 (pa_ip): Handle 'fX'.
913
914Sat Sep 18 12:13:28 1999 Jeffrey A Law (law@cygnus.com)
915
916 * config/tc-hppa.c (md_assemble): Fix dwarf2 line handling.
917 (pa_ip): Handle 'fX'.
918
7acbfc6b
JL
919Fri Sep 17 11:57:34 1999 Jeffrey A Law (law@cygnus.com)
920
921 * config/tc-hppa.c (pa_build_unwind_subspace): Do not build
922 unwinds unless the function is in the text space.
923 (pa_type_args): Set BSF_FUNCTION for an exproted data symbol.
924
2d93dcc4
JL
925Wed Sep 15 05:14:32 1999 Jeffrey A Law (law@cygnus.com)
926
b52c78b8
JL
927 * config/tc-hppa.c (pa_ip): Move dwarf2 stuff from here.
928 (md_assemble): To here. Tweak address generation.
929
2d93dcc4
JL
930 * config/tc-hppa.c: Include dwarf2dbg.h if OBJ_ELF. Declare
931 debug_line.
932 (md_pseudo_table): Add .file and .line pseudo-ops for OBJ_ELF.
933 (md_assemble): Call dwarf2_where for OBJ_ELF.
934 (pa_ip): Call dwarf2_gen_line_info for OBJ_ELF.
935 (pa_end_of_source): New function.
936 * tc-hppa.h (md_end): Define for OBJ_ELF.
937
6d83c84b
MM
9381999-09-14 Michael Meissner <meissner@cygnus.com>
939
940 * configure.in (Canonicalization of target names): Remove adding
941 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
942 generates $ac_config_sub with a ${CONFIG_SHELL} already.
943 * configure: Regenerate.
944
41fd319a
ILT
9451999-09-14 Donn Terry <donn@interix.com>
946
947 * config/te-interix.h (GLOBAL_OFFSET_TABLE_NAME): Define.
948
795a7704
AM
9491999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
950
2f66722d
AM
951 * config/tc-i386.c (md_assemble): Handle "jmp/call constant" as a
952 pc-relative jmp/call to an absolute symbol.
953 (md_apply_fix3): When OBJ_ELF, don't add the values in twice for
954 absolute section symbols.
955
795a7704
AM
956 * config/tc-i386.c (md_assemble): Correct frag_var size. Tidy
957 jump handling code and comments.
958
c0c949c7
ILT
9591999-09-12 Ian Lance Taylor <ian@zembu.com>
960
961 * config/tc-i386.c (md_apply_fix3): Add horrible adjustments to
962 the value if TE_PE and a global defined symbol.
963
e723ef7c
ILT
9641999-09-11 Ian Lance Taylor <ian@zembu.com>
965
966 * write.c (dump_section_relocs): Call print_symbol_value_1 to
967 print the symbol, rather than printing it here.
968
fa16d387
ILT
9691999-09-11 Donn Terry <donn@interix.com>
970
d33e1d24
ILT
971 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
972 BFD_RELOC_RVA relocations.
973
18dc2407
ILT
974 * config/tc-i386.c (md_undefined_symbol): Compare the name against
975 the macro GLOBAL_OFFSET_TABLE_NAME, rather than assuming that it
976 starts with "_G".
977
945a1a6b
ILT
978 * write.c (write_relocs): Call SET_SECTION_RELOCS if it is
979 defined.
980 * config/obj-coff.h (SET_SECTION_RELOCS): Define.
981 * doc/internals.texi (Object format backend): Document
982 SET_SECTION_RELOCS.
983
79d292aa
ILT
984 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
985 relocations against global symbols if TE_PE.
986
7a6284c4
ILT
987 * config/obj-coff.c (obj_coff_ident): Add BFD_ASSEMBLER version.
988 (obj_pseudo_table): Always handle ".ident" with obj-coff_ident.
989
8828d862
ILT
990 * config/obj-coff.c (coff_frob_symbol): Prohibit weak common
991 symbols.
992
9690c54d
ILT
993 * config/obj-coff.c (obj_coff_endef): Don't merge labels, or
994 symbols which do not have a constant value, or tags with
995 non-tags. Remove the symbol from the list before adding it at the
996 end.
997
23dab925
ILT
998 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Handle .ef
999 C_FCN symbol differently if TE_PE.
1000 (obj_coff_line) [BFD_ASSEMBLER]: Always use the line number which
1001 appears in the pseudo-op, rather coff_line_base which is only set
1002 for a .bf symbol.
1003
28428223
ILT
1004 * config/obj-coff.c (obj_coff_loc): New static function.
1005 (obj_pseudo_table): Add "loc".
1006
e8a3ab75
ILT
1007 * config/obj-coff.c (add_lineno): Check that the line number is
1008 positive.
1009
2ab9b79e
ILT
1010 * config/atof-ieee.c (atof_ieee): Change what_kind to int.
1011 * config/atof-vax.c (flonum_gen2vax): Change format_letter to
1012 int.
1013 (md_atof): Return NULL rather than 0.
1014 * config/tc-i386.c (md_atof): Change type to int.
0561a208
ILT
1015 * expr.c (expr): Change first parameter to int.
1016 * config/obj-coff.c: Add declarations for static functions.
1017 (coff_frob_symbol): Use SYM_AUXENT.
1018 * config/tc-i386.h (flag_16bit_code): Don't declare.
2ab9b79e 1019
5881e4aa
ILT
1020 * config/obj-coff.c (obj_coff_section): Default to setting
1021 SEC_LOAD. Don't set SEC_DATA for 'w' modifier.
1022
e723ef7c
ILT
1023 * write.c (adjust_reloc_syms): Print adjusted fixup.
1024
fa16d387
ILT
1025 * expr.c (integer_constant): Correct too_many_digits calculation
1026 in base 10 case.
1027
13a830b6
AS
10281999-09-09 Andreas Schwab <schwab@suse.de>
1029
1030 * doc/c-arm.texi: Fix arguments of @var to not contain
1031 punctuation.
1032
325188ec
NC
10331999-09-08 Philip Blundell <pb@nexus.co.uk>
1034
1035 * config/tc-arm.c (s_thumb_set): Only support interworking for ELF
1036 and COFF targets.
1037 (md_parse_option): Only support -k flag for ELF and COFF targets.
1038
e7c1f43c
JL
1039Tue Sep 7 13:28:59 1999 Jeffrey A Law (law@cygnus.com)
1040
1041 * config/tc-hppa.c (pa_ip): Put strict register checks before
1042 call to pa_parse_number.
1043
4964086a
JL
1044 * config/tc-hppa.c (pa_ip): Support 'Z' argument.
1045
c4bf532f
ILT
10461999-09-06 Ian Lance Taylor <ian@zembu.com>
1047
1048 * config/obj-coff.c: Add ATTRIBUTE_UNUSED as needed for
1049 BFD_ASSEMBLER code.
1050
a33132fd
ILT
10511999-09-06 Donn Terry <donn@interix.com>
1052
1053 * as.c (perform_an_assembly_pass): Set SEC_DATA for data_section.
1054
0f4f8b56
JL
1055Mon Sep 6 04:26:56 1999 Jeffrey A Law (law@cygnus.com)
1056
1057 * config/tc-hppa.c (pa_ip): Get strict/non-strict mode from the
1058 candidate instruction. Require registers for register arguments
1059 when in strict mode. Require assemble-time constants for
1060 constants when in strict mode.
1061 (pa_get_absolute_expression): Require a constant when in strict
1062 mode.
1063
d3388653
NC
10641999-09-06 Nick Clifton <nickc@cygnus.com>
1065
1066 * config/tc-m32r.c (md_longopts): Fix value for -Wnuh.
1067
041dd5a9
ILT
10681999-09-04 Steve Chamberlain <sac@pobox.com>
1069
1070 * config/tc-pj.c: New file, supports picoJava in ELF.
1071 * config/tc-pj.h: Ditto.
1072 * configure.in (pjl*, pj*): New targets.
1073 * Makefile.am: Rebuild dependencies.
1074 (CPU_TYPES): Add pj.
1075 (TARGET_CPU_CFILES): Add config/tc-pj.c.
1076 (TARGET_CPU_HFILES): Add config/tc-pj.h.
1077 * doc/c-pj.texi: New file.
1078 * doc/as.texinfo: Add some PJ specifics.
1079 * doc/all.texi: Add PJ to the list of all architectures, sort them
1080 all alphabetically.
1081 * doc/Makefile.in (CPU_DOCS): Add c-pj.texi.
1082 * configure, Makefile.in, doc/Makefile.in: Rebuild.
1083
4ca72d38
AM
10841999-09-02 Alan Modra <alan@spri.levels.unisa.edu.au>
1085
1086 * config/obj-multi.h: Include obj-elf.h if OBJ_MAYBE_ELF. Reformat.
1087 (obj_frob_file): Test for null pointer.
1088 (OBJ_COPY_SYMBOL_ATTRIBUTES): Here too.
1089 (OBJ_PROCESS_STAB): And here.
1090 (elf_obj_sy): Remove
1091
1092 * config/obj-elf.h: #ifndef everything defined in obj-multi.h,
1093 except OBJ_PROCESS_STAB, which we #undef for ecoff.
1094 (elf_obj_sy): Remove #ifndef OBJ_SYMFIELD_TYPE.
1095
1096 * config/obj-coff.c (no_func): Remove.
1097 (coff_format_ops): Change occurrences of no_func to 0, as we test
1098 for 0 in obj-multi.h.
1099
1100 * configure.in: Enable bfd for i386-coff when primary target is
1101 bfd. Enable i386 elf,coff emulation support. Don't set
1102 USE_EMULATIONS=1 or te_file=multi unless there is more than one
1103 emulation to support.
1104 *configure: Regenerate.
1105
bcef92fa
NC
11061999-09-02 Nick Clifton <nickc@cygnus.com>
1107
1108 * config/tc-mcore.c (mcore_s_section): Do not dump literals if a
1109 .section .line directive is encountered.
1110
cdf82bcf
NC
11111999-09-01 Nick Clifton <nickc@cygnus.com>
1112
5856c19a
NC
1113 * config/tc-arm.c (md_section_align): Do not align sections in ELF
1114 format.
1115
cdf82bcf
NC
1116 * as.c (show_usage): Add --gdwarf2 to list of options displayed.
1117 * as.texinfo: Document --gdwarf2 command line option.
1118 Add additional documentation of ARM command line switches.
1119
af6bdddf
AM
11201999-08-30 Alan Modra <alan@spri.levels.unisa.edu.au>
1121
1122 * config/tc-i386.c (i386_intel_memory_operand): Combine
1123 i386_is_reg and parse_register calls. Remove END_STRING_AND_SAVE
1124 and RESTORE_END_STRING around parse_register calls.
1125 (i386_operand): Here too.
1126 (i386_is_reg): Remove.
1127 (parse_register): Move as_bad calls from within this function to
1128 callers.
1129
5f47d35b
AM
11301999-08-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1131
1132 Based on a patch from H.J. Lu <hjl@gnu.org>
1133 * config/tc-i386.c (parse_register): Handle FP regs specially.
1134 (md_begin): Remove '(' and ')' from register_chars.
1135
1174497c
DE
11361999-08-29 Doug Evans <devans@casey.cygnus.com>
1137
1138 * config/tc-m32r.c (md_parse_option): Delete unrecognized option
1139 error message (done elsewhere).
1140
17d9105c
JL
1141Sat Aug 28 01:23:11 1999 Jeffrey A Law (law@cygnus.com)
1142
1143 * config/tc-hppa.c (pa_ip): Do not allow '*' in 32bit completers.
1144
9ecc05f0
JL
1145Sat Aug 28 00:26:26 1999 Jerry Quinn <jquinn@nortelnetworks.com>
1146
97e1581b
JL
1147 * config/tc-hppa.c (pa_ip): Replace 'f' by 'v'. Prefix float register
1148 args by 'f'.
1149
9e4f2d3a
JL
1150 * config/tc-hppa.c (pa_ip): Add args q, %, and |.
1151
680ef6de
JL
1152 * config/tc-hppa.c (pa_ip): Absorb white space in instructions
1153 between args.
1154 Add new completers. Fix bug in 64 bit condition handling.
1155
413c94ba
JL
1156 * config/tc-hppa.c (pa_ip): Add completer codes 'a', 'ch', 'cH',
1157 'cS', and 'c*'.
1158
28252e61
JL
1159 * config/tc-hppa.c (pa_ip): Place completers behind prefix 'c'.
1160
a97685e9
JL
1161 * config/tc-hppa.c (pa_ip): Add cases for '.', '~'. '$'. and '!'
1162
9ecc05f0
JL
1163 * config/tc-hppa.c (pa_ip): Add case for 'I'.
1164
cb30237e
NC
11651999-08-27 Jim Wilson <wilson@cygnus.com>
1166
1167 * dwarf2dbg.c (MAX_SPECIAL_ADDR_DELTA): Correct typo in comment.
1168 (struct ls): Add frag field. Initialize it to zero.
1169 (out_end_sequence): New local text_frag. Set it while in text section.
1170 Replace address check with frag check. Set ls.frag to text_frag if
1171 out_set_addr called.
1172 (dwarf2_gen_line_info): Add explanatory comment. New local saved_frag.
1173 Set it before switching sections. Replace address check with frag
1174 check. Set ls.frag to saved_frag if out_set_addr called.
1175
09a798ea
NC
11761999-08-26 David Mosberger <davidm@hpl.hp.com>
1177
1178 * dwarf2dbg.c (out_end_sequence): If address changed, directly
1179 output "advance_pc" opcode instead of calling gen_addr_line().
1180 The latter has the undesired side-effect of creating a new row
1181 in the debug line info matrix.
1182
e1c05f12
NC
11831999-08-26 Jim Wilson <wilson@cygnus.com>
1184
1185 * dwarf2dbg.c (out_end_sequence): Correct comments. Set last to
1186 ls.last_filename if last is less than zero. Set ls.last_filename
1187 when allocating new entry.
1188 (dwarf2_gen_line_info): Save seg and subseg info before subseg_new
1189 call.
1190
b23bac36
AM
11911999-08-20 Alan Modra <alan@spri.levels.unisa.edu.au>
1192
1193 * config/tc-i386.c (i386_index_check): Fix the displacement size
1194 when INFER_ADDR_PREFIX.
1195
50f4163f
NC
11961999-08-18 Nick Clifton <nickc@cygnus.com>
1197
1198 * config/tc-arm.c (md_apply_fix3): If an offset is invalid,
1199 display its value.
1200
f589a541
ILT
12011999-08-17 Ian Lance Taylor <ian@zembu.com>
1202
1203 * config/tc-ppc.c (md_assemble): Trim @ha constant to 16 bits, to
1204 handle 0xffffNNNN constants correctly.
1205
11450271
NC
12061999-08-16 Nick Clifton <nickc@cygnus.com>
1207
1208 * config/tc-arm.c (do_ldst): Look for register conflicts on stores
1209 as well as loads.
1210
276b1dc2
NC
12111999-08-13 Nick Clifton <nickc@cygnus.com>
1212
1213 * config/tc-arm.c (validate_offset_imm): Work on unsigned values.
1214 (md_apply_fix3): Always pass positive values to
1215 validate_offset_imm.
1216
ae5ad4ad
NC
12171999-08-12 Nick Clifton <nickc@cygnus.com>
1218
1219 * config/tc-arm.c (skip_whitespace): New macro.
1220 Formatting tidy ups.
1221
1222 (md_apply_fix3): Store relocation offset in addend for ELF based
1223 relocs.
1224 (arm_force_relocation): Always generate relocs for Thumb function
1225 calls.
1226
bf6d3895
AM
12271999-08-11 Alan Modra <alan@spri.levels.unisa.edu.au>
1228
1229 * config/tc-i386.c (md_assemble): Remove dead code. intel_syntax
1230 LONG_DOUBLE_MNEM_SUFFIX floating point is done in opcode/i386.h
1231
46031ca9
JL
1232Tue Aug 10 12:58:31 1999 Jeffrey A Law (law@cygnus.com)
1233
b100be66
JL
1234 * config/tc-hppa.c (pa_build_unwind_subspace): Use sane section
1235 flags for the unwind subspace.
1236
46031ca9
JL
1237 * config/tc-hppa.c (UNWIND_SECTION_NAME): Define for ELF.
1238 (pa_build_unwind_subspace): Remove #if 0 wrapper. Select a
1239 suitable relocation based on the size of the target's pointer.
1240 Always Use subsegment zero for the unwinders.
1241 (pa_level): Handle "2.0w".
1242
0825afba
JR
1243Mon Aug 9 20:02:22 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1244
1245 * config/tc-d30v.c (write_2_short): Don't group repeat instructions
1246 with the following instruction unless this was specified.
1247
1a1ae23e
ILT
12481999-08-09 Ian Lance Taylor <ian@zembu.com>
1249
1250 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4 for
1251 certain sections, to match BFD changes.
1252
81afc846
ILT
12531999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
1254
1255 * Makefile.am (noinst_SCRIPTS): Change .gdbinit to $(GDBINIT).
1256 (EXTRA_SCRIPTS): Define to keep automake happy.
1a1ae23e 1257 * Makefile.in: Rebuild.
81afc846 1258
04ad1543
ILT
12591999-08-08 Ian Lance Taylor <ian@zembu.com>
1260
1261 * Makefile.am: Rename .dep* files to DEP*.
1262 (MKDEP): Rename from DEP. Change all uses. Use $${srcdir} rather
1263 than $(srcdir). Rename TCDEP targets to DEPTC. Rename OBJDEP
1264 targets to DEPOBJ.
1265 * Makefile.in: Rebuild.
1266
1eb7027c
RH
12671999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
1268
1269 * config/tc-sparc.c (sparc_ip): Allow assembly of %lo()+%reg.
1270
2dcc60be
ILT
12711999-08-08 Ian Lance Taylor <ian@zembu.com>
1272
46eec08e
ILT
1273 * Makefile.am: Change all uses of itbl-test-ops to itbl-tops to
1274 avoid problems on DOS filesystems.
1275 * Makefile.in: Rebuild.
1276
2dcc60be
ILT
1277 * doc/as.texinfo (Section): Document 's' flag for COFF version.
1278
12791999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
1280
1281 * config/obj-coff.c (obj_coff_section): Handle 's' (shared)
1282 section flag.
1283
76a27922
ILT
12841999-08-08 Ian Lance Taylor <ian@zembu.com>
1285
1286 * configure.in: Define and substitute GDBINIT. Change AC_OUTPUT
81afc846 1287 line to create ${GDBINIT} rather than .gdbinit.
76a27922
ILT
1288 * configure, Makefile.in, doc/Makefile.in: Rebuild.
1289
0741736b
JL
1290Fri Aug 6 12:12:44 1999 Jeffrey A Law (law@cygnus.com)
1291
1292 * config/tc-hppa.c (pa_ip, case '?'): Add missing break.
1293
9a913dfb
JL
1294Fri Aug 6 09:46:35 1999 Jerry Quinn <jquinn@nortelnetworks.com>
1295
1296 * config/tc-hppa.c (pa_ip): Add 64 bit condition completers.
1297
a1f2d742
ILT
12981999-08-06 Jakub Jelinek <jj@ultra.linux.cz>
1299
1300 * config/tc-sparc.h (tc_fix_adjustable): Fix check for PIC local
1301 non-adjustable symbols.
1302
55a914bc
JL
1303Thu Aug 5 16:52:51 1999 Jerry Quinn <jquinn@nortelnetworks.com>
1304
1305 * config/tc-hppa.c (pa_ip): Change condition args to have '?' prefix.
1306
336f7c70 1307Thu Aug 5 23:05:56 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
5fc44b2d
JR
1308
1309 * config/tc-sh.c (md_assemble): Call as_bad when there are excess
1310 operands.
1311
9750fcc5
ILT
13121999-08-05 Donn Terry <donn@interix.com>
1313
1314 * config/te-interix.h: New file.
1315 * configure.in (i386-*-interix*): New target.
1316 * configure: Rebuild.
1317
39ba5561
JL
1318Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
1319
1320 * config/tc-hppa.c (pa_chk_field_selector): Allow 3 byte
1321 selectors for ELF too.
1322 (selector_table): Add "ltp" and "rtp" selectors.
1323
eecb386c
AM
13241999-08-04 Alan Modra <alan@spri.levels.unisa.edu.au>
1325
1326 * config/tc-i386.c (i386_operand): No need to change
1327 operand_string pointer in segment reg case before goto
1328 do_memory_reference. Initialise displacement_string_start and
1329 displacement_string_end after do_memory_reference label.
1330 (i386_index_check): Add operand_string param, and print error
1331 message on failure here.
1332 (i386_intel_memory_operand): Instead of here.
1333 (i386_operand): And here.
1334 (INFER_ADDR_PREFIX): Enable.
1335
1336 * doc/c-i386.texi (i386-16bit): Document .code16gcc.
1337
1338 * config/tc-i386.h (DefaultSize): Define. Renumber following
1339 opcode_modifier defines.
1340
1341 From Etienne Lorrain <etienne.lorrain@ibm.net>
1342 * config/tc-i386.c (stackop_size): New variable.
1343 (set_16bit_code_flag): Clear it here.
1344 (set_16bit_gcc_code_flag): New function.
1345 (md_pseudo_table): Add "code16gcc" entry.
1346 (md_assemble): Set i.suffix for insns with DefaultSize modifier.
1347
f173e82e
ILT
13481999-08-03 Ian Lance Taylor <ian@zembu.com>
1349
a04b544b
ILT
1350 * config/obj-coff.c (coff_frob_symbol): Always update set_end with
1351 next_set_end even if the end symbol is being discarded.
1352
1353 * gasp.c: Add ATTRIBUTE_UNUSED as needed for non-BFD_ASSEMBLER.
1354 * output-file.c, symbols.c, config/tc-i386.c: Likewise.
1355 * config/obj-coff.c: Likewise.
1356 (seg_info_type): Remove.
1357 (seg_info_off_by_4): Change to array of segT.
1358 (s_get_segment): Adjust accordingly.
1359 (obj_pseudo_table): Fully initialize sentinel entry.
1360
f173e82e
ILT
1361 * config/tc-mips.c (append_insn): Correct INSN_SYNC test. From
1362 Ralf Baechle <ralf@uni-koblenz.de>.
1363
c3332e24
AM
13641999-08-03 Etienne Lorrain <etienne.lorrain@ibm.net>
1365
1366 * config/tc-i386.c (f16_3): New. Fixes 16 bit 3 byte nop.
1367
13681999-08-03 Alan Modra <alan@spri.levels.unisa.edu.au>
1369
24eab124
AM
1370 * config/tc-i386.c: Indentation and white space changes.
1371 (i386_index_check): New function. Add INFER_ADDR_PREFIX code, but
1372 don't enable it by default.
1373 (i386_intel_operand): Remove redundant prototype.
1374 Move check on number of memory operands, and i.mem_operands++
1375 (i386_intel_memory_operand): To here.
1376 Remove i386_immediate code from here. Remove special case code
1377 for input and output using (%dx). Remove base/index checks and
1378 call i386_index_check instead. Save initial operand_string
1379 argument for error message.
1380 (i386_operand): Remove redundant prototype. Move base/index
1381 checks to i386_index_check.
1382 (i386_displacement): Move intel mode check for non-zero
1383 i.disp_operand
1384 (i386_intel_memory_operand): To here.
c3332e24 1385
6d8809aa
RH
13861999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
1387
1388 * config/tc-sparc.c (md_longopts): Add --no-undeclared-regs option.
1389 (sparc_ip): Warn if %g2 or %g3 register is used and not covered
1390 by .register pseudo-op if -64 and --no-undeclared-regs.
1391 (s_register, sparc_adjust_symtab): New functions.
1392 * config/tc-sparc.h (tc_adjust_symtab, sparc_adjust_symtab):
1393 Declare sparc_adjust_symtab as tc_adjust_symtab.
1394 * doc/c-sparc.texi: Add description of #ignore special literal
1395 for .register pseudo-op.
1396
c8d259f7
CM
13971999-07-30 Catherine Moore <clm@cygnus.com>
1398
1399 * config/tc-arm.c (tc_gen_reloc): Record the vtable entry in
1400 the relocation's section offset.
1401
b77ad1d4
AM
14021999-07-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1403
1404 * write.c (fixup_segment): Fix generic error check overflow test.
1405
1406 * config/tc-i386.c (pe): Change %d to %ld, %x to %lx, and cast
1407 X_add_number to long.
1408
b53fcc20
JL
1409Wed Jul 28 02:04:24 1999 "Jerry Quinn" <jquinn@nortelnetworks.com>
1410
1411 * config/tc-hppa.c (pa_ip): Add 'J' and 'K' code
1412 processing.
1413
d2e71411
ILT
14141999-07-27 Ian Lance Taylor <ian@zembu.com>
1415
1416 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust GOT, PLT, or
1417 VTABLE relocations.
1418
e9f56b1d
ILT
14191999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
1420
1421 * config/te-go32.h (COFF_LONG_SECTION_NAMES): Define.
1a39f480 1422
1a39f480
ILT
1423 * configure.bat: Remove; obsolete.
1424 * config/go32.cfg: Likewise.
1425
29fe79d3
ILT
14261999-07-21 Brad M. Garcia <bgarcia@fore.com>
1427
1428 * configure.in (i386-*-vxworks*): New target.
1429 * configure: Rebuild.
1430
e06510e6
RH
14311999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1432
1433 * doc/c-sparc.texi: Document .register and .nword pseudo-ops.
1434
dabe3bbc
RH
14351999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1436
1437 * config/tc-sparc.c (sparc_ip): Allow OLO10 relocations
1438 on -64 and not pic.
1439 (output_insn): Put OLO10's secondary addend into tc_fix_data.
1440 (md_apply_fix3): Handle BFD_RELOC_SPARC_OLO10.
1441 (tc_gen_reloc): Return two relocs for OLO10, LO10 and SPARC13.
1442 * config/tc-sparc.h (RELOC_EXPANSION_POSSIBLE,
1443 MAX_RELOC_EXPANSION): Define.
1444 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FIX_DATA_PRINT): Likewise.
1445
b4cac588
AM
14461999-07-16 Alan Modra <alan@spri.levels.unisa.edu.au>
1447
1448 * config/tc-i386.c (intel_float_operand): Add prototype, make static.
1449 (md_assemble): Localize *exp variable to if (fake_zero_displacement)
1450 block. Print a warning if an 8-bit or 16-bit constant
1451 displacement or immediate is truncated on output.
1452 (i386_immediate): Ensure Imm16 is always legal for a 16-bit mode
1453 immediate.
1454 (i386_operand): Disallow immediate jump absolute operand.
1455
966ed0b4
ILT
14561999-07-15 Ian Lance Taylor <ian@zembu.com>
1457
0ed15843
ILT
1458 * configure.in: Bump version number to 2.9.5.
1459 * configure: Rebuild.
1460
966ed0b4
ILT
1461 * dwarf2dbg.c (dwarf2_gen_line_info): Don't assume that long long
1462 or %llx work.
1463
67f1cff0
JL
1464Thu Jul 15 02:45:30 1999 Jeffrey A Law (law@cygnus.com)
1465
1466 * config/tc-hppa.c (md_pseudo_table): Add ".dword" pseudo-op.
1467 (cons_fix_new_hppa): Derive size of fixup from size of the object.
1468
2f992c04
NC
14691999-07-14 Philip Blundell <pb@nexus.co.uk>
1470
1471 * symbols.c (dollar_label_name): Prepend LOCAL_LABEL_PREFIX if it
1472 is defined.
1473 * config/tc-arm.h (LOCAL_LABEL_PREFIX): Define to '.' for ELF.
1474
1475 * config/tc-arm.c (md_begin): Set F_SOFTFLOAT in the output file
1476 if -mno-fpu was given.
1477 (tc_gen_reloc): Fix typo. Delete bogus code related to GOTPC
1478 relocs.
1479 (cons_fix_new_arm): Remove misleading comments.
1480
14ad458a
ILT
14811999-07-14 Ian Lance Taylor <ian@zembu.com>
1482
1483 * write.c (cvt_frag_to_fill): Use frag file and line in rs_org
1484 error message.
1485 (relax_segment): Likewise. After giving a rs_org error, convert
1486 the frag to rs_align to avoid cascading errors.
1487
36823076
AS
14881999-07-12 Andreas Schwab <schwab@suse.de>
1489
1490 * config/tc-m68k.c: Add some ATTRIBUTE_UNUSED.
1491
ab9da554
ILT
14921999-07-11 Ian Lance Taylor <ian@zembu.com>
1493
1494 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1495 as appropriate. Fill in structure initializations. Add variable
1496 initializations. Add casts.
1497 * dwarf2dbg.c (print_stats): Change i to size_t.
1498 * listing.c (listing_listing): Change list_line to unsigned int.
1499
e0accf0c
ILT
15001999-07-10 Ian Lance Taylor <ian@zembu.com>
1501
1502 * config/tc-ppc.h (tc_fix_adjustable) [OBJ_ELF]: Call S_IS_LOCAL
1503 rather than checking for \001 and \002 in symbol name.
1504 * config/tc-sparc.h (tc_fix_adjustable) [OBJ_ELF]: Likewise.
1505
7d4ce8a9
JL
1506Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
1507
1508 * configure.in (hppa*-linux-gnu*): New target.
1509 * configure: Rebuilt.
1510
5395a469
NC
15111999-07-08 Nick Clifton <nickc@cygnus.com>
1512
1513 * doc/c-arm.texi (ARM Directives): Document .thumb_set directive.
1514
cac58fa6
NC
15151999-07-07 Nick Clifton <nickc@cygnus.com>
1516
5395a469 1517 * config/tc-v850.c (v850_comm): Use symbol_get_obj() rather than
cac58fa6
NC
1518 accessing symbolP directly.
1519
03b36ee1
JL
1520Tue Jul 6 10:41:42 1999 Jeffrey A Law (law@cygnus.com)
1521
1522 * config/tc-hppa.h (tc_frob_symbol): Always punt "$global$" symbol
1523 for ELF.
1524
49a5575c
NC
15251999-07-05 Nick Clifton <nickc@cygnus.com>
1526
1527 * config/tc-arm.c (ARM_EXT_V5): Define.
1528 (ARM_ARCH_V5, ARM_ARCH_V5T): Define.
1529 (md_begin): Detect ARM v5 architectures.
1530 (md_parse_option): Accept arm v5 specification.
1531 (md_show_usage): Documment -marmv5 switch.
1532
1533 * doc/c-arm.texi: Document -marmv5 command line option.
1534
1535 * config/tc-arm.c (do_adrl): New function. Implement ADRL pseudo
1536 op.
1537 (validate_immediate_twopart): New function. Determine if a
1538 constant can be computed by two ADD instructions.
1539 (output_inst): Remove its command line parameter - it was never
1540 used.
1541 (md_apply_fix3): Support BFD_RELOC_ARM_ADRL_IMMEDIATE, used to
1542 implememt the ADRL pseudo op.
1543 (tc_gen_reloc): Generate a suitable error message if an ADRL
1544 instruction tries to generate a real reloc.
1545
1546 * doc/c-arm.texi: Document NOP, ADR and ADRL pseudo ops.
1547
09ecf0ba
JL
1548Thu Jul 1 15:33:10 1999 Jeffrey A Law (law@cygnus.com)
1549
1550 * config/tc-hppa.c (pa_ip): Convert the opcode and all completers
1551 into lower case.
1552
264d6861
ILT
15531999-06-27 H.J. Lu <hjl@gnu.org>
1554
1555 * subsegs.c (subseg_text_p): Use 1/0 instead of true/false for
1556 non BFD_ASSEMBLER case.
1557
827c0149
ILT
15581999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
1559
1560 * config/obj-coff.c (obj_coff_section): Mark writable sections as
1561 data.
1562
a340d270
RH
15631999-06-26 David Mosberger <davidm@hpl.hp.com>
1564
1565 * dwarf2dbg.c (dwarf2_gen_line_info): Don't call
1566 out_end_sequence() when the address decreases due to a new frag.
1567 (gen_dir_list): Set ls.file[i].dir to j + 1 (not j) because file
1568 numbering starts with 1.
1569
16b93d88
NC
15701999-06-23 Nick Clifton <nickc@cygnus.com>
1571
1572 * config/tc-mcore.c (md_pseudo_table): Add .comm for ELF and allow
1573 .section for COFF.
1574 (mcore_s_text): Call obj_elf_text for ELF target.
1575 (mcore_s_data): Call obj_elf_data for ELF target.
1576 (mcore_s_section): No longer ELF specific. Call obj_coff_section
1577 for COFF target.
1578 (mcore_s_bss): New function: Dump literal table before changing
1579 sections.
1580 (mcore_s_comm): New function: Dump literal table before changing
1581 sections.
1582
1583 * config/obj-elf.c (obj_elf_common, obj_elf_data, obj_elf_text):
1584 No longer static functions.
1585 * config/obj-elf.h (obj_elf_common, obj_elf_data, obj_elf_text):
1586 Provide prototypes for these functions.
1587
fed9b18a
ILT
15881999-06-22 Ian Lance Taylor <ian@zembu.com>
1589
be2acf27
ILT
1590 * subsegs.c (subseg_text_p): Rewrite non BFD_ASSEMBLER case to use
1591 a list of names, to try obj_segment_name, and to try abbreviated
1592 names when using COFF without long section names.
1593
7dcc9865
ILT
1594 * config/tc-alpha.c: More use of symbol accessor functions.
1595 * config/tc-arc.c: Likewise.
1596 * config/tc-d30v.c: Likewise.
1597 * config/tc-fr30.c: Likewise.
1598 * config/tc-i860.c: Likewise.
1599 * config/tc-m88k.c: Likewise.
1600 * config/tc-mcore.c: Likewise.
1601 * config/tc-ns32k.c: Likewise.
1602 * config/tc-sparc.c: Likewise.
1603 * config/tc-v850.c: Likewise.
1604
a77f5182
ILT
1605 * config/tc-arc.c (get_arc_exp_reloc_type): Change uses of
1606 sy_value with appropriate accessor functions.
1607 * config/tc-arm.c (md_apply_fix3): Likewise.
1608 * config/tc-d10v.c (AT_WORD_P): Likewise.
1609 * config/tc-v850.c (reg_name_search): Likewise.
1610
fed9b18a
ILT
1611 * config/obj-ecoff.c (obj_ecoff_set_ext): Change uses of bsym to
1612 use symbol_get_bfdsym instead.
1613 * config/tc-ppc.c (md_assemble): Likewise.
1614 * config/tc-v850.c (v850_comm): Likewise.
1615
310b5aa2
ILT
16161999-06-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
1617
1618 * config/tc-arc.c (tc_gen_reloc): Use symbol_get_bfdsym to get at
1619 the symbol, rather than accessing the bsym member.
1620 * config/tc-d10v.c (tc_gen_reloc): Likewise.
1621 * config/tc-d30v.c (tc_gen_reloc): Likewise.
1622 * config/tc-mcore.c (tc_gen_reloc): Likewise.
1623 * config/tc-mn10200.c (tc_gen_reloc): Likewise.
1624 * config/tc-mn10300.c (tc_gen_reloc): Likewise.
1625 * config/tc-ns32k.c (tc_gen_reloc): Likewise.
1626 * config/tc-tic30.c (tc_gen_reloc): Likewise.
1627 * config/tc-v850.c (tc_gen_reloc): Likewise.
1628
9cb8e75e
JL
1629Mon Jun 21 16:45:19 1999 Jeffrey A Law (law@cygnus.com)
1630
1631 * tc-hppa.c (elf_hppa_reloc_type): Renamed from elf32_hppa_reloc_type.
1632 (hppa_gen_reloc_type): Conditionalize on BFD64.
1633 (tc_gen_reloc): Re-enable ELF relocations.
1634 * tc-hppa.h (TARGET_FORMAT): Handle elf64-hppa format.
1635
3d103319
ILT
16361999-06-21 Ian Lance Taylor <ian@zembu.com>
1637
1638 * config/tc-arm.c (ldst_extend): Add parentheses to avoid
1639 warning.
1640 (do_ldst): Move assignment out of if condition.
1641 (md_apply_fix3): Add casts to avoid printf format warnings. Add
1642 parentheses to avoid warning.
1643
776b24b4
NC
16441999-06-21 Nick Clifton <nickc@cygnus.com>
1645
155f0fe7
NC
1646 * config/tc-arm.c (arm_adjust_symtab): Use symbol_get_bfdsym()
1647 macro to get at the BFD symbol associated with a GAS symbol.
776b24b4 1648
809ffe0d
ILT
16491999-06-19 Ian Lance Taylor <ian@zembu.com>
1650
1651 * config/tc-ppc.c: Update for symbol handling changes.
1652 * config/obj-coff.c: Likewise.
1653
49863f82
JL
1654Fri Jun 18 14:34:18 1999 Jeffrey A Law (law@cygnus.com)
1655
1656 * tc-hppa.c: General cleanups of ELF support. No more spaces
1657 and subspaces for ELF.
1658 (GDB_DEBUG_SPACE_NAME): Delete definition for ELF.
1659 (GDB_STRINGS_SUBSPACE_NAME): Likewise.
1660 (GDB_SYMBOLS_SUBSPACE_NAME): Likewise
1661 (UNWIND_SECTION_NAME): Likewise.
1662 (space/subspace related structures): Conditionalize definitions
1663 on OBJ_SOM.
1664 (space/subspace directives and support routines): Conditionalize
1665 definitions and references/uses on OBJ_SOM.
1666 (label_symbol_struct): For ELF, track the symbol's segment. For
1667 SOM track its space.
1668 (pa_define_label, pa_undefine_label, pa_get_label): Corresponding
1669 changes.
1670 (USE_ALIASES): Kill for both SOM & ELF.
1671 (pa_def_subspaces, pa_def_spaces): Corresponding changes.
1672 (pa_space, pa_subspace): Corresponding changes.
1673 (pa_spaces_begin): Corresponding chagnes.
1674 (md_begin): Do not muck around with space/subspace stuff for
1675 OBJ_ELF.
1676 (md_apply_fix): Temporarily disable argument relocation stuff
1677 for OBJ_ELF.
1678 (tc_gen_reloc): Temporarily disable relocation generation for
1679 OBJ_ELF
1680 (pa_build_unwind_subspace): Similarly.
1681
fed881b1
NC
16821999-06-16 Nick Clifton <nickc@cygnus.com>
1683
1684 * config/tc-arm.c (thumb_set): New pseudo op.
1685 (text, data, section): Override these pseudo ops with ARM
1686 specific versions.
1687 (s_thumb_set): New function: Perform the same as a .set pseudo
1688 op, but also mark the alias'ed symbol as being a Thumb
1689 function.
1690 (arm_s_text): New function: Perform the same as the .text
1691 pseudo op, but dump the literal pool before changing
1692 sections.
1693 (arm_s_data): New function: Perform the same as the .data
1694 pseudo op, but dump the literal pool before changing
1695 sections.
1696 (arm_s_section): New function: Perform the same as the
1697 .section pseudo op, but dump the literal pool before changing
1698 sections.
1699 (arm_cleanup): Do not reset the current section before dumping
1700 the literal pool.
1701
0f94f4c8
NC
17021999-06-17 Nick Clifton <nickc@cygnus.com>
1703
2f3519a2
NC
1704 * config/tc-m32r.c (md_longopts): Fix OPTION_WARN_UNMATCHED and
1705 OPTION_NO_WARN_UNMATCHED entries.
1706 (md_parse_option): Generate a warning message if an unrecognised
1707 option is encountered.
1708
0f94f4c8
NC
1709 * config/tc-d10v.c (do_not_ignore_hash): New variable.
1710 (get_operands): When parsing an expression after an '@' symbol
1711 has been detected, do not ignore '#' symbols.
1712 (md_operand): Only ignore '#' symbols if do_not_ignore_hash is
1713 false.
1714
e4a86f6f
ILT
17151999-06-13 Ian Lance Taylor <ian@zembu.com>
1716
1717 From K. Richard Pixley <rich@noir.com>:
1718 * configure.in (ppc-*-vxworks*): New target.
1719 * configure: Rebuild.
1720
a8aed0fb
UD
17211999-06-12 Philip Blundell <philb@gnu.org>
1722
1723 * config/tc-arm.c (tc_gen_reloc): Fix handling of GOTPC relocs.
1724
7565ed77
ILT
17251999-06-13 Ian Lance Taylor <ian@zembu.com>
1726
1727 * write.c (adjust_reloc_syms): Rather than never reducing reloc
1728 which refer to symbols in linkonce sections, permit reducing the
1729 relocs if the symbol is local.
1730
b9e57a38
ILT
17311999-06-12 Ian Lance Taylor <ian@zembu.com>
1732
1733 * subsegs.c (subseg_text_p): New function.
1734 * as.h (subseg_text_p): Declare.
1735 * read.c (do_align): Use subseg_text_p to set the default fill.
1736 * write.c (subsegs_finish): Likewise.
1737 * config/obj-coff.c (write_object_file): Likewise.
1738 * config/tc-i386.h (md_maybe_text): Don't define.
1739 (md_do_align): Use subseg_text_p to set the default fill.
1740 * config/tc-m32r.c (m32r_do_align): Likewise.
1741 * config/tc-sh.c (sh_do_align): Likewise.
1742 * config/tc-sparc.h (md_do_align): Likewise.
1743
008960a5
ILT
17441999-06-12 David O'Brien <obrien@freebsd.org>
1745
1746 * configure.in: (i[3456]86-*-freebsd*): Now defaults to ELF.
1747 * configure: Rebuild.
1748
a1605869
ILT
17491999-06-12 Ian Lance Taylor <ian@zembu.com>
1750
d9ac5a3b
ILT
1751 * dwarf2dbg.c: Include elf/dwarf2.h with "", not <>.
1752 * Makefile.am: Rebuild dependencies.
1753 * Makefile.in: Rebuild.
1754
a1605869
ILT
1755 * config/tc-i386.c (i386_immediate): Remove unused label
1756 seg_unimplemented.
1757
1758 * struc-symbol.h: Put local_symbol code in ifdef BFD_ASSEMBLER.
1759 * symbols.c: Likewise.
1760 * config/obj-aout.c (obj_crawl_symbol_chain): Refer directly to
1761 sy_next field when taking address, rather than symbol_next.
1762
1763 * dwarf2dbg.c: Change bfd_vma to addressT and bfd_signed_vma to
1764 offsetT.
1765 (out_set_addr): Don't use BYTES_PER_ADDRESS. Instead, get the
1766 value from the output file architecture.
1767 (dwarf2_gen_line_info): Ifdef BFD_ASSEMBLER specific code.
1768 * dwarf2dbg.h: Change bfd_vma to addressT.
1769
a7cd1c22
ILT
17701999-06-11 Ian Lance Taylor <ian@zembu.com>
1771
1772 * dwarf2dbg.h: Use PARAMS in function declarations.
1773
76171f81
ILT
17741999-06-11 Martin Dorey <mdorey@madge.com>
1775
1776 * write.c (fixup_segment): Don't add symbol value for i960 ELF.
1777 * config/tc-i960.c (s_leafproc): Don't call tc_set_bal_of_cal if
1778 OBJ_ELF.
1779 (md_apply_fix): Simplify BFD_ASSEMBLER handling.
1780
9b4d630b
ILT
17811999-06-11 Ian Lance Taylor <ian@zembu.com>
1782
5865bb77
ILT
1783 * config/tc-i386.c (md_apply_fix3): Add default case to switch.
1784
9e7c96d9
ILT
1785 * config/tc-sparc.c (md_pseudo_table): Remove pushsection and
1786 popsection.
1787
1b50c718
ILT
1788 * config/tc-sparc.c (sparc_ip): Add default case to reloc switch.
1789
1bf67e0d
ILT
1790 * read.c (read_a_source_file): Only declare inescape if
1791 QUOTES_IN_INSN.
1792
1793 * itbl-ops.c (itbl_disassemble): Change sprintf format strings to
1794 match parameters.
1795 (find_entry_byval): Add parens to avoid warning.
1796
1797 * as.c: If HAVE_ITBL_CPU, include "itbl-ops.h".
1798
9b4d630b
ILT
1799 * symbols.c (resolve_symbol_value): Don't permit subtraction of
1800 undefined symbols.
1801
a22b281c
RH
18021999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
1803
1804 * config/tc-sparc.c (sparc_ip): Don't use side-effect expression
1805 with isoctal.
1806
1807 * config/tc-sparc.c (synthetize_setuw, synthetize_setsw,
1808 synthetize_setx): New functions.
1809 (md_assemble): Broken the special cases into the above
1810 functions. Make compiler happy if sizeof(bfd_vma)==4.
1811 Fix sethi generated from set/setuw. If instructions have a relloc,
1812 always clear the fields to be relocated in the opcode.
1813 (sparc_ip): Remove special_case global variable.
1814
7f2f689c
ILT
18151999-06-10 Ian Lance Taylor <ian@zembu.com>
1816
d7ba4a77
ILT
1817 Based on patches from John W. Woznack <jwoznack@concentric.net>:
1818 * itbl-ops.c (itbl_get_reg_val): Add pval parameter. Return
1819 indication of success rather than a value.
1820 (itbl_get_val): Likewise.
1821 (itbl_get_field): Use strcspn. Change delimiters to include
1822 parens.
1823 * itbl-ops.h (itbl_get_reg_val): Update declaration.
1824 (itbl_get_val): Likewise.
1825 * config/tc-mips.c (mips_ip): Update call to itbl_get_reg_val.
1826
7f2f689c
ILT
1827 * symbols.c (copy_symbol_attributes): Convert local symbols to
1828 regular symbols.
1829
c1d3c45e
NC
18301999-06-10 Nick Clifton <nickc@cygnus.com>
1831
1832 * config/tc-arm.c (md_parse_option): Add support for ARM920 and
1833 ARM920t.
1834
63fab58c
RH
18351999-06-07 Jakub Jelinek <jj@ultra.linux.cz>
1836
1837 * config/tc-sparc.c (md_assemble): Fix up setx, support setsw.
1838 Optimize set if sizeof(bfd_vma) == 64.
1839 (sparc_ip): Fix sethi - without %hi() it should generate
eb858bb4 1840 R_SPARC_22 reloc, not R_SPARC_HI22.
63fab58c
RH
1841 (tc_gen_reloc): Handle BFD_RELOC_SPARC22.
1842
cf9a1301
RH
18431999-06-07 Jakub Jelinek <jj@ultra.linux.cz>
1844
1845 * config/tc-sparc.c (md_begin): Handle native wordsize aliases.
1846 (s_ncons): New function.
1847 (native_op_table): New table.
1848 (sparc_ip): Be more strict on %hi() etc.; prepare assembler for
1849 R_SPARC_OLO10 handling.
1850
bf29b231
RH
1851Mon Jun 7 10:22:16 1999 Richard Henderson <rth@cygnus.com>
1852
1853 * expr.h (struct expressionS): Revert last change; widen X_op.
1854 * config/tc-alpha.c (md_begin): Check the field is wide enough.
1855
9be1cda6
AS
1856Mon Jun 7 11:25:16 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1857
a4835b42
AS
1858 * Makefile.am (TARGET_CPU_CFILES): Add config/tc-fr30.c.
1859 (TARGET_CPU_HFILES): Add config/tc-fr30.h.
1860 (TARG_ENV_HFILES): Add config/te-epoc-pe.h.
1861 * Makefile.in: Regenerated.
1862
9be1cda6
AS
1863 * config/obj-elf.c (obj_elf_common): In MRI mode if called as
1864 `common' pass on to s_mri_common.
1865 (elf_pseudo_table): Pass 1 to obj_elf_common for `common'.
1866
62335629
RH
18671999-06-06 Richard Henderson <rth@cygnus.com>
1868
1869 * config/obj-elf.c (obj_elf_section): Don't free the return
1870 value of demand_copy_C_string.
1871
9de8d8f1
RH
18721999-06-05 Richard Henderson <rth@cygnus.com>
1873
1874 * dwarf2dbg.c (dwarf2_gen_line_info): Mirror the section symbol
1875 creation logic from obj_elf_create_section.
1876
1877 * config/obj-elf.c (elf_pseudo_tab): Add pushsection/popsection.
1878 (section_stack): New.
1879 (special_sections): Make const.
1880 (obj_elf_section): Gut and rewrite parsing.
1881 (obj_elf_change_section): New function broken out of obj_elf_section.
1882 (obj_elf_parse_section_letters): Likewise.
1883 (obj_elf_section_word): Likewise.
1884 (obj_elf_section_type): Likewise.
1885 (obj_elf_previous): Treat as a toggle.
1886 (obj_elf_popsection): New.
1887 * config/tc-ppc.c (ppc_section_word): Take str+len not ptr_str.
1888 (ppc_section_type): Likewise.
1889 * config/tc-ppc.h: Likewise.
1890
1891 * expr.h (struct expressionS): Don't make X_op a bitfield.
1892 * config/tc-alpha.c: Update for symbol handling changes.
1893 (md_apply_fix) [case GPREL]: Use now_seg instead of absolute_section.
1894 (load_expression, emit_ir_load, emit_loadstore, emit_jsrjmp): Likewise.
1895
58b5739a
RH
18961999-06-05 Richard Henderson <rth@cygnus.com>
1897
1898 * dwarf2dbg.c (*): Convert to K&R + prototypes.
1899 (dwarf2_gen_line_info): Kill unused variables.
1900 (dwarf2_finish): Likewise.
1901 (dwarf2_where): Likewise.
1902 (dwarf2_directive_file): If we've only got a string,
1903 hand off to s_app_file.
1904 * ecoff.c: Move the include of ecoff.h.
1905 * symbols.h (S_IS_FUNCTION): Prototype.
1906
1907 * read.c (LEX_HASH): Supply a default.
1908 (lex_type): Use it.
1909 (s_globl): Update `c' after skipping whitespace.
1910 * read.h (LEX_END_NAME, is_name_ender): New.
1911 * expr.c (get_symbol_end): Respect it.
1912
398e8c25
ILT
19131999-06-04 Mark Klein <mklein@dis.com>
1914
993142d5
ILT
1915 * config/tc-hppa.c (md_begin): Convert local symbol dummy_symbol
1916 to real if OBJ_SOM
1917 (tc_gen_reloc): Still need bfd_abs_symbol in some relocs.
1918
398e8c25
ILT
1919 * config/tc-hppa.c: Update for symbol handling changes.
1920
b4013713
ILT
19211999-06-03 Ian Lance Taylor <ian@zembu.com>
1922
080e41e6
ILT
1923 * cgen.c: Update for symbol handling changes.
1924 * config/tc-m32r.c: Likewise.
f412ead8 1925
a0f75b47
ILT
1926 * config/tc-hppa.h: Update for symbol handling changes.
1927 * config/tc-hppa.c: Likewise.
1928
174419c1
ILT
1929 * config/tc-arm.h: Update for symbol handling changes.
1930 * config/tc-arm.c: Likewise.
1931 (symbol_make_empty): Remove. Just use symbol_create.
1932
1933 * symbols.c (symbol_set_tc): Correct name.
1934
6104f0a0
ILT
1935 * Makefile.am: Rebuild dependencies.
1936 ($(OBJS)): Don't depend upon struc-symbol.h.
1937 (.dep1, .tcdep, .objdep): Create itbl-parse.h.
1938 * dep-in.sed: Don't remove struc-symbol.h.
1939 * Makefile.in: Rebuild.
1940
b4013713
ILT
1941 * doc/internals.texi (Symbols): Describe changes in symbol
1942 handling.
1943
6576f0b5
RH
19441999-06-03 Richard Henderson <rth@cygnus.com>
1945
1946 * dwarf2dbg.c (dwarf2_gen_line_info): Use section_symbol
1947 instead of doing the work by hand.
1948
fac0d250
RH
19491999-06-03 David Mosberger <davidm@hpl.hp.com>
1950
1951 * dwarf2dbg.c (INITIAL_STATE): New macro encapsulating initial
1952 state of line state-machine.
1953 (struct ls): Collect DWARF2 line state-machine state in new member
1954 SM. Add member EMPTY_SEQUENCE to keep track if a code sequence
1955 resulted in any DWARF2 directives.
1956 (reset_state_machine): New function.
1957 (out_end_sequence): Ditto.
1958 (dwarf2_gen_line_info): When switching sections or switching to a
1959 lower text address, call out_end_sequence() first to terminate the
1960 previous code sequence as code sequences MUST have monotonically
1961 increasing addresses.
1962 (dwarf2_finish): Call out_end_sequence() instead of open coding it.
1963
19641999-06-03 David Mosberger <davidm@hpl.hp.com>
1965
1966 * as.c (parse_args): Add option -gdwarf2 to allow requesting
1967 DWARF2 debug info (line information only, at this point).
1968 * as.h: Update comment about supported debug formats.
1969 * dwarf2dbg.c, dwarf2dbg.h: New files.
1970 * Makefile.am (GAS_CFILES, HFILES, GENERIC_OBJS): Add them.
1971
1972 * expr.c (operand): Don't use [ for parens if we want an index op.
1973 (op_encoding): Switch [ into O_index, if desired.
1974 (op_rank): Renumber with O_index on bottom.
1975 (expr): If O_index, match closing bracket.
1976 * expr.h (O_index): New.
1977
1978 * read.c (read_a_source_file): Conditionally allow matched "
1979 in lines passed to md_assemble.
1980
1981 * config/obj-elf.c (elf_pseudo_table): Add `common'.
1982
49309057
ILT
19831999-06-03 Ian Lance Taylor <ian@zembu.com>
1984
1985 Add support for storing local symbols in a small structure to save
1986 memory when assembling large files.
1987 * as.h: Don't include struc-symbol.h.
1988 (symbolS): Add typedef.
1989 * symbols.c: Include struc-symbol.h.
1990 (local_hash): New static variable.
1991 (save_symbol_name): New static function, from symbol_create.
1992 (symbol_create): Call save_symbol_name.
1993 (local_symbol_count): New static variable.
1994 (local_symbol_conversion_count): Likewise.
1995 (LOCAL_SYMBOL_CHECK): Define.
1996 (local_symbol_make): New static function.
1997 (local_symbol_convert): New static function.
1998 (colon): Handle local symbols. Create local symbol for local
1999 label name.
2000 (symbol_table_insert): Handle local symbols.
2001 (symbol_find_or_make): Create local symbol for local label name.
2002 (symbol_find_base): Check for local symbol.
2003 (symbol_append, symbol_insert): Check for local symbols.
2004 (symbol_clear_list_pointers, symbol_remove): Likewise.
2005 (verify_symbol_chain): Likewise.
2006 (copy_symbol_attributes): Likewise.
2007 (resolve_symbol_value): Handle local symbols.
2008 (resolve_local_symbol): New static function.
2009 (resolve_local_symbol_values): New function.
2010 (S_GET_VALUE, S_SET_VALUE): Handle local symbols.
2011 (S_IS_FUNCTION, S_IS_EXTERNAL, S_IS_WEAK, S_IS_COMMON): Likewise.
2012 (S_IS_DEFINED, S_IS_DEBUG, S_IS_LOCAL, S_GET_NAME): Likewise.
2013 (S_GET_SEGMENT, S_SET_SEGMENT, S_SET_EXTERNAL): Likewise.
2014 (S_CLEAR_EXTERNAL, S_SET_WEAK, S_SET_NAME): Likewise.
2015 (symbol_previous, symbol_next): New functions.
2016 (symbol_get_value_expression): Likewise.
2017 (symbol_set_value_expression): Likewise.
2018 (symbol_set_frag, symbol_get_frag): Likewise.
2019 (symbol_mark_used, symbol_clear_used, symbol_used_p): Likewise.
2020 (symbol_mark_used_in_reloc): Likewise.
2021 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p): Likewise.
2022 (symbol_mark_mri_common, symbol_clear_mri_common): Likewise.
2023 (symbol_mri_common_p): Likewise.
2024 (symbol_mark_written, symbol_clear_written): Likewise.
2025 (symbol_written_p): Likewise.
2026 (symbol_mark_resolved, symbol_resolved_p): Likewise.
2027 (symbol_section_p, symbol_equated_p): Likewise.
2028 (symbol_constant_p): Likewise.
2029 (symbol_get_bfdsym, symbol_set_bfdsym): Likewise.
2030 (symbol_get_obj, symbol_set_obj): Likewise.
2031 (symbol_get_tc, symbol_set_tc): Likewise.
2032 (symbol_begin): Initialize local_hash.
2033 (print_symbol_value_1): Handle local symbols.
2034 (symbol_print_statistics): Print local symbol statistics.
2035 * symbols.h: Include "struc-symbol.h" if not BFD_ASSEMBLER.
2036 Declare new symbols.c functions. Move many declarations here from
2037 struc-symbol.h.
2038 (SYMBOLS_NEED_BACKPOINTERS): Define if needed.
2039 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Don't set.
2040 (struct symbol): Move bsym to make it clearly the first field.
2041 Remove TARGET_SYMBOL_FIELDS.
2042 (symbolS): Don't typedef.
2043 (struct broken_word): Remove.
2044 (N_TYPE_seg, seg_N_TYPE): Move to symbol.h.
2045 (SEGMENT_TO_SYMBOL_TYPE, N_REGISTER): Likewise.
2046 (symbol_clear_list_pointers): Likewise.
2047 (symbol_insert, symbol_remove): Likewise.
2048 (symbol_previous, symbol_append): Likewise.
2049 (verify_symbol_chain, verify_symbol_chain_2): Likewise.
2050 (struct local_symbol): Define.
2051 (local_symbol_converted_p, local_symbol_mark_converted): Define.
2052 (local_symbol_resolved_p, local_symbol_mark_resolved): Define.
2053 (local_symbol_get_frag, local_symbol_set_frag): Define.
2054 (local_symbol_get_real_symbol): Define.
2055 (local_symbol_set_real_symbol): Define.
2056 Define.
2057 * write.c (write_object_file): Call resolve_local_symbol_values.
2058 * config/obj-ecoff.h (OBJ_SYMFIELD_TYPE): Define.
2059 (TARGET_SYMBOL_FIELDS): Don't define.
2060 * config/obj-elf.h (OBJ_SYMFIELD_TYPE): Add local field. If
2061 ECOFF_DEBUGGING, add ECOFF fields.
2062 (ELF_TARGET_SYMBOL_FIELDS, TARGET_SYMBOL_FIELDS): Don't define.
2063 * config/obj-multi.h (struct elf_obj_sy): Add local field. If
2064 ECOFF_DEBUGGING, add ECOFF fields.
2065 (ELF_TARGET_SYMBOL_FIELDS, TARGET_SYMBOL_FIELDS): Don't define.
2066 (ECOFF_DEBUG_TARGET_SYMBOL_FIELDS): Don't define.
2067 * config/tc-mcore.h: Don't include struc-symbol.h.
2068 (TARGET_SYMBOL_FIELDS): Don't define.
2069 (struct mcore_tc_sy): Define.
2070 (TC_SYMFIELD_TYPE): Define.
2071 * Many files: Use symbolS instead of struct symbol. Use new
2072 accessor functions rather than referring to symbolS fields
2073 directly.
2074
2075 * read.c (s_mri_common): Don't add in value of line_label.
2076
2077 * config/tc-mips.c (md_apply_fix): Correct parenthesization when
2078 checking for SEC_LINK_ONCE.
2079
2080 * config/tc-sh.h (sh_fix_adjustable): Declare.
2081
2082 * app.c (input_buffer): New static variable.
2083 (app_push): Save saved_input in allocated buffer.
2084 (app_pop): Restored saved_input.
2085 (do_scrub_chars): Change get parameter to take char * and int as
2086 arguments. Change GET macro to pass input_buffer to get
2087 function. Don't save input into allocated buffer.
2088 * as.h (do_scrub_chars): Update declaration.
2089 * input-file.c (input_file_get): Change to take char * and int.
2090 Read data into passed in buffer. Remove static buffer.
2091 * read.c (scrub_from_string): Change to take char * and int. Copy
2092 data into passed in buffer.
2093
2094 * hash.h: Neaten. Declare hash_traverse.
2095 * hash.c: Complete rewrite based on BFD hashing code.
2096 * gasp.c (chunksize): New variable.
2097 * macro.c (macro_expand_body): Call hash_jam with NULL rather than
2098 hash_delete.
2099
661e4995
NC
21001999-05-28 Nick Clifton <nickc@cygnus.com>
2101
2102 * config/tc-arm.c (md_apply_fix3): Add pipeline offset into reloc
2103 addend unless the target uses an old ABI.
2104
d9a62219
DE
2105Mon May 24 13:36:55 1999 Doug Evans <devans@canuck.cygnus.com>
2106
2107 -Wchar-subscripts cleanup
2108 * listing.c (listing_newline): Use unsigned char variable, so
2109 calls to isascii,iscntrl are correct.
2110 * atof-generic.c (atof_generic): Cast arg to isdigit, et. al. with
2111 (unsigned char).
2112 * ecoff.c (ecoff_directive_ent,ecoff_stab): Ditto.
2113 * config/obj-elf.c (obj_elf_vtable_inherit): Ditto.
2114 * config/tc-mips.c (mips_ip,mips16_ip): Ditto.
2115 (my_getSmallExpression,get_number,s_mips_ent): Ditto.
2116
6da466c7
ILT
21171999-05-28 Torbjorn Granlund <tege@matematik.su.se>
2118
2119 * config/tc-m68k.c (m68k_ip): Check for disallowed index register
2120 width for Coldfire.
2121 (arch_coldfire_p): New #define.
2122 (m68k_ip, m68k_init_after_args): Use arch_coldfire_p.
2123
21241999-05-28 Linus Nordberg <linus.nordberg@canit.se>
2125
2126 * config/tc-m68k.c (install_operand): Add places `n', `o'.
2127
2128 * config/tc-m68k.c (m68k_ip): Add formats `E', `G', `H'.
2129 (install_operand): Add place `N'.
2130 (init_table): Add registers ACC, MACSR, MASK.
2131
2132 * config/m68k-parse.h (m68k_register): Add ACC, MACSR, MASK.
2133
2134 * config/tc-m68k.c: Change mcf5200 --> mcf.
2135 (archs): Add mcf5206e, mcf5307.
2136 (m68k_ip): Add format `u'.
2137 (install_operand): Add place `m', `M', `h'.
2138 (init_table): Add upper/lower registers.
2139
2140 * config/m68k-parse.h (m68k_register): Add upper/lower registers.
2141
bedf545c
ILT
21421999-05-28 Martin Dorey <mdorey@madge.com>
2143
2144 * config/tc-i960.c: Several minor changes to add ELF and
2145 BFD_ASSEMBLER support.
2146 * config/tc-i960.h: Likewise.
2147 * configure.in (i960-*-elf*): New target.
2148 * aclocal.m4, configure: Rebuild.
2149
40c62b25
AM
21501999-05-25 Alan Modra <alan@spri.levels.unisa.edu.au>
2151
2152 * config/tc-i386.c (md_apply_fix3): Only do 1999-05-17 fx_pcrel
2153 reloc changes when defined(BFD_ASSEMBLER).
2154
daa01f85
AM
21551999-05-17 Alan Modra <alan@spri.levels.unisa.edu.au>
2156
2157 * config/tc-i386.c (tc_gen_reloc): Remove F and MAP macros.
2158
2159 * write.c (write_print_statistics): Output to file, not stderr.
2160
2161 * expr.c (generic_bignum_to_int32,64): Prototype.
2162
2163 * read.c (s_lcomm_internal, sizeof_sleb128, sizeof_uleb128,
2164 output_sleb128, output_uleb128, output_big_sleb128,
2165 output_big_uleb128, output_big_leb128): Prototype.
2166 (output_big_sleb128, output_big_uleb128): Make inline.
2167 (output_big_leb128): Remove inline
2168
2169 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2170 * config/tc-i386.c (md_apply_fix3): Convert BFD_RELOC_16 with
2171 fx_pcrel set to BFD_RELOC_16_PCREL. Similarly for BFD_RELOC_8.
2172 Handle BFD_RELOC_16_PCREL and BFD_RELOC_8_PCREL. Return changed
2173 value for correct overflow check in write.c:fixup_segment.
2174 * write.c (fixup_segment): Move bitfield overflow checks to after
2175 the md_apply_fix call.
2176 * config/obj-coff.c (fixup_segment): Likewise.
2177 * doc/internals.texi (CPU backend): Mention md_apply_fix modifying
2178 valueT *val argument.
2179
19b34177
AS
2180Fri May 14 10:52:13 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2181
2182 * config/atof-ieee.c (gen_to_words): Correctly round a
2183 denormalized number. Fix off-by-one in range checking for
2184 exponent in a denormal.
2185
b8a40f53
NC
21861999-05-10 Nick Clifton <nickc@cygnus.com>
2187
2188 * config/tc-mcore.c (parse_reg): Accept 'sp' as a valid register
2189 name.
2190
53f3de98
RH
2191Thu May 13 09:46:59 1999 Joel Sherrill (joel@OARcorp.com)
2192
2193 * configure.in (i386-*-rtemself*, sh-*-rtemself*): New targets.
2194
578ec497
AM
21951999-05-12 Alan Modra <alan@spri.levels.unisa.edu.au>
2196
2197 * config/tc-i386.h (InvMem): New flag. Add to AnyMem.
2198 (ReverseRegRegmem): Remove.
2199 (ImmExt): New flag. Renumber some of the opcode_modifier bits.
2200 * config/tc-i386.c (md_assemble): Test for PIII SIMD and AMD
2201 3DNow! via ImmExt opcode_modifier. Remove ReverseRegRegmem
2202 kludge.
2203
2204 From Doug Ledford <dledford@redhat.com>
2205 * config/tc-i386.h (RegXMM): New for P/III.
2206 * config/tc-i386.c: Add support for P/III.
2207
d0e9a01c
RH
2208Sat May 8 23:28:50 1999 Richard Henderson <rth@cygnus.com>
2209
2210 * config/tc-ppc.c (md_parse_option): Recognize -mppc64bridge.
2211 (md_begin): Allow ppc32 insns in ppc64bridge mode.
2212 (ppc_insert_operand): Accept SIGNOPT in ppc64 mode.
2213
83183c0c
RH
2214Thu May 6 23:13:39 1999 Richard Henderson <rth@cygnus.com>
2215
2216 * config/tc-i386.c (i386_immediate): Skip whitespace before
2217 complaining about junk after expression.
2218 (i386_displacement): Likewise.
2219
03987ced
RH
2220Thu May 6 19:50:14 1999 Richard Henderson <rth@cygnus.com>
2221
2222 * symbols.c (symbol_find_base): Use memcpy instead of strcpy.
2223 Don't copy before downcaseing.
2224
0d96863f
CM
22251999-05-05 Catherine Moore <clm@cygnus.com>
2226
2227 * tc-m68k.c: Include elf/m68k.h.
2228 (m68k_elf_final_processing): New routine.
2229 * tc-m68k.h (elf_tc_final_processing m68k_elf_final_processing):
2230 Define.
2231
90700a53
JL
2232Mon May 3 10:26:03 1999 Jeffrey A Law (law@cygnus.com)
2233
2234 * config/tc-hppa.c (md_apply_fix): Handle 22 bit fmt insn like a
2235 17 bit fmt insn.
2236
252b5132
RH
22371999-04-30 Nick Clifton <nickc@cygnus.com>
2238
2239 * config/tc-mcore.c (mcore_s_section): Dump literals before
2240 changing section.
2241
22421999-04-29 Nick Clifton <nickc@cygnus.com>
2243
2244 * config/tc-mcore.c (md_apply_fix3): Insert reloc addend into insn
2245 for COFF/PE port.
2246
2247Mon Apr 26 12:34:37 1999 Doug Evans <devans@canuck.cygnus.com>
2248
2249 * config/tc-fr30.h (TC_FIX_TYPE): Delete, cgen fields moved to write.h.
2250 (TC_INIT_FIX_DATA): Delete.
2251 * config/tc-m32r.h (TC_FIX_TYPE): Delete, cgen fields moved to write.h.
2252 (TC_INIT_FIX_DATA): Delete.
2253 * write.h (struct fix): New member fx_cgen, ifdef USING_CGEN.
2254 * write.c (fix_new_internal): Initialize fx_cgen member.
2255 * cgen.c (gas_cgen_record_fixup,gas_cgen_record_fixup_exp): Update.
2256 (gas_cgen_md_apply_fix3): Update.
2257 * config/tc-m32r.c (md_cgen_lookup_reloc): Update.
2258 (md_cgen_record_fixup_exp): Update.
2259 (FX_OPINFO_R_TYPE): Update.
2260
2261 * frags.c (frag_var,frag_variant): Initialize fr_cgen here.
2262 * config/tc-fr30.h (TC_FRAG_INIT): Delete.
2263 * config/tc-m32r.h (TC_FRAG_INIT): Delete.
2264 * frags.h (struct frag): Make opindex, opinfo ints.
2265
2266 * config/tc-fr30.c (FX_OPINFO_R_TYPE): Delete, unused.
2267
22681999-04-26 Tom Tromey <tromey@cygnus.com>
2269
2270 * aclocal.m4, configure: Updated for new version of libtool.
2271
22721999-04-22 Nick Clifton <nickc@cygnus.com>
2273
2274 * config/tc-mcore.c (md_apply_fix3): Renamed function from
2275 md_apply_fix.
2276 (md_apply_fix3): Do not fix up absolute relocations against
2277 symbolic values.
2278
2279 * config/tc-mcore.h (MD_APPLY_FIX3): Define.
2280
22811999-04-20 Nick Clifton <nickc@cygnus.com>
2282
2283 * config/tc-mcore.c (md_pseudo_table): Add intercepts for section
2284 changes and data-in-text directives.
2285 (mcore_cons): New function: intercept cons() operations.
2286 (mcore_float_cons): New function: intercept float_cons()
2287 operations.
2288 (mcore_stringer): New function: intercept stringer() operations.
2289
22901999-04-18 Ian Lance Taylor <ian@zembu.com>
2291
2292 * obj.h (struct format_ops): Change generate_asm_lineno field to
2293 take no parameters.
2294 * config/obj-ecoff.h (OBJ_GENERATE_ASM_LINENO): Don't define.
2295
2296 * config/tc-alpha.c (find_opcode_match): Add default case to
2297 switch.
2298 (find_macro_match): Likewise.
2299 (load_expression): Parenthesize && within ||.
2300
2301 * config/tc-alpha.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2302
23031999-04-17 Nick Clifton <nickc@cygnus.com>
2304
2305 * config/tc-mcore.c (md_pseudo_table): Add overrides for .bss
2306 .text .data .section pseudo ops.
2307 (mcore_s_section): New function. Dump lits before changing secs.
2308 (mcore_s_text): New function. Dump lits before changing secs.
2309 (mcore_s_data): New function. Dump lits before changing secs.
2310
23111999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
2312
2313 * config/tc-mips.c (mips_32bitmode): New.
2314 (md_begin): Set mips_32bitmode if needed.
2315 (mips_elf_final_processing): Don't set EF_MIPS_ARCH.
2316 Set EF_MIPS_32BITMODE.
2317
2318Fri Apr 16 12:26:39 1999 Bob Manson <manson@charmed.cygnus.com>
2319
2320 * config/obj-coff.c (c_section_symbol): Fix typo in previous
2321 change.
2322
23231999-04-16 Nick Clifton <nickc@cygnus.com>
2324
2325 * config/tc-mcore.h (LOCAL_LABELS_FB): Define to 1.
2326
2327Thu Apr 15 16:52:09 1999 Jeffrey A Law (law@cygnus.com)
2328
2329 * tc-hppa.c (pa_get_absolute_exression): Try to handle "5 %r3"
2330 expressions correctly.
2331
2332
23331999-04-15 Gavin Romig-Koch <gavin@cygnus.com>
2334
2335 * config/tc-mips.c (mips_elf_final_processing): Set EF_MIPS_ARCH.
2336
2337Mon Apr 12 23:45:07 1999 Jeffrey A Law (law@cygnus.com)
2338
2339 * tc-hppa.c (pa_ip, case '3'): New case for PA2.0 fmpyfadd
2340 and fmpynfadd instructions.
2341
23421999-04-11 Richard Henderson <rth@cygnus.com>
2343
2344 * as.h (environ): Declare it, if needed.
2345 * as.c (dump_statistics): Don't declare environ.
2346 * configure.in (environ): Detect declaration.
2347 * configure, config.in: Rebuild
2348
2349 * config/tc-i386.c (i386_immediate): Accept @GOT relocations.
2350 (i386_displacement): Allocate enough space for replacement buffer.
2351 Clean up replacement buffer initialization.
2352
23531999-04-11 Bob Manson <manson@charmed.cygnus.com>:
2354
2355 * subsegs.c (section_symbol): Don't create a new symbol if one
2356 already exists; instead, use the existing one, but set its segment
2357 and frag data if it hasn't already been defined.
2358 * config/obj-coff.c (c_section_symbol): Likewise.
2359
2360Sat Apr 10 20:10:02 1999 Richard Henderson <rth@cygnus.com>
2361
2362 * tc-alpha.c (load_expression): Call as_bad instead of abort.
2363
23641999-04-08 Nick Clifton <nickc@cygnus.com>
2365
2366 * config/tc-mcore.c: New File: Support routines for MCore
2367 assembler.
2368 * config/tc-mcore.h: New File: Definitions for MCore assembler.
2369 * config/obj-coff.c: Add support for mcore-pe target.
2370
2371 * Makefile.am: Add support for MCore targets.
2372 * Makefile.in: Regenerate.
2373 * configure.in: Add support for MCore targets.
2374 * configure: Regenerate.
2375
2376 * doc/all.texi: Set MCORE.
2377 * doc/as.texinfo: Document MCore specific command line options.
2378
2379 * write.h: Prevent multiple inclusion.
2380
23811999-04-06 Ian Lance Taylor <ian@zembu.com>
2382
2383 * asintl.h (LC_MESSAGES): Never define.
2384 * as.c (main): Don't pass LC_MESSAGES to setlocale if the system
2385 does not define it.
2386 * gasp.c (main): Don't pass LC_MESSAGES to setlocale if the system
2387 does not define it.
2388
2389 * Makefile.am (m68k-parse.c): If configuring in the source
2390 directory, copy m68k-parse.y into the local directory before
2391 running ylwrap, to remove spurious differences when generating
2392 snapshots.
2393 * Makefile.in: Rebuild.
2394
2395 * config/tc-sparc.h (md_do_align): Just allocate the number of
2396 bytes necessary, rather than always allocating 1024.
2397
23981999-04-04 Ian Lance Taylor <ian@zembu.com>
2399
2400 * listing.c (listing_newline): Add cast to avoid warning.
2401 * read.c (generate_lineno_debug): Add cases to switch. Reindent.
2402 * config/tc-i386.c (i386_scale): Add return value.
2403 (build_displacement_string): Remove unused local temp_disp2.
2404 (i386_intel_memory_operand): Add parentheses to avoid warning.
2405 (i386_intel_operand): Remove unused local end_of_operand_string.
2406 (i386_operand): Remove unused local operand_modifier.
2407 (i386_operand): Add parens to avoid warning.
2408
24091999-04-04 Don Bowman <don@pixsci.com>
2410
2411 * configure.in: Add mips*-*-vxworks* target; have it define
2412 MIPS_STABS_ELF.
2413 * configure, config.in: Rebuild.
2414
24151999-03-31 Nick Clifton <nickc@cygnus.com>
2416
2417 * configure.in (emulations): Add support for arm-epoc-pe.
2418 * configure: Regenerate.
2419 * config/te-epoc-pe.h: New file. Define macros specific to
2420 arm-epoc-pe target.
2421 * config/tc-arm.h: Select epoc-pe-arm target format if configured
2422 for arm-epoc-pe target.
2423
2424Mon Mar 29 10:15:40 CST 1999 Catherine Moore <clm@cygnus.com>
2425
2426 * tc-mips.c (md_apply_fix): Adjust value for linkonce sections.
2427
2428Wed Mar 24 14:11:10 1999 Jeffrey A Law (law@cygnus.com)
2429
2430 * tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Clean up code to
2431 detect ",n" without a condition.
2432 (pa_parse_neg_cmpsub_cmpltr): Likewise.
2433
2434
2435Tue Mar 23 11:28:23 1999 Jeffrey A Law (law@cygnus.com)
2436
2437 * tc-hppa.c (pa_ip, case '~'): The condition for a branch on bit
2438 instruction is encoded with one bit.
2439
2440
24411999-03-23 Ian Lance Taylor <ian@zembu.com>
2442
2443 * doc/internals.texi (CPU backend): Mention that
2444 line_separator_chars should not include newline. From thi
2445 <ttn@mingle.glug.org>.
2446
24471999-03-22 Doug Evans <devans@casey.cygnus.com>
2448
2449 * config/tc-fr30.c (md_begin): Update call to fr30_cgen_cpu_open.
2450 * config/tc-m32r.c (md_begin): Update call to m32r_cgen_cpu_open.
2451
2452Sun Mar 21 18:08:18 1999 Richard Henderson <rth@cygnus.com>
2453
2454 * tc-alpha.c (md_assemble): Allow '6' in an opcode.
2455
2456Thu Mar 18 10:55:30 1999 Jeffrey A Law (law@cygnus.com)
2457
2458 * tc-hppa.c (pa_ip, case 'a'): Do not call pa_parse_..._cmpsub_cmpltr.
2459
2460
2461Thu Mar 18 02:30:07 1999 Jeffrey A Law (law@cygnus.com)
2462
2463 * tc-hppa.c (pa_ip, case 'd'): Do not allow ",n".
2464
24651999-03-15 Martin Hunt <hunt@cygnus.com>
2466
2467 * app.c (do_scrub_begin): Change '-' back to a symbol char
2468 so we can use multiple opcodes on a line again.
2469
2470 * config/tc-d30v.c: By default, warn if a symbol has
2471 the same name as a register. Plus some minor
2472 updates from the branch.
2473
24741999-03-13 Nick Clifton <nickc@cygnus.com>
2475
2476 * config/tc-d30v.c (md_apply_fix3): Handle BFD_RELOC_8,
2477 BFD_RELOC_16 and BFD_RELOC_64.
2478
24791999-03-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2480
2481 * expr.c (expr): Add missing else.
2482
24831999-03-12 Nick Clifton <nickc@cygnus.com>
2484
2485 * config/tc-arm.c (md_apply_fix3): Improve error message.
2486
24871999-03-11 Doug Evans <devans@casey.cygnus.com>
2488
2489 * Makefile.am (CPU_TYPES): Add fr30.
2490 (cgen.o): Add $(CGEN_CPU_PREFIX)-desc.h dependency.
2491 (fr30,m32r dependencies): Update.
2492 * Makefile.in: Rebuild.
2493
2494 * cgen.c (gas_cgen_record_fixup): Update use of operand->type.
2495 (gas_cgen_record_fixup_exp): Ditto.
2496 (gas_cgen_finish_insn): Call cgen_operand_lookup_by_num.
2497 (gas_cgen_md_apply_fix3): Ditto. Update call to set_vma_operand.
2498 * config/tc-fr30.c (md_begin): Update call to fr30_cgen_cpu_open.
2499 (md_cgen_lookup_reloc): Update use of operand->type.
2500 * config/tc-m32r.c (md_begin): Update call to fr30_cgen_cpu_open.
2501 (md_convert_frag): Call cgen_operand_lookup_by_num.
2502 (md_cgen_lookup_reloc): Update use of operand->type.
2503 (m32r_cgen_record_fixup_exp): Ditto.
2504
25051999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
2506
2507 * config/tc-mips.c (md_show_usage): Fix message.
2508
25091999-03-03 Nick Clifton <nickc@cygnus.com>
2510
2511 * doc/c-arm.texi (ARM Syntax): Document new command line switches
2512 and LDR reg,=<expr> instruction.
2513
2514 * config/tc-arm.c: Add support for -mcpu=arm810, -mcpu=arm9 and
2515 -mcpu=arm9tdmi.
2516
2517Fri Feb 19 09:36:30 1999 Ian Lance Taylor <ian@cygnus.com>
2518
2519 * doc/c-arm.texi (ARM-Chars): Fix typo in use of '@'.
2520
25211999-02-17 Nick Clifton <nickc@cygnus.com>
2522
2523 This patch was created by: Scott Bambrough
2524 <scottb@corelcomputer.com>
2525
2526 * app.c:
2527 Special cased '@' character. The '@' character is used as the
2528 ARM assembler comment character, as a special character
2529 and in ELF .symver pseudo-op's, and as a special character in
2530 .type and .section pseudo-ops.
2531 (symver_pseudo): New static variable.
2532 (symver_state): New static variable.
2533 (struct app_save): Add field 'symver_state'.
2534 (app_push): Save global symver_state int struct app_save.
2535 (app_pop): Restore global symver_state from struct app_save.
2536 (do_scrub_chars): Special case handling of '@' character in
2537 .symver pseudo-ops.
2538
2539 * configure.in: Modified to recognize armv* uname syntax from ARM
2540 Linux kernel.
2541 * configure: Regenerated.
2542
2543 * config/obj-elf.c (obj_elf_section): Allow '%' as well as '@' as
2544 a prefix to the section's type.
2545 (obj_elf_type): Allow '%' as well as '@' and '#' as prefixes to
2546 the type's typename.
2547
2548 * config/tc-arm.h: Add support for PIC generation:
2549 (pic_code): New boolean.
2550 (obj_relocate_extern): Define.
2551 (TC_RELOC_RTSYM_LOC_FIXUP): Define
2552 (TC_CONS_FIX_NEW): Define.
2553 (tc_fix_adjustable): Define.
2554 (GLOBAL_OFFSET_TABLE_NAME): Define.
2555
2556 * config/tc-arm.c: Add support for PIC generation:
2557 (line_seperator_chars): Allow ';' as a seperator for Linux.
2558 (is_immediate_prefix): New macro.
2559 (arm_parse_reloc): New function.
2560 (s_arm_elf_cons): New function.
2561 (do_branch): Special case for BFD_RELOC_ARM_PLT32.
2562 (md_undefined_symbol): Special case handling for the Global Offset
2563 Table's symbol.
2564 (md_apply_fix3): Handle PIC relocs.
2565 (tc_gen_reloc): Handle PIC relocs.
2566 (md_parse_option): Add support for '-k' command line switch to
2567 enable PIC generation.
2568 (cons_fix_new_arm): New function.
2569 (s_arm_elf_cons): New function.
2570
2571Tue Feb 16 16:31:53 1999 Ian Lance Taylor <ian@cygnus.com>
2572
2573 * configure.in: Add comments for uses of AC_DEFINE.
2574 * acinclude.m4: Likewise.
2575 * acconfig.h: Remove.
2576 * aclocal.m4: Rebuild.
2577 * configure: Rebuild.
2578 * Makefile.in: Rebuild.
2579 * config.in: Rebuild.
2580
25811999-02-15 Jim Lemke <jlemke@cygnus.com>
2582
2583 * config/tc-mips.c (mips_ip: case 'o'): Fix assertion failure for
2584 non-constant offset from a base register.
2585
25861999-02-14 Ken Raeburn <raeburn@raeburn.org>
2587
2588 * config/tc-alpha.c (md_show_usage): Put \ before newline in
2589 strings always.
2590
2591Sat Feb 13 14:10:10 1999 Richard Henderson <rth@cygnus.com>
2592
2593 * config/tc-alpha.c (cpu_types): Enable EV6 PALcode with -m21264.
2594 (emit_insn): Look for pc-relative and no-overflow specifiers on
2595 internal relocation types.
2596
25971999-02-13 Jim Blandy <jimb@zwingli.cygnus.com>
2598
2599 * doc/c-mips.texi (MIPS Opts): Updated list of -mNNNN and
2600 -mcpu=NNNN flags.
2601
2602 * config/tc-mips.c: Remove all the mips_NNNN variables; just use
2603 mips_cpu instead.
2604 (mips_4650, mips_4010, mips_4100): Variables removed.
2605 (hilo_interlocks, gpr_interlocks, append_insn, macro_build, macro,
2606 macro2, mips16_macro, mips_ip): Test mips_cpu, not the mips_NNNN
2607 variables.
2608 (md_begin): Don't bother initializing the mips_NNNN variables;
2609 mips_cpu is set, and that's good enough now.
2610 (md_parse_option): Have the -mNNNN options set mips_cpu instead of
2611 the mips_NNNN variable. The -no-mNNNN flags are now no-ops.
2612 (show): New function, to handle wrapping in the CPU lists.
2613 (md_show_usage): Update lists of -mcpu and -mNNNN switches.
2614
2615Sat Feb 13 00:17:26 1999 Richard Henderson <rth@cygnus.com>
2616
2617 * config/tc-i386.c (i386_intel_operand): Ignore `SHORT' rather
2618 than treat as an immediate specifier.
2619
2620Thu Feb 11 16:18:31 1999 Richard Henderson <rth@cygnus.com>
2621
2622 * config/tc-i386.c: Prototype many functions.
2623 (set_intel_syntax): Accept `prefix'/`noprefix' specifiers.
2624 (i386_immediate): Remove unused second argument.
2625 (i386_intel_operand): Fix i386_is_reg typo.
2626 (i386_operand): Use allow_naked_reg.
2627 (output_invalid): Make operand int for K&R.
2628
2629Thu Feb 11 11:21:02 1999 Ian Lance Taylor <ian@cygnus.com>
2630
2631 * Makefile.am (EXTRA_as_new_SOURCES): Uncomment--fixed by automake
2632 patch.
2633 * Makefile.in: Rebuild.
2634
26351999-02-09 Doug Evans <devans@casey.cygnus.com>
2636
2637 * Makefile.am (DISTCLEANFILES): Change cgen-opc.h to cgen-desc.h.
2638 (cgen.o): Ditto.
2639 (EXTRA_as_new_SOURCES): Comment out.
2640 (.tcdep): <arch>-opc.h renamed to <arch>-desc.h.
2641 * Makefile.in: Rebuild.
2642 * doc/Makefile.in: Rebuild.
2643 * configure.in: Require autoconf 2.13. Redo using_cgen handling.
2644 Delete call to AM_CYGWIN32. Replace AM_EXEEXT with AC_EXEEXT.
2645 (AC_OUTPUT): <arch>-opc.h renamed to <arch>-desc.h.
2646 * configure: Rebuild.
2647 * aclocal.m4: Rebuild.
2648 * config.in: Rebuild.
2649 * cgen.c: Include cgen-desc.h, not cgen-opc.h.
2650 (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
2651 (gas_cgen_cpu_desc): Renamed from gas_cgen_opcode_desc.
2652 CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
2653 CGEN_OPERAND_ATTR renamed to CGEN_OPERAND_ATTR_VALUE.
2654 (gas_cgen_record_fixup): Remove unnecessary != 0 test.
2655 (gas_cgen_record_fixup_exp): Ditto.
2656 (gas_cgen_finish_insn): Ditto. Refer to operand table via cpu
2657 descriptor, not global variable.
2658 (gas_cgen_md_apply_fix3): Refer to operand_table via cpu
2659 descriptor, not global variable. Refer to insert_operand handler
2660 via cpu descriptor, not global function.
2661 * cgen.h (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
2662 * config/tc-fr30.c: Include opcodes/fr30-desc.h.
2663 (*): gas_cgen_opcode_desc renamed to gas_cgen_cpu_desc.
2664 CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
2665 Update call to CGEN_OPERAND_TYPE,CGEN_INSN_OPERANDS.
2666 * config/tc-m32r.c: Ditto.
2667 (assemble_two_insns): Update calls to cgen_lookup_get_insn_operands.
2668 (md_assemble): Ditto.
2669 (md_convert_frag): Update call to CGEN_OPERAND_ENTRY.
2670
26711999-02-09 Nick Clifton <nickc@cygnus.com>
2672
2673 * config/tc-arm.c (md_apply_fix3): Fix handling of label1 - label2
2674 relocations for ELF targets.
2675
26761999-02-08 Nick Clifton <nickc@cygnus.com>
2677
2678 * configure.in: Add support for StrongARM target.
2679 * configure: Regenerate.
2680
26811999-02-05 Nick Clifton <nickc@cygnus.com>
2682
2683 * config/tc-arm.h: Tidy OBJ_ELF and OBJ_COFF definitions.
2684
2685 * config/tc-arm.c (md_apply_fix3): Fix BFD_RELOC_ARM_PCREL_BRANCH
2686 for COFF ports.
2687
2688Wed Feb 3 11:35:47 1999 Richard Henderson <rth@cygnus.com>
2689
2690 * config/tc-alpha.c (md_show_usage): Document pca56 and ev6 options.
2691
2692Mon Feb 1 20:37:30 1999 Catherine Moore <clm@cygnus.com>
2693
2694 * config/tc-i386.h (LONG_DOUBLE_MNEM_SUFFIX): Define.
2695 (INTEL_DWORD_MNEM_SUFFIX): Define.
2696 (BYTE_PTR): Define.
2697 (WORD_PTR): Define.
2698 (DWORD_PTR): Define.
2699 (XWORD_PTR): Define.
2700 (SHORT): Define.
2701 (OFFSET_FLAT): Define.
2702 (FLAT): Define.
2703 (NONE_FOUND): Define.
2704 (No_dSuf): Define.
2705 (No_xSuf): Define.
2706 * config/tc-i386.c (set_intel_syntax): New routine.
2707 (intel_syntax): Declare.
2708 (allow_naked_reg): Declare.
2709 (md_pseudo_table): Support .intel_syntax and .att_syntax.
2710 (intel_float_operand): New routine.
2711 (md_assemble): Handle INTEL_DWORD_MNEM_SUFFIX.
2712 Handle brackets as well as parens. Call i386_intel_operand for
2713 intel syntax. Reverse operands if appropriate. Handle new
2714 suffixes. Handle movzx and movsx.
2715 (i386_is_reg): New routine.
2716 (i386_immediate): New routine.
2717 (i386_scale): New routine.
2718 (i386_displacement): New routine.
2719 (i386_operand_modifier): New routine.
2720 (build_displacement_string): New routine.
2721 (i386_parse_seg): New routine.
2722 (i386_intel_memory_operand): New routine.
2723 (i386_intel_operand): New routine.
2724 (i386_operand): Call i386_displacement, i386_immediate,
2725 i386_scale, etc. instead of handling inline.
2726 (parse_register): Handle registers without prefix.
2727
2728Mon Feb 1 12:24:58 1999 Catherine Moore <clm@cygnus.com>
2729
2730 * configure: Regenerate.
2731 * configure.in (arm-*-oabi): New.
2732 (thumb-*-oabi): New.
2733 * config/tc-arm.c (target_oabi): Declare.
2734 (md_apply_fix3): Support REL relocs.
2735 (md_parse_option): Handle -oabi.
2736 (elf32_arm_target_format): New routine.
2737 (md_longopts): Add OPTION_OABI.
2738 * config/tc-arm.h: Redefine TARGET_FORMAT.
2739
2740
27411999-01-28 Nick Clifton <nickc@cygnus.com>
2742
2743 * write.c (write_relocs): Handle out of range error.
2744
2745 * config/tc-fr30.c (fr30_fix_adjustable): New function.
2746 (fr30_force_relocation): Default to 0.
2747
2748 * config/tc-fr30.h (obj_fix_adjustable): Define.
2749 (TC_FORCE_RELOCATION): Define.
2750
2751 * cgen.c (gas_cgen_md_apply_fix3): Do not apply fixes to VTABLE
2752 relocs.
2753
27541999-01-16 Nick Clifton <nickc@cygnus.com>
2755
2756 * config/tc-d30v.c (write_2_short): Do not generate a sequential
2757 merge of two instructions if the left instruciton kills the right.
2758
27591999-01-11 Doug Evans <devans@casey.cygnus.com>
2760
2761 * Makefile.in: Regenerate.
2762 * configure.in: Redo test for using cgen.
2763 * configure: Regenerate.
2764
27651999-01-09 Nick Clifton <nickc@cygnus.com>
2766
2767 * config/obj-coff.h (obj_adjust_symtab): Prevent accidental
2768 redefinition of this macro.
2769
2770Tue Jan 5 21:58:03 1999 Doug Evans <devans@canuck.cygnus.com>
2771
2772 * config/tc-mips.c (mips_frob_file): Disable "Unmatched %hi reloc"
2773 warning.
2774
27751998-12-29 Gavin Romig-Koch <gavin@cygnus.com>
2776
2777 * config/tc-mips.c (append_insn): For mips16, insert a nop between
2778 a read of HI or LO and an immediatly following branch.
2779
27801998-12-29 Gavin Romig-Koch <gavin@cygnus.com>
2781
2782 * config/tc-mips.c (md_begin): Another correction to the setting of
2783 mips_eabi64.
2784
27851998-12-23 Gavin Romig-Koch <gavin@cygnus.com>
2786
2787 * config/tc-mips.c (md_begin): Correct type-o in setting of mips_eabi64.
2788
27891998-12-21 Nick Clifton <nickc@cygnus.com>
2790
2791 * config/tc-m32r.c (md_assemble): Emit a NOP after a relaxable 16
2792 bit insn when optimizing, so that parallelised instructions will
2793 start on a 32 bit boundary.
2794
27951998-12-19 Gavin Romig-Koch <gavin@cygnus.com>
2796
2797 * config/tc-mips.c (mips_eabi64): New.
2798 (md_begin): Set mips_eabi64.
2799 (mips_elf_final_processing): Use it.
2800
28011998-12-18 Gavin Romig-Koch <gavin@cygnus.com>
2802
2803 * config/tc-mips.c (mips_elf_final_processing):
2804 Correct setting of ABI in e_flags.
2805
2806Wed Dec 16 16:17:22 1998 Dave Brolley <brolley@cygnus.com>
2807
2808 * config/tc-fr30.c (md_assemble): Warn about invalid instructions in delay slots.
2809
28101998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
2811
2812 * config/tc-mips.c (md_begin,md_parse_option): Handle vr4111.
2813
28141998-12-15 Doug Evans <devans@casey.cygnus.com>
2815
2816 * cgen.c (gas_cgen_md_apply_fix3): Mark as an error, rather than a
2817 warning, values that don't fit in the field.
2818
28191998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
2820
2821 * config/tc-mips.c (mips_abi_string): New.
2822 (md_parse_option,md_longopts): Add mabi.
2823 (mips_elf_final_processing): Set e_flags based on mabi flag.
2824
28251998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
2826
2827 * config/tc-mips.c (md_parse_option): Handle vr4111.
2828
282998-12-11 Ken Raeburn <raeburn@cygnus.com>
2830
2831 * config/tc-h8300.c (build_bytes): Change message given if the
2832 instruction requires H8/300H mode and we're not in Hmode, to
2833 suggest that it may be the operand modes that are the problem, not
2834 necessarily the opcode.
2835
28361998-12-10 Nick Clifton <nickc@cygnus.com>
2837
2838 * config/tc-fr30.c: Add line separator character.
2839
2840Tue Dec 8 19:51:50 1998 Mark Klein <mklein@dis.com>
2841
2842 * configure.in (hppa-*-mpeix*): New target.
2843 * config/obj-som.h (obj_som_compiler): Declare.
2844 * config/obj-som.c (compiler_seen): New static variable.
2845 (obj_som_compiler): New function.
2846 * config/tc-hppa.c: Update tc_data uses for change to bfd/som.h.
2847 (md_pseudo_table): Add "compiler" if OBJ_SOM.
2848 (pa_type_args): Set hppa_priv_level.
2849 (pa_compiler): New static function if OBJ_SOM.
2850 * configure: Rebuild.
2851
2852Tue Dec 8 15:00:50 1998 Ian Lance Taylor <ian@cygnus.com>
2853
2854 * read.c (output_leb128): Don't mark as inline.
2855
28561998-12-08 Andrew MacLeod <amacleod@cygnus.com>
2857
2858 * config/tc-ppc.c (ppc_vbyte): Prototype and new function for
2859 AIX .vbyte unaligned data support.
2860 (md_pseudo_table): Add 'vbyte' to list of valid pseudos.
2861 (ppc_elf_validate_fix): Add eh_frame to list of ELF relocatable
2862 sections.
2863
28641998-12-07 Nick Clifton <nickc@cygnus.com>
2865
2866 * config/tc-d30v.c (md_assemble, do_assemble): Improve erroneous
2867 input handling.
2868
2869Mon Dec 7 09:48:34 1998 Catherine Moore <clm@cygnus.com>
2870
2871 * config/tc-arm.c (elf32_arm_force_relocation): Check for
2872 BFD_RELOC_ARM_PCREL_BRANCH.
2873
2874Sun Dec 6 12:46:36 1998 Ian Lance Taylor <ian@cygnus.com>
2875
2876 * configure.in: Define TARGET_BYTES_{BIG,LITTLE}_ENDIAN after
2877 checking the target type.
2878 (mips-dec-bsd*): Set endian to little.
2879 * configure: Rebuild.
2880
2881 COFF weak symbol support, based on patches from Mark Elbrecht
2882 <snowball3@usa.net>:
2883 * config/obj-coff.h (S_IS_WEAK): Define if not BFD_ASSEMBLER.
2884 * config/obj-coff.c (obj_coff_weak): New static function.
2885 (obj_coff_endef) [both versions]: Handle weak symbols.
2886 (coff_frob_symbol): Likewise.
2887 (yank_symbols): Likewise.
2888 (obj_pseudo_table): Add "weak".
2889
2890 * configure.in (m68k-*-gnu*): New target. From Aymeric Vincent
2891 <aymeric.vincent@emi.u-bordeaux.fr>.
2892 * aclocal.m4: Rebuild with current tools.
2893 * configure: Rebuild.
2894
2895 * config/tc-alpha.c (emit_ldgp): Give an error message rather than
2896 an assertion failure for a case we can't handle when OBJ_ECOFF.
2897
2898 * expr.c (operator): And with 0xff to avoid problems with signed
2899 char.
2900
29011998-12-03 Nick Clifton <nickc@cygnus.com>
2902
2903 * config/tc-fr30.c (md_cgen_lookup_reloc): Generate
2904 BFD_RELOC_FR30_48 instead of BFD_RELOC_FR30_32.
2905
29061998-12-02 Nick Clifton <nickc@cygnus.com>
2907
2908 * config/tc-fr30.c (md_cgen_lookup_reloc): Enable relocs for
2909 LDI:20 insn.
2910
2911Thu Nov 26 11:23:48 1998 Dave Brolley <brolley@cygnus.com>
2912
2913 * config/tc-fr30.c (md_pcrel_from_section): Restore previous calculation
2914 of pcrel point.
2915
2916Tue Nov 24 17:21:52 1998 Nick Clifton <nickc@cygnus.com>
2917
2918 * config/tc-fr30.c (md_pcrel_from_section): Fix calculation of
2919 pcrel point.
2920
2921Tue Nov 24 14:54:38 1998 Nick Clifton <nickc@cygnus.com>
2922
2923 * config/tc-d10v.c (md_assemble): Make static 'etype' have file
2924 scope.
2925 (d10v_cleanup): Only generate previous insn if a multiline insn is
2926 not pending.
2927
2928Fri Nov 20 11:41:13 1998 Nick Clifton <nickc@cygnus.com>
2929
2930 * config/tc-fr30.c (md_cgen_lookup_reloc): Add support for
2931 FR30_OPERAND_I32.
2932
2933Thu Nov 19 15:01:29 1998 Nick Clifton <nickc@cygnus.com>
2934
2935 * config/tc-arm.c (md_parse_option): Add support for -marm7xxx and
2936 -marm6xxx command line switches.
2937
29381998-11-18 Doug Evans <devans@casey.cygnus.com>
2939
2940 * Makefile.am (DEP): Use $(srcdir)/../mkdep.
2941 (itbl-ops.o): Delete duplicate dependencies.
2942 Rebuild dependencies.
2943 Add fr30 dependencies.
2944 * Makefile.in: Rebuild.
2945
2946Tue Nov 17 13:42:42 1998 Nick Clifton <nickc@cygnus.com>
2947
2948 * config/tc-fr30.c (md_cgen_lookup_reloc): Updated to match latest
2949 opcode list.
2950 * listing.c: Ignore line terminator characters found inside
2951 strings.
2952
2953Thu Nov 12 19:21:24 1998 Dave Brolley <brolley@cygnus.com>
2954
2955 * po/gas.pot: Regenerated.
2956
2957Thu Nov 12 10:54:16 1998 Nick Clifton <nickc@cygnus.com>
2958
2959 * config/tc-fr30.c (fr30_is_colon_insn): New name for
2960 fr30_is_label_start(). Also checks for delay slot insns.
2961
2962 * config/tc-fr30.c (fr30_is_label_start): New function: Handle
2963 FR30 instructions which contain a colon in the mnemonic.
2964
2965 * config/tc-fr30.h (TC_START_LABEL): Define this macro.
2966
2967Wed Nov 11 09:58:21 1998 Nick Clifton <nickc@cygnus.com>
2968
2969 * config/tc-fr30.c: Removed currently superflous code.
2970
2971Tue Nov 10 13:13:05 1998 Nick Clifton <nickc@cygnus.com>
2972
2973 * config/tc-fr30.h: New file.
2974 * config/tc-fr30.c: Tweaking so that it will compile.
2975
2976Tue Nov 10 14:41:33 1998 Catherine Moore <clm@cygnus.com>
2977
2978 * config/tc-d10v.h (obj_fix_adjustable): Define.
2979 (TC_FORCE_RELOCATION): Define.
2980 (d10v_force_relocation): Declare.
2981 * config/tc-d10v.c (tc_gen_reloc): Handle Vtable relocs.
2982 (md_apply_fix3): Handle Vtable relocs.
2983 (d10v_fix_adjustable): New.
2984 (d10v_force_relocation): New.
2985
2986Mon Nov 9 14:25:06 1998 Nick Clifton <nickc@cygnus.com>
2987
2988 * config/tc-d30v.c: Change default behaviour to ignore potential
2989 conflicts between register name and symbol names.
2990
2991Wed Nov 4 18:42:00 1998 Dave Brolley <brolley@cygnus.com>
2992
2993 * configure.in: Add fr30-*-*.
2994 * config/tc-fr30.c: New file.
2995 * Makefile.in: Regenerated.
2996 * config.in: Regenerated.
2997 * configure: Regenerated.
2998 * doc/Makefile.in: Regenerated.
2999 * po/gas.pot: Regenerated.
3000
3001Mon Nov 2 20:54:16 1998 Doug Evans <devans@canuck.cygnus.com>
3002
3003 * config/tc-m32r.c (assemble_two_insns): Ensure both insns
3004 are 16 bit insns.
3005
3006Mon Nov 2 20:10:18 1998 Martin von Loewis <loewis@informatik.hu-berlin.de>
3007
3008 * app.c (do_scrub_begin): Set characters above 127 to be symbol
3009 characters.
3010 (do_scrub_chars): Add some casts to unsigned char to avoid
3011 unwanted sign extension.
3012 * read.c (lex_type): Set characters about 127 to be symbol
3013 characters.
3014 * config/tc-i386.c (md_begin): Set identifier_chars and
3015 operand_chars for values above 127.
3016
3017Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3018
3019 * configure.in: detect cygwin* instead of cygwin32*
3020 * configure: regenerate
3021
3022Tue Oct 27 13:18:40 1998 Nick Clifton <nickc@cygnus.com>
3023
3024 * listing.c: Add support for producing a listing from piped
3025 input.
3026
3027Tue Oct 27 08:56:44 1998 Gavin Romig-Koch <gavin@cygnus.com>
3028
3029 * config/tc-mips.c (hilo_interlocks): Remove mips_3900.
3030 (append_insn): Account for the tx39's multiply behavior.
3031
30321998-10-26 Michael Meissner <meissner@cygnus.com>
3033
3034 * config/tc-m32r.c (assemble_two_insns): Rename assemble_two_insns
3035 from assemble_parallel_insns. Add support for '->' to indicate
3036 explicitly serializing the instructions.
3037 (md_assemble): Ditto.
3038
3039Sat Oct 24 15:12:19 1998 Catherine Moore <clm@cygnus.com>
3040
3041 * config/tc-sh.c (sh_fix_adjustable): Adjust EXTERN and
3042 WEAK handling.
3043
3044Thu Oct 22 12:41:33 1998 Catherine Moore <clm@cygnus.com>
3045
3046 * cgen.c (gas_cgen_md_apply_fix3): Revert last change.
3047
3048Thu Oct 22 10:03:15 1998 Ron Unrau <runrau@cygnus.com>
3049
3050 * config/tc-mips.c : support frame and regmask/fregmask when
3051 MIPS_STABS_ELF is specified.
3052
3053Wed Oct 21 11;34:51 1998 Catherine Moore <clm@cygnus.com>
3054
3055 * config/tc-sh.c (sh_fix_adjustable): Only include if OBJ_ELF.
3056 (md_apply_fix): Don't return 1 for VTABLE relocs.
3057 * config/tc-sh.h (obj_fix_adjustable): Define only if OBJ_ELF.
3058
3059Tue Oct 20 11:18:28 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3060
3061 * doc/c-i386.texi: Replace occurences of "opcode" with
3062 "instruction mnemonic", "instruction", or "mnemonic" when
3063 referring to the name of an instruction. Use "opcode" when
3064 referring to the sequence of machine bytes.
3065
3066 * config/tc-i386.c (opcode_chars): Rename to mnemonic_chars.
3067 (is_opcode_char): Rename to is_mnemonic_char.
3068 (md_assemble and i386_operand): Correct error messages from
3069 "opcode" to "instruction mnemonic"
3070 Rename throughout opcode[] -> mnemonic[], opp -> mnem_p,
3071 MAX_OPCODE_SIZE -> MAX_MNEM_SIZE,
3072 DWORD_OPCODE_SUFFIX -> DWORD_MNEM_SUFFIX,
3073 WORD_OPCODE_SUFFIX -> WORD_MNEM_SUFFIX,
3074 BYTE_OPCODE_SUFFIX -> BYTE_MNEM_SUFFIX,
3075 SHORT_OPCODE_SUFFIX -> SHORT_MNEM_SUFFIX
3076 LONG_OPCODE_SUFFIX -> LONG_MNEM_SUFFIX
3077
3078 * config/tc-i386.h (*_MNEM_SUFFIX): Rename from *_OPCODE_SUFFIX.
3079
3080 * config/tc-i386.c (i386_operand): Check for garbage after
3081 register name.
3082
3083Tue Oct 20 10:49:42 1998 Ian Lance Taylor <ian@cygnus.com>
3084
3085 * config/tc-i386.c (md_apply_fix3): Change handling of PCREL reloc
3086 for BFD_ASSEMBLER to only change value when COFF if TE_PE.
3087
3088Mon Oct 19 20:20:42 1998 Catherine Moore <clm@cygnus.com>
3089
3090 * config/tc-sh.h (obj_fix_adjustable): Define.
3091 * config/tc-sh.c (sh_force_relocation): Handle VT relocs.
3092 (md_apply_fix): Likewise.
3093 (tc_gen_reloc): Likewise.
3094 (sh_fix_adjustable): New.
3095
3096Mon Oct 19 12:35:43 1998 Doug Evans <devans@seba.cygnus.com>
3097
3098 * cgen.c (gas_cgen_finish_insn): Update handling of CGEN_INT_INSN_P.
3099 * cgen.h (gas_cgen_finish_insn): Update prototype.
3100 * config/tc-m32r.c (m32r_insn): CGEN_INT_INSN -> CGEN_INT_INSN_P.
3101 cgen_insn_t -> CGEN_INSN_INT.
3102 (make_parallel): Update handling of CGEN_INT_INSN_P.
3103 (assemble_parallel_insn): Ditto.
3104 (target_make_parallel): New function.
3105 (md_assemble): Use it.
3106
3107Mon Oct 19 13:16:12 1998 Catherine Moore <clm@cygnus.com>
3108
3109 * config/tc-m32r.c (m32r_force_relocation): Fix typo.
3110
3111Sun Oct 18 18:48:57 1998 Jeffrey A Law (law@cygnus.com)
3112
3113 * config/tc-sh.c (md_assemble): Make sure the entire opcode is
3114 converted into lower case.
3115
3116Fri Oct 16 13:36:34 CDT Catherine Moore <clm@cygnus.com>
3117
3118 * cgen.c (gas_cgen_md_apply_fix3): Handle VTABLE relocs.
3119 (gas_cgen_tc_gen_reloc): Likewise.
3120 * config/tc-m32r.h (obj_fix_adjustable): Define.
3121 * config/tc-m32r.c (m32r_fix_adjustable): New.
3122 (m32r_force_relocation): Handle VTABLE relocs.
3123
3124Wed Oct 14 11:33:38 1998 Nick Clifton <nickc@cygnus.com>
3125
3126 * doc/c-arm.texi (ARM Directives): Document .ltorn directive.
3127
3128Mon Oct 12 11:07:21 1998 Nick Clifton <nickc@cygnus.com>
3129
3130 * config/tc-m32r.c (assemble_parallel_insn): Convert second opcode
3131 to lower case before parsing.
3132
3133 * config/tc-d30v.c (parallel_ok): Ignore conflicts when explicitly
3134 parallel insns modift buts in the PSW as a side effect.
3135
3136Thu Oct 8 10:18:33 1998 Nick Clifton <nickc@cygnus.com>
3137
3138 * config/tc-d30v.c (find_format): Test for missing flag and
3139 control registers.
3140
3141 (md_apply_fix3): Fix error messages to avoid
3142 assumption about presence of a symbol.
3143
3144 (parallel_ok): Disallow parallel instructions that both modify the
3145 same flag register.
3146
3147 (find_format): Generate a warning if an odd numbered register is
3148 used as the first register in a mutli-register instruction.
3149
3150Wed Oct 7 14:09:14 1998 Nick Clifton <nickc@cygnus.com>
3151
3152 * config/tc-d30v.c (md_apply_fix3): Do not assume that bad
3153 relocations are always associated with a symbol.
3154
3155Tue Oct 6 09:31:15 1998 Catherine Moore <clm@cygnus.com>
3156
3157 * tc-sparc.h (TC_FORCE_RELOCATION): Define.
3158 (elf32_sparc_force_relocation): Declare.
3159 * tc-sparc.c (md_apply_fix3): Handle vtable relocs.
3160 (tc_gen_reloc): Handle vtable relocs.
3161 (elf32_sparc_force_relocation): New.
3162
3163Mon Oct 5 09:25:32 1998 Catherine Moore <clm@cygnsu.com>
3164
3165 * symbols.c (S_IS_FUNCTION): New.
3166 * config/tc-v850.h (obj_fix_adjustable): Define.
3167 (TC_FORCE_RELOCATION): Define.
3168 (v850_force_relocation): Declare.
3169 * config/tc-v850.c (tc_gen_reloc): Use offset instead
3170 of fx_addnumber for VTABLE reloc addends.
3171 (md_apply_fix3): Handle VTABLE relocs.
3172 (v850_fix_adjustable): New.
3173 (v850_force_relocation): New.
3174
3175Mon Oct 5 00:48:52 1998 Jeffrey A Law (law@cygnus.com)
3176
3177 * tc-hppa.c (fp_operand_format): Add some additional formats.
3178 (pa_ip): Do not automatically promote into pa2.0 mode.
3179 (pa_level): Handle ".level 2.0".
3180
3181Sun Oct 4 20:57:43 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3182
3183 * config/tc-i386.c (md_assemble): Handle AMD_3DNOW_OPCODE.
3184 * config/tc-i386.h (template.extension_opcode): Change to
3185 unsigned int to allow full range of 8-bit opcode suffixes.
3186 (None): Redefine as 0xffff.
3187
3188 From Jeff B Epler <jepler@usgs.gov>
3189 * doc/c-i386.texi (i386-SIMD): New section.
3190
3191Thu Oct 1 15:37:54 1998 Richard Henderson <rth@cygnus.com>
3192
3193 * read.c (discard_rest_of_line): New function.
3194 * read.h: Declare it.
3195 * config/tc-alpha.c (s_alpha_mask, s_alpha_frame): Use it.
3196
3197Thu Oct 1 10:33:53 1998 Nick Clifton <nickc@cygnus.com>
3198
3199 * config/tc-d10v.c (find_symbol_matching_register): New function.
3200 (find_opcode): Cope with the case where a register name matches
3201 a symbol name.
3202
3203Wed Sep 30 10:52:32 1998 Nick Clifton <nickc@cygnus.com>
3204
3205 * config/tc-v850.c (md_pcrel_from): Rename to
3206 v850_pcrel_from_section.
3207 (v850_pcrel_from_section): Do not resolves symbols in other
3208 sections.
3209
3210 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define.
3211
3212Mon Sep 28 11:01:20 1998 Nick Clifton <nickc@cygnus.com>
3213
3214 * config/tc-d10v.c (find_opcode): Generate an error if a register
3215 is supplied for an operand that should not be a register.
3216
3217Fri Sep 25 10:04:21 1998 Nick Clifton <nickc@cygnus.com>
3218
3219 * config/tc-d30v.c (write_2_short): But do allow delayed branch
3220 instructions to have another instruction in the right bin.
3221
3222Thu Sep 24 09:28:34 1998 Nick Clifton <nickc@cygnus.com>
3223
3224 * config/tc-d30v.c (write_2_short): Do not allow instructions in
3225 the right container if the left container holds a branch
3226 instruction.
3227
3228Wed Sep 23 10:54:29 1998 Nick Clifton <nickc@cygnus.com>
3229
3230 * config/tc-d30v.c (reg_name_search): Only warn if a name matches
3231 both a register name and symbol name.
3232 (find_format): Allow correct parsing of MVTSYS and MVFSYS insns.
3233
3234Tue Sep 22 17:49:16 1998 Nick Clifton <nickc@cygnus.com>
3235
3236 * config/tc-d30v.c (write_2_short): Implement EITHER_BUT_PREFER_MU
3237 execution unit class.
3238
3239 (reg_name_search): If a name matches a register and a symbol,
3240 prefer the register.
3241 (find_format): Disallow flag registers when a general purpose
3242 register is required.
3243 If a number is required, but a register has been given, check to
3244 see if a symbol with the same name as the register exists, and if
3245 so, use that symbol.
3246
3247Tue Sep 22 16:40:52 1998 Jim Wilson <wilson@cygnus.com>
3248
3249 * config/obj-elf.h (ECOFF_DEBUGGING): Add missing parens.
3250
3251Tue Sep 22 15:44:21 1998 Nick Clifton <nickc@cygnus.com>
3252
3253 * config/tc-d30v.c (find_format): Do not accept flag registers as
3254 general purpose registers.
3255 (find_format): If an immediate value is expected at a given place
3256 in a format, but a register name has been provided instead, check
3257 to see if that register name matches the name of a predefined
3258 symbol and if it does, then use the symbol instead.
3259 (reg_name_search): If a register name matches a symbol name,
3260 prefer the register name to the symbol name.
3261
3262Mon Sep 21 10:42:57 1998 Nick Clifton <nickc@cygnus.com>
3263
3264 * config/tc-m32r.c (m32r_do_align): After inserting NOPs, reset
3265 the previous insn to empty.
3266
32671998-09-20 Michael Meissner <meissner@cygnus.com>
3268
3269 * config/tc-ppc.c (md_apply_fix3): Do not break string into two
3270 pieces, forcing the use of an ANSI compiler.
3271
3272Sun Sep 20 00:58:12 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3273
3274 * config/tc-m68k.h (TC_FORCE_RELOCATION): New macro. Force vtable
3275 relocs.
3276 * config/tc-m68k.c (md_apply_fix_2): Do nothing for vtable relocs.
3277
3278Tue Sep 15 08:51:07 1998 Catherine Moore <clm@cygnus.com>
3279
3280 * config/obj-elf.c (obj_elf_vtable_inherit): Handle arm
3281 assembler syntax.
3282 (obj_elf_vtable_entry): Likewise.
3283 * config/tc-arm.h: Define TC_FORCE_RELOCATION for OBJ_ELF.
3284 * config/tc-arm.c (md_apply_fix3): Handle VTABLE relocations.
3285 (tc_gen_reloc): Likewise.
3286 (arm_fix_adjustable): Likewise.
3287 (elf32_arm_force_relocation): New.
3288 (armelf_frob_symbol): Remove coff-style symbol support.
3289
3290Wed Sep 9 11:27:16 1998 Richard Henderson <rth@cygnus.com>
3291
3292 * config/tc-i386.c (i386_operand): Fix typo in last patch.
3293
3294Tue Sep 8 18:10:01 1998 Catherine Moore <clm@cygnus.com>
3295
3296 * config/tc-arm.c (arm_adjust_symtab): Move #ifdef
3297 OBJ_COFF so that routine is defined for a.out format.
3298
3299Tue Sep 8 15:56:19 1998 Richard Henderson <rth@cygnus.com>
3300
3301 * config/tc-i386.c (i386_operand): Detect non-segment registers
3302 used as segment prefixes.
3303
3304Sat Sep 5 19:00:38 1998 Ian Lance Taylor <ian@cygnus.com>
3305
3306 * ehopt.c (check_eh_frame): Check the size of the FDE, and don't
3307 optimize across FDE boundaries.
3308
3309 * config/obj-coff.c (obj_coff_section): Preserve any link once
3310 flags when setting the section flags.
3311
3312Fri Sep 4 17:07:14 1998 Nick Clifton <nickc@cygnus.com>
3313
3314 * config/tc-arm.h (obj_adjust_symtab): Fixed typo.
3315 * config/tc-arm.c (armelf_adjust_symtab): Reformatted.
3316
3317Fri Sep 4 13:57:43 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
3318
3319 * config/tc-sparc.c (in_signed_range): Sign extend 32-bit words
3320 to the host width.
3321
3322Wed Sep 2 11:31:14 1998 Richard Henderson <rth@cygnus.com>
3323
3324 * frags.c (frag_grow): Include the size of the frag struct in the
3325 obstack chunk size.
3326
3327 * subsegs.c (subseg_set_rest): Adjust the seginfo frchain start
3328 if the new subseg comes before the old.
3329
3330Tue Sep 1 15:01:33 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
3331
3332 * config/tc-sparc.c (sparc_ip): Allow all digits in an instruction
3333 to handle edge8 and edge16.
3334
3335Mon Aug 31 09:51:14 1998 Richard Henderson <rth@cygnus.com>
3336
3337 * config/obj-elf.c (obj_elf_vtable_inherit): Print error message
3338 before we clobber the symbol involved.
3339
3340Mon Aug 31 10:58:06 1998 Catherine Moore <clm@cygnus.com>
3341
3342 * config/tc-arm.c: Remove OBJ_ELF definitions for
3343 S_GET_STORAGE_CLASS and S_SET_STORAGE_CLASS. Only
3344 use arm_adjust_symtab for OBJ_COFF.
3345 (armelf_adjust_symtab): New Routine.
3346 * config/tc-arm.h: Define obj_adjust_symtab to
3347 armelf_adjust_symtab for OBJ_ELF.
3348
3349Sat Aug 29 22:18:51 1998 Richard Henderson <rth@cygnus.com>
3350
3351 * configure.in: Make all i386-elf targets use bfd_gas.
3352 * config/tc-i386.c (tc_i386_force_relocation): New.
3353 (tc_i386_fix_adjustable): Don't fix vtable relocs.
3354 (md_apply_fix3): Likewise.
3355 (tc_gen_reloc): Handle them.
3356 * config/tc-i386.h (TC_FORCE_RELOCATION): Always define, calling
3357 tc_i386_force_relocation.
3358
3359Mon Aug 24 13:40:21 1998 Nick Clifton <nickc@cygnus.com>
3360
3361 * config/tc-arm.c (md_show_usage): Improve formatting of --help output.
3362
3363Fri Aug 21 18:43:48 1998 Nick Clifton <nickc@cygnus.com>
3364
3365 * config/tc-d30v.c (md_assemble): Copy previous opcode over
3366 current opcode after writing the first insturction of a reverse
3367 sequential pair.
3368
3369Fri Aug 21 07:30:35 1998 Doug Evans <devans@canuck.cygnus.com>
3370
3371 * read.h (generate_lineno_debug): Add prototype.
3372 * read.c (generate_lineno_debug): Make non-static.
3373
3374Thu Aug 20 23:17:04 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3375
3376 * config/tc-i386.c (md_assemble): Only warn for address/data size
3377 prefixes.
3378
3379Thu Aug 20 14:45:08 1998 Nick Clifton <nickc@cygnus.com>
3380
3381 * config/tc-arm.c (arm_fix_adjustable): Do not adjust relocations
3382 against Thumb function names, as the linker needs this information.
3383
33841998-08-20 Vladimir N. Makarov <vmakarov@cygnus.com>
3385
3386 * expr.c (operand): Check also that there is no advance in operand
3387 after atof_generic in order to decide "is it label 0f or floating
3388 point number?".
3389
3390Wed Aug 19 09:30:16 1998 Nick Clifton <nickc@cygnus.com>
3391
3392 * config/tc-m32r.c: Replace double dash prefix to M32R specific
3393 command line options with a single dash.
3394 * doc/c-m32r.texi: Replace double dash prefix with a single dash.
3395
3396Tue Aug 18 11:59:43 1998 Catherine Moore <clm@cygnus.com>
3397
3398 * tc-arm.h: Define obj_fix_adjustable for OBJ_ELF.
3399 * tc-arm.c (arm_fix_adjustable): New routine.
3400
34011998-08-13 Vladimir N. Makarov <vmakarov@cygnus.com>
3402
3403 * read.c (s_align, s_comm, s_mri_common, s_fail, s_globl, s_space,
3404 s_float_space, s_struct, cons_worker): Move ignore_rest_of_line or
3405 demand_empty_rest_of_line before mri_comment_end.
3406 (equals): Check garbage after expression before
3407 mri_comment_end in MRI mode.
3408
3409Thu Aug 13 15:08:42 1998 Ian Lance Taylor <ian@cygnus.com>
3410
3411 * config/tc-mips.c (macro): Correct M_SGE_I/M_SGEUI_I case for a
3412 small immediate constant to use the constant itself rather than
3413 always using 1.
3414
3415Wed Aug 12 18:47:38 1998 Ian Lance Taylor <ian@cygnus.com>
3416
3417 * config/tc-hppa.c (pa_enter): Call as_bad rather than abort.
3418 (pa_leave): Likewise.
3419
3420Wed Aug 12 13:25:03 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3421
3422 * config/tc-i386.c (md_assemble): Emit a warning for stand-alone
3423 prefixes.
3424 (i386_operand): Fix an error message.
3425
3426Tue Aug 11 14:44:32 1998 Nick Clifton <nickc@cygnus.com>
3427
3428 * doc/c-arm.texi (ARM Directives): Document .req directive.
3429
3430 * config/tc-arm.c (reg_required_here): Display erroneous string if
3431 the register name could not be decoded.
3432 Do not set inst.instruction if the sift is -1.
3433
3434Mon Aug 10 15:39:56 1998 Richard Henderson <rth@cygnus.com>
3435
3436 * config/tc-alpha.c (tc_gen_reloc): Bias WEAK symbols just as
3437 we do for EXTERN.
3438
3439Mon Aug 10 15:06:18 1998 Nick Clifton <nickc@cygnus.com>
3440
3441 * config/tc-d30v.c (d30v_align): Always perform alignment request,
3442 even if it is belived to be unnecessary.
3443
3444Mon Aug 10 17:48:09 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3445
3446 config/tc-i386.c (i386_operand): Size immediate constants by
3447 suffix (erroneously removed as part of July 7 change).
3448
3449Sun Aug 9 20:45:32 1998 Catherine Moore <clm@cygnus.com>
3450
3451 * config/obj-elf.h: Check for redefinition of obj_frob_symbol.
3452 * config/tc-arm.c: Define S_GET_STORAGE_CLASS and S_SET_STORAGE_CLASS.
3453 (armelf_frob_symbol): New Routine.
3454 * config/tc-arm.h: Define obj_frob_symbol if OBJ_ELF.
3455
3456Sat Aug 8 15:21:28 1998 Richard Henderson <rth@cygnus.com>
3457
3458 * config/tc-alpha.c (alpha_fix_adjustable): Don't adjust weak syms.
3459
3460Wed Aug 5 15:54:14 1998 Nick Clifton <nickc@cygnus.com>
3461
3462 * config/tc-arm.c (md_begin): Set BFD private flags depending upon
3463 command line switches passed to assembler.
3464
3465Mon Aug 3 14:02:52 1998 Doug Evans <devans@seba.cygnus.com>
3466
3467 * cgen.h (GAS_CGEN_MAX_FIXUPS): GAS_ prepended, all uses updated.
3468 (gas_cgen_opcode_desc): Declare.
3469 (gas_cgen_parse_operand): Declare.
3470 (*): Prepend gas_ to gas specific fns to denote them as such.
3471 All uses updated.
3472 * cgen.c (gas_cgen_opcode_desc): New global
3473 (gas_cgen_init_parse): Renamed from cgen_asm_init_parse.
3474 (queue_fixup): Renamed from cgen_queue_fixup.
3475 (*): Prepend gas_ to gas specific fns to denote them as such.
3476 All uses updated.
3477 (gas_cgen_md_apply_fix3): Update call to insert_operand.
3478 (gas_cgen_finish_insn): Renamed from cgen_asm_finish_insn.
3479 * config/tc-m32r.c (md_begin): Remove use of CGEN_SYM.
3480 Open opcode table and initialize it.
3481 (make_parallel): Use gas_cgen_opcode_desc.
3482 (assemble_parallel_insn): Ditto. Remove use of CGEN_SYM.
3483 (md_assemble): Ditto.
3484
3485Sat Aug 1 19:27:30 1998 Richard Henderson <rth@cygnus.com>
3486
3487 * as.h (debug_info_type): Add entries for unspecified and dwarf*.
3488 * ecoff.c (ecoff_generate_asm_lineno): Take no arguments; call
3489 as_where ourselves. Provide a stub for !ECOFF_DEBUGGING.
3490 * ecoff.h: Move ECOFF_DEBUGGING protection inside GAS_ECOFF_H.
3491 Move ecoff_generate_asm_lineno outside ECOFF_DEBUGGING protection.
3492 * read.c (generate_lineno_debug): Tidy ECOFF bits. Use
3493 DEBUG_UNSPECIFIED rather than DEBUG_NONE for initial test.
3494 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Define to a variable.
3495 (SEPARATE_STAB_SECTIONS): Conditionalize on value of ECOFF_DEBUGGING.
3496 (INIT_STAB_SECTION): Likewise.
3497 (OBJ_PROCESS_STAB): Likewise.
3498
3499 * config/tc-alpha.c (md_longopts): New options -mdebug/-no-mdebug.
3500 (md_parse_option): Watch for them.
3501 (alpha_cur_ent_sym, alpha_flag_mdebug): New variables.
3502 (md_begin): Kill neverdef code.
3503 (s_alpha_ent, s_alpha_end, s_alpha_mask, s_alpha_frame): New.
3504 (s_alpha_prologue): Watch alpha_cur_ent_sym.
3505 (s_alpha_coff_wrapper): New.
3506 (md_pseudo_table): Trap all ECOFF pseudos.
3507
3508Fri Jul 31 16:45:54 1998 Ron Unrau <runrau@cygnus.com>
3509
3510 Start of changes to remove mdebug section from mips*-elf
3511 Based on MIPS_STAB_ELF definition
3512 * acconfig.h: undef if not configured
3513 * config.in: undef if not configured
3514 * config/mips-elf.h: only set ECOFF debugging if not stabs-in-elf
3515 * config/tc-mips.c (s_ent): set BSF_FUNCTION
3516 * stabs.c (s_stab_generic): flush frag
3517
3518Fri Jul 31 16:14:45 1998 Catherine Moore <clm@cygnus.com>
3519
3520 * configure.in: (arm-*-elf): Handle.
3521 (thumb-*-elf): Handle.
3522 * configure: Regenerate.
3523 * read.c (stringer): Fix typo in comment.
3524 * write.c (fixup_segment): Don't add symbol value to addend if
3525 TC_ARM and OBJ_ELF.
3526 * config/tc-arm.c (md_section_align): Don't align dwarf debug
3527 sections.
3528 (tc_gen_reloc): Always set the reloc addend to fixp->fx_offset
3529 for OBJ_ELF.
3530
3531Thu Jul 30 21:38:43 1998 Frank Ch. Eigler <fche@cygnus.com>
3532
3533 * config/tc-d30v.c ({cur,prev}_left_kills_right_p): New variables.
3534 (write_2_short): Emit warning if new flag is set.
3535 (do_assemble): Set flags if left instruction is one of special
3536 "right-instruction-killer" type.
3537
3538Tue Jun 28 18:12:28 1998 Stan Cox <scox@cygnus.com>
3539
3540 * config/tc-sparc.c (md_number_to_chars, cons_fix_new_sparc):
3541 Always output words in debug_info section as big endian.
3542 (sparc_target_format): Choose correct bfd target.
3543 (md_apply_fix3): Rename BFD_RELOC_SPARC_32LE to BFD_RELOC_SPARC_REV32.
3544
3545Tue Jul 28 11:01:21 1998 Jeffrey A Law (law@cygnus.com)
3546
3547 * config/tc-mn10300.c (md_assemble): Fix "errmsg" initialization
3548 to work with internationalization code. Issue an error when two
3549 operands match that are not allowed to match.
3550
3551Mon Jul 27 16:25:58 1998 Doug Evans <devans@canuck.cygnus.com>
3552
3553 * configure.in (install_tooldir): Allow target to specify whether
3554 it wants to be installed in $(tooldir)/bin.
3555 * configure: Regenerate.
3556 * Makefile.am (install-exec-local): Set install-exec-tooldir
3557 dependency via configure.
3558 * Makefile.in: Regenerate.
3559
3560Fri Jul 24 19:58:59 1998 Doug Evans <devans@canuck.cygnus.com>
3561
3562 * Makefile.am (install-exec-local): Split into two ...
3563 (install-exec-bindir,install-exec-tooldir): New rules.
3564 * Makefile.in: Regenerate.
3565
3566Fri Jul 24 16:31:49 1998 Ian Lance Taylor <ian@cygnus.com>
3567
3568 * Makefile.am (install-exec-local): Don't remove the file before
3569 checking whether $(bindir) == $(tooldir)/bin. From Maciej
3570 W. Rozycki <macro@ds2.pg.gda.pl>.
3571 * Makefile.in: Rebuild.
3572
3573Fri Jul 24 09:13:46 1998 Doug Evans <devans@canuck.cygnus.com>
3574
3575 * cgen.c: Include libiberty.h.
3576 (cgen_md_apply_fix3): Update call to md_cgen_lookup_reloc.
3577 (cgen_tc_gen_reloc): Use xmalloc, not bfd_alloc.
3578 * cgen.h (cgen_md_apply_fix3,cgen_tc_gen_reloc): Declare.
3579 (md_cgen_lookup_reloc)): Declare.
3580 (md_cgen_record_fixup_exp): Declare.
3581 * config/tc-m32r.h (md_pcrel_from_section): Declare.
3582 (m32r_relax_frag): Declare.
3583 (cgen_md_apply_fix3): Decls moved to cgen.h.
3584 (cgen_record_fixup_exp,cgen_tc_gen_reloc): Ditto.
3585 (m32r_cgen_record_fixup_exp): Delete decl.
3586 * config/tc-m32r.c (m32r_cpu_desc): #if 0 out.
3587 (assemble_nop): Delete.
3588 (expand_debug_syms): Delete unused `exp'.
3589 (md_cgen_lookup_reloc): Renamed from CGEN_SYM (lookup_reloc).
3590 Add default case for -Wall.
3591 (m32r_cgen_record_fixup_exp): Add default case for -Wall.
3592 (md_atof): Delete unused wordP.
3593
3594Thu Jul 23 13:19:50 1998 Jeffrey A Law (law@cygnus.com)
3595
3596 * config/tc-mn10300.c (md_assemble): Make sure "errmsg" has a non-NULL
3597 value.
3598
3599Wed Jul 22 14:36:56 1998 Ian Lance Taylor <ian@cygnus.com>
3600
3601 * doc/as.texinfo: Add documentation for .end, .exitm, .fail,
3602 .ifc, .ifeqs, .ifge, .ifgt, .ifle, .iflt, .ifnc, .ifne, .ifnes,
3603 .print, .purgem, and .struct. Remove documentation for
3604 .app-file.
3605
3606Tue Jul 21 16:50:52 1998 Doug Evans <devans@seba.cygnus.com>
3607
3608 * cgen.c (cgen_md_apply_fix3): set_operand renamed to set_vma_operand.
3609 Update call to insert_operand.
3610
3611Fri Jul 17 11:42:20 1998 Nick Clifton <nickc@cygnus.com>
3612
3613 * config/tc-m32r.c (ms_show_usage): Formatting changes.
3614
3615Wed Jul 15 15:38:28 1998 Ian Lance Taylor <ian@cygnus.com>
3616
3617 * config/tc-i386.c (md_assemble): Don't get confused by trailing
3618 whitespace after a prefix operator.
3619
3620Tue Jul 14 15:32:56 1998 Richard Henderson <rth@cygnus.com>
3621
3622 * configure.in (i386-*-beos{pe,elf,}*): Recognize.
3623
3624Tue Jul 14 12:33:44 1998 Chris Torek <torek@bsdi.com>
3625
3626 * config/tc-sparc.c (log2): New static function.
3627 (s_reserve): Use log2 to convert alignment before calling
3628 record_alignment.
3629 (s_common): Use log2 to convert alignment before calling
3630 record_alignment and frag_align.
3631 (sparc_cons_align): Use log2.
3632
3633Tue Jul 14 11:58:40 1998 Ian Lance Taylor <ian@cygnus.com>
3634
3635 * config/tc-sparc.c (s_reserve): Set symbol size if OBJ_ELF.
3636 (s_common): Likewise.
3637
3638 * config/tc-sparc.c (sparc_handle_align): Reindent a bit. Correct
3639 initialization of waddr.
3640 (sparc_elf_final_processing): Add default case to switch.
3641
3642Tue Jul 14 11:00:16 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3643
3644 * doc/c-i386.texi: Fix a typo. Use the term 80-bit real rather
3645 than temporary real.
3646
3647Mon Jul 13 13:55:42 1998 Ian Lance Taylor <ian@cygnus.com>
3648
3649 * write.c (subsegs_finish): Don't align the segments if there were
3650 any errors.
3651
3652 * config/obj-coff.c (c_symbol_merge): Correct number of bytes when
3653 copying aux information.
3654
3655 * expr.c (make_expr_symbol): Catch attempts to turn an O_big
3656 expression into a symbol.
3657
3658Mon Jul 13 13:29:04 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3659
3660 * config/tc-i386.c (mode_from_disp_size): Change arg and return
3661 type to unsigned int.
3662 (md_assemble): Change type used to store offsets from unsigned
3663 long to long.
3664 (i386_operand): Switch error check to only call RESTORE_END_STRING
3665 once after parse_register.
3666
3667Fri Jul 10 16:00:04 1998 Nick Clifton <nickc@cygnus.com>
3668
3669 * config/tc-v850.c (md_show_usage): Changed format to match that
3670 of gcc, ld, etc.
3671
3672 * as.c (show_usage): Changed format to match that of gcc, ld, etc.
3673
3674Thu Jul 9 12:09:57 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3675
3676 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't adjust vtable
3677 relocs.
3678 (md_apply_fix_2): Force the symbol of the vtable reloc to be
3679 weak.
3680
3681Thu Jul 9 11:31:54 1998 Ian Lance Taylor <ian@cygnus.com>
3682
3683 * doc/Makefile.am (MAINTAINERCLEANFILES): Define.
3684 * doc/Makefile.in: Rebuild.
3685
3686Wed Jul 8 12:18:56 1998 Jeffrey A Law (law@cygnus.com)
3687
3688 * config/tc-mips.c (mips_ip, case 'i' and 'j'): Mask off high bits
3689 for %lo expressions.
3690 (mips_ip, case 'u'): Move range check after code to mask
3691 off bits in %hi/%lo expressions. Mask off high bits for
3692 %lo expressions.
3693
3694Tue Jul 7 17:57:38 1998 Ian Lance Taylor <ian@cygnus.com>
3695
3696 * doc/Makefile.am (gasver.texi): New target.
3697 (as.info, as.dvi): Depends upon gasver.texi.
3698 * doc/as.texinfo: Include gasver.texi. Mention version number on
3699 title page and in top node.
3700 * doc/Makefile.in: Rebuild.
3701
3702Tue Jul 7 11:42:16 1998 Richard Henderson <rth@cygnus.com>
3703
3704 * listing.c (listing_listing): For EDICT_LIST, skip all lines up to
3705 but not including the line containing the edict.
3706 * listing.h (LISTING_EOF): New.
3707 * input-scrub.c (input_scrub_next_buffer): Call it.
3708
3709Tue Jul 7 13:00:37 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3710
3711 * config/tc-i386.c (i386_operand): Don't set the size of an
3712 immediate address based solely on the suffix and the mode.
3713
3714 * config/tc-i386.c (md_assemble): Add assertion to make sure
3715 overlap2 does not set Imm.
3716
3717 * config/tc-i386.c (space_chars): Remove. The scrubber converts
3718 sequences of whitespace to a single space.
3719 (is_space_chars): Just compare with space.
3720 (md_begin): Don't initialize space_chars.
3721 (md_assemble): Just skip a single whitespace character.
3722 (i386_operand): Rewrite base-index parsing to use new
3723 parse_register, and to skip white space. Skip white space in a
3724 number of other places too. Don't give error message if
3725 parse_register fails.
3726 (parse_register): Change reg_string parameter to be non-const.
3727 Add end_op parameter. Skip white space after the `%', and return
3728 end of register string. Give error message here rather than
3729 caller.
3730
3731Fri Jul 3 15:34:34 1998 Ian Lance Taylor <ian@cygnus.com>
3732
3733 Based on patch from Matt Semersky <matts@scd.hp.com>:
3734 * expr.c (op_encoding): Make const.
3735 (expr_set_precedence): New function.
3736 (expr_begin): Don't set operator rankings, just call
3737 expr_set_precedence.
3738 * expr.h (expr_set_precedence): Declare.
3739 * read.c (s_mri): Call expr_set_precedence.
3740
3741Thu Jul 2 16:24:58 1998 Ian Lance Taylor <ian@cygnus.com>
3742
3743 * doc/as.texinfo (Statements): Remove paragraph discussing
3744 continuing lines with a backslash. This hasn't worked for years,
3745 if it ever did.
3746
3747Thu Jul 2 14:06:22 1998 Klaus Kaempf <kkaempf@rmi.de>
3748
3749 * obj-vms.c: Add C++ support with ctors/dtors sections. Add weak
3750 symbol definitions.
3751 (Ctors_Symbols, Dtors_Symbols): New symbol chains.
3752 (ps_CTORS, ps_DTORS): New section types.
3753 (vms_fixup_xtors_section): New function
3754 (Ctors_Psect, Dtors_Psect): Define.
3755 (IS_GXX_XTOR): Define
3756 (global_symbol_directory): Change check of gxx_bug_fixed to 0.
3757 Filter static constructors/destructors and add to
3758 Ctors_Symbols/Dtors_Symbols chain.
3759 (vms_write_object_file): Write Ctors_Symbols/Dtors_Symbols to
3760 appropriate section.
3761
3762 * tc-alpha.h (TARGET_FORMAT): Rename "evax-alpha" to "vms-alpha".
3763 * makefile.vms: Merge vax/vms support.
3764
3765Wed Jul 1 20:06:20 1998 Richard Henderson <rth@cygnus.com>
3766
3767 * config/obj-elf.c (obj_elf_vtable_inherit, obj_elf_vtable_entry): New.
3768 (elf_pseudo_table): Add them.
3769 * config/tc-mips.c (mips_force_relocation): Force vtable relocs.
3770 (md_apply_fix): Accept them.
3771 (mips_fix_adjustable): Don't adjust them.
3772 (tc_gen_reloc): Mung BFD_RELOC_VTABLE_ENTRY for Rel.
3773 * config/tc-ppc.c (md_apply_fix3): Accept vtable relocs.
3774 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Force vtable relocs.
3775 (tc_fix_adjustable): Don't adjust them.
3776
3777Wed Jul 1 16:35:32 1998 Doug Evans <devans@seba.cygnus.com>
3778
3779 * Makefile.am (CGEN_CPU_PREFIX): New variable.
3780 (cgen.o): Use it.
3781 * Makefile.in: Regenerate.
3782 * configure.in: AC_SUBST cgen_cpu_prefix.
3783 * configure: Regenerate.
3784
3785Wed Jul 1 21:38:56 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
3786
3787 * config/tc-sh (COND_JUMP_DELAY, COND12_DELAY_LENGTH): Define.
3788 Changed all users of COND12_DELAY.
3789
3790Fri Jun 26 11:21:11 1998 Jeffrey A Law (law@cygnus.com)
3791
3792 * config/tc-mn10300.c (set_arch_mach): New function.
3793 (md_pseudo_table): Add pseudo-ops to set the current machine type.
3794 (md_begin): Default to mn10300 mode.
3795 (md_assemble): Only accept instructions for the core mn10300
3796 chip and the active machine type.
3797
3798Wed Jun 24 19:06:04 1998 Ian Lance Taylor <ian@cygnus.com>
3799
3800 * subsegs.h (segment_info_type): Give the struct a name.
3801 * config/tc-h8300.h (tc_reloc_mangle): Add prototype.
3802 * config/tc-h8500.h (tc_reloc_mangle): Declare.
3803 * config/tc-sh.h (sh_coff_reloc_mangle): Add prototype.
3804 * config/tc-w65.h (tc_reloc_mangle): Declare.
3805 * config/tc-z8k.h (tc_reloc_mangle): Declare.
3806
3807Wed Jun 24 13:45:00 1998 Catherine Moore <clm@cygnus.com>
3808
3809 * config/tc-v850.c (v850_comm): Restore old section
3810 after common processing.
3811
3812Wed Jun 24 11:50:54 1998 Klaus Kaempf <kkaempf@progis.de>
3813
3814 * config/obj-vms.c (Create_VMS_Object_File): Force binary file.
3815
3816Tue Jun 23 17:47:31 1998 Jim Wilson <wilson@cygnus.com>
3817
3818 * config/tc-h8300.c (do_a_fix_imm, build_bytes): Replace cast to
3819 char with code that explicitly sign-extends.
3820
3821Tue Jun 23 13:54:57 1998 Nick Clifton <nickc@cygnus.com>
3822
3823 * config/tc-v850.c (md_begin): Restore text section as the current
3824 section after creating call table sections.
3825 * config/obj-coff.h (SYM_AUXINFO): New macro to conceal ugly
3826 code.
3827
3828 * config/obj-coff.c (c_symbol_merge): Replace complex expresion
3829 with call to macro SYM_AUXINFO.
3830
3831Tue Jun 23 15:09:27 1998 Mike Stump <mrs@wrs.com>
3832
3833 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
3834 with the program transform name.
3835 * Makefile.in: Rebuild.
3836
3837Mon Jun 22 19:52:42 1998 Ian Lance Taylor <ian@cygnus.com>
3838
3839 * config/obj-coff.c (c_symbol_merge): Fix copying of auxiliary
3840 information.
3841
3842Mon Jun 22 15:18:58 1998 Ian Lance Taylor <ian@cygnus.com>
3843
3844 * config/tc-i386.c (i386_operand): Be prepared for a space between
3845 the open parenthesis and the start of the register operand,
3846 because of the June 16 change.
3847
3848Sun Jun 21 21:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
3849
3850 * config/tc-sh.c (md_apply_fix): Handle weak symbols correctly if
3851 BFD_ASSEMBLER.
3852
3853Sun Jun 21 12:26:36 1998 Nick Clifton <nickc@cygnus.com>
3854
3855 * config/tc-d30v.c (d30v_align): Always perform alignment request,
3856 even if it is belived to be unnecessary.
3857
3858Fri Jun 19 13:57:06 1998 Ian Lance Taylor <ian@cygnus.com>
3859
3860 * write.c (adjust_reloc_syms): Never adjust relocs against weak
3861 symbols.
3862 * config/tc-mips.c (md_apply_fix): Adjust accordingly.
3863
3864Fri Jun 19 09:50:17 1998 Jeffrey A Law (law@cygnus.com)
3865
3866 * config/tc-mn10300.c (mn10300_insert_operand): Do not hardcode the
3867 shift amount for a repeated operand. The shift amount for the
3868 repeated copy comes from the size of the operand.
3869
3870Fri Jun 19 00:44:19 1998 Jeffrey A Law (law@cygnus.com)
3871
3872 * config/tc-h8300.c (get_operand): Fix typos in ldm/stm support.
3873
3874Wed Jun 17 13:07:05 1998 Ian Lance Taylor <ian@cygnus.com>
3875
3876 * config/tc-mips.c (md_show_usage): Fix -mipsN usage.
3877
3878Tue Jun 16 13:06:21 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3879
3880 * app.c (do_scrub_begin): If tc_symbol_chars is defined, treat all
3881 characters in it as LEX_IS_SYMBOL_COMPONENT.
3882 * config/tc-i386.h (tc_symbol_chars): Define.
3883 (extra_symbol_chars): Declare.
3884 * config/tc-i386.c (extra_symbol_chars): Define.
3885 (comment_chars): Don't use '/' as comment start if TE_LINUX.
3886 (line_comment_chars): Set to '/' if TE_LINUX.
3887 * doc/c-i386.texi (i386-prefixes): Update.
3888 * doc/internals.texi (CPU backend): Document tc_symbol_chars.
3889
3890Fri Jun 12 13:36:54 1998 Tom Tromey <tromey@cygnus.com>
3891
3892 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
3893 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
3894
38951998-06-12 Vladimir N. Makarov <vmakarov@cygnus.com>
3896
3897 * config/tc-d10v.c (md_apply_fix3): Checking displacement
3898 constraint in instructions REP & REPI.
3899
3900Thu Jun 11 08:56:46 1998 Nick Clifton <nickc@cygnus.com>
3901
3902 * config/tc-d30v.c (md_apply_fix3): Catch BFD_RELOC_8,
3903 BFD_RELOC_16, BFD_RELOC_64 and issue appropriate error messages.
3904
3905 (check_range): If the operand is shifted, then shift the number
3906 before checking its range.
3907
3908 * write.c (adjust_reloc_syms): Add more checks for NULL pointers.
3909
3910 * config/tc-v850.c (v850_comm): Set SEC_COMMON bit on special
3911 common sections.
3912
3913Wed Jun 10 17:26:35 1998 Nick Clifton <nickc@cygnus.com>
3914
3915 * config/tc-v850.c (v850_comm): Create special sections as needed.
3916
39171998-06-10 Vladimir N. Makarov <vmakarov@cygnus.com>
3918
3919 * config/tc-d10v.c (write_2_short): Addition of swapping
3920 instructions for sequential and reverse sequential order when
3921 given order is not possible.
3922
3923Tue Jun 9 13:52:53 1998 Ian Lance Taylor <ian@cygnus.com>
3924
3925 * Makefile.am: Rebuild dependencies.
3926 (DEP_INCLUDES): Fix reference to intl build directory.
3927 * Makefile.in: Rebuild.
3928
3929Tue Jun 9 12:20:05 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3930
3931 * doc/c-i386.texi: Update 16 bit documentation.
3932
3933 * config/tc-i386.h: Change Data16 to Size16, Data32 to Size32,
3934 IgnoreDataSize to IgnoreSize as they are used for address size as
3935 well as data size.
3936 * config/tc-i386.c: Likewise. Add code to reject addr32/data32 in
3937 32-bit mode, similarly addr16/data16 and variants.
3938
3939Mon Jun 8 18:32:01 1998 Nick Clifton <nickc@cygnus.com>
3940
3941 * config/tc-d30v.c (md_assemble): Fix handling of reverse
3942 sequential word multiply instructions.
3943
3944 (do_assemble): Add extra command line argument, to allow mul32
3945 attribute to be preserved across parallel insns.
3946 (md_assemble): Insert NOPs between explicitly parallel insns which
3947 contain an 32 bit multiply and a 16 multiply.
3948
3949Mon Jun 8 12:20:30 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
3950
3951 * config/tc-i386.c: REPNE renamed to REPNE_PREFIX_OPCODE, and
3952 likewise for REPE.
3953
3954 * config/tc-i386.c (reloc): Add braces.
3955
3956 * config/tc-i386.c (struct _i386_insn): Rename bi to sib to be
3957 consistent with Intel naming.
3958 * config/tc-i386.h (base_index_byte): Rename to sib_byte. Don't
3959 use bitfields in sib_byte.
3960 (modrm_byte): Don't use bitfields here either.
3961
3962 * config/tc-i386.c (current_templates): Add const.
3963 (parse_register): Add const to return, param, and char *s.
3964 (i386_operand): Add const to reg_entry *r.
3965 * config/tc-i386.h (templates): Add const to start, end.
3966
3967 Inspired by code for 16 bit gas support from Martynas Kunigelis
3968 <martynas@nm3.ktu.lt>:
3969 * config/tc-i386.c (md_assemble): Add full support for 16 bit
3970 modrm, and Jump, JumpByte, JumpDword, JumpInterSegment insns.
3971 (uses_mem_addrmode): Remove.
3972 (md_estimate_size_before_relax): Add support here too.
3973 (md_relax_table): Rewrite interface to md_relax for 16 bit
3974 support.
3975 (BYTE, WORD, DWORD, UNKNOWN_SIZE): Remove.
3976 (opcode_suffix_to_type): Remove.
3977 (CODE16, SMALL, SMALL16, BIG, BIG16): Define.
3978 (SIZE_FROM_RELAX_STATE): Modify to suit above.
3979 (md_convert_frag): Likewise.
3980 (i386_operand): Add support for 16 bit base/index regs,
3981 immediates, and displacements. Remove some unnecessary casts, and
3982 localise end_of_operand_string, displacement_string_start,
3983 displacement_string_end variables. Add GCC_ASM_O_HACK.
3984 * config/tc-i386.h (NO_BASE_REGISTER_16): Define.
3985
3986 * config/tc-i386.c (prefix_hash): Remove.
3987 (md_begin): Rewrite without obstacks. Remove prefix hash table
3988 handling. Rewrite lexical table handling.
3989 (i386_print_statistics): Don't print prefix statistics.
3990 (md_assemble): Rewrite instruction parser so that line is not
3991 converted to lower case. Don't do a hash_find for prefixes,
3992 instead recognise them via opcode modifier.
3993 (expecting_operand, paren_not_balanced): Localise variables.
3994 * config/tc-i386.h (IsPrefix): Define.
3995 (prefix_entry): Remove.
3996
3997 * config/tc-i386.h (PREFIX_SEPERATOR): Don't define.
3998 * config/tc-i386.c (PREFIX_SEPARATOR): Define here instead, using
3999 '\\' in case where comment_chars contains '/'.
4000
4001 * config/tc-i386.c (MATCH): Ensure given operand and template
4002 match for JumpAbsolute. Makes e.g. `ljmp table(%ebx)' invalid;
4003 you must write `ljmp *table(%ebx)'.
4004
4005 From H.J. Lu <hjl@gnu.org>:
4006 * config/tc-i386.c (BFD_RELOC_16, BFD_RELOC_16_PCREL): Define
4007 as 0 ifndef BFD_ASSEMBLER.
4008 (md_assemble): Allow immediate operands without suffix or
4009 other reg operand to default in size to the current code size.
4010
4011Mon Jun 8 09:45:00 1998 Catherine Moore <clm@cygnus.com>
4012
4013 * config/tc-v850.c (md_begin): Restore creation of
4014 .call_table_text and .call_table_data sections.
4015
4016Sat Jun 6 00:02:41 1998 Nick Clifton <nickc@cygnus.com>
4017
4018 * config/tc-d30v.c (md_assemble): Set execution type to unknown
4019 after emitting a word of noops.
4020
4021Fri Jun 5 23:27:04 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
4022
4023 * config/tc-i386.c (mode_from_disp_size): Disp16 is mode 2.
4024 (i386_operand): Simplify checks for valid base/index combinations.
4025 Disallow `in 4(%dx),%al'.
4026
4027 * config/tc-i386.c (struct _i386_insn): Make regs, base_reg, and
4028 index_reg const.
4029 (add_prefix): Change parameter from char to int.
4030
4031 * config/tc-i386.h (Ugh): Define opcode modifier.
4032 * config/tc-i386.c (md_assemble): Print warnings for Ugh insns.
4033
4034 * config/tc-i386.c (md_assemble): Rewrite MATCH and
4035 CONSISTENT_REGISTER_MATCH macros to check register types more
4036 thoroughly. Check for illegal suffix/operand combinations
4037 when matching insns with operands. Handle new `s' suffix, and
4038 associated FloatMF opcode modifier for float insns with memory
4039 operands.
4040 * config/tc-i386.h (FloatMF): Define new opcode modifier.
4041 (No_sSuf, No_bSuf, No_wSuf, No_lSuf): Likewise.
4042 (SHORT_OPCODE_SUFFIX, LONG_OPCODE_SUFFIX): Define.
4043 * config/tc-i386.c: Rename WORD_PREFIX_OPCODE to
4044 DATA_PREFIX_OPCODE throughout.
4045
4046 * config/tc-i386.c (REGISTER_WARNINGS): Define.
4047 (md_assemble): Rewrite suffix/register operand checking code to be
4048 more thorough. Remove Abs8,16,32. Change occurrences of Mem to
4049 AnyMem, the better to grep.
4050 (pi): Remove Abs.
4051 (i386_operand): Don't set Mem bits in i.types[this_operand] when
4052 given a memory operand. Don't set Abs bits either.
4053 (type_names): Remove Mem*, Abs*.
4054 * config/tc-i386.h (Mem8, Mem16, Mem32, Abs8, Abs16, Abs32): Don't
4055 define opcode_modifiers as these cases are handled by Disp8,
4056 Disp16, Disp32 and suffix checks.
4057 (COMES_IN_BOTH_DIRECTIONS): Remove.
4058 (FloatR): Define. It's OK to share the bit with ReverseRegRegmem.
4059
4060 * config/tc-i386.c (md_assemble): Don't emit operand size prefix
4061 if IgnoreDataSize modifier given. Remove ShortformW modifier
4062 test. Add test for ShortForm in W base_opcode modification.
4063 Merge Seg2ShortForm and Seg3ShortForm code.
4064 * config/tc-i386.h (ShortFormW): Remove.
4065 (IgnoreDataSize): Define.
4066
4067Fri Jun 5 10:50:53 1998 Nick Clifton <nickc@cygnus.com>
4068
4069 * config/tc-d30v.c (md_assemble): Store previous segment state
4070 with previous instruction.
4071
4072Wed Jun 3 18:21:56 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
4073
4074 * config/tc-i386.c (SCALE1_WHEN_NO_INDEX): Define.
4075 (ebp, esp): Remove static variables.
4076 (MATCH): Remove test for InOutPortReg.
4077 (i386_operand): Properly handle InOutPortReg here instead.
4078 Disallows `inb (%dx,2)', `inb %es:(%dx)' and `mov (%dx),%ax'
4079 (md_assemble): Simplify and correct modrm and sib generation.
4080 (i386_operand): Add warning for scale without index.
4081 Rewrite checks for valid base/index combinations.
4082
4083 * config/tc-i386.c (END_STRING_AND_SAVE): Protect arguments of
4084 macros and enclose in do while(0).
4085 (RESTORE_END_STRING): Likewise.
4086 (md_assemble): Add one to printed operand number so we start
4087 from 1 not 0. Add some more gettext invocations.
4088 (i386_operand): Fix `%%s' -> `%%%s'. Inc printed operand
4089 number here too.
4090
4091 * config/tc-i386.h (WAIT_PREFIX, LOCKREP_PREFIX, ADDR_PREFIX,
4092 DATA_PREFIX, SEG_PREFIX): Define.
4093 * config/tc-i386.c (struct _i386_insn): Remove wait_prefix field.
4094 (check_prefix): Remove function.
4095 (add_prefix): New function. Add prefix to i.prefix as well as
4096 doing checks.
4097 (md_assemble): Changes for add_prefix. Remove hack for wait
4098 prefix, instead always output prefixes in fixed order. Test
4099 for jcxz/loop when selecting between word & dword operations,
4100 and add address size prefix rather than operand size prefix.
4101 Remove operand -> address size hack when emitting jcxz/loop.
4102 (i386_operand): Remove O_Absent check as it's done in expr.
4103
4104Wed Jun 3 15:09:10 1998 Ian Lance Taylor <ian@cygnus.com>
4105
4106 * configure.in: Recognize m5200 as a cpu_type of m68k.
4107 * aclocal.m4: Rebuild with current libtool.
4108 * configure: Rebuild.
4109
4110Wed Jun 3 14:11:59 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4111
4112 * config/tc-m68k.c (md_estimate_size_before_relax): Add more calls
4113 to relaxable_symbol to prevent references to external symbol from
4114 being relaxed.
4115
4116Wed Jun 3 14:10:36 1998 Ian Lance Taylor <ian@cygnus.com>
4117
4118 * config/tc-m68k.c (relaxable_symbol): If TARGET_OS is "elf", all
4119 symbols are relaxable.
4120
4121Wed Jun 3 09:16:00 1998 Catherine Moore <clm@cygnus.com>
4122
4123 * config/tc-v850.c (md_begin): Don't create special
4124 sections by default.
4125
4126Tue Jun 2 14:52:56 1998 Jeffrey A Law (law@cygnus.com)
4127
4128 * config/tc-mips.c (macro): For div and udiv, close the
4129 reorder block as soon as possible.
4130
4131Tue Jun 2 15:36:13 1998 Ian Lance Taylor <ian@cygnus.com>
4132
4133 From Matt Semersky <matts@scd.hp.com>:
4134 * macro.c (macro_mri_mode): New function.
4135 * macro.h (macro_mri_mode): Declare.
4136 * read.c (s_mri): Call macro_mri_mode when switching in and out of
4137 MRI mode.
4138
4139Tue Jun 2 13:32:22 1998 Klaus Kaempf <kkaempf@progis.de>
4140
4141 * config/tc-alpha.c (s_alpha_comm): Allow alignment parameter in
4142 OBJ_EVAX case.
4143
4144 * config/tc-alpha.c (s_alpha_comm): Defer restoring character
4145 until after xstrdup in OBJ_EVAX case.
4146
4147Tue Jun 2 13:11:13 1998 Pat Rankin <rankin@eql.caltech.edu>
4148
4149 * config/tc-vax.c (md_create_short_jump): Fix off by two bug in
4150 offset calculation. Also, use VAX_BRW from vax-inst.h instead
4151 of hardcoded magic number.
4152 (md_create_long_jump): Use VAX_JMP and VAX_ABSOLUTE_MODE macros.
4153
4154Tue Jun 2 09:25:34 1998 Doug Evans <devans@canuck.cygnus.com>
4155
4156 * read.c (do_s_func): New function.
4157 (s_func): Call it.
4158 * read.h (do_s_func): Add prototype.
4159
4160Mon Jun 1 12:47:30 1998 Doug Evans <devans@canuck.cygnus.com>
4161
4162 * config/tc-m32r.c (m32r_do_align): Only fill code sections with
4163 nops if fill pattern not specified.
4164
4165Mon Jun 1 14:08:35 1998 Ian Lance Taylor <ian@cygnus.com>
4166
4167 From Andrew Crabtree <andrewc@typhoon.rose.hp.com>:
4168 * config/te-go32.h (TE_GO32): Define.
4169 * config/tc-i386.h (LOCAL_LABEL): Don't define if TE_GO32.
4170
4171Sun May 31 15:43:06 1998 Doug Evans <devans@canuck.cygnus.com>
4172
4173 Implement .func/.endfunc pseudo-ops.
4174 * read.h (stabs_generate_asm_func,stabs_generate_asm_endfunc): Declare.
4175 (s_func): Declare.
4176 * read.c (potable): Add .func,.endfunc.
4177 (s_func): New function.
4178 * stabs.c (stabs_generate_asm_func,stabs_generate_asm_endfunc): New
4179 functions.
4180 (in_doc_func_p,current_function_label): New static globals.
4181 (stabs_generate_asm_lineno): Emit function relative stabs if in .func.
4182
4183Fri May 29 18:13:12 1998 Ian Lance Taylor <ian@cygnus.com>
4184
4185 * config/tc-a29k.h (WORKING_DOT_WORD): Define.
4186 * config/tc-alpha.h (WORKING_DOT_WORD): Define.
4187 * config/tc-arm.h (WORKING_DOT_WORD): Define.
4188 * config/tc-h8300.h (WORKING_DOT_WORD): Define.
4189 * config/tc-h8500.h (WORKING_DOT_WORD): Define.
4190 * config/tc-hppa.h (WORKING_DOT_WORD): Define.
4191 * config/tc-i860.h (WORKING_DOT_WORD): Define.
4192 * config/tc-i960.h (WORKING_DOT_WORD): Define.
4193 * config/tc-tic30.h (WORKING_DOT_WORD): Define.
4194 * config/tc-w65.h (WORKING_DOT_WORD): Define.
4195 * config/tc-z8k.h (WORKING_DOT_WORD): Define.
4196 * config/tc-a29k.c: Don't define md_short_jump_size,
4197 md_long_jump_size, md_create_short_jump or md_create_long_jump.
4198 * config/tc-alpha.c: Likewise.
4199 * config/tc-alpha.h: Likewise.
4200 * config/tc-arm.c: Likewise.
4201 * config/tc-h8300.c: Likewise.
4202 * config/tc-h8500.c: Likewise.
4203 * config/tc-hppa.c: Likewise.
4204 * config/tc-i860.c: Likewise.
4205 * config/tc-i960.c: Likewise.
4206 * config/tc-ppc.c: Likewise.
4207 * config/tc-sh.c: Likewise.
4208 * config/tc-sparc.h: Likewise.
4209 * config/tc-tic30.c: Likewise.
4210 * config/tc-w65.c: Likewise.
4211 * config/tc-z8k.c: Likewise.
4212
4213Fri May 29 16:03:26 1998 Pat Rankin <rankin@eql.caltech.edu>
4214
4215 * config/tc-vax.c (_): Delete this macro used for placeholder
4216 values in vax_operand_width_size; it conflicts with the _() macro
4217 used for internationalization.
4218
4219Fri May 29 13:46:07 1998 Ian Lance Taylor <ian@cygnus.com>
4220
4221 * symbols.c (symbol_find_base): Fix case insensitive symbol name
4222 code. From Chris Moller <moller@bops.com>.
4223
4224 Based on patch from Klaus Kaempf <kkaempf@progis.de>:
4225 * struc-symbol.h (struct broken_word): Add seg and subseg fields.
4226 * read.c (emit_expr): Initialize seg and subseg fields of a new
4227 broken word.
4228 * write.c (write_object_file): Switch to the appropriate segment
4229 and subsegment when processing a broken word.
4230
4231 * config/tc-m68k.c (mri_assemble): New static function.
4232 (build_mri_control_operand): Call mri_assemble rather than
4233 md_assemble.
4234 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
4235 (s_mri_endf, s_mri_endw): Likewise.
4236
4237Wed May 27 11:16:25 1998 Ian Lance Taylor <ian@cygnus.com>
4238
4239 * read.c (s_org): Call md_flush_pending_output if it is defined.
4240
4241 * config/tc-sparc.c (md_show_usage): Add \n\ to new string.
4242
4243Tue May 26 19:27:52 1998 Stan Cox <scox@equinox.cygnus.com>
4244
4245 * config/tc-sparc.c (OPTION_LITTLE_ENDIAN_DATA): New.
4246 (md_parse_option): Add for same.
4247 (sparc_md_end): Set bfd_mach_sparc_sparclite_le.
4248 (md_apply_fix3, tc_gen_reloc): Allow BFD_RELOC_SPARC_32LE.
4249 (cons_fix_new_sparc): Added to create BFD_RELOC_SPARC_32LE.
4250
4251 * config/tc-sparc.h (cons_fix_new_sparc): Added.
4252
4253Thu May 21 15:02:41 1998 Nick Clifton <nickc@cygnus.com>
4254
4255 * config/tc-arm.c (find_real_start): Relax definition of local
4256 labels.
4257
4258Tue May 19 16:59:44 1998 Nick Clifton <nickc@cygnus.com>
4259
4260 * config/tc-d30v.c (d30v_align): Apply address adjustment to all
4261 symbols at the given address, not just the last one specified.
4262
4263Tue May 19 08:25:19 1998 Catherine Moore <clm@cygnus.com>
4264
4265 * config/tc-sparc.c (sparc_handle_align): Use number_to_chars_bigendian
4266 or number_to_chars_littleendian to write data.
4267
4268Mon May 18 17:09:30 1998 Nick Clifton <nickc@cygnus.com>
4269
4270 * config/tc-v850.c (md_assemble): Remove artificially created
4271 register name symbols.
4272
4273Mon May 18 13:47:06 1998 Doug Evans <devans@canuck.cygnus.com>
4274
4275 * write.c (fixup_segment): Change "segment" to "section" in
4276 error message.
4277
4278Mon May 18 16:55:40 1998 Michael Meissner <meissner@cygnus.com>
4279
4280 * write.c (fixup_segment): Change sym1-sym2 message again.
4281
4282Mon May 18 09:31:43 1998 Michael Meissner <meissner@cygnus.com>
4283
4284 * write.c (fixup_segment): Improve error message for sym1-sym2
4285 errors when sym1 is in a different segment from sym2.
4286
4287Wed May 13 10:16:37 1998 Doug Evans <devans@canuck.cygnus.com>
4288
4289 * config/tc-m32r.c (warn_unmatched_high): New static local.
4290 (OPTION_WARN_PARALLEL): Rename from OPTION_WARN.
4291 (OPTION_NO_WARN_PARALLEL): Rename from OPTION_NO_WARN.
4292 (md_longopts): Recognize --{no-,}warn-unmatched-high.
4293 (md_parse_option): Likewise.
4294 (md_show_usage): Likewise.
4295 (m32r_frob_file): Likewise.
4296
4297 * read.c (generate_file_debug,generate_lineno_debug): New functions.
4298 (read_a_source_file): Call them.
4299 * read.h (stabs_generate_asm_file): Declare.
4300 * stabs.c (stabs_generate_asm_file): New function.
4301 (generate_asm_file): New function.
4302 (stabs_generate_asm_lineno): Move file name handling into
4303 generate_asm_file.
4304
4305Tue May 12 12:03:44 1998 Richard Henderson <rth@cygnus.com>
4306
4307 * config/tc-d30v.c (cur_mul32_p, prev_mul32_p): Make static.
4308 (d30v_current_align, d30v_current_align_seg): New variables.
4309 (d30v_last_label): New variable.
4310 (d30v_align, s_d30v_align, s_d30v_text): New functions.
4311 (s_d30v_data, s_d30v_section): Likewise.
4312 (md_pseudo_table): Call them.
4313 (md_begin): Initialize d30v_current_align_seg.
4314 (md_assemble): Call d30v_align when needed by known current alignment.
4315 (d30v_frob_label, d30v_cons_align): New functions.
4316 * config/tc-d30v.h (md_do_align): Remove.
4317 (tc_frob_label): Call d30v_frob_label.
4318 (md_cons_align): New.
4319
4320 * config/tc-d30v.c (find_format): Convert complex expressions to
4321 expression symbols before processing. Clean up code formatting.
4322
4323Sun May 10 22:35:02 1998 Jeffrey A Law (law@cygnus.com)
4324
4325 * po/Make-in (install-info): New target.
4326
4327Thu May 7 15:49:07 1998 Jeffrey A Law (law@cygnus.com)
4328
4329 * config/tc-mn10200.c (md_assemble): Handle "bra" just like "jmp"
4330 instructions.
4331 * config/tc-mn10300.c (md_assemble): Likewise.
4332
4333Thu May 7 11:47:22 1998 Doug Evans <devans@canuck.cygnus.com>
4334
4335 * Makefile.am: Update with `make dep-am'.
4336 (HFILES): Add cgen.h.
4337 (cgen.o): Depend on cgen.h.
4338 * Makefile.in: Regenerate.
4339
4340 * cgen.c (cgen_md_apply_fix3): Don't pass newline to as_warn_where.
4341
4342Thu May 7 13:20:56 1998 Anders Blomdell <anders.blomdell@control.lth.se>
4343
4344 * gasp.c (grab_label): Permit a label to be a preprocessor
4345 variable by permitting a label to start with a backslash.
4346
4347Thu May 7 12:50:33 1998 Frank Ch. Eigler <fche@cygnus.com>
4348
4349 * config/tc-mips.c (validate_mips_insn): Removed hack
4350 for previously inaccessible bitfields in some INSN_TRAP
4351 instructions.
4352
4353Thu May 7 11:13:00 1998 Frank Ch. Eigler <fche@cygnus.com>
4354
4355 * config/tc-d30v.c (do_assemble): Abort with error message
4356 if opcode operands do not match.
4357
4358Thu May 7 09:36:06 1998 Frank Ch. Eigler <fche@cygnus.com>
4359
4360 * config/tc-mips.c (macro_build, validate_mips_insn): Implement
4361 'q' operand format for 20-bit "break"/"sdbbp" instructions.
4362 (mips_ip): Truncate overflowed "break" 'c' operand. Implement
4363 similar new 'q' operand.
4364
4365Thu May 7 07:47:14 1998 Michael Meissner <meissner@cygnus.com>
4366
4367 * cgen.c (cgen_asm_finish_insn): Fix typo.
4368
4369Thu May 7 02:19:14 1998 Doug Evans <devans@charmed.cygnus.com>
4370
4371 * cgen.h: New file.
4372 * cgen.c: Include it.
4373 (MAX_FIXUPS): Renamed to CGEN_MAX_FIXUPS.
4374 (cgen_asm_finish_insn): Result is now void. New arg `result'.
4375 All callers updated.
4376 * config/tc-m32r.c: Include cgen.h.
4377 (m23r_insn): New members num_fixups,fixups.
4378
4379Wed May 6 16:29:19 1998 Jeffrey A Law (law@cygnus.com)
4380
4381 * config/tc-hppa.c (md_apply_fix): Slightly rework some code
4382 to avoid compiler warning.
4383
4384Wed May 6 15:26:34 1998 Klaus Kaempf <kkaempf@progis.de>
4385
4386 * makefile.vms: Run dec c with /nodebug. Pass CC value when
4387 calling make.
4388
4389 * makefile.vms (OBJS): Add ehopt.obj
4390
4391Wed May 6 15:11:12 1998 Klaus Kaempf <kkaempf@progis.de>
4392
4393 * doc/c-vax.texi: Correct and extend vax/vms documentation.
4394
4395Wed May 6 11:51:51 1998 Richard Henderson <rth@cygnus.com>
4396
4397 * config/tc-d30v.c (do_assemble): Accept a new parameter requesting
4398 a short format insn.
4399 (md_assemble): Set it for explicitly packed insns.
4400
4401Tue May 5 13:23:13 1998 Nick Clifton <nickc@cygnus.com>
4402
4403 * config/obj-coff.c (c_symbol_merge): Do not take address of
4404 native fields when performing the memcpy.
4405
4406Tue May 5 13:10:41 1998 Gavin Koch <gavin@cygnus.com>
4407
4408 * config/tc-mips.c (macro,macro2): Implement
4409 M_DMULO_I, M_MULO_I, M_DMULOU_I, and M_MULOU_I.
4410
4411Mon May 4 17:49:14 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4412
4413 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Changed to keep
4414 relocations against globally visible symbols.
4415 * config/tc-m68k.c (relaxable_symbol): New macro.
4416 (m68k_ip, md_estimate_size_before_relax): Use it.
4417 (tc_m68k_fix_adjustable): Also handle weak symbols.
4418
4419Mon May 4 16:12:23 1998 Ian Lance Taylor <ian@cygnus.com>
4420
4421 * config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Keep relocs for all
4422 references to externally visible symbols.
4423 * config/tc-i386.c (md_apply_fix3): When OBJ_ELF, don't add the
4424 values in twice for a PC relative reloc if the symbol is
4425 externally defined.
4426
4427 * config/tc-sparc.h (tc_fix_adjustable) [OBJ_AOUT]: When PIC,
4428 don't adjust a PC relative reloc against an externally visible
4429 symbol.
4430 * config/tc-sparc.c (md_apply_fix3): When generating a.out PIC,
4431 for a PC relative fixup against an externally visible defined
4432 symbol, arrange to store object file and addend values as though
4433 the symbol were not defined.
4434 (tc_gen_reloc): Likewise.
4435
4436Thu Apr 30 13:09:39 1998 Fred Fish <fnf@ninemoons.com>
4437
4438 * read.c (sizeof_leb128): Referenced externally by write.c so
4439 don't inline.
4440
4441Wed Apr 29 15:45:57 1998 Michael Meissner <meissner@cygnus.com>
4442
4443 * config/tc-m32r.c ({,expand_}debug_sym): New functions to record
4444 and expand a 'debug' symbol associated with the next instruction
4445 that does not cause a short instruction to be filled with a NOP.
4446 (md_pseudo_table): Add support for .debugsym.
4447 (assemble_parallel_insn): Add calls to expand_debug_sym as
4448 appropriate.
4449 (md_assemble): Ditto.
4450
4451Tue Apr 28 19:16:26 1998 Tom Tromey <tromey@cygnus.com>
4452
4453 * as.c (main): Conditionally call setlocale.
4454 * gasp.c (main): Likewise.
4455 * asintl.h: Include <locale.h> if HAVE_LOCALE_H.
4456 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
4457
4458Tue Apr 28 18:33:23 1998 Frank Ch. Eigler <fche@cygnus.com>
4459
4460 * config/tc-d30v.c (md_show_usage): Correct gettext typo.
4461
4462Tue Apr 28 12:16:30 1998 Ian Lance Taylor <ian@cygnus.com>
4463
4464 * config/tc-hppa.c: Change all calls to bzero to use memset.
4465 (pa_ip): Add cast to avoid warning.
4466 (tc_gen_reloc, md_apply_fix): Likewise.
4467 (pa_find_space_by_number): Likewise.
4468 (hppa_force_relocation): Likewise.
4469 (pa_block): Change i to unsigned int.
4470 * config/obj-som.h (obj_som_copyright): Declare.
4471
4472Tue Apr 28 11:35:56 1998 Frank Ch. Eigler <fche@cygnus.com>
4473
4474 * ecoff.c (ecoff_build_lineno): Do not use dummy first_lineno
4475 for line numbers for assembly source.
4476
4477Mon Apr 27 15:58:46 1998 Ian Lance Taylor <ian@cygnus.com>
4478
4479 * configure.in: Change version number to 2.9.4
4480 * configure: Rebuild.
4481
4482Mon Apr 27 12:07:33 1998 Doug Evans <devans@seba.cygnus.com>
4483
4484 * cgen.c (cgen_asm_finish_insn): New arg relax_p. All callers updated.
4485
4486Mon Apr 27 15:16:12 1998 Ian Lance Taylor <ian@cygnus.com>
4487
4488 * ecoff.h: Change symbolS in function declaration to struct
4489 symbol.
4490
4491Sun Apr 26 13:44:22 1998 Ian Lance Taylor <ian@cygnus.com>
4492
4493 * config/tc-sh.c (parse_reg): Add casts to avoid warnings.
4494 (md_convert_frag): Fix i18n typo.
4495
4496Sat Apr 25 20:12:02 1998 Richard Henderson <rth@cygnus.com>
4497
4498 * ecoff.c (ecoff_get_cur_proc_sym): New function.
4499 * ecoff.h: Protoype it.
4500 * config/tc-alpha.c [ELF] (s_alpha_prologue): New function.
4501 [EVAX] (s_alpha_prologue): Delete.
4502 (md_pseudo_table): Update.
4503
4504Sat Apr 25 14:00:52 1998 Ian Lance Taylor <ian@cygnus.com>
4505
4506 * config/tc-i960.c (md_assemble): Change bp_error_msg from static
4507 array to local pointer.
4508 (get_args, parse_expr): Add casts to avoid warnings.
4509
4510Fri Apr 24 12:47:42 1998 Philippe De Muyter <phdm@macqel.be>
4511
4512 * read.c (s_set): Cast xmalloc return value to fragS *.
4513 * config/tc-m68k.c (m68k_ip): Function made static to match
4514 previous forward declaration.
4515 (insert_reg, init_regtable, md_convert_frag_1): Likewise.
4516
4517Fri Apr 24 09:26:46 1998 Nick Clifton <nickc@cygnus.com>
4518
4519 * config/tc-v850.c: Add internationalisation macros to error
4520 strings.
4521
4522 * config/tc-m32r.c (can_make_parallel): Add internationalisation
4523 macros to error strings.
4524
4525Thu Apr 23 19:23:23 1998 Ian Lance Taylor <ian@cygnus.com>
4526
4527 * config/tc-ppc.c (ppc_fix_adjustable): Correct test of whether a
4528 reloc is in the TOC csect.
4529 (md_apply_fix3): Correct gettext typo.
4530
4531Thu Apr 23 14:58:31 1998 Nick Clifton <nickc@cygnus.com>
4532
4533 * config/tc-arm.c (find_real_start): Ignore symbols starting with
4534 .L - they are local labels and the branches are not really
4535 function calls but rather far jumps.
4536
4537Wed Apr 22 15:57:21 1998 Tom Tromey <tromey@cygnus.com>
4538
4539 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
4540
4541Wed Apr 22 14:52:36 1998 Ian Lance Taylor <ian@cygnus.com>
4542
4543 * config/tc-i386.c (md_assemble): Print operand number rather than
4544 using ordinal_names.
4545 (i386_operand): Likewise.
4546
4547Tue Apr 21 22:34:25 1998 Tom Tromey <tromey@scribbles.cygnus.com>
4548
4549 * Makefile.am (INTLLIBS): Define to work around apparent automake
4550 bug.
4551 All Makefiles: Regenerated.
4552
4553 * Many files: Added gettext invocations around user-visible
4554 strings.
4555 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
4556 HAVE_LC_MESSAGES): Define.
4557 * dep-in.sed: Added asintl.h.
4558 * po/Make-in: New file.
4559 * gasp.c (main): Call setlocale, bindtextdomain, and textdomain.
4560 Include "asintl.h".
4561 * read.c (Z_): Renamed from `_'.
4562 * Makefile.am (SUBDIRS): Added po.
4563 (POTFILES): new macro.
4564 (po/POTFILES.in): New target.
4565 ($(OBJS)): Added asintl.h.
4566 (HFILES): Likewise.
4567 (INCLUDES): Added -DLOCALEDIR, -I$(top_srcdir)/../intl.
4568 (as_new_LDADD): Added $(INTLLIBS).
4569 (as_new_DEPENDENCIES): Added $(INTLDEPS).
4570 (gasp_new_LDADD): Added $(INTLLIBS).
4571 (gasp_new_DEPENDENCIES): New macro.
4572 * configure, aclocal.m4: Rebuilt.
4573 * configure.in: Call CY_GNU_GETTEXT. Generate po/Makefile.in and
4574 po/Makefile.
4575 (ALL_LINGUAS): Define.
4576 * macro.c: Include "asintl.h".
4577 * as.c (main): Call setlocale, bindtextdomain, and textdomain.
4578 * as.h: Include "asintl.h".
4579 * config/tc-i386.c (ordinal_names): Removed.
4580 (md_assemble): Changed error text to avoid ordinal_names.
4581 (i386_operand): Likewise.
4582 (reloc): Added as_bad to avoid i18n problems.
4583 (tc_gen_reloc): Likewise.
4584 * config/tc-arm.c (bad_args): Now a #define.
4585 (bad_pc): Likewise.
4586 * config/obj-vms.c (VMS_stab_parse): Changed type of
4587 `long_const_msg'.
4588 (global_symbol_directory): Unified strings to avoid i18n
4589 problems.
4590 * config/tc-m68k.c (get_reloc_code): Added some as_bad calls to
4591 avoid i18n problems.
4592 * config/tc-ns32k.c (reloc): Added as_bad to avoid i18n problems.
4593 * config/tc-ppc.c (md_apply_fix3): Added as_bad_where to avoid
4594 i18n problems.
4595 * config/tc-sh.c (md_convert_frag): Added as_bad to avoid i18n
4596 problems.
4597 * config/tc-v850.c (md_assemble): Changed C++ comment into C
4598 comment.
4599 * config/tc-vax.c (md_assemble): Added as_warn to avoid i18n
4600 problems.
4601 * as.c (print_version_id): Added an fprintf to avoid i18n
4602 problems.
4603 * cond.c (cond_finish_check): Added as_bad call to avoid i18n
4604 problems.
4605 * expr.c (expr): Added as_warn call to avoid i18n problems.
4606 * messages.c (as_assert): Changed code to avoid i18n problems.
4607 (as_abort): Likewise.
4608 * read.c (pseudo_set): Added as_bad call to avoid i18n problems.
4609 (s_space): Likewise.
4610 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
4611
4612Tue Apr 21 17:01:22 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
4613
4614 * config/tc-i386.c (check_prefix): New static function, split out
4615 from md_assemble.
4616 (struct _i386_insn): Add wait_prefix field.
4617 (md_assemble): Remove wait_prefix local variable. Use
4618 check_prefix when adding a prefix.
4619
4620 * config/tc-i386.c (current_templates): New static variable.
4621 (md_assemble): Remove current_templates local variable.
4622 (md_assemble, i386_operand): Improve error and warning messages in
4623 many places. Add RESTORE_END_STRING in many places before error
4624 return. Clarify some comments.
4625
4626 * config/tc-i386.c (struct _i386_insn): Change seg field to a two
4627 element array.
4628 (md_assemble): Parse string instruction operands, looking for
4629 segment override prefixes. Check for invalid segment prefixes on
4630 string instruction.
4631 (i386_operand): i.seg[] and max mem_operand changes for string
4632 insns.
4633 * config/tc-i386.h (EsSeg): Define.
4634
4635 * config/tc-i386.h (regKludge): Define.
4636 (iclrKludge, imulKludge): Don't define.
4637 * config/tc-i386.c (md_assemble): Merge imulKludge and iclrKludge
4638 code. Move ReverseRegRegmem fudges into Modrm case. Reorder
4639 opcode_modifier checks to look for more common cases first. Add
4640 default_seg for IsString case.
4641
4642Tue Apr 21 16:18:12 1998 Ian Lance Taylor <ian@cygnus.com>
4643
4644 * configure.in: Call AM_PROG_LEX rather than AC_PROG_LEX and
4645 AC_DECL_YYTEXT.
4646 * configure: Rebuild with new automake and libtool.
4647 * aclocal.m4, Makefile.in: Likewise.
4648
4649 * doc/Makefile.am (as.dvi): New target.
4650 * doc/Makefile.in: Rebuild.
4651
4652Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
4653
4654 * configure.in: Added sparc86x support.
4655
4656 * configure: Rebuild.
4657
4658 * config/tc-sparc.c (lookup_arch): Added arch_type to struct
4659 sparc_arch.
4660 (md_parse_option): Warn if -EL is not supported for this architecture.
4661
4662 * config/tc-sparc.h (SPARC_BIENDIAN) Always define.
4663
4664Sat Apr 18 01:19:01 1998 Jeffrey A Law (law@cygnus.com)
4665
4666 * config/tc-mips.c (mips_ip): Note when we use get match on
4667 the full instruction name.
4668
4669Wed Apr 15 15:17:27 1998 Richard Henderson <rth@cygnus.com>
4670
4671 * symbols.c (resolve_symbol_value) [O_symbol]: Also store the symbol
4672 back into the expression to handle add/sub simplification correctly.
4673
4674Wed Apr 15 07:06:04 1998 Catherine Moore <clm@cygnus.com>
4675
4676 * config/tc-mips.c (hilo_interlocks): Remove 4300.
4677
4678Mon Apr 13 16:51:04 1998 Nick Clifton <nickc@cygnus.com>
4679
4680 * config/tc-arm.c (do_msr): Support undocumented 'msr cpsr_flg,
4681 #<n>' instruction.
4682
4683Thu Apr 9 10:29:42 1998 Doug Evans <devans@canuck.cygnus.com>
4684
4685 * symbols.c (max_indent_level): New global.
4686 (print_symbol_value_1): Use it.
4687 * expr.h (expr_build_dot): Declare.
4688 * expr.c (expr_build_dot): New function.
4689
4690Wed Apr 8 16:16:11 1998 Doug Evans <devans@canuck.cygnus.com>
4691
4692 * symbols.c (print_binary): New function.
4693 (print_expr_1): Call it.
4694
4695Mon Apr 6 12:06:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4696
4697 * config/tc-m68k.c (m68k_ip, case "#B"): Install the offset of the
4698 operand in the opcode.
4699
4700Fri Apr 3 11:58:19 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
4701
4702 * config/tc-i386.h: Reorder operand flags and opcode modifier
4703 flags for clarity. Remove unused definitions: Unknown,
4704 ImmUnknown, DispUnknown, NoModrm.
4705 * config/tc-i386.c (type_names): Add missing Debug type.
4706 (md_assemble): Better duplicate prefix checking. Quicker string
4707 instruction check via new opcode_modifier flag.
4708
4709Fri Apr 3 11:44:34 1998 Ian Lance Taylor <ian@cygnus.com>
4710
4711 * doc/as.texinfo (Invoking): Clarify -Wa example.
4712
4713Fri Apr 3 09:12:23 1998 Gavin Koch <gavin@cetus.cygnus.com>
4714
4715 * config/tc-mips.c (mips_pseudo_table): Add weakext entry.
4716 (s_mips_weakext): Define.
4717 * ecoff.c (ecoff_directive_weakext): Don't define if defined(TC_MIPS).
4718 * config/obj-ecoff.c (obj_pseudo_table): Don't add weakext if
4719 defined(TC_MIPS).
4720
4721Thu Apr 2 22:42:02 1998 Jeffrey A Law (law@cygnus.com)
4722
4723 * config/tc-mn10200.c (tc_gen_reloc): The difference of two symbols
4724 is an error if the value can not be computed at assembly time.
4725 * config/tc-mn10300.c (tc_gen-reloc): Likewise.
4726
4727Thu Apr 2 16:36:47 1998 Ian Lance Taylor <ian@cygnus.com>
4728
4729 * gasp.c (main): Set next field of new include_path structure to
4730 NULL. From Avery Pennarun <averyp@gdc.ca>.
4731
4732 * read.c (s_mri_sect): Call as_bad rather than abort for an
4733 unsupported MRI target.
4734
4735Wed Apr 1 11:08:27 1998 Nick Clifton <nickc@cygnus.com>
4736
4737 * config/tc-arm.c (arm_validate_fix): New function. Determine if
4738 the destination of a branch instruction should be altered.
4739 (find_real_start): New function: Locate the real, Thumb coded
4740 start of a Thumb function.
4741 (do_t_branch23): Alter the destination of branches to Thumb
4742 functions.
4743
4744 * config/tc-arm.h: Define TC_VALIDATE_FIX.
4745
4746Tue Mar 31 13:27:33 1998 Dean M. Deaver <deaver@amt.tay1.dec.com>
4747
4748 * config/tc-arm.c (decode_shift): Handle addressing mode 2 w/rrx
4749 also.
4750
4751Wed Apr 1 13:13:20 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4752
4753 * doc/as.texinfo: Use @itemx for a secondary item in a table.
4754 * doc/c-hppa.texi: Likewise.
4755
4756Tue Mar 31 17:52:40 1998 Ian Lance Taylor <ian@cygnus.com>
4757
4758 * Makefile.am: Rebuild dependencies.
4759 * Makefile.in: Rebuild.
4760
4761 * Makefile.am (DEP_INCLUDES): New variable.
4762 (.dep1): Change to work when srcdir is not an absolute path.
4763 (.tcdep, .objdep, .dep2, dep.sed): Likewise.
4764 * Makefile.in: Rebuild.
4765
4766Mon Mar 30 12:46:48 1998 Ian Lance Taylor <ian@cygnus.com>
4767
4768 * config/tc-i386.h, config/tc-i386.c: Revert March 24
4769 LinearAddress patch.
4770
4771 * configure.in: Set version to 2.9.1.
4772 * configure: Rebuild.
4773
4774 * Branched binutils 2.9.
4775
4776Mon Mar 30 11:22:08 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
4777
4778 * config/tc-i386.h (FWait): Define.
4779 * config/tc-i386.c (md_assemble): Emit fwait prefix before any
4780 other prefixes. Check FWait flag in opcode table to see which
4781 instructions require an fwait prefix.
4782
4783Mon Mar 30 10:12:00 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4784
4785 * stabs.c (get_stab_string_offset): Always create a stab string
4786 section.
4787
4788Sat Mar 28 22:28:02 1998 Ian Lance Taylor <ian@cygnus.com>
4789
4790 Fix some gcc -Wall warnings:
4791 * atof-generic.c (atof_generic): Add casts to avoid warnings.
4792 * ehopt.c (eh_frame_code_alignment): Likewise.
4793 * expr.c (integer_constant, operand): Likewise.
4794 * frags.c (frag_align): Likewise.
4795 * gasp.c (level_0, change_base, doinstr): Likewise.
4796 * hash.c (hash_ask): Likewise.
4797 * listing.c (listing_page, calc_hex, print_lines): Likewise.
4798 (debugging_pseudo): Likewise.
4799 * macro.c (define_macro, check_macro): Likewise.
4800 * read.c (read_a_source_file, s_align, s_float_space): Likewise.
4801 (ignore_rest_of_line, float_cons): Likewise.
4802 * symbols.c (decode_local_label_name): Likewise.
4803 * write.c (record_alignment, cvs_frag_to_fill): Likewise.
4804 (fixup_segment, number_to_chars_bigendian): Likewise.
4805 (number_to_chars_littleendian): Likewise.
4806 * config/atof-ieee.c (gen_to_words): Likewise.
4807 * config/tc-sparc.c (md_begin, md_assemble): Likewise.
4808 (sparc_ip, parse_keyword_arg, s_common): Likewise.
4809 * read.c (output_big_sleb128): Initialize locals to avoid
4810 warnings.
4811 (output_big_uleb128, equals): Likewise.
4812 * atof-generic.c (atof_generic): Change number_of_digits_* locals
4813 to unsigned int. Change zeros to unsigned int.
4814 * cond.c (s_if): Add return to default case.
4815 * frags.c (frag_now_fix): Change return type to addressT.
4816 * frags.h (frag_now_fix): Update declaration.
4817 * listing.c (file_info_struct): Change linenum to unsigned int.
4818 (struct list_info_struct): Change hll_line to unsigned int.
4819 (print_source): Update format string.
4820 * read.c (emit_expr): Change scan to unsigned int, and don't
4821 bother to initialize it.
4822 * symbols.c (dollar_label_count): Change to unsigned long.
4823 * write.c (adjust_reloc_syms): Remove unused label reduce_fixup.
4824 * config/tc-sparc.c (sparc_memory_model): Only define if OBJ_ELF.
4825 * config/tc-sparc.c (tc_gen_reloc): Add return to default case.
4826
4827Fri Mar 27 12:46:47 1998 Ian Lance Taylor <ian@cygnus.com>
4828
4829 * config/tc-m68k.c (m68k_ip): Check legal addressing modes for
4830 mcf5200 just as we do for m68000.
4831 (m68k_init_after_args): Likewise.
4832 (md_estimate_size_before_relax): Likewise.
4833
4834Fri Mar 27 10:30:01 1998 Catherine Moore <clm@cygnus.com>
4835
4836 * config/tc-v850.c (md_assemble): Store relocation addend in
4837 fixup instead of instruction.
4838
4839Thu Mar 26 23:07:18 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
4840
4841 * config/tc-i386.c (md_assemble): Swap template arguments to
4842 CONSISTENT_REGISTER_MATCH macro in reverse direction test.
4843 This macro is currently symmetric, so passing them the wrong
4844 way didn't cause any problem, but may if the macro is changed
4845 in the future.
4846 After copying template to i.tm, use i.tm. rather than t-> to
4847 access fields, and make t a const*
4848 Move i.tm.operand_types[] swap to immediately after the copy.
4849
4850Wed Mar 25 13:44:18 1998 Doug Evans <devans@canuck.cygnus.com>
4851
4852 * expr.h (expr_build_uconstant): Add prototype.
4853 (expr_build_unary,expr_build_binary): Add prototypes.
4854 * expr.c (expr_build_uconstant): New function.
4855 (expr_build_unary,expr_build_binary): New functions.
4856
4857Wed Mar 25 13:10:42 1998 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
4858
4859 * gasp.c (IS*): Cast argument to unsigned char, not unsigned int.
4860 * macro.c (macro_expand_body): Increase buffer size.
4861 * messages.c (as_warn): Likewise.
4862 (as_warn_where, as_bad, as_bad_where): Likewise.
4863
4864Wed Mar 25 12:59:07 1998 Ian Lance Taylor <ian@cygnus.com>
4865
4866 Based on patch from H.J. Lu <hjl@gnu.org>:
4867 * Makefile.am (DISTSTUFF): New variable.
4868 (diststuff): New target.
4869 * Makefile.in: Rebuild.
4870
4871Tue Mar 24 16:51:29 1998 Nick Clifton <nickc@cygnus.com>
4872
4873 * config/tc-m32r.h (md_cleanup, md_elf_section_change_hook): Call
4874 m32r_elf_section_change_hook.
4875
4876 * config/tc-m32r.c (m32r_elf_section_change_hook): New function to
4877 emit a nop if a section ends with a 16 bit instruction.
4878
4879Tue Mar 24 19:48:09 1998 Ian Lance Taylor <ian@cygnus.com>
4880
4881 * config/obj-coff.c (obj_coff_bss): Compile unconditionally. Call
4882 s_lcomm rather than obj_coff_lcomm.
4883 (obj_pseudo_table): Compile .bss pseudo-op unconditionally.
4884
4885Tue Mar 24 18:30:58 1998 H.J. Lu <hjl@gnu.org>
4886
4887 * config/tc-i386.h (LinearAddress): Define.
4888 * config/tc-i386.c (md_assemble): If LinearAddress is set for the
4889 instruction, don't use a default segment.
4890
4891Mon Mar 23 18:53:40 1998 Joel Sherrill <joel@OARcorp.com>
4892
4893 * configure.in: (sh*-*-rtems*): Switched from ELF to COFF.
4894 * configure: Rebuild.
4895
4896Fri Mar 20 19:15:44 1998 Ian Lance Taylor <ian@cygnus.com>
4897
4898 * aclocal.m4, configure: Rebuild with libtool 1.2.
4899
4900Thu Mar 19 16:03:12 1998 Nick Clifton <nickc@cygnus.com>
4901
4902 * config/tc-arm.c (md_apply_fix3): fix code to test the range of
4903 PC relative branches. Patch courtesy of Jonathan Walton.
4904
4905
4906Wed Mar 18 09:29:51 1998 Nick Clifton <nickc@cygnus.com>
4907
4908 * configure.in (emulations): Add thumb-pe target.
4909
4910 * configure (emulations): Add thumb-pe target.
4911
49121998-03-17 Ken Raeburn <raeburn@cygnus.com>
4913
4914 * itbl-lex.l (yywrap): Don't define if already defined as a
4915 macro.
4916
4917Fri Mar 13 16:31:38 1998 Tom Tromey <tromey@cygnus.com>
4918
4919 * depend.c (quote_string_for_make): New function.
4920 (wrap_output): Use it.
4921
4922Thu Mar 12 18:28:22 1998 Nick Clifton <nickc@cygnus.com>
4923
4924 * config/obj-elf.c (obj_elf_section): Set bss flag in seg_info
4925 structure if type is SHT_NOBITS. [Bug fix courtesy of rth]
4926
4927Sat Feb 28 17:28:55 1998 Richard Henderson <rth@cygnus.com>
4928
4929 * config/tc-alpha.c (md_shortopts, md_longopts, md_parse_option):
4930 Recognize -GN and -relax.
4931 (md_begin): Initialize gp size from -G switch.
4932 (alpha_force_relocation): Always force if -relax.
4933 (alpha_align): Take a new argument that will specify when to
4934 emit an R_ALPHA_ALIGN relocation (though we don't do that now).
4935 Change all callers. Emit nop alignment padding as nop+unop pair.
4936
4937Sat Feb 28 17:06:22 1998 Richard Henderson <rth@cygnus.com>
4938
4939 * config/obj-elf.c [TC_ALPHA]: Include <elf/alpha.h>.
4940 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): New.
4941
4942Thu Feb 26 15:49:04 1998 Michael Meissner <meissner@cygnus.com>
4943
4944 * config/tc-d30v.c (write_2_short): Delayed jsr instructions don't
4945 require padding to the next long word boundary.
4946
4947Mon Feb 23 11:29:06 1998 Doug Evans <devans@seba.cygnus.com>
4948
4949 * cgen.c: #include symcat.h.
4950 * config/tc-m32r.c: Likewise.
4951
4952Mon Feb 23 10:27:40 1998 Jeffrey A Law (law@cygnus.com)
4953
4954 * config/tc-mips.c (mips_ip, case 'P'): Make 'P' arguments be
4955 absolute expressions instead of '$' prefixed register names.
4956
4957Sat Feb 21 22:36:52 1998 Richard Henderson <rth@cygnus.com>
4958
4959 * read.c (s_set): Record file and line info for symbols when -as.
4960 (pseudo_set): Don't overwrite that dummy fragment.
4961
4962Fri Feb 20 15:03:13 1998 Ian Lance Taylor <ian@cygnus.com>
4963
4964 * config/tc-ppc.c (md_pseudo_table): Add "section".
4965 (ppc_named_section): New static function.
4966
4967Thu Feb 19 22:25:42 1998 Richard Henderson <rth@cygnus.com>
4968
4969 * tc-ppc.c (ppc_biei): Cache the last symbol we inserted
4970 so we don't have to scan the entire list.
4971
4972Tue Feb 17 17:02:15 1998 Fred Fish <fnf@cygnus.com>
4973
4974 * config/tc-d30v.c (parallel_ok): For the explicitly parallel
4975 case, allow the parallel instructions to modify the same flag
4976 bits.
4977
4978Thu Feb 19 16:08:15 1998 Richard Henderson <rth@cygnus.com>
4979
4980 * listing.c (list_symbol_table): Categorize symbols by
4981 undefined_section rather than sy_frag->line == NULL.
4982
4983Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
4984
4985 * Makefile.am (install-exec-local): Install properly when ln
4986 fails or tooldir == prefix.
4987
4988Tue Feb 17 18:58:51 1998 Doug Evans <devans@seba.cygnus.com>
4989
4990 * cgen.c (cgen_md_apply_fix3): Delete call to validate_operand.
4991 Test result of insert_operand for error.
4992
4993Fri Feb 13 16:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
4994
4995 * Makefile.am (AUTOMAKE_OPTIONS): Add cygnus.
4996 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
4997 * doc/Makefile.am (AUTOMAKE_OPTIONS): Define.
4998 * doc/Makefile.in: Rebuild.
4999
5000Fri Feb 13 00:47:44 1998 Ian Lance Taylor <ian@cygnus.com>
5001
5002 * config/tc-mips.c (macro_build): Handle operand type 'C'.
5003 (macro): Fix handling of M_COP[0-3].
5004
5005Thu Feb 12 14:06:59 1998 Ian Lance Taylor <ian@cygnus.com>
5006
5007 Based on patches from Ross Harvey <ross@teraflop.com>:
5008 * macro.c (ISSEP): Only treat '<' and '>' as separator characters
5009 if macro_alternate or macro_mri.
5010 (getstring): Remove support for byte constants between < and >.
5011 (get_any_string): '<' only starts a string if macro_alternate or
5012 macro_mri.
5013 (macro_expand_body): Permit keyword parameters following
5014 positional parameters.
5015
5016 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
5017 * configure.in (alpha*-*-netbsd*): New target.
5018 * config/te-nbsd.h (LOCAL_LABELS_FB): Define.
5019 * configure: Rebuild.
5020
5021 * as.h (flag_warn_suppress_instructionswap): Move from here...
5022 * config/tc-d10v.c (flag_warn_suppress_instructionswap): ...to
5023 here, and make static.
5024
5025 * ehopt.c (eh_frame_code_alignment): Only use seg_info if
5026 BFD_ASSEMBLER or MANY_SEGMENTS.
5027
5028 * as.c (show_usage): Update bug-gnu-utils address.
5029 * gasp.c (show_usage): Likewise.
5030 * doc/as.texinfo (Bug Reporting): Likewise.
5031
5032Wed Feb 11 23:26:28 1998 Jeffrey A Law (law@cygnus.com)
5033
5034 * config/tc-mips.c (load_address): Don't use mips III or mips IV
5035 insns regardless of the size of a pointer if we're in mips I or
5036 MIPS II mode.
5037 (macro, macro2, s_cprestore, s_cpadd): Likewise.
5038
5039Thu Feb 12 03:41:00 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5040
5041Fix rac to accept only a0:
5042 * tc-d10v.c (parallel_ok, find_opcode):
5043 Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
5044 Introduce OPERAND_GPR.
5045
5046Wed Feb 11 16:28:13 1998 Richard Henderson <rth@cygnus.com>
5047
5048 * read.c (s_fill): Handle non-constant repeat counts by creating
5049 an rs_space fragment.
5050
5051Tue Feb 10 18:31:31 1998 Ian Lance Taylor <ian@cygnus.com>
5052
5053 * config/tc-i386.c (i386_operand): Change error added Jan 2 1998
5054 from as_bad to as_warn.
5055
5056Tue Feb 10 18:04:00 1998 Jim Lemke <jlemke@cygnus.com>
5057
5058 * as.c: (perform_an_assembly_pass): Use [TEXT|DATA|BSS]_SECTION_NAME
5059 * as.h: Define default values of [TEXT|DATA|BSS]_SECTION_NAME
5060 * config/obj-elf.c (elf_begin): Use [TEXT|DATA|BSS]_SECTION_NAME
5061
5062Tue Feb 10 17:58:18 1998 Ian Lance Taylor <ian@cygnus.com>
5063
5064 * ehopt.c (eh_frame_code_alignment): If not BFD_ASSEMBLER, use
5065 seg_fix_rotP rather than fix_root from seg_info.
5066
5067Tue Feb 10 15:32:22 1998 Ian Carmichael <iancarm@cygnus.com>
5068
5069 * expr.c: Add support for 0x1_2_3_4 bignums.
5070
5071Tue Feb 10 14:43:40 1998 Ian Lance Taylor <ian@cygnus.com>
5072
5073 * configure.in: Change -linux* to -linux-gnu*.
5074 * configure: Rebuild.
5075
5076 * app.c (do_scrub_begin): Treat \r as whitespace.
5077
5078Mon Feb 9 14:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
5079
5080 * Makefile.am: Update dependencies.
5081 * Makefile.in: Rebuild.
5082
5083Sat Feb 7 15:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
5084
5085 * configure, aclocal.m4: Rebuild with new libtool.
5086
5087Fri Feb 6 16:08:30 1998 Jeffrey A Law (law@cygnus.com)
5088
5089 * config/tc-mips.c (md_begin): If mips_cpu is set, then use it as
5090 the argument to bfd_set_arch_mach.
5091 (load_address): Use bfd_arch_bits_per_address to determine the
5092 bit size of an address instead of looking at the isa level.
5093 (macro, macro2, s_cprestore, s_cpadd): Likewise.
5094
5095Fri Feb 6 14:44:34 1998 Nick Clifton <nickc@cygnus.com>
5096
5097 * config/tc-v850.c (md_parse_option): Add -mv850any command line option.
5098
5099Thu Feb 5 12:39:08 1998 Ian Lance Taylor <ian@cygnus.com>
5100
5101 * ehopt.c: New file.
5102 * as.h (enum _relax_state): Add rs_cfa.
5103 (check_eh_frame, eh_frame_estimate_size_before_relax): Declare.
5104 (eh_frame_relax_frag, eh_frame_convert_frag): Declare.
5105 * read.c (emit_expr): Call check_eh_frame.
5106 * write.c (cvt_frag_to_fill): Handle rs_cfa.
5107 (relax_segment): Likewise.
5108 * Makefile.am: Rebuild dependencies.
5109 (GAS_CFILES): Add ehopt.c.
5110 (GENERIC_OBJS): Add ehopt.o.
5111 * doc/internals.texi (Frags): Document rs_cfa.
5112
5113 * as.c (show_usage): Mention --traditional-format.
5114 (parse_args): Accept --traditional-format.
5115 * as.h (flag_traditional_format): Declare.
5116 * output-file.c (output_file_create): If flag_traditional_format,
5117 set BFD_TRADITIONAL_FORMAT on stdoutput.
5118 * doc/as.texinfo, doc/as.1: Document --traditional-format.
5119
5120 * config/tc-mips.c (append_insn): Make sure that if we have a
5121 fixup for an unmatched %hi reloc, it does not associated with a
5122 variant frag.
5123
5124 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
5125 * doc/Makefile.in: Likewise.
5126
5127Wed Feb 4 15:41:54 1998 Nick Clifton <nickc@cygnus.com>
5128
5129 * config/tc-m32r.c (check_for_side_effects): New function.
5130 (can_make_parallel): Add checks for instruction side effects
5131 clashing with the other instruction.
5132 (assemble_parallel_insn): Improve warning messages. Return error
5133 message from non-swapped instruction order.
5134
5135Wed Feb 4 20:00:26 1998 James G. Smith <jsmith@teknema.demon.co.uk>
5136
5137 * config/tc-arm.c: Rename arm_after_pass_hook() to arm_cleanup().
5138
5139 * config/tc-arm.h: Replace md_after_pass_hook definition with a
5140 md_cleanup definition. This moves the forced literal output to
5141 the end of the source pass, and avoids macro's inserting literals
5142 into the code immediately after the macro expansion.
5143
5144Wed Feb 4 13:17:19 1998 Ian Lance Taylor <ian@cygnus.com>
5145
5146 * config/tc-sparc.h (tc_fix_adjustable) [OBJ_ELF]: A reloc against
5147 a gas internal symbol is adjustable.
5148 * config/tc-ppc.h (tc_fix_adjustable): Likewise.
5149
5150 * as.h: If gcc version greater than 2.6, use `__format__' and
5151 `__printf__' in function attributes, rather than `format' and
5152 `printf'.
5153
5154Mon Feb 2 18:38:18 1998 Ian Lance Taylor <ian@cygnus.com>
5155
5156 * config/tc-sparc.c: Only include elf/sparc.h if OBJ_ELF.
5157
5158Mon Feb 2 18:30:34 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
5159
5160 Add tms320c30 support:
5161 * config/tc-tic30.h: New file.
5162 * config/tc-tic30.c: New file.
5163 * config/obj-coff.h: If TC_TIC30, include coff/tic30.h and define
5164 TARGET_FORMAT as "coff-tic30".
5165 * configure.in (tic30-*-*aout*, tic30-*-*coff*): New targets.
5166 * Makefile.am: Rebuild dependencies.
5167 (CPU_TYPES): Add tic30.
5168 (CPU_OBJ_VALID): tic30-aout is valid.
5169 (TARGET_CPU_CFILES): Add config/tc-tic30.c.
5170 (TARGET_CPU_HFILES): Add config/tc-tic30.h.
5171 * configure, Makefile.in: Rebuild.
5172
5173Mon Feb 2 10:20:37 1998 Nick Clifton <nickc@cygnus.com>
5174
5175 * config/tc-v850.c (md_assemble): Improvements to error messages.
5176
5177Mon Feb 2 12:39:05 1998 Geoff Keating <geoffk@ozemail.com.au>
5178
5179 * config/tc-ppc.c (md_apply_fix3): Change BFD_RELOC_HI16 and
5180 BFD_RELOC_HI16_S to store the high bits of any value.
5181
5182 * config/tc-ppc.h (tc_fix_adjustable): Undo change of Fri Jun 27.
5183 (TC_RELOC_RTSYM_LOC_FIXUP): Don't let the
5184 assembler calculate relocations to any external symbol at all.
5185 * config/tc-ppc.c (md_apply_fix3) [OBJ_ELF]: Correct bugs
5186 involving generation of pc-relative relocs.
5187 (md_pcrel_from_section) [OBJ_ELF]: The job this code used to do
5188 has been moved to md_apply_fix3.
5189
5190 * config/tc-ppc.c (md_apply_fix3): Fix test for too-far branch.
5191 (ppc_elf_suffix): Warn about 'identifier+constant@got' syntax,
5192 which actually means (the address of identifier's GOT entry) +
5193 constant, which is not particularly useful.
5194
5195Fri Jan 30 11:02:35 1998 Doug Evans <devans@canuck.cygnus.com>
5196
5197 * read.h (include_dirs): Declare.
5198 (include_dir_count,include_dir_maxlen): Declare.
5199
5200Fri Jan 30 11:47:02 1998 Ian Lance Taylor <ian@cygnus.com>
5201
5202 * configure.in: Correct check for shared opcodes library.
5203 * configure: Rebuild.
5204
5205 * listing.c (buffer_line): If we can't open the file, set at_end.
5206 (listing_print): Remove unused local variable fi.
5207
5208 * config/m68k-parse.y (reglistpair): Handle register list in
5209 either order.
5210
5211 * config/vms-conf.h: Don't undef VERSION.
5212
5213Thu Jan 29 14:42:44 1998 Pat Rankin <rankin@eql.caltech.edu>
5214
5215 * Makefile.am (CONFIG_OBJS): New variable, containing part of old
5216 OBJS variable.
5217 (GENERIC_OBJS): New variable, with the rest of the old OBJS
5218 variable.
5219 (OBJS): Now just $(CONFIG_OBJS) and $(GENERIC_OBJS).
5220 ($(srcdir)/make-gas.com): Rename from make-gas.com.
5221 (stamp-mk.com): Replace $(OBJS) with $(GENERIC_OBJS).
5222 (EXTRA_DIST): Define.
5223 * vmsconf.sh: Handle {targ-cpu, obj-format, atof-targ} modules
5224 explicitly rather than via the list of object files.
5225 (gcc-as.opt): New file created when make-gas.com is run.
5226 * config-gas.com: Create {targ-cpu.h, obj-format.h, targ-env.h,
5227 itbl-cpu.h} to #include appropriate file rather than copying that
5228 file.
5229 * config/vms-conf.h: Synchronize with current config.in.
5230 * Makefile.in: Rebuild.
5231
5232Thu Jan 29 18:48:19 1998 Bill Moyer <billm@cygnus.com>
5233
5234 * config/tc-d30v.c (do_assemble): Added flag_explicitly_parallel.
5235 (parallel_ok): Relaxed parallel subinstruction dependency check.
5236
5237Wed Jan 28 14:35:00 1998 Bill Moyer <billm@cygnus.com>
5238
5239 * as.h (flag_warn_suppress_instructionswap): added new flag.
5240 * tc-d10v.c (md_parse_option,md_longopts): added "--nowarnswap"
5241 command line argument.
5242 * tc-d10v.c (write_2_short): emit "Swapping instructions"
5243 warning only if flag_warn_suppress_instructionswap is false.
5244
5245Wed Jan 28 16:41:19 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
5246
5247 * configure.in (i386-*-mingw32*): New target.
5248 * configure: Rebuild.
5249
5250Wed Jan 28 14:51:18 1998 Ian Lance Taylor <ian@cygnus.com>
5251
5252 * symbols.c (resolve_symbol_value): Don't set the segment if it
5253 hasn't changed, and this is OBJ_AOUT without BFD_ASSEMBLER.
5254
5255 * config/obj-aout.h (S_IS_LOCAL): Correct typo--pass argument to
5256 S_GET_SEGMENT.
5257
5258Wed Jan 28 13:54:50 1998 Pat Rankin <rankin@eql.caltech.edu>
5259
5260 as.h (unlink): Reverse 13-Feb-97 change; use of unlink vs remove
5261 depends upon HAVE_{UNLINK,REMOVE} values rather than host
5262 compiler.
5263
5264Wed Jan 28 13:48:08 1998 Ian Lance Taylor <ian@cygnus.com>
5265
5266 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Define.
5267
5268Wed Jan 28 09:52:00 1998 Nick Clifton <nickc@cygnus.com>
5269
5270 * config/tc-v850.c (v850_insert_operand): Display instruction when
5271 an error is encountered.
5272
5273Tue Jan 27 13:32:01 1998 Robert Lipe <robertl@dgii.com>
5274
5275 * configure.in (i386-*-sco3.2v5*): Defaults to ELF now.
5276 (i386-*-sco3.2v5*coff): New target.
5277 (i386-*-sco3.2*): New target.
5278 * configure: Rebuild.
5279
5280Tue Jan 27 11:06:52 1998 Nick Clifton <nickc@cygnus.com>
5281
5282 * config/tc-v850.c: Tidy error message production.
5283
5284Tue Jan 27 12:24:32 1998 Ian Lance Taylor <ian@cygnus.com>
5285
5286 * config/tc-arm.c (md_apply_fix3): Add new variable newimm to hold
5287 validate_immediate return value in the right type for comparisons
5288 to FAIL.
5289
5290Tue Jan 27 06:51:59 1998 Richard Henderson <rth@cygnus.com>
5291
5292 * listing.c (MAX_BYTES): Use listing variables not constants.
5293 (data_buffer): No longer an array, but a pointer.
5294 (calc_hex): sizeof(data_buffer) -> MAX_BYTES.
5295 (listing_listing): Allocate data_buffer.
5296
5297Tue Jan 27 06:38:35 1998 Richard Henderson <rth@cygnus.com>
5298
5299 * as.c (parse_args): Add --listing-lhs-width, --listing-lhs-width2,
5300 --listing-rhs-width, --listing-cont-lines.
5301 (show_usage): Update.
5302 * listing.c (listing_lhs_width, listing_lhs_width_second): New vars.
5303 (listing_lhs_cont_lines, listing_rhs_width): New vars.
5304 (print_lines): Use the variables instead of the constants.
5305 (listing_listing): Likewise.
5306 * listing.h: Declare the new vars.
5307
5308Tue Jan 27 05:32:05 1998 Richard Henderson <rth@cygnus.com>
5309
5310 * as.c (parse_args): Add --keep-locals alias for -L.
5311 Add --strip-local-absolute.
5312 (show_usage): Update.
5313 * as.h (flag_strip_local_absolute): New flag.
5314 * symbols.c (S_IS_LOCAL): Use it.
5315 * config/obj-aout.h (S_IS_LOCAL): Likewise.
5316 * config/obj-bout.h (S_IS_LOCAL): Likewise.
5317 * config/obj-coff.h (S_IS_LOCAL): Likewise.
5318
5319Mon Jan 26 13:07:41 1998 Nick Clifton <nickc@cygnus.com>
5320
5321 * config/tc-m32r.c: Detect if explicitly parallel instructions
5322 might have an io conflict and issue a warning message.
5323
5324Thu Jan 22 17:51:44 1998 Nick Clifton <nickc@cygnus.com>
5325
5326 * cgen.c (cgen_save_fixups, cgen_restore_fixups,
5327 cgen_swap_fixups): Functions to save, restore and swap the fixup
5328 chain with a backup copy.
5329 (cgen_asm_finish_insn): Returns address of constructed insn.
5330
5331Wed Jan 21 16:49:10 1998 Richard Henderson <rth@cygnus.com>
5332
5333 * listing.c (file_info_struct): Remove FILE, add POS.
5334 (last_open_file_info, last_open_file): New; a one entry FILE* cache.
5335 (file_info): Don't open the file.
5336 (buffer_line): Check for the file in the last_open cache, updating
5337 as necessary.
5338 (print_source): Don't reference file_info->file.
5339 (listing_listing): Likewise.
5340 (listing_print): Close the file in the cache, if any.
5341
5342Fri Jan 16 14:51:48 1998 Ian Lance Taylor <ian@cygnus.com>
5343
5344 * read.c (dwarf_file_string): New file static variable.
5345 (emit_expr): Look for constant sequence that leads up to a file
5346 name in DWARF debugging output.
5347 (stringer): Use dwarf_file_string to decide whether to accept a
5348 string as a file name.
5349
5350Fri Jan 16 11:30:37 1998 Richard Henderson <rth@cygnus.com>
5351
5352 * tc-m68k.c (m68k_ip): Remove absl->reglst MRI hack.
5353 (crack_operand): Add reg->reglst MRI hack.
5354 (r_seg): Put reglst symbols in reg_section.
5355 (m68k_frob_symbol): Frob reglst symbols into absolute_section.
5356
5357Thu Jan 15 14:19:01 1998 Richard Henderson <rth@cygnus.com>
5358
5359 * tc-sh.c (get_specific): Handle SGR & DBR.
5360
5361Thu Jan 15 13:46:48 1998 Richard Henderson <rth@cygnus.com>
5362
5363 * tc-h8300.c (parse_reg): Take the length of the symbol into
5364 account when attempting to match a register name.
5365 * tc-h8500.c (parse_reg): Likewise.
5366
5367Wed Jan 14 17:52:33 1998 Nick Clifton <nickc@cygnus.com>
5368
5369 * cgen.c: Formatting changes to improve readability.
5370
5371Wed Jan 14 15:41:41 1998 Jeffrey A Law (law@cygnus.com)
5372
5373 * config/tc-mips.c (macro): Rework division code to avoid unfilled
5374 delay slot.
5375
5376Wed Jan 14 18:04:20 1998 Michael Meissner <meissner@cygnus.com>
5377
5378 Based on a patch from Jim Wilson
5379 * config/tc-d30v.c (do_assemble): Remove non-ansi default case.
5380 (tc_gen_reloc): Handle cross section PC relative relocs
5381 correctly.
5382
5383Wed Jan 14 15:02:19 1998 Doug Evans <devans@seba.cygnus.com>
5384
5385 * config/tc-mips.c (mips_ip): Don't test pinfo flags if INSN_MACRO.
5386
5387Mon Jan 12 13:04:57 1998 Doug Evans <devans@seba.cygnus.com>
5388
5389 * cgen.c: #include setjmp.h. Clean up pass over `struct foo' usage.
5390 (expr_jmp_buf): New static local.
5391 (cgen_parse_operand): Allow use of longjmp in parsing to handle errors.
5392 (cgen_md_operand): New function.
5393 * tc-m32r.c: Clean up pass over `struct foo' usage.
5394 (md_estimate_size_before_relax): Use CGEN_INSN_MNEMONIC.
5395
5396Tue Jan 6 15:36:02 1998 Richard Henderson <rth@cygnus.com>
5397
5398 * symbols.c (S_SET_SEGMENT): Don't set the segment for section syms.
5399 (S_IS_EXTERNAL, S_IS_LOCAL): Correct parenthetication.
5400
5401Fri Jan 2 16:08:54 1998 Ian Lance Taylor <ian@cygnus.com>
5402
5403 * config/tc-i386.c (i386_operand): Give an error if there are
5404 unrecognized characters after an expression.
5405
5406For older changes see ChangeLog-9697
This page took 0.256632 seconds and 4 git commands to generate.