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