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