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