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