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