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