Fix os_printf_filtered; Flush stdout after calling printf_filtered
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
80633e8e
ILT
1Wed Mar 12 11:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
2
3 * doc/as.texinfo (bss): Improve description of .bss section. In
4 ELF or COFF, you are permitted to switch into the section.
5 (Comm): Rewrite description of common symbols.
6 (Lcomm): Mention that some targets permit a third argument.
7
6d8dfa04
ILT
8Tue Mar 11 01:13:31 1997 Ian Lance Taylor <ian@cygnus.com>
9
9be8c0f1
ILT
10 * config/tc-ppc.c (ppc_elf_lcomm): Don't call S_CLEAR_EXTERNAL.
11
92b7bfb7
ILT
12 * symbols.c (colon): Change type of local to int. From Alan Modra
13 <alan@spri.levels.unisa.edu.au>.
14
e053e8c1
ILT
15 * config/tc-m88k.c (m88k_do_align): Don't use a special nop
16 alignment if a zero fill pattern was explicitly specified.
17 * config/tc-sh.c (sh_do_align): Likewise.
18
842b6b06
ILT
19 * read.c (equals): Always permit register names to be redefined.
20
ee2c03ed
ILT
21 * config/tc-mips.c (mips_fix_adjustable): Permit a reloc against a
22 mips16 symbol to be adjusted if a symbol is being subtracted from
23 it.
24
6d8dfa04
ILT
25 From Eric Youngdale <eric@andante.jic.com>:
26 * config/obj-elf.c (obj_elf_symver): Check for duplicate or
27 illegal symbol version names.
28 (elf_frob_symbol): Check for external default versions.
29
d88cc85d
ILT
30Sun Mar 9 23:49:12 1997 Ian Lance Taylor <ian@cygnus.com>
31
32 From Eric Youngdale <eric@andante.jic.com>:
33 * config/obj-elf.h (struct elf_obj_sy): Define.
34 (OBJ_SYMFIELD_TYPE): Define to elf_obj_sy struct. Change all
35 users.
36 * config/obj-elf.c (obj_elf_symver): Just record the name.
37 (obj_symbol_new_hook): Initialized versioned_name field.
38 (elf_frob_symbol): If there is a versioned_name, either rename the
39 symbol, or add an alias with that name.
40
a405bb3e
JL
41Thu Mar 6 13:55:32 1997 Jeffrey A Law (law@cygnus.com)
42
ef03fee0
JL
43 * config/tc-mn10300.c (md_relax_table): Define.
44 (md_convert_frag): Implement.
45 (md_assemble): Handle relaxable operands/instructions correctly.
46 (md_estimate_size_before_relax): Implement.
47 * config/tc-mn10300.h (TC_GENERIC_RELAX_TABLE): Define.
48
27103699
JL
49 * config/tc-mn10200.c (md_relax_table): Fix typos.
50
a405bb3e
JL
51 * config/tc-mn10300.c (md_assemble): Don't use any MN10300 specific
52 relocs anymore. Tweak fx_offset for pc-relative relocs.
53
d6545e3f
ILT
54Wed Mar 5 15:46:16 1997 Ian Lance Taylor <ian@cygnus.com>
55
56 * cond.c (s_ifc): Call mri_comment_field and mri_comment_end when
57 in MRI mode.
58
e74539b8
FF
59start-sanitize-tic80
60Tue Mar 4 19:34:21 1997 Fred Fish <fnf@cygnus.com>
61
1ea52646
FF
62 * config/tc-tic80.c (md_pseudo_table): Add "sect" and "section"
63 pseudo-ops.
e74539b8
FF
64 * config/tc-tic80.c (md_begin): Declare external variable
65 coff_flags and insert an F_AR32WR bit into it.
66
67end-sanitize-tic80
68Tue Mar 4 10:01:04 1997 Ian Lance Taylor <ian@cygnus.com>
69
70 * read.c (equals): Add reassign parameter. Change all callers.
71 * read.h (equals): Update declaration.
72
a941619c
ILT
73Sat Mar 1 01:04:04 1997 Ian Lance Taylor <ian@cygnus.com>
74
75 * config/tc-mips.c (mips16_extended_frag): Don't assume that we
76 can rely on the frag address to determine whether a frag is
77 earlier or later.
78
23604921
ILT
79Fri Feb 28 14:40:00 1997 Ian Lance Taylor <ian@cygnus.com>
80
81 * write.h (LOCAL_LABEL): Only define if not BFD_ASSEMBLER.
82 (S_LOCAL_NAME): Likewise.
83 (FAKE_LABEL_NAME): Define unconditionally.
84 * symbols.c (colon): Call bfd_is_local_label, not LOCAL_LABEL, if
85 BFD_ASSEMBLER.
86 (S_IS_LOCAL): Call bfd_is_local_label_name, not LOCAL_LABEL.
87 * config/tc-*.h: Only define LOCAL_LABEL if not BFD_ASSEMBLER.
88 Don't define FAKE_LABEL_NAME.
89 * config/te-ic960.h: Likewise.
90 * config/tc-mips.h (tc_frob_file_before_adjust): Define.
91 (mips_frob_file_before_adjust): Declare.
92 * config/tc-mips.c (mips_frob_file_before_adjust): New function.
93 (mips_local_label): Remove.
94
95 * config/te-sco386.h: Remove; not used.
96
a88ce21e
FF
97start-sanitize-tic80
98Thu Feb 27 15:39:16 1997 Fred Fish <fnf@cygnus.com>
99
100 * config/tc-tic80 (md_pseudo_table): Add align pseudo op to do
101 byte alignment rather than power-of-two alignment that is the
102 GAS default.
103
104end-sanitize-tic80
0f68bf0a
ILT
105Thu Feb 27 13:29:04 1997 Ian Lance Taylor <ian@cygnus.com>
106
e053e8c1 107 * config/tc-m68k.c (md_assemble): Handle a reloc width of 'W'.
f396c4ef 108
0f68bf0a
ILT
109 * gasp.c (hash_add_to_string_table): Correct misspelling in error
110 message, and add newline.
111 (process_file): Don't process assignments in the label if this is
112 a equ or assign pseudo-op.
113 (process_pseudo_op): Swap first argument to do_assign for K_ASSIGN
114 and K_EQU, to match documentation.
115
0fe302ac
MM
116Thu Feb 27 12:00:03 1997 Michael Meissner <meissner@cygnus.com>
117
118 * config/obj-coff.c (obj_coff_section): Add 'r' section attribute
119 to denote read-only data sections.
120
30d0557c
ILT
121Thu Feb 27 00:26:33 1997 Ian Lance Taylor <ian@cygnus.com>
122
35c64f24
ILT
123 * config/obj-elf.c (obj_elf_common): Set BSF_OBJECT in flags.
124 * config/tc-sparc.c (s_common): Likewise, if BFD_ASSEMBLER.
125
30d0557c
ILT
126 * expr.c (operand): Simplify 0b handling. Don't treat 0b as a
127 binary number if the next character is '+' or '-'.
128
1e12595d
FF
129start-sanitize-tic80
130Wed Feb 26 20:47:12 1997 Fred Fish <fnf@cygnus.com>
131
132 * config/tc-tic80.c (FLT_CHARS): Change from "dD" to "fF".
133 (find_opcode): Match operands that can be floats.
134 (build_insn): Handle O_big (float) expressions and build
135 correct opcode.
136
137end-sanitize-tic80
af942793
SS
138Wed Feb 26 18:19:00 1997 Stan Shebs <shebs@andros.cygnus.com>
139
140 * configure.in (mips*-*-lnews*): New target, also make empty
141 emulation list for this target.
142 * configure: Update.
143 * tc-mips.c (ECOFF_LITTLE_FORMAT): Define.
144 (mips_target_format): Use.
145 * te-lnews.h: New file.
146
f92f247b
FF
147start-sanitize-tic80
148Wed Feb 26 15:33:46 1997 Fred Fish <fnf@cygnus.com>
149
150 * config/tc-tic80.c (find_opcode, build_insn): Changes to match
151 operands with :m or :s modifiers and generate the right opcodes
152 for them.
153
154end-sanitize-tic80
7a515708
ILT
155Wed Feb 26 11:56:11 1997 Ian Lance Taylor <ian@cygnus.com>
156
157 * Makefile.in (itbl-parse.c itbl-parse.h): Use $(BISON) and
158 $(BISONFLAGS), not $(YACC) and $(YACCFLAGS).
159
55be99d6
ILT
160Tue Feb 25 22:02:23 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
161
162 * config/tc-m68k.c (instring): Useless local declaration of
163 crack_operand removed.
164 * expr.h (expressionS): Changed type of X_op field to operatorT if
165 __GNUC__.
166
28d8c671
ILT
167Tue Feb 25 13:17:27 1997 Ian Lance Taylor <ian@cygnus.com>
168
034988c6
ILT
169 Based on patches from Robert Lipe <robertl@dgii.com>:
170 * configure.in: Add i386coff and i386elf to emulation list.
171 * configure: Rebuild.
172 * as.c (i386coff, i386elf): Declare.
173 * obj.h (coff_format_ops): Declare.
174 * config/obj-coff.c (OBJ_HEADER): Define.
175 (coff_obj_symbol_new_hook): Rename from obj_symbol_new_hook.
176 (coff_obj_read_begin_hook): Rename from obj_read_begin_hook.
177 (obj_pseudo_table): Add "version".
178 (coff_pop_insert): New static function.
179 (coff_sec_sym_ok_for_reloc): New static function.
180 (no_func): New static function.
181 (coff_format_ops): New variable.
182 * config/obj-coff.h (coff_obj_symbol_new_hook): Declare.
183 (obj_symbol_new_hook): Define.
184 (coff_obj_read_begin_hook): Declare.
185 (obj_read_begin_hook): Define.
186 * config/tc-i386.h (i386_target_format): Declare.
187 * config/tc-i386.c: Check OBJ_MAYBE_ELF as well as OBJ_ELF; check
188 OUTPUT_FLAVOR when appropriate.
189 (i386_target_format): New function.
190 * Makefile.in (obj-coff.o): New target.
191 (e-i386coff.o, e-i386elf.o): New targets.
192
a0c4a241
ILT
193 From Stephen Williams <steve@icarus.icarus.com>:
194 * config/tc-i960.h (TC_SYMFIELD_TYPE): Define if OBJ_COFF.
195 (_tc_get_bal_of_call): Don't declare.
196 (tc_get_bal_of_call): Declare as function, don't define as macro.
197 * config/tc-i960.c (tc_set_bal_of_call): If OBJ_COFF, store balP
198 in sy_tc field, not x_balntry field.
199 (tc_get_bal_of_call): Rename from _tc_get_bal_of_call. Change
200 return type to symbolS *. If OBJ_COFF, retrieve value from sy_tc
201 field, not x_balntry field.
202
203 * config/obj-elf.c (obj_elf_section): Permit a .note section to
204 have the SHF_ALLOC attribute.
205
a90512ad
ILT
206 * Makefile.in ($(OBJS)): Don't depend upon $(IT_HDRS).
207 (TARG_CPU_DEP_mips): Depend upon $(srcdir)/itbl-ops.h.
208 (itbl-lex.o): Depend upon itbl-parse.h.
209
210 * itbl-parse.y (yyerror): Change return type to int. Change to
211 use old style function declaration.
212
ee5cb7fe
ILT
213 * Makefile.in (itbl-lex.o): Remove -Wall.
214 (itbl-parse.o): Likewise.
215
28d8c671
ILT
216 * cond.c (s_ifdef): If we should omit conditionals from listings,
217 call listing_list.
218 (s_if, s_ifc, s_endif, s_else, s_ifeqs): Likewise.
219 * listing.c (list_info_struct): Add EDICT_NOLIST_NEXT.
220 (listing_listing): Handle EDICT_NOLIST_NEXT.
221 (listing_list): An argument of 2 means EDICT_NOLIST_NEXT.
222 * listing.h (LISTING_NOCOND): Define.
223 (LISTING_SKIP_COND): Define.
224 * as.c (show_usage): Mention c as a suboption of -a.
225 (parse_args): Handle c as a suboption of -a.
226 * doc/as.texinfo: Document -alc.
227
b16a8c8e
FF
228start-sanitize-tic80
229Mon Feb 24 23:34:14 1997 Fred Fish <fnf@cygnus.com>
230
231 * config/tc-tic80.c (md_apply_fix): Handle R_ABS type fixups.
232
233end-sanitize-tic80
234Mon Feb 24 18:27:43 1997 Eric Youngdale <eric@andante.jic.com>
235
236 * doc/as.texinfo: Document .symver.
237
4d3410fd
MH
238Mon Feb 24 15:19:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
239
240 * config/tc-d10v.c: Change pre_defined_registers to
241 d10v_predefined_registers and reg_name_cnt to d10v_reg_name_cnt.
242
ec72a266
FF
243Mon Feb 24 10:40:45 1997 Fred Fish <fnf@cygnus.com>
244
245 * config/obj-coff.c: Fix typo in comment section.
246start-sanitize-tic80
247 * config/tc-tic80.c (md_pseudo_table): Add entry for bss, which takes
248 an additional alignment argument.
249 (find_opcode): Allow O_symbol relocs for any 32 bit field, not just
250 base relative ones.
251 (build_insn): Handle O_symbol relocs for any 32 bit field, not just
252 base relative ones.
253end-sanitize-tic80
254
16aef5b0
DP
255Mon Feb 24 02:23:00 1997 Dawn Perchik <dawn@cygnus.com>
256
257 * Makefile.in: Remove dependancies on itbl-cpu.h.
258 * as.c: Define stubs for itbl_parse and itbl_init if HAVE_ITBL_CPU
259 is not defined.
260
ac6c6bdb
DP
261Mon Feb 24 02:03:00 1997 Dawn Perchik <dawn@cygnus.com>
262
263 * itbl-ops.h: Include as.h.
264
72797ffa
DP
265Mon Feb 24 01:04:00 1997 Dawn Perchik <dawn@cygnus.com>
266
267 * as.c: Remove -t option.
268 * configure, configure.in: Move itbl-cpu.h to mips specific configure.
269 * itbl-ops.h: Include itbl-cpu.h only if HAVE_ITBL_CPU is defined.
270 * config/tc-mips.h: Define HAVE_ITBL_CPU.
271
2f671f84
DP
272Sun Feb 23 18:01:00 1997 Dawn Perchik <dawn@cygnus.com>
273
274 * itbl-ops.c: Don't define DEBUG.
275
f9f0539f
DP
276Sun Feb 23 17:49:00 1997 Dawn Perchik <dawn@cygnus.com>
277
278 * Makefile.in: Update itbl-test.c to reflect its new location.
279
8d8a790b
DP
280Sun Feb 23 15:50:00 1997 Dawn Perchik <dawn@cygnus.com>
281
282 * itbl-ops.c: Add test for itbl_have_entries.
283 * config/tc-mips.c: Remove test for itbl_have_entries.
284 * config/tc-mips.h: Define tc_init_after_args to mips_init_after_args.
285
7b9f3d46
ILT
286Sun Feb 23 18:13:19 1997 Ian Lance Taylor <ian@cygnus.com>
287
288 * Makefile.in (DISTSTUFF): Remove itbl-parse.y, itbl-lex.l, and
289 itbl-ops.c. Add itbl-parse.c and itbl-lex.c.
290 (LEX, LEXFLAGS): Define.
291 * itbl-ops.c (append_insns_as_macros): Remove bogus ASSERT.
292
efec4a28
DP
293Sat Feb 22 21:25:00 1997 Dawn Perchik <dawn@cygnus.com>
294
295 * itbl-parse.y: Fix indentation mistakes from indent program.
296 * itbl-lex.l: Fix indentation mistakes from indent program.
297 * itbl-ops.h: Add include for ansidecl.h.
298 Add PARAMS around function arguments.
299 Add declaration for itbl_have_entries.
300 * itbl-ops.c: Add PARAMS around function arguments.
301 * Makefile.in: Add itbl build rules.
302 Add dependancies for itbl files to mips target.
303 * as.c: Add itbl support.
304 Add new option "--insttbl" for dynamically extending instruction set.
305 * as.h: Declare insttbl_file_name;
306 the name of file defining extensions to the basic instruction set
307 * configure.in, configure: Add itbl-parse.o, itbl-lex.o, and
308 itbl-ops.o to extra_objects for mips configuration.
309 Add include file link from itbl-cpu.h to
310 config/itbl-${target_cpu_type}.h.
311 * config/tc-mips.c: Allow copz instructions.
312 Add notes for future additions to the itbl support.
313 Add debug macros.
314 (macro): Call itbl_assemble to assemble itbl instructions.
315 See if an unknown register is specified in an itbl entry.
316
d160b69e
FF
317Sat Feb 22 20:53:01 1997 Fred Fish <fnf@cygnus.com>
318 * doc/internals.texi (CPU backend): Fix typo in md_section_align
319 description.
320start-sanitize-tic80
321 * config/tc-tic80.h (NEED_FX_R_TYPE): Define.
322 * config/tc-tic80.c (find_opcode): Add code to support O_symbol
323 operands.
324 (build_insn): Grab a frag early so we can use the address in
325 fixups. Take one's complement of BITNUM values before insertion
326 in opcode. Add code to support O_symbol operands.
327 (md_apply_fix): Replace unimplemented warning with implementation.
328 (md_pcrel_from): Ditto.
329 (tc_coff_fix2rtype): Ditto.
330end-sanitize-tic80
331
09d9ef26 332Fri Feb 21 14:34:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1b524697
MH
333start-sanitize-d30v
334 * config/tc-d30v.c (parallel_ok): New function.
335 * config/tc-d30v.h: Define TARGET_BYTES_BIG_ENDIAN.
336end-sanitize-d30v
09d9ef26
MH
337 * config/tc-d10v.c (md_pcrel_from_section): Return 0 if
338 relocation is in different section. Fixes PR11574.
339
e2e5acfa
JW
340Fri Feb 21 10:08:25 1997 Jim Wilson <wilson@cygnus.com>
341
342 * tc-mips.c (mips_ip): If configured for an embedded ELF system,
343 don't set the section alignment to 2**4.
344
fee3e248
ILT
345Fri Feb 21 11:55:03 1997 Ian Lance Taylor <ian@cygnus.com>
346
b2f7cdd0
ILT
347 * config/tc-m68k.c (line_comment_chars): Add '*'.
348
830ce631
ILT
349 * app.c (LEX_IS_TWOCHAR_COMMENT_2ND): Don't define.
350 (do_scrub_begin): Don't set lex['*'].
351 (do_scrub_chars): When handling LEX_IS_TWOCHAR_COMMENT_1ST, don't
352 check for LEX_IS_TWOCHAR_COMMENT_2ND. Instead, just check for
353 a literal '*'.
354
fee3e248
ILT
355 * configure.in: Set em=svr4 for m68k-*-sysv4*.
356 * configure: Rebuild.
357 * config/te-svr4.h: New file.
358 * config/tc-m68k.c (m68k_comment_chars): Only include `#' if
359 TE_SVR4 or TE_DELTA.
360
48242b28
JL
361Thu Feb 20 22:24:39 1997 Jeffrey A Law (law@cygnus.com)
362
363 * config/tc-mn10200.c (md_convert_frag): Create a fixup for the
364 short conditional branch around a long unconditional branch.
365
1af411e1
ILT
366Thu Feb 20 13:56:00 1997 Ian Lance Taylor <ian@cygnus.com>
367
64c5df8d
ILT
368 * config/obj-coff.c (obj_coff_ln [both versions]): Call
369 new_logical_line.
370
1af411e1
ILT
371 * config/tc-arm.c (fix_new_arm): Use make_expr_symbol to handle a
372 complex expression.
373
374 * symbols.c (resolve_symbol_value): If both left and right
375 operands are undefined, warn about both of them.
376
78673fc6
ILT
377Wed Feb 19 00:53:28 1997 Ian Lance Taylor <ian@cygnus.com>
378
dd7feeb5
ILT
379 Based on patches from Eric Youngdale <eric@andante.jic.com>:
380 * config/obj-elf.c (elf_pseudo_table): Add "symver".
381 (obj_elf_symver): New static function.
382 * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy the st_other
383 field.
384
385 * write.c (relax_segment): Make type and printf format agree.
386
78673fc6
ILT
387 * read.c (get_line_sb): Don't end the line on a semicolon inside a
388 string.
389
14f23c28
MH
390start-sanitize-d30v
391Tue Feb 18 18:42:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
392
393 * config/tc-d30v.c, config/tc-d30v.h: New files.
394
395 * configure: Rebuilt.
396
397 * configure.in: Add case for d30v.
398
399end-sanitize-d30v
400Sun Feb 16 17:47:29 1997 Fred Fish <fnf@toadfish.ninemoons.com>
401
402 * config/tc-alpha.h (md_operand): Define with a null expansion,
403 like all the other targets.
404 * doc/internals.texi (CPU backend): Add missing word in
405 md_flush_pending_output description. Fix typo in md_convert_frag
406 description.
407start-sanitize-tic80
408 * config/tc-tic80: Minor comment additions/changes.
409end-sanitize-tic80
410
b253dcff
ILT
411Fri Feb 14 18:09:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
412
413 * config/tc-m68k.c (LOCAL_LABEL): Macro redefined if TE_DELTA.
414 (tc_canonicalize_symbol_name): Macro defined if TE_DELTA.
415 * config/obj-coff.c (obj_coff_def): Use
416 tc_canonicalize_symbol_name if defined.
417 (obj_coff_tag, obj_coff_val): Likewise.
418 * expr.c (operand): Reject '~' as operator if is_name_beginner.
419
d7bf6158
ILT
420Fri Feb 14 17:24:48 1997 Ian Lance Taylor <ian@cygnus.com>
421
f5ed78de
ILT
422 Based on notes from Peter Eriksson <peter@ifm.liu.se>. The target
423 does not actually work, though:
424 * configure.in (i386-sequent-bsd*): New target.
425 * configure: Rebuild.
426 * config/tc-dynix.h: New file.
427 * config/tc-i386.h: Define TARGET_FORMAT if TE_DYNIX.
428
d7bf6158
ILT
429 * read.c (do_align): Add max parameter. Change all callers.
430 Remove useless static variables.
431 (s_align): New static function. Do common portion of
432 s_align_bytes and s_align_ptwo.
433 (s_align_bytes, s_align_ptwo): Just call s_align.
434 * frags.c (frag_align): Add max parameter. Change all callers.
435 (frag_align_pattern): Likewise.
436 * frags.h (frag_align, frag_align_pattern): Update declarations.
437 * write.c (relax_segment): Limit alignment change to fr_subtype.
438 Fix some types to be addressT.
439 * config/obj-coff.c (size_section): Likewise.
440 * config/obj-ieee.c (size_section): Likewise.
441 * config/tc-d10v.h (md_do_align): Add max parameter.
442 * config/tc-i386.h (md_do_align): Likewise.
443 * config/tc-m88k.h (md_do_align): Likewise.
444 * config/tc-m88k.c (m88k_do_align): Likewise.
445 * config/tc-sh.h (md_do_align): Likewise.
446 * config/tc-sh.c (sh_do_align): Likewise.
447 * as.h: Improve comments on rs_align and rs_align_code.
448 * doc/as.texinfo: Document new alignment arguments.
449 * doc/internals.texi (Frags): Document use of fr_subtype field for
450 rs_align and rs_align_code.
451
452Fri Feb 14 15:56:06 1997 Gavin Koch <gavin@cygnus.com>
453
454 * config/tc-mips.c: Changed opcode parsing.
455
16171d71
FF
456Thu Feb 13 20:02:16 1997 Fred Fish <fnf@cygnus.com>
457
458 * config/{tc-alpha.h, tc-arc.h, tc-d10v.h, tc-generic.h, tc-i960.h,
459 tc-mn10200.h, tc-mn10300.h, tc-sh.h, tc-v850.h, tc-vax.h, tc-w65.h}:
460 Add default definition of zero for TARGET_BYTES_BIG_ENDIAN.
461 * config/{tc-arm.h, tc-hppa.h, tc-i386.h, tc-mips.h, tc-ns32k.h,
462 tc-ppc.h, tc-sparc.h}: Move definition of TARGET_BYTES_BIG_ENDIAN
463 to a location consistent with the rest of the target include files.
464 * config/tc-i386.c: Remove misleading comment.
465 * doc/internals.texi (CPU backend): Add description of function
466 md_undefined_symbol.
467start-sanitize-tic80
468 * config/tc-tic80.c: Add code to insert predefined symbols into the
469 symbol table so they can be parsed by the standard expression parser.
470 Remove custom code that use to parse them.
471 * config/tc-tic80.h: Move definition of TARGET_BYTES_BIG_ENDIAN
472 to a location consistent with the rest of the target include files.
473end-sanitize-tic80
474
9f13ead9
ILT
475Thu Feb 13 21:44:18 1997 Klaus Kaempf <kkaempf@progis.de>
476
477 * as.h: GNU c provides unlink() function.
478
479 Unify section handling on openVMS/Alpha:
480 * config/tc-alpha.c(s_alpha_link): Remove.
481 (s_alpha_section): New function.
482 Remove case-hacking of symbols
483 Add .code_address pseudo-op.
484 (BFD_RELOC_ALPHA_CODEADDR): New relocation.
485 (s_alpha_code_address): New function.
486 (alpha_ctors_section, alpha_dtors_section): New sections for C++
487 static constructors/destructors.
488 Add debug code for crash debugs, to be removed when traceback code
489 is added to object code.
490 (s_alpha_name): New function for .name pseudo-op.
491 (alpha_print_token): New function to print token expressions with
492 alpha specific extensions.
493
494 * makefile.vms: Allow compilation with current gcc snapshot.
495
af16e411
FF
496Thu Feb 13 16:29:04 1997 Fred Fish <fnf@cygnus.com>
497
498 * doc/Makefile.in (TEXI2DVI): Set to just name of program.
499 (DVIPS): Set to dvips.
500 (ps, as.ps, gasp.ps): New targets.
501 (internals.info, gasp.dvi, internals.dvi): Set both TEXINPUTS
502 and MAKEINFO env variables.
503 (internals.ps): Use DVIPS macro.
504 (clean): Remove core and backup files.
505 (distclean): Remove temporary files from building internals.
506 (clean-dvi): Ditto.
507 * doc/internals.texi (Frags): Fix typo.
508 (GAS processing): Ditto.
509 (CPU backend): Ditto.
510 * ecoff.c (init_file): Use TARGET_BYTES_BIG_ENDIAN value directly.
511 * mpw-config.in: Define TARGET_BYTES_BIG_ENDIAN as 1.
512 * read.c: Remove ugly hack that dealt with config files not
513 correctly defining TARGET_BYTES_BIG_ENDIAN.
514 (target_big_endian): Use TARGET_BYTES_BIG_ENDIAN directly.
515 * config/arm-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
516 * config/arm-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0.
517 * config/mips-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
518 * config/mips-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0.
519 * config/ppc-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
520 * config/ppc-sol.mt: Replace TARGET_BYTES_LITTLE_ENDIAN
521 with TARGET_BYTES_BIG_ENDIAN defined to 0.
522 * config/tc-arm.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN
523 and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just
524 whether it is defined or not.
525 * config/tc-mips.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN.
526 * config/tc-ppc.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN
527 and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just
528 whether it is defined or not.
529start-sanitize-tic80
530 * config/tic80.h (TARGET_FORMAT): Define to coff-tic80.
531 (TARGET_BYTES_BIG_ENDIAN): Define to 0.
532end-sanitize-tic80
533
89b41978
DE
534Thu Feb 13 14:40:16 1997 Doug Evans <dje@canuck.cygnus.com>
535
536 * write.c (write_relocs): Correct text in as_fatal error message,
537 bfd_perform_relocation -> bfd_install_relocation.
538
151c3ec0
ILT
539Thu Feb 13 14:48:03 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
540
541 * config/tc-m68k.c (LEX_TILDE): Define if TE_DELTA.
542 * read.c (LEX_TILDE): Define if not defined.
543 (lex_type): Use LEX_TILDE.
544 * expr.c (get_symbol_end): Check first char with is_name_beginner,
545 not is_part_of_name.
546
4a1cb507
ILT
547Thu Feb 13 11:40:58 1997 Ian Lance Taylor <ian@cygnus.com>
548
3de9d78c
ILT
549 * config/tc-sparc.c (md_show_usage): Add missing backslash at end
550 of continued line.
551
319305a7
ILT
552 * config/tc-mips.c (mips16_extended_frag): Correct base address
553 for an extended PC relative instruction.
554 (md_convert_frag): Likewise.
555
4a1cb507
ILT
556 * config/tc-mips.c (prev_nop_frag): New static variable.
557 (prev_nop_frag_holds): New static variable.
558 (prev_nop_frag_required): New static variable.
559 (prev_nop_frag_since): New static variable.
560 (append_insn): If we aren't reordering, and prev_nop_frag is not
561 NULL, and we don't need any nops, then decrease the size of
562 prev_nop_frag. Don't insert nops because of instructions in
563 noreorder sections. Remember whether the previous instructions
564 where in noreorder sections even when not reordering.
565 (mips_no_prev_insn): Add preserver parameter. Change all
566 callers. Refer prev_nop_frag variables when appropriate.
567 (mips_emit_delays): Set up prev_nop_frag.
568 (s_mipsset): Clear prev_nop_frag if reordering.
569
ebf28372
ILT
570Wed Feb 12 14:36:29 1997 Ian Lance Taylor <ian@cygnus.com>
571
9cd4e6cc
ILT
572 * config/tc-mips.c (append_insn): Remove useless code which
573 handled swapping a mips16 jump with a mips16 instruction with a
574 reloc.
575
05874c2e
ILT
576 * config/tc-mips.c (md_parse_option): When debugging, set
577 mips_optimize to 1, not 0.
578
56bb6eee
ILT
579 * config/tc-mips.c (mips16_ip): Handle an extend operand.
580
eb17f56c
ILT
581 * config/tc-mips.c (my_getExpression): In mips16 mode, if it looks
582 like the expression was based on `.', adjust the value of the
583 symbol.
584
035936da 585 * config/tc-mips.c (append_insn): Warn about an attempt to put an
c0df26bb 586 extended instruction in a delay slot when not reordering.
035936da
ILT
587 (md_convert_frag): Warn if an extended instruction appears in a
588 delay slot.
589
ed3eb786
ILT
590 * config/tc-mips.c (mips_pseudo_table): Add "insn".
591 (s_insn): New static function.
592 * doc/c-mips.texi: Document .insn.
593
ebf28372
ILT
594 * config/tc-mips.c (md_begin): Add the general registers to the
595 symbol table.
596 (mips16_ip): First parse the expression, and then see whether it
597 came up with a register, rather than trying to first see whether
598 we are looking at a register.
599
11e08196
FF
600start-sanitize-tic80
601Tue Feb 11 15:13:39 1997 Fred Fish <fnf@cygnus.com>
602
603 * config/tc-tic80.c: Numerous changes and additions to flesh
604 out functions that were previously just stubs, and fix some
605 problems found using the new TIc80 testsuite cases.
606
607end-sanitize-tic80
16262668
ILT
608Tue Feb 11 15:52:22 1997 Ian Lance Taylor <ian@cygnus.com>
609
610 * config/tc-mips.c (mips16_ip): Handle %gprel modifier.
611 (md_apply_fix): Handle BFD_RELOC_MIPS16_GPREL.
612
613 * config/tc-mips.c (append_insn): Output jump instruction as a
614 pair of 2 byte instructions, rather than as a single 4 byte
615 instruction.
616
617start-sanitize-r5900
618 * config/tc-mips.c (md_begin): Correct test of mips_5900.
619 (mips_ip): Don't check INSN_ISA for a macro.
620
621end-sanitize-r5900
276c2d7d
GRK
622start-sanitize-r5900
623Fri Feb 7 11:11:06 1997 Gavin Koch <gavin@cygnus.com>
624
625 * config/tc-mips.c: added r5900.
626
627end-sanitize-r5900
c6745073
DP
628Mon Feb 10 22:06:00 1997 Dawn Perchik (dawn@cygnus.com)
629
630 * itbl-ops.c, itbl-lex.l, itbl-parse.y, itbl-ops.h,
631 config/itbl-mips.h: Add copyright message and fix indentation.
632
8e5c905e
DP
633Mon Feb 10 18:09:00 1997 Dawn Perchik (dawn@cygnus.com)
634
635 * itbl-ops.c: New file. Add support for dynamically read
636 instruction registers, opcodes and formats. Build internal table
637 for new instructions and provide callbacks for assembler and
638 disassembler.
639 * itbl-lex.l, itbl-parse.y: Lex and yacc parsers for instruction
640 spec table.
641 * itbl-ops.h: New file. Header file for itbl support.
642 * config/itbl-mips.h: New file. Mips specific definitions for
643 itbl support.
644
a7355c4d
JL
645Fri Feb 7 09:52:34 1997 Jeffrey A Law (law@cygnus.com)
646
647 * config/tc-mn10200.c (md_assemble): If a constant operand won't
648 fit into the constant field of a relaxable operand, then it does
649 not match.
650
e58035e3
JL
651Thu Feb 6 20:08:12 1997 Jeffrey A Law (law@cygnus.com)
652
653 * config/tc-mn10200.c (md_estimate_size_before_relax): Treat
654 a jsr target in a different section just like a jsr to
655 an undefined target.
656
6927c24d
ILT
657Thu Feb 6 16:52:57 1997 Ian Lance Taylor <ian@cygnus.com>
658
659 * config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations
660 against any mips16 symbols, not just externally visible ones.
661 (md_apply_fix): Corresponding change.
662
c9167640
ILT
663Wed Feb 5 11:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
664
665 * config/tc-mips.c (mips16_ip): Accept floating point registers in
666 the operand of the exit instruction.
667
76801700
ILT
668Tue Feb 4 14:12:39 1997 Ian Lance Taylor <ian@cygnus.com>
669
670 * symbols.c (resolve_symbol_value): If we leave an equated symbol
671 as O_symbol, copy over the segment.
672
3569064f
ILT
673Mon Feb 3 12:35:54 1997 Ian Lance Taylor <ian@cygnus.com>
674
1748b9d8
ILT
675 * config/tc-mips.c (md_apply_fix): If we aren't adjusting this
676 fixup to be against the section symbol, adjust the value
677 accordingly.
678
3569064f
ILT
679 * symbols.c (resolve_symbol_value): Don't change X_add_number for
680 an equated symbol.
681 * write.c (write_relocs): Avoid looping on equated symbols.
682 Adjust fx_offset by X_add_number for each symbol.
683 * config/obj-coff.c (do_relocs_for): Avoid looping on equated
684 symbols.
685 (fixup_segment): Add a loop to track down equated symbols and
686 adjust fx_offset appropriately.
687
f5d7f6fb
JL
688Fri Jan 31 15:21:02 1997 Jeffrey A Law (law@cygnus.com)
689
690 * config/tc-mn10200.c (md_relax_table): Add entries to allow
691 jmp -> bra relaxing.
692 (md_convert_frag): Handle jmp->bra relaxing.
693 (md_assemble): Handle jmp->bra relaxing.
694 (md_estimate_size_before_relax): Likewise.
695
fb50cd4e
ILT
696Fri Jan 31 13:15:05 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
697
698 * config/tc-i386.c (i386_align_code): Add comments explaining the
699 nop instructions.
700
a75abb6f
ILT
701Fri Jan 31 10:46:14 1997 Ian Lance Taylor <ian@cygnus.com>
702
2b063e6d
ILT
703 * config/tc-sparc.c (enforce_aligned_data): New static variable.
704 (sparc_cons_align): Don't do anything unless enforce_aligned_data
705 is set.
706 (md_longopts): Add "enforce-aligned-data".
707 (md_show_usage): Mention --enforce-aligned-data.
708 * doc/c-sparc.texi (Sparc-Aligned-Data): New node; document
709 enforce-aligned-data.
710
fbd929fd
ILT
711 * config/tc-ppc.c (md_pseudo_table): If OBJ_XCOFF, add "long",
712 "word", and "short".
713 (ppc_xcoff_cons): New static function.
714
a75abb6f
ILT
715 * write.c (relax_segment): Give an error if a .space symbol is
716 common or undefined.
717
718 * read.c (read_a_source_file): Don't handle mri_pending_align if
719 the handler is s_globl or s_ignore.
720
f1ce6af4
FF
721Thu Jan 30 11:46:59 1997 Fred Fish <fnf@cygnus.com>
722
723 * config/tc-d10v.c (find_opcode): Remove unused variable "numops".
724start-sanitize-tic80
725 * config/tc-tic80.c: Many additions to previous placeholder file.
726 * config/tc-tic80.h: Ditto.
727end-sanitize-tic80
728
0b476c53
ILT
729Thu Jan 30 12:28:18 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
730
731 * config/tc-i386.c (i386_align_code): Improve the nop patterns.
732
a6b200da
ILT
733Thu Jan 30 12:08:40 1997 Ian Lance Taylor <ian@cygnus.com>
734
0d7f9025
ILT
735 * config/tc-mips.c (mips_fix_adjustable): New function.
736 * config/tc-mips.h (tc_fix_adjustable): Call mips_fix_adjustable.
737 (mips_fix_adjustable): Declare.
738
a6b200da
ILT
739 Ideas from Srinivas Addagarla <srinivas@cdotd.ernet.in>:
740 * read.c (read_a_source_file): After doing an mri_pending_align,
741 adjust the line_label if there is one.
742 (s_space): Set mri_pending_align if an odd number of bytes were
743 output.
744
9073144e
MH
745Wed Jan 29 15:31:12 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
746
747 * config/tc-d10v.h (md_do_align): Add this hook to call
748 d10v_cleanup() when a ".align" is detected. Fixes PR11487.
749
750 * config/tc-d10v.c (find_opcode): Correctly calculate
751 branch displacement when .aligns are present.
752
33a4c28d
JL
753Wed Jan 29 09:42:11 1997 Jeffrey A Law (law@cygnus.com)
754
755 * config/tc-mn10200.c (md_relax_table): Define.
756 (md_convert_frag): Implement.
757 (md_assemble): Handle relaxable operands/instructions correctly.
758 (md_estimate_size_before_relax): Implement.
759 * config/tc-mn10200.h (TC_GENERIC_RELAX_TABLE): Define.
760
645cb4dc
ILT
761Tue Jan 28 15:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
762
39bb58e0
ILT
763 * config/tc-mips.c (append_insn): Give an error for jumps to a
764 misaligned address.
765 (md_apply_fix): Make a branch to an odd address an error rather
766 than a warning.
3b320c48 767
31a2c6ff
ILT
768 * config/tc-mips.c (md_convert_frag): If the user explicitly
769 requested an extended opcode, pass warn as true to mips16_immed.
770
645cb4dc
ILT
771 * config/tc-mips.c (mips16_ip): Handle a missing expression like
772 an explicit 0, so that explicitly extended instructions work
773 correctly.
774
0192b099
ILT
775Mon Jan 27 17:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
776
777 * ecoff.c (ecoff_build_symbols): Don't generate a local ECOFF
778 symbol for a common symbol.
779
f7ab9441
DE
780Wed Jan 22 10:39:39 1997 Doug Evans <dje@canuck.cygnus.com>
781
782 Patch presumed to have been checked in awhile ago but wasn't.
783 Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
784 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.
785 (relax_segment, case rs_org): Move code inside braces. Move locals
786 target,after inside too.
787 (relax_segment, case rs_machine_dependent): Guts moved to ...
788 (relax_frag): New function.
789 Call md_prepare_relax_scan if defined.
790
0ce48081
C
791Mon Jan 20 10:56:47 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
792
793 * config/tc-m68k.c (m68k_ip): Reject pc-relative addresses for the
794 'p' operand specifier.
795
796Mon Jan 20 10:39:36 1997 J.T. Conklin <jtc@cygnus.com>
ffecfc8b
C
797
798 * config/tc-m68k.c (HAVE_LONG_BRANCH): New macro, returns true for
799 m68k family cpus which support long branch addressing modes.
800 (m68k_ip, md_convert_frag_1, md_estimate_size_before_relax,
801 md_create_long_jump): Use it.
802
c36a90ef
ILT
803Mon Jan 20 12:42:06 1997 Ian Lance Taylor <ian@cygnus.com>
804
b3a64736
ILT
805 * config/tc-mips.c (md_begin): Don't set SEC_ALLOC or SEC_LOAD for
806 the .reginfo or .MIPS.options section if configured for an
807 embedded target.
808
c36a90ef
ILT
809 * config/tc-mips.c (md_begin): Don't set interlocks for
810 mips_4650.
811
ad423373
ILT
812Wed Jan 15 13:51:50 1997 Ian Lance Taylor <ian@cygnus.com>
813
814 * read.c (read_a_source_file): Make sure the symbol ends with
815 whitespace before checking whether the next character is '='.
816
03b24037
ILT
817Tue Jan 14 15:07:27 1997 Robert Lipe <robertl@dgii.com>
818
819 * config/tc-i386.c (sco_id): Moved from here...
820 * config/obj-elf.c (sco_id): ...to here. Adding the identifier
821 really is an SCO ELF specific thing, not just a SCO x86 specific
822 thing.
823
4af93ad0
MM
824start-sanitize-tic80
825Mon Jan 13 22:43:01 1997 Michael Meissner <meissner@tiktok.cygnus.com>
826
827 * configure.in (tic80-*-*): Don't require 'coff'.
828 * configure: Regenerate.
829
830end-sanitize-tic80
8ff75001
ILT
831Thu Jan 9 09:08:43 1997 Ian Lance Taylor <ian@cygnus.com>
832
6468dabd
ILT
833 * read.c (emit_expr): Check for overflow of a negative value
834 correctly.
835 * write.c (fixup_segment): Likewise.
836 * config/obj-coff.c (fixup_segment): Likewise.
837
d703b5a7
ILT
838 * config/tc-m68k.c (struct label_line): Define.
839 (labels, current_label): New static variables.
840 (md_assemble): Mark current_label as text, and clear it.
841 (m68k_frob_label): New function.
842 (m68k_flush_pending_output): New function.
843 (m68k_frob_symbol): New function.
844 * config/tc-m68k.h (tc_frob_label): Define.
845 (md_flush_pending_output): Define.
846 (tc_frob_symbol): Don't warn, just call m68k_frob_symbol.
847 (tc_frob_coff_symbol): Likewise.
848
8ff75001
ILT
849 * read.c (read_a_source_file): When defining a macro in MRI mode,
850 don't add the symbol to the symbol table.
851
78998629
JL
852Tue Jan 7 11:21:42 1997 Jeffrey A Law (law@cygnus.com)
853
854 * config/tc-mn10300.c (tc_gen_reloc): Handle sym1-sym2 fixups
855 here since fixup_segment doesn't (linkrelax is set).
856 * config/tc-mn10200.c (tc_gen_reloc): Likewise.
857
62b2acba
JL
858Mon Jan 6 15:19:32 1997 Jeffrey A Law (law@cygnus.com)
859
860 * config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
861 relocs.
862
ac866582
JL
863Fri Jan 3 16:47:08 1997 Jeffrey A Law (law@cygnus.com)
864
62b2acba 865 * config/tc-hppa.c (struct hppa_fix_struct): Tweak fx_r_field's type
ac866582
JL
866 to avoid warnings with the native HP compiler.
867 (fix_new_hppa): Similarly for the r_type argument.
868 (pa_build_unwind_subspace, hppa_elf_mark_end_of_function): Enclose
869 in an #if OBJ_ELF to keep gcc -Wall quiet.
870 (md_apply_fix): Always initialize "result".
871
872 * config/tc-mn10200.c (md_assemble): Generate relocations.
873
79811f6f
ILT
874Fri Jan 3 18:17:23 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
875
876 * config/tc-m68k.c (s_even): Adjust the alignment of the current
877 section.
878
ba8f9c09
ILT
879Fri Jan 3 17:10:33 1997 Richard Henderson <rth@tamu.edu>
880
881 * config/obj-elf.c (elf_file_symbol): When using ECOFF debugging,
882 pass on the new file hook.
883
884 * config/tc-alpha.c (alpha_fix_adjustable): Not quite the same as
885 !alpha_force_relocation, as local LITERALs can be adjusted to be
886 relative to the section.
887
a78bc551
ILT
888Fri Jan 3 12:09:24 1997 Ian Lance Taylor <ian@cygnus.com>
889
9f94df38
ILT
890 * config/obj-coff.c (yank_symbols): If tc_frob_coff_symbol is
891 defined, call it.
3df036e9 892 * config/tc-m68k.h (tc_frob_symbol): Check whether text label is
9f94df38
ILT
893 aligned to odd boundary.
894 (tc_frob_coff_symbol): Define.
895
039d5a60
ILT
896 * doc/as.texinfo (Set): Change parenthesized @xref to @pxref.
897
7b0688df
ILT
898 * macro.c (macro_expand_body): In MRI mode, just copy a single &.
899
2156d0d7
ILT
900 * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
901 PCINDEX frag. From Ronald F. Guilmette <rfg@monkeys.com>.
902
a78bc551
ILT
903 * config/tc-m68k.c (m68k_ip): Accept 'B' as a size for an
904 immediate value.
905 (md_assemble): If the size is 'B', set fx_signed.
906 (md_apply_fix_2): Use fx_signed when checking for overflow.
907
908 * write.h (struct fix): Add fx_signed field.
909 * write.c (fix_new_internal): Initialize fx_no_overflow and
910 fx_signed fields.
911 (fixup_segment): Use fx_signed when checking for overflow.
912 * config/obj-coff.c (fixup_segment): Check fx_no_overflow and
913 fx_signed when checking for overflow.
914
b9129c6f
ILT
915Thu Jan 2 13:37:29 1997 Ian Lance Taylor <ian@cygnus.com>
916
0abdf280
ILT
917 * NOTES, NOTES.config: Removed. These are rarely, if ever,
918 updated, and all the useful information is in doc/internals.texi.
919
a986926b
ILT
920 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
921 * read.c (read_a_source_file): Check for conditional operators
922 before doing an MRI pending alignment.
923 * config/tc-m68k.h (m68k_conditional_pseudoop): Declare.
924 (tc_conditional_pseudop): Define.
925 * config/tc-m68k.c (m68k_conditional_pseudop): New function.
926 * doc/internals.texi (CPU backend): Describe
927 tc_conditional_pseudoop.
928
924160b0
ILT
929 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
930 * config/tc-m68k.c (m68k_rel32_from_cmdline): New static
931 variable.
932 (md_begin): Check m68k_rel32_from_cmdline before setting
933 m68k_rel32.
934 (m68k_mri_mode_change): Likewise.
935 (md_longopts): Add --disp-size-default-16 and
936 --disp-size-default-32.
937 (md_parse_option): Handle new options.
938 (md_show_usage): Mention new options.
939 * doc/c-m68k.texi (M68K-Opts): Document new options.
940
b4d51f3d
ILT
941 Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
942 * config/tc-m68k.c (m68k_index_width_default): New static
943 variable.
944 (m68k_ip): Use m68k_index_width_default to set the size of a base
945 register whose size was not given.
946 (md_longopts): Add --base-size-default-16 and
947 --base-size-default-32.
948 (md_parse_option): Handle new options.
949 (md_show_usage): Mention new options.
950 * doc/c-m68k.texi (M68K-Opts): Document new options.
951
103e1158
ILT
952 * doc/c-mips.texi: Mention ISA level 4, and the -mips16 option.
953
e16b9537
ILT
954 * configure.in: Recognize mips-*-linux* target.
955 * configure: Rebuild.
956
a162a490
ILT
957 * config/tc-mips.c (load_register): Rewrite 64 bit handling to
958 work if valueT is only 32 bits.
959
b9129c6f
ILT
960 * config/tc-mips.c: Throughout, check target_big_endian rather
961 than byte_order.
962 (byte_order): Remove.
963 (mips_init_after_args): Remove.
964 * config/tc-mips.h (LITTLE_ENDIAN, BIG_ENDIAN): Don't define.
965 (mips_init_after_args): Don't declare.
966 (tc_init_after_args): Don't define.
967
968 * config/tc-mips.h (tc_frob_after_relocs): Define if
969 OBJ_MAYBE_ELF.
970 (mips_elf_final_processing): Likewise.
971 (ELF_TC_SPECIAL_SECTIONS): Likewise.
972
6e7d5462
MM
973start-sanitize-v850
974Tue Dec 31 15:12:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
975
976 * config/tc-v850.c (md_assemble): If this is sst.{h,w} or
977 sld.{h,w} and the operand is relocatable, adjust the adend by
978 shifting it right one bit.
979
980end-sanitize-v850
38fc0ba6
ILT
981Tue Dec 31 12:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
982
20868ec6
ILT
983 * read.c (read_a_source_file): Check mri_pending_align after
984 checking for a macro. From Ronald F. Guilmette
985 <rfg@monkeys.com>.
986
6ded6615
ILT
987 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
988
38fc0ba6
ILT
989 * config/tc-sparc.c (md_apply_fix3): Rename from md_apply_fix, and
990 add segment argument. If OBJ_ELF, treat a relocation against a
991 symbol in a linkonce section like a relocation against an external
992 symbol.
993 * config/tc-sparc.h (MD_APPLY_FIX3): Define.
994
18e0764d
ILT
995Mon Dec 30 11:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
996
997 * config/tc-mips.c (mips16_macro): Add case for M_ABS.
998
64556643
FF
999Fri Dec 27 22:51:51 1996 Fred Fish <fnf@cygnus.com>
1000
1001 * NOTES.config (Implementation): as.h #define's "GAS" not "gas",
1002 includes config.h instead of host.h, tc.h instead of tp.h, and
1003 targ-env.h instead of target-environment.h.
1004 Also, obj-format.h includes targ-cpu.h instead of
1005 target-processor.h.
1006start-sanitize-tic80
1007 * configure.in (case ${generic_target}): Add tic80-*-coff entry.
1008 * configure: Rebuild with autoconf.
1009 * config/obj-coff.h (coff/tic80.h): Include if TC_TIC80 defined.
1010 (TARGET_FORMAT): Define to "coff-tic80".
1011 * config/tc-tic80.c: New file for TIc80 support.
1012 * config/tc-tic80.h: New file for TIc80 support.
1013end-sanitize-tic80
1014
7d99e8af
ILT
1015Fri Dec 27 11:42:29 1996 Ian Lance Taylor <ian@cygnus.com>
1016
1017 * doc/as.texinfo (M): Mention explicitly that -M changes macro
1018 handling.
1019
9c199842
ILT
1020Thu Dec 19 12:06:08 1996 Ian Lance Taylor <ian@cygnus.com>
1021
1022 * write.c (adjust_reloc_syms): If the fixup symbol has been
1023 equated to an undefined symbol, convert the fixup to being against
1024 the target symbol. Remove obsolete code handling a special case
1025 for i386 PIC.
1026
51cd0ae7
SS
1027Wed Dec 18 22:54:39 1996 Stan Shebs <shebs@andros.cygnus.com>
1028
1029 * mpw-make.sed: Use NewFolderRecursive for installation.
1030
cb07aaeb
MH
1031Wed Dec 18 16:00:42 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1032
1033 * config/tc-d10v.c (do_assemble): Correct previous bug fix.
1034
575453fb
MH
1035Wed Dec 18 15:27:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1036
1037 * config/tc-d10v.c (md_assemble): Fix bug which caused
1038 second instruction in a line to be case sensitize. PR11312
1039
5545556d
JL
1040Wed Dec 18 10:08:46 1996 Jeffrey A Law (law@cygnus.com)
1041
1042 * config/tc-mn10200.c (mn10200_insert_operand): Don't
1043 range check operands with MN10200_OPERAND_NOCHECK set.
1044 (check_operand): Likewise.
1045
c0dea495
ILT
1046Tue Dec 17 10:59:32 1996 Ian Lance Taylor <ian@cygnus.com>
1047
f5e38044
ILT
1048 * config/tc-mips.c: Undo part of last Friday's alignment changes.
1049 (md_begin): Always align the text section to a four byte
1050 boundary.
1051 (append_insn): Remove call to record_align.
1052
fbcfacb7
ILT
1053 * config/tc-mips.c (insn_label): Remove.
1054 (struct insn_label_list): Define.
1055 (insn_labels, free_insn_labels): New static variables.
1056 (mips_clear_insn_labels): New static function.
1057 (append_insn): Mark all mips16 text labels, and make them odd.
1058 Handle all labels after emitting a nop, not just one. Call
1059 mips_clear_insn_labels rather than just clearing insn_label.
1060 (mips_emit_delays): Add insns parameter, and use it to decide
1061 whether to mark mips16 labels. Handle all labels, not just one.
1062 Force mips16 labels to be odd. Change all callers.
1063 (mips16_immed): Don't check for an odd branch target.
1064 (md_apply_fix): Don't check mips16 mode for a branch reloc.
1065 (mips16_extended_frag): Ignore the low bit in a branch target.
1066 (md_convert_frag): Likewise.
1067 (mips_no_prev_insn): Call mips_clear_insn_labels rather than just
1068 clearing insn_label.
1069 (mips_align, mips_flush_pending_output, s_cons): Likewise.
1070 (s_float_cons, s_gpword): Likewise.
1071 (s_align): Use insn_labels rather than insn_label.
1072 (s_cons, s_float_cons, s_gpword): Likewise.
1073 (mips_frob_file_after_relocs): New function.
1074 (mips_define_label): Rewrite to add to insn_labels list.
1075 * config/tc-mips.h (tc_frob_file_after_relocs): Define.
1076 * ecoff.c (ecoff_build_symbols): If the size of a function comes
1077 out odd, increment it.
1078
1079 * config/tc-mips.c (append_insn): Only update prev_insn when not
1080 reordering if place is NULL.
1081
c0dea495
ILT
1082 * config/tc-mips.c (mips16_ip): Check for a missing expression
1083 when using the register indirect addressing mode.
1084
d4ba37af
JL
1085Mon Dec 16 10:08:46 1996 Jeffrey A Law (law@cygnus.com)
1086
1087 * config/tc-mn10200.c (mn10200_insert_operand): Don't
1088 check 24bit operands for overflow.
1089 (check_operand): Likewise.
1090
868c3513
ILT
1091Mon Dec 16 11:50:40 1996 Ian Lance Taylor <ian@cygnus.com>
1092
1093 * doc/as.texinfo (Section): Document how to use the .section
1094 pseudo-op for COFF and ELF.
1095
6259c65f
ILT
1096Sun Dec 15 15:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
1097
1098 * write.c (adjust_reloc_syms): Fix linkonce check for ELF.
1099
a677feeb
ILT
1100Sat Dec 14 22:37:27 1996 Ian Lance Taylor <ian@cygnus.com>
1101
1102 * config/tc-mips.c (prev_insn_reloc_type): New static variable.
1103 (RELAX_MIPS16_ENCODE): Add dslot and jal_dslot arguments, and
1104 store them. Adjust other RELAX_MIPS16 macros.
1105 (RELAX_MIPS16_DSLOT): Define.
1106 (RELAX_MIPS16_JAL_DSLOT): Define.
1107 (append_insn): Pass new arguments to RELAX_MIPS16_ENCODE. Correct
1108 handling of whether previous instruction has a fixup. Set
1109 prev_insn_reloc_type.
1110 (mips_no_prev_insn): Clear prev_insn_reloc_type.
1111 (mips16_extended_frag): Use the right base address for a PC
1112 relative add or load.
1113 (md_convert_frag): Likewise. If a PC relative add or load is
1114 used, record the alignment for the section.
1115
08e17202
ILT
1116Fri Dec 13 13:00:33 1996 Ian Lance Taylor <ian@cygnus.com>
1117
54815b9a
ILT
1118 * write.c (adjust_reloc_syms): Don't reduce a reloc against a
1119 linkonce section into a reloc against the section symbol.
1120
8a8121d5
ILT
1121 * config/tc-mips.c (mips16_macro): Remove nop instructions after
1122 branch instructions.
1123
08e17202
ILT
1124 * config/tc-mips.c (md_begin): If configured for an embedded ELF
1125 system, don't set the section alignment to 2**4.
1126 (s_change_sec): Likewise.
1127 (append_insn): Call record_alignment for the section.
1128 (md_section_align): Don't align the section size for an embedded
1129 ELF system.
1130
73d25784
ILT
1131Thu Dec 12 16:40:47 1996 Ian Lance Taylor <ian@cygnus.com>
1132
1133 * write.c (adjust_reloc_syms): Make sure that symbols are
1134 resolved; expression symbols may have been skipped.
8dd6fde3 1135 * config/obj-coff.c (fixup_segment): Likewise.
73d25784 1136
a460cd78
MM
1137Thu Dec 12 15:18:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1138
1139 * config/tc-ppc.c (ppc_elf_suffix): Move @plt to
1140 BFD_RELOC_24_PLT_PCREL relocation.
1141 (md_apply_fix3): Support BFD_RELOC_24_PLT_PCREL.
1142
60b43c4b
MH
1143Tue Dec 10 13:51:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1144
1145 * config/tc-d10v.c (write_2_short): Remove code that called
1146 parallel_ok() when the programmer specified parallel instructions.
1147
42aa2435
JL
1148Tue Dec 10 12:23:19 1996 Jeffrey A Law (law@cygnus.com)
1149
a460cd78
MM
1150 * config/tc-mn10300.c (md_assemble): Update to handle endianness
1151 issues correctly.
1152
42aa2435
JL
1153 * config/tc-mn10200.c (md_assemble): Opcode 0x0 is valid!
1154 * config/tc-mn10300.c (md_assemble): Likewise.
1155
41a0ed22
ILT
1156Tue Dec 10 11:37:14 1996 Ian Lance Taylor <ian@cygnus.com>
1157
9b2ac029
ILT
1158 * config/tc-mips.c (append_insn): Make sure there is enough room
1159 in a frag after a mips16 instruction to switch it with a jump
1160 instruction.
1161
41a0ed22
ILT
1162 * config/tc-mips.c (mips16_extended_frag): Give an error for an
1163 attempt to use a non absolute symbol in an extending frag.
1164
dc1f8a21
JL
1165Mon Dec 9 16:48:20 1996 Jeffrey A Law (law@cygnus.com)
1166
1167 * config/tc-mn10200.c: Flesh out assembler support for MN10200.
1168 * config/tc-mn10200.h: Likewise.
1169
102633ce
ILT
1170Mon Dec 9 17:09:42 1996 Ian Lance Taylor <ian@cygnus.com>
1171
a7dd20e8
ILT
1172 * app.c (do_scrub_chars): At the end of a C comment, pass space to
1173 UNGET rather than PUT. Set old_state before setting state to -2.
1174
559c664a
ILT
1175 * config/tc-mips.c (mips16_extended_frag): Avoid an infinite loop
1176 when extending because the value is exactly maxtiny + 1.
1177
8728fa92
ILT
1178 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add small and ext
1179 arguments, and store them. Adjust other RELAX_MIPS16 macros.
1180 (RELAX_MIPS16_USER_SMALL): Define.
1181 (RELAX_MIPS16_USER_EXT): Define.
1182 (mips16_small, mips16_ext): New static variables.
1183 (append_insn): Pass mips16_small and mips16_ext to
1184 RELAX_MIPS16_ENCODE.
1185 (mips16_ip): Set mips16_small and mips16_ext.
1186 (mips16_immed): Don't check mips16_autoextend.
1187 (mips16_extended_frag): Check USER_SMALL and USER_EXT.
1188
102633ce
ILT
1189 * write.c (write_relocs): Print an error for an out of range
1190 fixup, rather than calling abort.
1191
1192 * as.c (main): Unlink the output file if there are errors while
1193 generating the fixups.
1194
15e69f98
ILT
1195Fri Dec 6 18:48:13 1996 Ian Lance Taylor <ian@cygnus.com>
1196
f74ba7a3
ILT
1197 * config/tc-mips.c (mips16_extended_frag): Don't call
1198 S_GET_VALUE.
1199 (md_convert_frag): Call resolve_symbol_value before calling
1200 S_GET_VALUE, and don't add in the frag address.
1201
15e69f98
ILT
1202 * config/tc-mips.c (mips16_immed): Add file and line parameters,
1203 and use them when reporting errors. Change all callers.
1204
ca82e4eb
JL
1205Fri Dec 6 15:36:32 1996 Jeffrey A Law (law@cygnus.com)
1206
1207 * config/tc-mn10300.c: Fix various gcc -Wall warnings.
1208 Remove '$' prefixing for registers.
1209
f787a8d9 1210Fri Dec 6 00:55:48 1996 Martin <hunt@cygnus.com>
6cc03ed3 1211
f787a8d9
MH
1212 * config/tc-d10v.c (md_assemble): Check to see if prev_seg
1213 is initialized before using it.
1214 (d10v_cleanup): No longer uses its argument, so make it void.
6cc03ed3 1215
f787a8d9
MH
1216 * config/tc-d10v.h (d10v_cleanup): Change prototype.
1217
00a69b89
ILT
1218Thu Dec 5 11:03:31 1996 Ian Lance Taylor <ian@cygnus.com>
1219
1220 * write.c (fixup_segment): Don't discard the symbol for a PC
1221 relative fixup to an absolute symbol.
1222
996bee90
MH
1223Wed Dec 4 15:42:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1224
1225 * config/tc-d10v.c (md_assemble, d10v_cleanup): Fix bug
1226 with multiple sections.
1227
943321c0
ILT
1228Wed Dec 4 13:00:07 1996 Ian Lance Taylor <ian@cygnus.com>
1229
1230 * config/tc-mips.c (md_longopts): Rename mips-16 to mips16, and
1231 no-mips-16 to no-mips16.
1232 (s_mipsset): Accept .set mips16 and .set nomips16.
1233
8b1e9f12
MM
1234Wed Dec 4 10:35:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1235
1236 * config/tc-ppc.c (ppc_elf_suffix): Take expressionS pointer
1237 argument, and check for +/- constant following the suffix, folding
1238 it into the expression.
1239 (ppc_elf_cons): Change ppc_elf_suffix calls.
1240 (md_assemble): Ditto.
1241 (shlib): Replace boolean mrelocatable with enumeration shlib.
1242 (md_parse_option): Discriminate between PIC style shared libraries
1243 and -mrelocatable.
1244 (ppc_elf_validate_fix): Don't report warnings for PIC style shared
1245 libraries.
1246
b61802e7
MM
1247Tue Dec 3 23:18:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1248
1249 * config/tc-ppc.h ({tc,ppc}_comment_chars): Define, so that we can
1250 change the comment characters.
1251
1252 * config/tc-ppc.c (comment_chars): Delete in favor of
1253 tc_comment_chars.
1254 (ppc_{eabi,solaris}_comment_chars): Eabi and Solaris versions of
1255 comment chars.
1256 (ppc_comment_chars): Select appropriate comment chars by default.
1257 (msolaris): New flag for -m{,no-}solaris.
1258 (md_parse_option): Recognize -K pic. Add support for
1259 -m{,no-}solaris.
1260 (md_show_usage): Update.
1261 (md_begin): Do not set ELF flags if Solaris.
1262 (ppc_elf_suffix): @local sets R_PPC_LOCAL24PC relocation.
1263 (md_apply_fix3): Add support for R_PPC_LOCAL24PC.
1264
1265Mon Dec 2 13:48:57 1996 Ian Lance Taylor <ian@cygnus.com>
1266
1267 * as.c (main): Correct handling of flag_always_generate_output.
1268
5840a0e5
JL
1269Sun Dec 1 21:46:05 1996 Jeffrey A Law (law@cygnus.com)
1270
a9f2e3e2
JL
1271 * config/tc-mn10300.c (tc_gen_reloc): Get the addend from
1272 fx_offset, not fx_addnumber.
1273
5840a0e5
JL
1274 * config/tc-mn10300.h (tc_fix_adjustable): Don't do any
1275 reloc adjustments.
1276
b608274a
ILT
1277Sat Nov 30 17:34:48 1996 Eliot Dresselhaus <eliot@wally.edc.com>
1278
1279 * config/tc-i386.c: Correct misspelling: balenced to balanced.
1280
caeea0b4
ILT
1281Wed Nov 27 13:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
1282
1283 * config/tc-mips.c (md_section_align): Check for an alignment of
1284 4, not an alignment of 16. Corrects August 7 patch.
1285
cc5703cd
ILT
1286Tue Nov 26 10:33:16 1996 Ian Lance Taylor <ian@cygnus.com>
1287
775c64a9
ILT
1288 * configure, conf.in: Rebuild with autoconf 2.12.
1289
c830c9ea
ILT
1290 * config/tc-ppc.c (ppc_elf_lcomm): Don't give an error if no
1291 alignment is specified.
1292
cc5703cd
ILT
1293 Add support for mips16 (16 bit MIPS implementation):
1294 * config/tc-mips.c: Extensive additions for mips16 support, not
1295 listed here.
1296 (RELAX_OLD, RELAX_NEW): Use only 7 bits each.
1297 (insn_uses_reg): Change last parameter to an enum.
1298 * config/tc-mips.h (LOCAL_LABELS_DOLLAR): Define as 0.
1299 (md_relax_frag): Define as mips_relax_frag.
1300 (mips_relax_frag): Declare.
1301 (struct mips_cl_insn): Add use_extend and extend fields.
1302 (tc_fix_adjustable): Define.
1303 * config/obj-elf.h (S_GET_OTHER): Define.
1304 (S_SET_OTHER): Define.
1305
3ab410cd
C
1306Mon Nov 25 18:02:29 1996 J.T. Conklin <jtc@beauty.cygnus.com>
1307
1308 * config/tc-m68k.c (m68k_ip): Implement cases for new <, >, m, n,
1309 o and p operand specifiers.
1310
a0a2af4f
DE
1311Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
1312
1313 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.
1314 (relax_segment, case rs_org): Move code inside braces. Move locals
1315 target,after inside too.
1316 (relax_segment, case rs_machine_dependent): Guts moved to ...
1317 (relax_frag): New function.
1318 Call md_prepare_relax_scan if defined.
1319 * config/tc-m68k.h (md_prepare_relax_scan): Renamed from
1320 M68K_AIM_KLUDGE.
1321
0671e7f6
JL
1322Mon Nov 25 08:49:36 1996 Jeffrey A Law (law@cygnus.com)
1323
a0a2af4f
DE
1324 * config/tc-mn10300.c (address_registers): Use '$' as register
1325 prefix instead of '%'.
1326 (data_registers, other_registers, md_assemble): Likewise.
1327
f98905f1
JL
1328 * config/tc-mn10300.c (address_registers): Use '%' prefix for regs.
1329 (data_registers, other_registers, md_assemble): Likewise.
1330
0671e7f6
JL
1331 * config/tc-mn10300.c (md_assemble): Correctly determine the
1332 correct location and type for each relocation.
1333 (md_pcrel_from): Simplify.
1334
5895d3f2
ILT
1335Fri Nov 22 15:42:26 1996 Ian Lance Taylor <ian@cygnus.com>
1336
1337 * config/tc-sh.c (md_convert_frag): Improve warning when branch is
1338 converted into branch around branch.
1339
d9a9c18f
JL
1340Thu Nov 21 11:56:11 1996 Jeffrey A Law (law@cygnus.com)
1341
1342 * config/tc-mn10300.h (DIFF_EXPR_OK): Don't define this.
1343 (tc_fix_adjustable): Don't adjust relocs against weak symbols or
1344 pc-relative relocs.
1345 * config/tc-mn10300.c (md_begin): Set linkrelax.
1346 (md_assemble): Create fixups as needed.
1347 (md_apply_fix3): Gut. It shouldn't ever get called anymore.
1348
5e9b714f
MM
1349Tue Nov 19 17:48:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1350
1351 * config/tc-d10v.c (parallel_ok): When automatically converting
1352 serial ops to parallel, do not consider a branch as the first
1353 instruction.
1354
7f02192d
JL
1355Tue Nov 19 13:35:22 1996 Jeffrey A Law (law@cygnus.com)
1356
1357 * config/tc-mn10300.c (md_assemble): Handle MN10300_OPERAND_REG_LIST.
1358
43d695a1
JL
1359Mon Nov 18 15:26:55 1996 Jeffrey A Law (law@cygnus.com)
1360
1361 * config/tc-mn10300.c (mn10300_insert_operand): Provide prototype
1362 via PARAMS.
1363 (check_operand): Likewise.
1364
228835a9
MM
1365Mon Nov 18 15:22:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1366
1367 * config/tc-d10v.c (parallel_ok): Branch and link instructions
1368 modify r13.
ec5e212b
MM
1369 (write_2_short): Call parallel_ok to check whether two short
1370 instructions the user requested execute in parallel, can be
1371 executed that way.
228835a9 1372
edb89bfc
MH
1373Thu Nov 14 11:17:49 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1374
1375 * config/tc-d10v.c (write_2_short): Fix bug that wouldn't
1376 allow a branch and link in parallel with an exe instruction.
1377
1378Fri Nov 8 13:55:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1379
1380 * doc/c-d10v.texi: Add info on @word modifier.
1381
cdde2f5c 1382Wed Nov 6 13:46:07 1996 Jeffrey A Law (law@cygnus.com)
efba8af0
JL
1383
1384 * config/tc-mn10300.c (mn10300_insert_operand): MN10300_OPERAND_SPLIT
1385 operands are assumed to be 32bits. Use "bits" field to hold the
1386 number of bits in the main instruction word for MN10300_OPERAND_SPLIT.
1387 (mn10300_check_operand): MN10300_OPERAND_SPLIT operands are assumed
1388 to be 32bits.
cdde2f5c 1389
bdd91d4f
JL
1390 * config/tc-mn10300.c (mn10300_insert_operand): Shift low part
1391 of a MN10300_OPERAND_SPLIT operand by operand->shift.
1392
cdde2f5c
JL
1393 * config/tc-mn10300.c (mn10300_insert_operand): Handle
1394 MN10300_OPERAND_SPLIT.
1395
bfe5059c
JL
1396Tue Nov 5 13:30:40 1996 Jeffrey A Law (law@cygnus.com)
1397
1398 * config/tc-mn10300.c (md_assemble): Insert operands into
1399 the extension part of the instruction if necessary.
1400 (mn10300_insert_operand): Accept pointer to extension word
1401 argument. Make insn a pointer argument too. Return type
1402 is now void. All callers changed.
1403
68328dc6
JL
1404Mon Nov 4 12:53:40 1996 Jeffrey A Law (law@cygnus.com)
1405
1406 * config/tc-mn10300.c (mn10300_insert_operand): Handle
1407 repeated register operands.
1408
9af40217
ILT
1409Fri Nov 1 10:42:49 1996 Ian Lance Taylor <ian@cygnus.com>
1410
9a5acea8
ILT
1411 * doc/as.texinfo: Added section on reporting bugs.
1412
9af40217
ILT
1413 * config/tc-alpha.c: Change uses of void * to PTR. Change the
1414 alpha_macro emit field to expect a const argument, and change the
1415 arg field to be const. Fix some spacing to follow the GNU
1416 standard.
1417
1418Fri Nov 1 10:32:03 1996 Richard Henderson <rth@tamu.edu>
1419
1420 * config/tc-alpha.c (md_parse_option): Add knowledge of 21164pc
1421 (pca56) and 21264 (ev6) cpus.
1422 (md_apply_fix): Private relocation types are now negative.
1423 (alpha_force_relocation): Likewise.
1424 (tc_gen_reloc): Likewise.
1425 (emit_insn): Likewise.
1426 (emit_ldXu): Do the right thing when the hardware can do byte insns.
1427 (emit_stX): Likewise.
1428 (emit_sextX): Likewise.
1429
527dc0c9
ILT
1430Thu Oct 31 16:33:21 1996 Ian Lance Taylor <ian@cygnus.com>
1431
1432 * config/obj-coff.c (do_relocs_for): Call resolve_symbol_value on
1433 a symbol found in a reloc.
1434
1435 * symbols.c (resolve_symbol_value): Improve the error message if
1436 an undefined symbol is used in an expression.
1437
fe7e5bdf
ILT
1438Wed Oct 30 20:15:35 1996 Ian Lance Taylor <ian@cygnus.com>
1439
1440 * doc/internals.texi: Rewrite, and add a lot of documentation.
1441 * doc/Makefile.in (internals.info): New target.
1442
a334533c 1443start-sanitize-v850
193e4197
JL
1444Wed Oct 30 14:55:57 1996 Jeffrey A Law (law@cygnus.com)
1445
1446 * config/tc-v850.h (tc_fix_adjustable): Don't adjust relocs
1447 against weak symbols.
1448
a334533c
JL
1449Tue Oct 29 12:28:16 1996 Jeffrey A Law (law@cygnus.com)
1450
baf385b5
JL
1451 * config/tc-v850.c (md_assemble): Don't lose for relaxable
1452 addresses like .+6.
1453
2385d90a
JL
1454 * config/tc-v850.c (md_convert_frag): Make sure we insert the
1455 fixup at the right address within the frag.
1456
bc49fab8
JL
1457 * config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
1458 to an absolute value, instead increment it as needed.
1459
a334533c
JL
1460 * config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
1461 * config/tc-v850.c: Fix some indention problems.
1462 (md_relax_table): Define for D9->D99 branch displacement
1463 relaxing.
1464 (md_convert_frag): Do something useful instead of aborting.
1465 (md_estimate_size_before_relax): Likewise.
1466 (md_assemble): Note if the matching instruction has a relaxable
1467 operand. If it does, allocate frag with frag_var and don't
1468 do any fixups.
1469
1470end-sanitize-v850
a334533c
JL
1471Mon Oct 28 10:48:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1472
1473 * config/tc-d10v.h (md_cleanup): New function. This is needed to
1474 write out any buffered instructions when a ".end" is found.
1475
9051e56f
MH
1476Mon Oct 28 10:43:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1477
1478 * read.c (read_a_source_file): New hook md_cleanup().
1479
07f9de2a
ILT
1480Fri Oct 25 00:01:00 1996 Ian Lance Taylor <ian@cygnus.com>
1481
1482 * write.c (fix_new_exp): Use make_expr_symbol to build an
1483 expression symbol for a complex fixup.
1484
3723a1a9
JL
1485start-sanitize-v850
1486Thu Oct 24 14:31:04 1996 Jeffrey A Law (law@cygnus.com)
1487
d3bbd9dc
JL
1488 * config/tc-v850.c (v850_reloc_prefix): Several disgusting
1489 hacks to improve parsing of complex hi, lo, zda, etc
1490 expressions.
1491 (md_assemble): Don't demand and eat a trailing ')' after finding
1492 a v850 relocation prefix. Sign extend the constant in a
1493 BFD_RELOC_LO16 expression. Do eat a trailing ')' after a complete
1494 operand.
1495 (parse_cons_expression_v850): Don't eat a trailing ')' after
1496 finding a v850 relocation prefix.
1497
10fba7f1
JL
1498 * config/tc-v850.h (TC_PARSE_CONS_EXPRESSION): Define.
1499 (TC_CONS_FIX_NEW): Likewise.
1500 * config/tc-v850.c (parse_cons_expression_v850): New function.
1501 (cons_fix_new_v850): Likewise.
1502
3723a1a9
JL
1503 * config/tc-v850.h (tc_fix_adjustable): Don't adjust TDA relocs.
1504
1505end-sanitize-v850
20fbbb59
ILT
1506Wed Oct 23 18:20:29 1996 Ian Lance Taylor <ian@cygnus.com>
1507
1508 * config/tc-ppc.c (md_apply_fix3): Give a better warning message
1509 for an unknown relocation type.
1510
8ea15b86 1511start-sanitize-v850
7e96935e
JL
1512Wed Oct 23 16:21:28 1996 Jeffrey A Law (law@cygnus.com)
1513
1514 * config/tc-v850.c (md_pseudo_table): Add .word; allocates
1515 4 bytes of space.
1516
8ea15b86
JL
1517Tue Oct 22 22:01:25 1996 Jeffrey A Law (law@cygnus.com)
1518
1519 * config/tc-v850.c (md_assemble): Handle TDAOFF relocs
1520 differently for movea & sst/sld insns.
1521
1522end-sanitize-v850
39176dfe
MM
1523Tue Oct 22 17:09:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1524
1525 * config/tc-d10v.c (parallel_ok): Don't allow illegal combinations
1526 of instructions.
1527
87dd0a93
ILT
1528Tue Oct 22 11:28:39 1996 Ian Lance Taylor <ian@cygnus.com>
1529
1530 * obj.h (struct format_ops): Add frob_file_after_relocs field.
1531 * config/obj-multi.h (obj_frob_file_after_relocs): Define.
1532 * config/obj-ecoff.c (ecoff_format_ops): Initialize new
1533 frob_file_after_relocs field.
1534 * config/obj-elf.c (elf_format_ops): Likewise.
1535 * config/tc-mips.c: Undefine obj_frob_file_after_relocs before
1536 including obj-elf.h.
1537
d12d1f6c
ILT
1538Mon Oct 21 11:38:30 1996 Ian Lance Taylor <ian@cygnus.com>
1539
bf39474f
ILT
1540 * config/tc-mips.c (cons_fix_new_mips): Only treat 8 byte reloc
1541 specially if not ELF.
1542 (md_apply_fix): Handle BFD_RELOC_64.
1543 (tc_gen_reloc): Handle BFD_RELOC_64.
1544
3030e864
ILT
1545 * config/tc-i386.c (md_apply_fix3): Don't increment value for a PC
1546 relative reloc when BFD_ASSEMBLER and OBJ_AOUT (more ugly gas
1547 reloc hacking).
1548
d12d1f6c
ILT
1549 * config/obj-aout.h (S_IS_DEFINE): non BFD_ASSEMBLER version:
1550 Don't check S_GET_OTHER.
1551
b70795e9
ILT
1552Fri Oct 18 14:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
1553
538034cf
ILT
1554 * config/tc-mips.c (mips_ip): Accept an odd floating point
1555 register with l.s or s.s.
1556
b70795e9
ILT
1557 * config/obj-aout.c (obj_pseudo_table): Use obj_aout_type for
1558 .type pseudo-op.
1559 (obj_aout_type): New static function.
1560
b9d55d96
ILT
1561Thu Oct 17 17:55:17 1996 Ian Lance Taylor <ian@cygnus.com>
1562
1563 * Makefile.in ($(OBJS)): Depend upon libiberty.h.
1564
f964b01d 1565start-sanitize-v850
0f8e50bb
JL
1566Wed Oct 16 11:28:31 1996 Jeffrey A Law (law@cygnus.com)
1567
548ddc71
JL
1568 * config/tc-v850.c (v850_reloc_prefix): Recognize zdaoff, tdaoff
1569 and sdaoff expressions.
1570
0f8e50bb
JL
1571 * write.c (fixup_segment): Don't add symbol value to addend if
1572 TC_V850 and OBJ_ELF.
1573 * config/tc-v850.h (tc_fix_adjustable): Don't adjust any
1574 pc-relative fixups.
1575
1576 * config/tc-v850.c (md_pcrel_from): Undo yesterday's changes.
1577 (md_pcrel_from_section): Likewise.
1578 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Likewise.
1579
1580Tue Oct 15 23:19:00 1996 Jeffrey A Law (law@cygnus.com)
f964b01d
JL
1581
1582 * config/tc-v850.c (md_pcrel_from): Delete unused function.
1583 (md_pcrel_from_section): New function.
1584 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define.
1585
1586end-sanitize-v850
0267c6c9
ILT
1587Mon Oct 14 13:59:12 1996 Ian Lance Taylor <ian@cygnus.com>
1588
1589 * config/tc-mips.c (load_register): Add cast to offsetT when using
1590 a constant with &~.
1591
5d0cd0b8
ILT
1592Mon Oct 14 11:24:28 1996 Richard Henderson <rth@tamu.edu>
1593
1594 * config/obj-elf.c (elf_frob_file): Move ECOFF debug processing to ...
1595 (elf_frob_file_after_relocs): ... here. New function.
1596 * config/obj-elf.h (obj_from_file_after_relocs): New macro.
1597 * write.c (write_object_file): Call *frob_after_relocs after the
1598 call to write_relocs.
1599
1600 * config/tc-alpha.c: Use new BFD_RELOC_ALPHA_ELF_LITERAL reloc.
1601
1602 * config/tc-alpha.c (load_expression): Don't SET_VALUE on the section
1603 symbol, as this messes up linking. Instead, expand the recursive call
1604 inline and change up the appropriate bits to get the 0x8000 offset
1605 in the reloc addend.
1606
914f8998
ILT
1607Thu Oct 10 17:30:31 1996 Ian Lance Taylor <ian@cygnus.com>
1608
1491f2ea
ILT
1609 * config/tc-sparc.h (tc_fix_adjustable): Permit the difference of
1610 two symbols in the same segment to be adjusted.
1611
914f8998
ILT
1612 * configure.in: Don't get confused by CPU-VENDOR-linux-gnu.
1613 * configure: Rebuild.
1614
f8a011cf
MM
1615Thu Oct 10 17:22:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1616
1617 * config/tc-ppc.c (ppc_insert_operand): Change most warnings into
1618 errors.
1619 (ppc_elf_validate_fix): Ditto.
1620 (md_assemble): Ditto.
1621 (ppc_tc): Ditto.
1622 (ppc_pe_section): Ditto.
1623 (ppc_frob_symbol): Ditto.
1624
1c3ae169
JL
1625Thu Oct 10 12:05:45 1996 Jeffrey A Law (law@cygnus.com)
1626
3ab9337b
JL
1627 * config/mn10300.c (md_assemble): Pass an extra shift count
1628 to mn10300_insert_operand based on the opcode format.
1629 (mn10300_insert_operand): Accept and use extra shift count
1630 parameter.
1631
778c521b
JL
1632 * config/tc-mn10300.c (md_assemble): Use FMT_* macros for
1633 formats rather than hard-coded constants.
1634
1c3ae169
JL
1635 * config/tc-mn10300.c (md_assemble): Format D5 instructions
1636 are 7 bytes long. Write out instructions in big-endian format.
1637
a6be605a
JL
1638Tue Oct 8 14:56:15 1996 Jeffrey A Law (law@cygnus.com)
1639
1c3ae169 1640 * config/tc-mn10300.c (md_assemble): Tweak further so
a6be605a
JL
1641 that all instructions are parsed correctly.
1642
5e1e8f23
ILT
1643Tue Oct 8 13:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
1644
1645 * as.h: Include libiberty.h.
1646 (xmalloc, xrealloc): Don't declare.
1647 * as.c: Don't include libiberty.h.
1648 * expr.c, read.c, stabs.c, config/obj-coff.c: Likewise.
1649 * config/tc-mips.c: Likewise.
1650 * messages.c: Likewise.
1651 (xstrerror): Don't declare.
1652 * xmalloc.c: Remove.
1653
1217102f
JL
1654Mon Oct 7 16:53:23 1996 Jeffrey A Law (law@cygnus.com)
1655
1656 * config/tc-mn10300.h (pre_defined_registers) Remove.
1657 (system_registers, cc_names): Likewise.
1658 (address_registers, data_registers, other_registers): New register
1659 arrays.
1660 (register_name, system_register_name, cc_name): Remove.
1661 (mn10300_reloc_prefix): Likewise.
1662 (data_register_name): New function.
1663 (address_register_name, other_register_name): Likewise.
1664 (md_assemble): Rough cut at parsing operands. Remove lots of
1665 unwanted code.
1666 (md_apply_fix3): Disable for now.
1667
99e3ccb6
ILT
1668Mon Oct 7 11:38:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1669
1670 * config/tc-m68k.c (select_control_regs): New function, extracted
1671 out of m68k_init_after_args.
1672 (m68k_init_after_args): Use it.
1673 (mri_chip): Use it here as well to update set of allowed control
1674 regs for movec.
1675
0bd28bc4
ILT
1676Mon Oct 7 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
1677
1678 * config/obj-elf.c (elf_begin): New function.
1679 (obj_elf_section): Add the section symbol to the symbol table.
1680 * config/obj-elf.h (obj_begin): Define.
1681 (elf_begin): Declare.
1682 * as.c (perform_an_assembly_pass): Call obj_begin if it is
1683 defined.
1684
eb0dafdc
ILT
1685Fri Oct 4 18:37:32 1996 Ian Lance Taylor <ian@cygnus.com>
1686
1687 * config/obj-coff.c (fixup_segment): Subtract the section address
1688 from a PC relative reloc if TC_M68K.
1689
76f841e6
ILT
1690Thu Oct 3 15:15:30 1996 Ian Lance Taylor <ian@cygnus.com>
1691
1692 * config/tc-sparc.c (md_pseudo_table): Make .uahalf, .uaword, and
1693 .uaxword available even if not OBJ_ELF.
1694 (md_atof): Remove unused local variable wordP.
1695
0f91d763
JL
1696Thu Oct 3 00:16:50 1996 Jeffrey A Law (law@cygnus.com)
1697
1698 * config/tc-mn10x00.c, config/tc-mn10x00.h: New files
1699 for Matsushita MN10x00 support.
1700 * configure.in: Recognize mn10x00-*-*
1701 * configure: Rebuilt.
1702
7c328bc7
ILT
1703Wed Oct 2 15:54:03 1996 Klaus Kaempf <kkaempf@progis.de>
1704
1705 * obj-evax.h: move openvms definitions from here to tc-alpha.c.
1706 * tc-alpha.c: add support for vms_case_hack like in vax/vms.
1707 (load_expression): track clobbering of base reg before jmp/jsr.
1708 (s_alpha_file): pass case_hack flags and source filename via
1709 symbol table to bfd.
1710 * tc-alpha.h (TC_CONS_FIX_NEW): define
1711
fed13a5e
ILT
1712Tue Oct 1 16:16:01 1996 Joel Sherrill <joel@oarcorp.com>
1713
1714 * configure.in (mips-*-rtems*): New target, like mips-*-elf*.
1715 * configure: Rebuild.
1716
ffef69a3
ILT
1717Tue Oct 1 12:37:48 1996 Ian Lance Taylor <ian@cygnus.com>
1718
a69e5977
ILT
1719 * read.c (s_macro): Warn if a macro has the same name as a
1720 pseudo-op.
1721 (s_space): In m68k MRI mode, align to a word boundary.
1722 * macro.c (define_macro): Add namep parameter. Change all
1723 callers.
1724 * macro.h (define_macro): Update declaration.
1725
bfc94743
ILT
1726 * as.c (show_usage): Print bug report address.
1727 (parse_args): Change version printing to match current GNU
1728 standards.
1729 * gasp.c (show_usage): Print bug report address.
1730 (main): Change version printing to match current GNU standards.
1731
0b810a6e
ILT
1732 * config/tc-m68k.c (init_table): Correct access control unit
1733 register numbers. From Ken Rose <rose@netcom.com>.
1734
ffef69a3
ILT
1735 * config/tc-alpha.c: Add some static function prototypes.
1736 (alpha_macros): Move to top of file. Make static.
1737 (alpha_num_macros): Move to top of file.
1738
8940a583
SG
1739start-sanitize-v850
1740Tue Oct 1 09:36:19 1996 Stu Grossman (grossman@critters.cygnus.com)
1741
1742 * tc-v850.h: Define LOCAL_LABEL to recognise _.L_* symbols
1743 generated by DWARF.
1744
1745end-sanitize-v850
1746Sat Sep 28 03:38:08 1996 Ian Lance Taylor <ian@cygnus.com>
1747
1748 * listing.c (list_symbol_table): Remove bogus code in BFD64 case,
1749 and just call sprintf_vma.
1750
4fc2c99a
ILT
1751Thu Sep 26 16:04:11 1996 Ian Lance Taylor <ian@cygnus.com>
1752
1753 * expr.c (expr): Change >>= to >> (fix typo). (From meissner).
1754
97f8e6ff
ILT
1755Tue Sep 24 19:05:08 1996 Ian Lance Taylor <ian@cygnus.com>
1756
1757 * read.c (float_cons): Call md_flush_pending_output if it is
1758 defined.
1759
97f8e6ff
ILT
1760Tue Sep 24 12:22:18 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1761
1762 * config/tc-d10v.c (md_operand): Created. Allows operands to
1763 start with '#'.
1764 * config/tc-d10v.h (md_operand): Undefined.
1765
6e4f3f09
ILT
1766Mon Sep 23 12:13:18 1996 Ian Lance Taylor <ian@cygnus.com>
1767
1768 * config/tc-m68k.c (add_fix): Treat a width of '3' like 'B'.
1769 (md_assemble): A fixup width of '3' means a 1 byte reloc.
1770
72f70020
ILT
1771Thu Sep 19 12:21:24 1996 Ian Lance Taylor <ian@cygnus.com>
1772
1773 * config/obj-coff.c (fixup_segment): Don't adjust PC relative
1774 reloc for the i960 for a reloc in the same section. This undoes
1775 one of the two changes made Aug 19.
1776
ab299844
ILT
1777Wed Sep 18 12:11:58 1996 Ian Lance Taylor <ian@cygnus.com>
1778
1779 * config/obj-coff.c (obj_coff_endef): Both versions: Move C_STAT
1780 symbols to the position of the debugging information.
1781
15405999
ILT
1782Mon Sep 16 11:41:40 1996 Ian Lance Taylor <ian@cygnus.com>
1783
1784 * expr.c (expr): Always use unsigned right shifts for >>.
1785
f17be658
JSC
1786Thu Sep 12 10:25:45 1996 James G. Smith <jsmith@cygnus.co.uk>
1787
1788 * config/tc-arm.c (md_apply_fix3): Update two thumb instruction
1789 slots when processing BL fixups.
1790
1791 * config/tc-arm.c (output_inst): Ensure Thumb BL fixup is marked
1792 on the first half of the instruction.
1793
475c826b
ILT
1794Wed Sep 11 00:09:35 1996 Ian Lance Taylor <ian@cygnus.com>
1795
1decafee
ILT
1796 * ecoff.c (ecoff_stab): Create an expression symbol for a complex
1797 stabs expression, rather than giving an error.
1798
475c826b
ILT
1799 * ecoff.c (ecoff_new_file): Don't do anything if we are still in
1800 the same file.
1801
8a3bdc3d
ILT
1802Tue Sep 10 11:45:37 1996 Ian Lance Taylor <ian@cygnus.com>
1803
1804 * config/tc-mips.c (append_insn): Fill in the value for a constant
1805 jump, rather than creating a reloc.
1806
517078c1
ILT
1807Mon Sep 9 10:57:42 1996 Ian Lance Taylor <ian@cygnus.com>
1808
d31a3f5e
ILT
1809 * config/tc-mips.c (append_insn): Don't swap an instruction which
1810 sets a condition code with an instruction which uses a condition
1811 code.
1812 (mips_ip): In cases 'N' and 'M', look for $fccN rather than an
1813 immediate value.
1814
ca296aab 1815 * config/tc-mips.c (md_begin): Recognize r5000 for cpu.
517078c1
ILT
1816 (mips_ip): Give a better error message if the ISA level is wrong.
1817 (md_parse_option): Recognize -mcpu=[v][r]5000.
1818
1819Sat Sep 7 13:25:55 1996 James G. Smith <jsmith@cygnus.co.uk>
1820
1821 * config/tc-mips.c (COUNT_TOP_ZEROES): Added macro to count
1822 leading zeroes.
1823 (load_register): Ensure hi32 bits are not lost during lo32bit
1824 processing. Fix shift offset that was overflowing into the next
1825 instruction field. Add code to generate shorter sequences for
1826 constants with a single contiguous seqeuence of ones.
1827
5e6c6406
MH
1828Fri Sep 6 17:07:12 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1829
1830 * config/tc-d10v.c (d10v_dot_word): New function to support
1831 "@word" with the word pseudo-op.
1832 (md_apply_fix3): Cleanup and changes to support correct sizes
1833 for 16 and 18-bit relocs.
1834
df4021c1
DE
1835Fri Sep 6 16:00:29 1996 Doug Evans <dje@canuck.cygnus.com>
1836
1837 * configure.in (sparc-*-aout): Set `em'.
1838 * configure: Regenerated.
1839 * config/te-sparcaout.h: New file.
1840 * config/tc-sparc.h (TARGET_BYTES_BIG_ENDIAN): Define.
1841 Ifdef TE_SPARCOUT define TARGET_FORMAT and SPARC_BIENDIAN.
1842 * config/tc-sparc.c (INSN_BIG_ENDIAN): New macro.
1843 (SPECIAL_CASE_{SETSW,SETX}): Define.
1844 ({NOP,OR,FMOVS,SETHI,SLLX,SRA}_INSN): Define.
1845 (md_begin): Delete setting of `target_big_endian'.
1846 (output_insn): New function.
1847 (md_assemble): Rewrite. Add `setx' support.
1848 (sparc_ip): Handle `0' operand char. Recognize setuw, setsw, setx
1849 special cases.
1850 (md_atof): Add little endian support.
1851 (md_number_to_chars): Likewise.
1852 (md_apply_fix): Likewise.
1853 (md_longopts): Recognize -EL,-EB ifdef SPARC_BIENDIAN.
1854 (md_parse_option): Likewise.
1855 (md_show_usage): Print -EL, -EB ifdef SPARC_BIENDIAN.
1856
cfc71c6d
ILT
1857Thu Sep 5 13:40:29 1996 Ian Lance Taylor <ian@cygnus.com>
1858
1859 * ecoff.c (ecoff_new_file): New function.
1860 * ecoff.h (ecoff_new_file): Declare.
1861 * config/obj-ecoff.h (obj_app_file): Define.
1862
1863Thu Sep 5 13:39:25 1996 Richard Henderson <rth@tamu.edu>
1864
1865 * config/tc-alpha.c (load_expression): Bias the .lit8 section
1866 symbol by 32k so that our 16-bit signed offset can address the
1867 entire chunk. Reported by <matt@lkg.dec.com>.
1868
711254da
ILT
1869Wed Sep 4 10:23:20 1996 Ian Lance Taylor <ian@cygnus.com>
1870
1871 * config/tc-mips.c (load_register): Remove unused variable tmp.
1872
1b68deb5
JSC
1873Wed Sep 4 11:24:29 1996 James G. Smith <jsmith@cygnus.co.uk>
1874
1875 * config/tc-mips.c (load_register): Remove unnecessary code that
1876 was causing the high 32bits of 64bit constants to be lost.
1877
1b68deb5
JSC
1878Tue Sep 3 13:52:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1879
1880 * config/tc-d10v.c: Added changes to support function
1881 pointers and "@word" syntax.
1882
c84615bc 1883start-sanitize-v850
05fd83ed
JL
1884Tue Sep 3 11:57:18 1996 Jeffrey A Law (law@cygnus.com)
1885
1886 * config/tc-v850.c: Remove commented out and #if 0'd code.
1887 (v850_reloc_prefix): Provide prototype.
1888 (postfix, get_reloc, build_insn): Remove prototypes for nonexistant
1889 functions.
1890 (md_begin, md_assemble, md_apply_fix3): Remove unused variables.
1891 (md_assemble): Add default to case statement.
1892
270fd2ad
JL
1893Sat Aug 31 16:03:00 1996 Jeffrey A Law (law@cygnus.com)
1894
1895 * config/tc-v850.c (md_assemble): Compute size of the instrction
1896 from the opcode.
74dd0c07 1897
2d56269e
JL
1898 * config/tc-v850.c (md_apply_fix3): Do simple byte, short and
1899 word fixups too.
1900
270fd2ad
JL
1901Fri Aug 30 23:50:08 1996 Jeffrey A Law (law@cygnus.com)
1902
74dd0c07
JL
1903 * config/tc-v850.c (md_apply_fix3): Use little endian get/put
1904 routines to fetch/store the updated instruction from/to memory.
1905 (v850_insert_operand): If the operand has a specialized insert
1906 routine, call it.
1907
c84615bc
C
1908Fri Aug 30 18:35:26 1996 J.T. Conklin <jtc@hippo.cygnus.com>
1909
1910 * config/tc-v850.c (reg_name_search): Align calling convention to
1911 be like identical function found in tc-ppc.c.
1912 (get_reloc): Removed.
1913 (v850_reloc_prefix): New function, parse lo(), hi() and hi0().
1914 (md_assemble): emit fixups.
1915 (md_pcrel_from): renamed from md_pcrel_from_section, emit proper
1916 displacement.
1917 (md_apply_fix3): handle fixups/relocs.
1918 * config/tc-v850.h (MD_PCREL_FROM_SECTION): Removed definition.
1919
1920end-sanitize-v850
0f616818
ILT
1921Fri Aug 30 18:12:00 1996 Ian Lance Taylor <ian@cygnus.com>
1922
1923 Add SH ELF support.
1924 * configure.in (sh-*-elf*): New target.
1925 * config/tc-sh.h (TARGET_ARCH): Define.
1926 (WORKING_DOT_WORD): Define.
1927 (TC_COFF_FIX2RTYPE): Only define if OBJ_COFF.
1928 (BFD_ARCH, COFF_MAGIC, TC_COUNT_RELOC): Likewise.
1929 (TC_RELOC_MANGLE, tc_coff_symbol_emit_hook): Likewise.
1930 (DO_NOT_STRIP, NEED_FX_R_TYPE, TC_KEEP_FX_OFFSET): Likewise.
1931 (TC_COFF_SIZEMACHDEP, tc_frob_file): Likewise.
1932 (SUB_SEGMENT_ALIGN): Likewise.
1933 (RELOC_32): Don't define.
1934 (tc_frob_file_before_adjust): Define if BFD_ASSEMBLER.
1935 (target_big_endian): Declare if OBJ_ELF.
1936 (TARGET_FORMAT): Define if OBJ_ELF.
1937 * config/tc-sh.c: Use BFD reloc codes instead of SH COFF reloc
1938 numbers throughout.
1939 (tc_crawl_symbol_chain): Only define if OBJ_COFF.
1940 (tc_headers_hook, tc_coff_sizemachdep): Likewise.
1941 (struct sh_count_relocs): Define.
1942 (sh_count_relocs): New static function, broken out of
1943 sh_frob_file. Add BFD_ASSEMBLER code.
1944 (sh_frob_section): Likewise.
1945 (sh_frob_file): Call sh_frob_section.
1946 (md_convert_frag): If BFD_ASSEMBLER, change type of headers, and
1947 call section_symbol rather than seg_info (seg)->dot.
1948 (md_section_align): Add OBJ_ELF version.
1949 (SWITCH_TABLE_CONS): Define.
1950 (SWITCH_TABLE): Use SWITCH_TABLE_CONS.
1951 (md_apply_fix): Change parameter types if BFD_ASSEMBLER. Only
1952 handle fx_r_type == 0 if not BFD_ASSEMBLER. Return 0 if
1953 BFD_ASSEMBLER.
1954 (struct reloc_map): Define if not BFD_ASSEMBLER.
1955 (coff_reloc_map): Likewise.
1956 (sh_coff_reloc_mangle): Use coff_reloc_map to convert fx_r_type.
1957 (tc_gen_reloc): New function if BFD_ASSEMBLER.
1958 * write.c (write_relocs): Ifdef out fx_where test which triggers
1959 inappropriately for SH ELF.
1960 (write_object_file): Call tc_frob_file_before_adjust and
1961 obj_frob_file_before_adjust if they are defined.
1962
1963 * write.c (write_object_file): Use BFD_RELOC_16, not
1964 BFD_RELOC_NONE, when calling fix_new_exp for a broken word.
1965
1966 * read.c (emit_expr): Fix conversion of byte count to BFD reloc
1967 code.
1968
20dbcd5c
MH
1969Fri Aug 30 14:47:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1970
1971 * config/tc-d10v.c (find_opcode): Fix problem with calculating
1972 branch sizes in across sections.
1973
05631de2
JL
1974start-sanitize-v850
1975Fri Aug 30 00:44:13 1996 Jeffrey A Law (law@cygnus.com)
1976
1977 * config/tc-850.c (md_assemble): Handle hi() correctly. Handle
1978 hi0() too.
1979
1980Wed Aug 28 23:11:08 1996 Jeffrey A Law (law@cygnus.com)
1981
1982 * config/tc-v850.c (md_begin): Deal with end of opcode
1983 table marker.
1984
1985end-sanitize-v850
e592d28f
MH
1986Wed Aug 28 19:20:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1987
1988 * config/tc-d10v.c (find_opcode): Fix a bug which could generate
1989 the wrong opcode for cases like st2w where there are many forms
1990 of the same instruction.
1991
6fce31a6
ILT
1992Tue Aug 27 13:53:22 1996 Ian Lance Taylor <ian@cygnus.com>
1993
1994 * expr.c (operand): If md_parse_name is defined, call it before
1995 calling symbol_find_or_make.
1996 * config/tc-ppc.h (md_parse_name): Define.
1997 (ppc_parse_name): Declare.
1998 * config/tc-ppc.c (reg_name_search): Add regs and regcount
1999 parameters.
2000 (register_name): Update call to reg_name_search.
2001 (cr_operand): New static variable.
2002 (cr_names): New static const array.
2003 (ppc_parse_name): New function.
2004 (md_assemble): If PPC_OPERAND_CR is set in the operand flags, set
2005 cr_operand before calling expression.
2006
a58b037a
JL
2007Tue Aug 27 09:05:50 1996 Jeffrey A Law (law@cygnus.com)
2008
2009 * config/tc-hppa.c (tc_gen_reloc): Add new argument to
2010 hppa_gen_reloc_type call.
2011
3017263b
MH
2012Mon Aug 26 18:24:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2013
2014 * config/tc-d10v.c: Fixed ".word". Fixed problem with range checking
2015 on addresses. Improved error messages.
2016 * doc/c-d10v.texi: Added docs for register pairs.
2017
f9085532
MH
2018Mon Aug 26 13:39:27 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2019
2020 * config/tc-d10v.c (parallel_ok): Fix bug in parallel
2021 checking code.
2022
58275724
ILT
2023Mon Aug 26 14:38:22 1996 Ian Lance Taylor <ian@cygnus.com>
2024
2025 * ecoff.c (init_file): Initialize fMerge to 1.
2026 (add_file): Restore old file merging code, but only merge files if
2027 fMerge is set.
2028 (ecoff_directive_loc): Clear fMerge field of current file.
2029 (ecoff_generate_asm_lineno): Likewise.
2030
b1c28263
MH
2031Fri Aug 23 11:40:47 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2032
2033 * doc/c-d10v.texi: Fix typo.
2034
c9a32d6c
JL
2035start-sanitize-v850
2036Fri Aug 23 10:41:32 1996 Jeffrey A Law (law@cygnus.com)
2037
58275724
ILT
2038 * config/tc-v850.c (md_assemble): Correct bit masking for
2039 hi and lo expressions.
2040
88b47a85
JL
2041 * config/tc-v850.c (md_assemble): Rough cut at demanding
2042 "ep" or "r30" in sst and sld instructions.
2043 (md_apply_fix3): Don't abort. Just warn that we don't
2044 have relocs yet.
2045
c9f1b2d9
JL
2046 * config/tc-v850.c (CC_NAME_CNT): Define.
2047 (cc_name): New function.
2048 (md_assemble): Handle V850_OPERAND_CC correctly.
2049
d5974c57
JL
2050 * config/tc-v850.c (md_assemble): Don't forget to initialize
2051 "insn"!
2052
0e8f9bd1
JL
2053 * config/tc-v850.c (reg_name_search): Generalize to search
2054 any given register table.
2055 (register_name): Pass appropriate table and size to reg_name_search.
2056 (system_register_name): New function.
2057 (SYSREG_NAME_CNT): Define.
2058 (md_assemble): Handle operands which are system registers.
2059
c9a32d6c
JL
2060 * config/tc-v850.c (md_assemble): If we find a register, but the
2061 opcode doesn't want a register, then we don't have a match.
2062 (md_assemble): Get size of the instruction from the opcode table.
2063
2064end-sanitize-v850
eeef602f
ILT
2065Thu Aug 22 10:20:30 1996 Ian Lance Taylor <ian@cygnus.com>
2066
8ee90d35
ILT
2067 * configure.in: Set and substitute HLDENV.
2068 * configure: Rebuild.
2069 * Makefile.in (HLDENV): New variable.
2070 (as.new): Use $(HLDENV).
2071
eeef602f
ILT
2072 * ecoff.c (ecoff_directive_endef): Avoid a division by zero error
2073 if an array dimension is not known.
2074
6be9ec8d
MH
2075Thu Aug 22 10:50:00 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2076
2077 * config/tc-d10v.c: Fix a reloc bug caused by my last change.
2078 * doc/c-d10v.texi: Cleanup.
2079
c6aa56bc
C
2080start-sanitize-v850
2081Tue Aug 20 15:15:16 1996 J.T. Conklin <jtc@hippo.cygnus.com>
2082
2083 * config/tc-v850.c: New file.
2084 * config/tc-v850.h: New file.
2085 * configure (v850-*-elf): New target.
2086 * configure.in (v850-*-elf): New target.
2087
2088end-sanitize-v850
2c2e5626
MH
2089Wed Aug 21 15:50:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2090
2091 * doc/c-d10v.texi: New file.
2092 * doc/all.texi: Added D10V stuff.
2093 * doc/as.texinfo: Added D10V stuff.
2094
ab457c4c
MH
2095Tue Aug 20 14:10:02 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2096
2097 * config/tc-d10v.c: All references to defined symbols should
2098 now use the optimal instruction. .float and .double now work.
2099
d4e1b0be
ILT
2100Mon Aug 19 14:41:36 1996 Ian Lance Taylor <ian@cygnus.com>
2101
2102 * config/obj-coff.c (fixup_segment): Adjust PC relative reloc by
2103 section address for the i960 as is done for the i386.
2104
2105Thu Aug 15 16:37:59 1996 Stan Shebs <shebs@andros.cygnus.com>
2106
2107 * mpw-config.in: Add wildcards for config matching, add mips-*-*
2108 case, forward-include bfd/elf-bfd.h.
2109
b98b04ea
MH
2110Thu Aug 15 13:24:30 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2111
2112 * config/tc-d10v.c: Add additional information to the opcode
2113 table to help determinine which instructions can be done
2114 in parallel.
2115
b98b04ea
MH
2116Thu Aug 15 17:01:31 1996 James G. Smith <jsmith@cygnus.co.uk>
2117
2118 * config/tc-arm.c: Major changes to add Thumb support, with lots
2119 of change input from <rearnsha@armltd.co.uk>.
2120 Reverted to INSN_SIZE macro, rather than insn_size variable.
2121 (insns): Added ARM "bx" instruction support.
2122 (tinsns): Added Thumb instruction definition structure.
2123 (arm_tops_hsh): Added hash structure for Thumb opcodes.
2124 (md_pseudo_table): Added ".arm", ".thumb" and ".code" pseudo-ops.
2125 (opcode_select,s_arm,s_thumb,s_code): Added.
2126 (decode_shift): Allow upper-case RRX.
2127 (do_ldst): Simpler halfword support.
2128 (do_ldmstm): Improved.
2129 (reg_list, do_bx, thumb_reg, thumb_add_sub, thumb_shift,
2130 thumb_mov_compare, thumb_load_store, do_t_arit, do_t_add,
2131 do_t_asr, do_t_branch, do_t_bx, do_t_compare, do_t_ldmstm,
2132 do_t_ldrb, do_t_ldrh, do_t_lds, do_t_lsl, do_t_lsr, do_t_mov,
2133 do_t_push_pop, do_t_str, do_t_strb, do_t_strh, do_t_sub, do_t_swi,
2134 do_t_adr): Added.
2135 (md_apply_fix3): Add support for BFD_RELOC_ARM_THUMB_* relocations.
2136 (md_parse_option): Add support for -mthumb.
2137 (md_show_usage): Updated to reflect new command line option.
2138 (arm_data_in_code, arm_canonicalize_symbol_name): Added.
2139 * config/tc-arm.h: Provide TC_FIX_TYPE to allow private ARM
2140 fragment information to be held.
2141
2142Thu Aug 15 16:12:00 1996 Richard Earnshaw (rearnsha@armltd.co.uk)
2143
2144 * tc-arm.c (md_apply_fix3): Also set fixP->fx_done if fx_addsy is
2145 non-null, but is a constant.
2146 (fix_new_arm): Call make_expr_symbol to make the expression symbol
2147 so that error reporting will work correctly.
2148
126436a8
ILT
2149Wed Aug 14 10:37:21 1996 Ian Lance Taylor <ian@cygnus.com>
2150
2151 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust relocs
2152 against weak symbols.
2153
0e94336e
ILT
2154Tue Aug 13 17:39:24 1996 Ian Lance Taylor <ian@cygnus.com>
2155
2156 * config/tc-ppc.h (TC_FORCE_RELOCTION): Define if OBJ_XCOFF.
2157 (ppc_force_relocation): Declare if OBJ_XCOFF.
2158 * config/tc-ppc.c (ppc_force_relocation): New function if
2159 OBJ_XCOFF.
2160
817e4f75
ILT
2161Mon Aug 12 16:49:43 1996 Ian Lance Taylor <ian@cygnus.com>
2162
2163 * config/tc-mips.h (BYTE_ORDER): Don't define. No longer used.
2164
f494d503
MH
2165Fri Aug 9 17:48:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2166
2167 * config/tc-d10v.c: Fix problem with relocs.
2168
8d07d2c9
ILT
2169Fri Aug 9 14:16:14 1996 Ian Lance Taylor <ian@cygnus.com>
2170
2171 * config/tc-sh.c (sh_do_align): If not BFD_ASSEMBLER, always align
2172 with nops if not in data_section or bss_section.
2173
f649d525
ILT
2174Thu Aug 8 12:32:56 1996 Klaus Kaempf <kkaempf@progis.de>
2175
2176 Add support for openVMS/Alpha.
2177 * as.h (PRINTF_LIKE): Don't define if VMS, for now.
2178 * config/obj-evax.c: New file.
2179 * config/obj-evax.h: New file.
2180 * config/tc-alpha.c: Add support for EVAX format if OBJ_EVAX is
2181 defined.
2182 * config/tc-alpha.h: Add support for EVAX format if OBJ_EVAX is
2183 defined. Add case for bfd_target_evax_flavour.
2184 * config/vms-a-conf.h: New file.
2185 * conf-a-gas.com: New file.
2186 * configure.in: Add target alpha-*-*vms*.
2187 * configure: Rebuild.
2188 * makefile.vms: New file.
2189 * read.c (s_lcomm): Align bss_seg on 8 byte boundary if OBJ_EVAX.
2190 Don't call ffs on openVMS/Alpha.
2191
5cece526
ILT
2192Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
2193
2194 * configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or
2195 <strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr
2196 and sbrk.
2197 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
2198 (NEED_DECLARATION_SBRK): New macro.
2199 * configure, conf.in: Rebuild.
2200 * as.h: Only include <strings.h> if HAVE_STRINGS_H.
2201 (strstr): Declare if NEED_DECLARATION_STRSTR.
2202 * as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
2203
e592f0e6
ILT
2204Wed Aug 7 11:50:26 1996 Ian Lance Taylor <ian@cygnus.com>
2205
d10df990
ILT
2206 * symbols.c (resolve_symbol_value): Handle addition or subtraction
2207 by a constant before entering the main switch. Reject attempts to
2208 apply an arithmetic function to non-absolute symbols, except for
2209 the special case of subtraction of two symbols in the same
2210 section.
2211
cf32394d
ILT
2212 * config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
2213 not to more than a 16 byte boundary.
2214
e592f0e6
ILT
2215 * config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
2216 #ifndef OBJ_ELF lines. From Eric Valette <valette@crf.canon.fr>.
2217 (tc_gen_reloc): If out of memory call as_fatal rather than
2218 assert. If no howto found, call as_bad_where rather than
2219 as_fatal. Change the error message slightly. Set howto to a
2220 non-NULL value in order to keep going.
2221
5d9a99a7
MH
2222Tue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2223
2224 * config/tc-d10v.c: Added code to support 32-bit fixups for stabs.
2225
6a8e0036
JL
2226Tue Aug 6 11:15:26 1996 Jeffrey A Law (law@cygnus.com)
2227
2228 * config/tc-h8300.c (get_specific): New operand "size" derived
2229 from ".b", ".w" and ".l" extensions. All callers changed. If
2230 the base instruction has no operands, then use the size to
2231 determine which specific instruction to use.
2232
3d7b0c49
ILT
2233Mon Aug 5 14:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
2234
2235 * config/tc-i960.c (mem_fmt): Call parse_expr before emit.
2236
10a14e36
ILT
2237Fri Aug 2 11:23:31 1996 Ian Lance Taylor <ian@cygnus.com>
2238
2239 * config/tc-mips.c (md_section_align): Don't change addr if
2240 OBJ_ELF.
2241
470a679c
JL
2242Thu Aug 1 23:51:52 1996 Jeffrey A Law (law@cygnus.com)
2243
2244 * config/tc-hppa.c: Revert yesterday's changes.
2245
b5cf6779
MH
2246Wed Jul 31 14:46:11 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2247
2248 * config/tc-d10v.c: Disable range checking on 16-bit values.
2249
159eb3c0
ILT
2250Wed Jul 31 16:27:19 1996 Ian Lance Taylor <ian@cygnus.com>
2251
2252 * config/tc-m68k.c (m68k_ip): Set ok_arch for every instruction,
2253 not just the ones that don't match.
2254
37e05f64
MH
2255Wed Jul 31 11:45:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2256
2257 * config/tc-d10v.c: Fixed bugs in short relocs and range checking.
2258
c479fc62
JSC
2259Wed Jul 31 15:41:42 1996 James G. Smith <jsmith@cygnus.co.uk>
2260
2261 * config/tc-arm.c: Changed INSN_SIZE to variable insn_size, as
2262 pre-cursor to adding Thumb support. Also added cpu_variant flag
2263 information to each of the asm_flg structures.
2264 (md_parse_option): Updated ARM7 parsing to allow 't' for
2265 thumb/halfword support, aswell as 'm' for long multiply.
2266 (md_show_usage): Updated help message.
2267 (md_assemble): Check that instruction flags are applicated to the
2268 current cpu variant.
2269 (md_apply_fix3, tc_gen_reloc): Add BFD_RELOC_ARM_OFFSET_IMM8 and
2270 BFD_RELOC_ARM_HWLITERAL relocation support for new halfword and
2271 signextension instructions.
2272 (do_ldst): Generate halfword and signextension variants if
2273 mnemonic flags match.
2274 (ldst_extend): Do not allow shifts in the offset field of halfword
2275 or signextension instructions.
2276 (validate_offset_imm): Provide check on halfword and signextension
2277 immediate range.
2278 (add_to_lit_pool): Merge identical literal pool values.
2279
448b5aad
JL
2280Tue Jul 30 14:28:23 1996 Jeffrey A Law (law@cygnus.com)
2281
2282 * config/tc-hppa.c (selector_table): Add 'E' selector.
2283 (cons_fix_new_hppa): Don't coke on e_esel.
2284 (tc_gen_reloc, SOM version): Handle R_COMP2 when used
2285 to help generate exception handling tables.
2286 (md_apply_fix): Don't try to apply fixups with an e_esel
2287 selector.
2288 (hppa_fix_adjustable): Fixups with e_esel selectors
2289 are not adjustable.
2290
8dfb05cc
ILT
2291Tue Jul 30 15:51:41 1996 Ian Lance Taylor <ian@cygnus.com>
2292
2293 * config/tc-sparc.c (md_pseudo_table): Add 2byte, 4byte, and 8byte
2294 pseudo-ops.
2295
8544dc03
MH
2296Fri Jul 26 11:43:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2297
2298 * config/tc-d10v.c: Added lots of error checking. Added hacks
2299 to support accumulator shifts.
2300
5ca547dc
ILT
2301Fri Jul 26 11:56:08 1996 Ian Lance Taylor <ian@cygnus.com>
2302
2303 * symbols.c (S_SET_EXTERNAL): Let .weak override.
2304 (S_CLEAR_EXTERNAL): Likewise.
2305 (S_SET_WEAK): Remove error; just let .weak override.
2306
35ad20a1
MH
2307Thu Jul 25 15:22:51 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2308
2309 * config/tc-d10v.c (md_assemble): Now handles multiline
2310 instructions.
2311
7c096652
MH
2312Thu Jul 25 12:03:33 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2313
2314 * config/tc-d10v.c: Fix packaging bug. Added range checking.
2315 Added kludge for divs instruction. Fixed minor problem with
2316 multiple text sections.
35ad20a1
MH
2317 * config/tc-d10v.h (d10v_cleanup): Change prototype.
2318
93050391
MH
2319Tue Jul 23 10:49:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2320
2321 * config/tc-d10v.c (md_apply_fix3): Fix all instruction
2322 addresses to be right-shifted by 2.
2323
0ef32559
MH
2324Mon Jul 22 11:32:36 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2325
2326 * config/tc-d10v.c: Many changes to get relocs working.
2327 (register_name): No longer creates a symbol for register names.
2328 (pre_defined_registers): moved to opcodes/d10v-opc.c.
2329 (d10v_insert_operand): Now works correctly for either container.
2330 * config/tc-d10v.h (d10v_cleanup): Declare.
2331
97aca1bc
ILT
2332Mon Jul 22 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
2333
2334 * config/tc-mips.c (tc_gen_reloc): BFD_RELOC_PCREL_HI16_S and
2335 BFD_RELOC_PCREL_LO16 are expected to be PC relative.
2336
6543a7fb
ILT
2337Mon Jul 22 12:46:55 1996 Richard Henderson <rth@tamu.edu>
2338
2339 * tc-alpha.c: Patches to track current minimum alignment to reduce
2340 the number of fragments created with frag_align.
2341 (alpha_current_align): New static variable.
2342 (s_alpha_text): Reset alignment to 0.
2343 (s_alpha_data, s_alpha_rdata, s_alpha_sdata): Likewise.
2344 (s_alpha_stringer, s_alpha_space): New functions.
2345 (s_alpha_cons, alpha_flush_pending_output): Remove functions.
2346 (alpha_cons_align): New function to replace both of them.
2347 (emit_insn): Only align if alpha_current_align is less than 2;
2348 reset alpha_current_align to 2.
2349 (s_alpha_gprel32): Likewise.
2350 (s_alpha_section): New function. Basically duplicate the other
2351 alpha section change hooks. Only define for ELF.
2352 (s_alpha_float_cons): Simplify alignment handling.
2353 (md_pseudo_table): Only define "rdata" and "sdata" if OBJ_ECOFF.
2354 If OBJ_ELF, define "section", "section.s", "sect", and "sect.s".
2355 Don't define the s_alpha_cons pseudo-ops. Do define
2356 s_alpha_stringer and s_alpha_space pseudo-ops.
2357 (alpha_align): Skip if less than current default alignment. Set
2358 default alignment.
2359 * tc-alpha.h (md_flush_pending_output): Remove.
2360 (md_cons_align): Add.
2361
2362 * tc-alpha.c: Add oodles of function description comments.
2363 (md_bignum_to_chars): Remove; there are no callers.
2364 (md_show_usage): Mention some more variants.
2365
091221ce
ILT
2366Thu Jul 18 15:54:54 1996 Ian Lance Taylor <ian@cygnus.com>
2367
0b27ea39
ILT
2368 From Andrew Gierth <ANDREWG@microlise.co.uk>:
2369 * configure.in (sparc-*-sysv4*): New target.
2370 * configure: Rebuild.
2371
8dd07a84
ILT
2372 * config/tc-sparc.c (md_pseudo_table): Change uahalf, uaword, and
2373 uaxword to use s_uacons.
2374 (sparc_no_align_cons): New static variable.
2375 (s_uacons): New static function.
2376 (sparc_cons_align): If sparc_no_align_cons is set, just clear it
2377 and return.
2378
2379 * config/tc-sparc.c (s_common): Remove unused label allocate_bss.
2380
cbe7dccb
ILT
2381 * configure.in: Add mips-*-irix6* target. Handle Irix 6 like Irix
2382 5 with regard to shared libraries.
2383 * configure: Rebuild.
2384
091221ce
ILT
2385 * config/tc-m68k.c (m68k_ip): Use the correct length when
2386 allocating space for the unsupported architecture error message.
2387
05a8bf33
MM
2388Thu Jul 18 12:57:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2389
2390 * configure.in (d10v-*-*): Allow d10v-*-*, don't require d10v-*-elf*.
2391
2392Wed Jul 17 14:25:13 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
7be9a312
MH
2393
2394 * config/tc-d10v.c: New file.
2395 * config/tc-d10v.h: New file.
2396 * configure (d10v-*-elf): New target.
2397 * configure.in (d10v-*-elf): New target.
7be9a312 2398
10c9620d
MM
2399Fri Jul 12 20:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2400
2401 * config/tc-ppc.c (md_parse_option): Recognize -K PIC.
2402
0ee09671
ILT
2403Wed Jul 10 12:39:08 1996 Richard Henderson <rth@tamu.edu>
2404
2405 * config/tc-alpha.c (alpha_align): Change fill parameter
2406 to a pointer. Take NULL as 0 or nop depending on section. Change
2407 all callers.
2408 (s_alpha_align): Rename local variables.
2409
2410 * doc/as.texinfo (.align): Document action of omitted
2411 fill parameter.
2412
3128726c
ILT
2413Wed Jul 10 00:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
2414
2415 * config/tc-ppc.c (md_apply_fix3): Give a useful error message
2416 when an unsupported PC relative reloc is seen, rather than calling
2417 abort.
2418
2419 * app.c (do_scrub_chars): Remove not_cpp_line local variable.
2420 Instead, check state when '#' comment is seen.
2421
7f003b7f
ILT
2422Mon Jul 8 14:11:49 1996 Ian Lance Taylor <ian@cygnus.com>
2423
a8aed9dd
ILT
2424 * config/tc-mips.c (mips_regmask_frag): Only define if OBJ_ELF or
2425 OBJ_MAYBE_ELF.
2426 (tc_gen_reloc): If fixup was changed to be PC relative, change
2427 reloc type accordingly. Use name of reloc in error message.
2428
a5a78175
ILT
2429 * as.h: Don't define const or volatile.
2430 * flonum.h: Don't define const.
2431
7f003b7f
ILT
2432 * config/tc-m68k.c (tc_gen_reloc): Change the code appropriately
2433 if fx_pcrel is set. Correct setting the addend case in the
2434 OBJ_ELF case (from Andreas Schwab
2435 <schwab@issan.informatik.uni-dortmund.de>).
2436 (md_show_usage): Correct -mfc5200 to -m5200.
2437
8d20a0a8
C
2438Fri Jul 5 10:32:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2439
910d7df2
C
2440 * doc/c-m68k.texi: Document -m5200 flag.
2441 * doc/as.texinfo: Likewise.
2442
8d20a0a8
C
2443 * config/tc-m68k.c (m68k_ip): The coldfire does not support 8x
2444 scale factor.
2445
c0b34702
ILT
2446Fri Jul 5 11:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
2447
2448 * symbols.c (S_SET_EXTERNAL): Change as_warn to as_bad.
2449 (S_CLEAR_EXTERNAL, S_SET_WEAK): Likewise.
2450
45c85bcb
ILT
2451Thu Jul 4 11:59:46 1996 Ian Lance Taylor <ian@cygnus.com>
2452
6624477c
ILT
2453 * Makefile.in (VERSION): Set to cygnus-2.7.1.
2454
45c85bcb
ILT
2455 * Released binutils 2.7.
2456
fc636a52
JSC
2457Thu Jul 4 10:11:33 1996 James G. Smith <jsmith@cygnus.co.uk>
2458
2459 * config/tc-mips.c (mips_ip): Only perform range check when
2460 dealing with O_constant expressions.
2461
d41d2ccc
C
2462Wed Jul 3 15:02:21 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2463
2464 * m68k-parse.h (m68k_register): Add new coldfile control
2465 registers.
2466
2467 * config/tc-m68k.c (mcf5200_control_regs): New variable,
2468 array of control registers for the coldfire.
2469 (cpu_of_arch): Added mcf5200.
2470 (archs): Added mcf5200.
2471 (init_table): Add new control registers.
2472 (m68k_ip): Added support for new control registers.
2473 (m68k_init_after_args): Likewise.
2474
2475 * config/tc-m68k.c (md_show_usage): Add -m5200 to usage text.
2476
5af96dce
ILT
2477Wed Jul 3 16:05:50 1996 Ian Lance Taylor <ian@cygnus.com>
2478
c5d8f96e
ILT
2479 * read.h (is_it_end_of_statement): Declare.
2480 * read.c (is_it_end_of_statement): Remove declaration.
2481
2482 * config/tc-ppc.c (ppc_elf_suffix): Correct parenthesization of ||
2483 within &&.
2484 (md_assemble): Fix handling of @l with an unsigned constant. Add
2485 default case to reloc switch.
2486
ac76c7e9
ILT
2487 * config/tc-i386.h (AOUT_MACHTYPE): Define as 0 if TE_386BSD.
2488
5af96dce
ILT
2489 Based on patches from Tom Quiggle <quiggle@sgi.com>:
2490 * ecoff.c (last_lineno): New static variable.
2491 (add_procedure): Set last_lineno.
2492 (ecoff_directive_loc): Likewise.
2493 (ecoff_generate_asm_lineno): Likewise.
2494 (ecoff_fix_loc): New function.
2495 * ecoff.h (ecoff_fix_loc): Declare.
2496 * config/tc-mips.c (append_insn): When inserting nops, and using
2497 ECOFF debugging, call ecoff_fix_loc.
2498
b9bddc84
JL
2499Tue Jul 2 23:02:12 1996 Jeffrey A Law (law@cygnus.com)
2500
2501 * config/tc-h8300.c (build_bytes): If an operand type is
2502 marked as SRC_IN_DST retrieve it from the "destination" op.
2503
379c2fb4
ILT
2504Sat Jun 29 13:38:31 1996 Ian Lance Taylor <ian@cygnus.com>
2505
69c1de90
ILT
2506 * configure.in (arm-*-riscix*): Set emulation to riscix.
2507 * configure: Rebuild.
2508 * config/te-riscix.h: New file to define TE_RISCIX.
2509
379c2fb4
ILT
2510 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Define.
2511
2512Fri Jun 28 15:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
2513
2514 * Makefile.in (config.status): Just run config.status as other
2515 tools do.
2516
c611cd82
SS
2517Fri Jun 28 11:09:38 1996 Stan Shebs <shebs@andros.cygnus.com>
2518
2519 * mpw-config.in (TARGET_OS): Add definition to conf.
2520
fbf011f2
ILT
2521Thu Jun 27 20:39:40 1996 James G. Smith <jsmith@cygnus.co.uk>
2522
2523 * config/tc-mips.c (append_insn): Parenthesize
2524 cop_interlocks expressions.
2525
2526Thu Jun 27 12:18:26 1996 Ian Lance Taylor <ian@cygnus.com>
2527
2528 * listing.c (listing_print): Close the listing file if it is not
2529 stdout. Close the other files opened for the listing.
681dbbc0
ILT
2530
2531 * config/tc-sparc.h (md_cons_align): Define.
2532 (sparc_cons_align): Declare.
2533 (HANDLE_ALIGN): Define.
2534 (sparc_handle_align): Declare.
2535 * config/tc-sparc.c (sparc_cons_align): New function.
2536 (sparc_handle_align): New function.
2537 * read.c (cons_worker): Call md_cons_align if it is defined.
2538
2539 * as.h (struct frag): Add fr_file and fr_line fields.
2540 * frags.c (frag_new): Set fr_file and fr_line.
2541 (frag_var): Likewise.
2542 (frag_variant): Likewise.
2543
7e027ce6
ILT
2544 * as.h (struct frag): Remove unused align_mask and align_offset
2545 fields.
2546
f9b990cd
ILT
2547 * listing.c (calc_hex): Offset by fr_fix when examining fr_var.
2548 From <uddeborg@carmen.se>.
2549
9b4b98bd
ILT
2550Wed Jun 26 13:21:34 1996 Ian Lance Taylor <ian@cygnus.com>
2551
67b48b58
ILT
2552 * configure.in (mips-*-osf*): New target.
2553 * configure: Rebuild.
2554
9b4b98bd
ILT
2555 * config/tc-m68k.c: Add 68ec060 as a synonym for 68060.
2556
344a8d61
JSC
2557Wed Jun 26 16:23:08 1996 James G. Smith <jsmith@cygnus.co.uk>
2558
2559 * config/tc-mips.c: Added cop_interlocks, to avoid NOP insertion
2560 between co-processor comparisons and branches for the VR4300.
2561
1c94de4d
JM
2562Mon Jun 24 18:02:50 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2563
2564 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2565 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2566 (docdir): Removed.
2567 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2568 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2569 includedir): Use autoconf set values.
2570 (docdir): Removed.
2571
b290fd25
ILT
2572Mon Jun 24 11:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
2573
1c94de4d
JM
2574 * listing.c (listing_eject): Don't do anything if listing is 0.
2575 (listing_list): Likewise.
2576 (listing_source_line): Likewise.
2577 (listing_title): Don't save title if listing is 0.
2578 (listing_source_file): Check listing rather than listing_tail.
2579
b290fd25
ILT
2580 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
2581 using shared libraries.
2582 * configure: Rebuild.
2583
2584Fri Jun 21 18:22:23 1996 Ian Lance Taylor <ian@cygnus.com>
2585
2586 * config/tc-mips.c (mips_ip): In case 'i'/'j', don't require an
2587 absolute expression if a relocation type was specified.
2588
644edced
ILT
2589Fri Jun 21 17:40:16 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
2590
2591 * configure.in: Add support for *-*-rtems* configurations.
2592 * configure: Rebuild.
2593
df586de2
ILT
2594Fri Jun 21 16:01:18 1996 Richard Henderson <rth@tamu.edu>
2595
2596 * configure.in: Add alpha-*-linuxecoff* target. Use elf for
2597 alpha-*-linux* target. Force bfd_gas for alpha-*. Require
2598 opcodes library for alpha.
2599 * configure: Rebuild with autoconf 2.10.
2600 * config/tc-alpha.c: Substantial rewrite to add ELF support and
2601 use new opcode table.
2602 * config/tc-alpha.h (md_undefined_symbol): Don't define.
2603 (LOCAL_LABEL): Define differently if OBJ_ELF.
2604 (FAKE_LABEL_NAME): Define if OBJ_ELF.
2605 * config/alpha-opcode.h: Remove.
2606 * config/obj-elf.h: If TC_ALPHA, define ECOFF_DEBUGGING.
2607 * Makefile.in (TARG_CPU_DEP_alpha): Depend upon
2608 include/opcode/alpha.h rather than config/alpha-opcode.h.
2609
7ca8e36e
ILT
2610Thu Jun 20 19:10:28 1996 Ian Lance Taylor <ian@cygnus.com>
2611
edec3111
ILT
2612 * config/obj-aout.c (obj_emit_relocations): Give an error if the
2613 relocation symbol was not resolved.
2614 * config/obj-coff.c (do_relocs_for): Likewise.
2615
7ca8e36e
ILT
2616 * write.c (adjust_reloc_syms): Refetch the symbol section after
2617 calling S_GET_VALUE, since it may have changed.
2618
2619 * expr.c (struct expr_symbol_line): Define.
2620 (expr_symbol_lines): New static variable.
2621 (make_expr_symbol): Add entry to expr_symbol_lines.
2622 (expr_symbol_where): New function.
2623 * expr.h: Use extern on function declarations.
2624 (expr_symbol_where): Declare.
2625 * symbols.c (resolve_symbol_value): Try to use expr_symbol_where
2626 rather than printing the meaningless name of an expression
2627 symbol.
2628
214f540d
KR
2629Thu Jun 20 15:57:41 1996 Ken Raeburn <raeburn@cygnus.com>
2630
2631 * config/tc-i386.c (md_number_to_chars): Deleted.
2632 * config/tc-i386.h (md_number_to_chars): New macro.
2633
2634 * config/tc-alpha.c (build_operate_n, build_mem): Moved earlier in
2635 the file.
2636 (load_symbol_address, load_expression): Use build_mem.
2637 (build_operate): New function.
2638 (emit_addq_r): Use it.
2639
2640 Wed Mar 13 22:14:14 1996 Pat Rankin <rankin@eql.caltech.edu>
2641
2642 * symbols.c (colon): #if VMS, use S_SET_OTHER to store `const_flag'.
2643
2644 Tue Mar 5 14:31:45 1996 Pat Rankin <rankin@eql.caltech.edu>
2645
2646 * config/tc-vax.h (NOP_OPCODE): Define.
2647
2648 Sun Feb 4 21:01:03 1996 Pat Rankin <rankin@eql.caltech.edu>
2649
2650 * config/obj-vms.h (S_IS_COMMON): Define.
2651 (S_IS_LOCAL): Check for \002 as well as \001.
2652 (LONGWORD_ALIGNMENT): New macro.
2653 (SUB_SEGMENT_ALIGN): Use it.
2654
2655 Fri Jan 26 17:44:09 1996 Pat Rankin <rankin@eql.caltech.edu>
2656
2657 * config/vms-conf.h: Reconcile with conf.in.
2658
7b9b1eb2
ILT
2659Wed Jun 19 11:31:50 1996 Ian Lance Taylor <ian@cygnus.com>
2660
793f9558
ILT
2661 * write.c (is_dnrange): Only define if TC_GENERIC_RELAX_TABLE is
2662 defined.
2663
84577dde
ILT
2664 * doc/as.texinfo: Document that any number of hex digits can
2665 follow \x.
2666
0d6cae1e
ILT
2667 * as.c (struct defsym_list): Define.
2668 (defsyms): New static variable.
2669 (parse_args): Just put --defsym arguments on defsyms list, rather
2670 than defining them.
2671 (main): Define defsyms after output file is created.
2672
6e3f7f1b
ILT
2673 * config/tc-m68k.c (m68k_ip): Reject PRE and POST indexing mode on
2674 cpu32. From Eric Norum <Eric.Norum@usask.ca>.
2675
8095b665
ILT
2676 * config/tc-mips.c (mips_ip): In cases 'I', 'i', and 'j', set
2677 insn_error rather than calling check_absolute_expr.
2678
2679 * as.c (emulation_name): Remove unused static variable.
2680 (default_emul_bfd_name): Add return NULL to avoid warning.
2681 * ecoff.c (ecoff_stab): Remove unused variables name and
2682 name_end.
2683 * frags.c (frag_new): Remove unused variable tmp.
2684 * hash.c (hash_grow): Parenthesize + within <<.
2685 (hash_print_statistics): Use %lu, not %d, to print unsigned
2686 long variables.
2687 * messages.c: Include "libiberty.h".
2688 (fprint_value): Add cast to avoid printf warning.
2689 (sprint_value): Likewise.
2690 * read.c: Include "ecoff.h".
2691 (emit_expr): Add casts to avoid printf warnings.
2692 * read.h: Use extern for function declarations.
2693 (pop_insert): Declare.
2694 * stabs.c: Include "ecoff.h".
2695 * subsegs.c (subseg_set_rest): Remove unused variables tmp,
2696 former_last_fragP, and new_fragP.
2697 * subsegs.h (subsegs_print_statistics): Declare.
2698 * symbols.c (debug_verify_symchain): Change macro to discard
2699 arguments.
2700 * write.c (dump_section_relocs): Likewise.
2701 * write.h: Use extern for function declarations.
2702 (write_print_statistics): Declare.
2703 * config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid
2704 warning.
2705 * config/e-mipself.c (mipself_bfd_name): Likewise.
2706 * config/obj-elf.h (elf_ecoff_set_ext): Declare.
2707
9ee759fc
ILT
2708 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): If OBJ_ELF, always
2709 emit relocations against external symbols.
2710
faa3f539
ILT
2711 * config/tc-alpha.c (tc_gen_reloc): Output a sensible error
2712 message if bfd_reloc_type_lookup fails, rather than calling
2713 assert.
2714
7b9b1eb2
ILT
2715 * config/tc-alpha.c (alpha_force_relocation): Add
2716 BFD_RELOC_12_PCREL to switch.
2717
2718Tue Jun 18 20:29:57 1996 Doug Evans <dje@canuck.cygnus.com>
2719
2720 * config/tc-i386.h (LOCAL_LABEL,FAKE_LABEL_NAME): Use defaults for
2721 TE_PE (Lfoo, not .Lfoo).
2722
d9453233
ILT
2723Tue Jun 18 17:13:33 1996 Ian Lance Taylor <ian@cygnus.com>
2724
24b018ee
ILT
2725 * read.c (s_fill): Don't warn about a zero repeat count.
2726
c674dcaa
ILT
2727 * config/tc-mips.c (mips_ip): Don't warn about using AT as a
2728 coprocessor register.
2729
d9453233
ILT
2730 * config/tc-i386.c (md_assemble): When checking the size of a
2731 register to set the size of an instruction, do a bitwise and with
2732 Reg8 and Reg16 rather than requiring the type to be exactly Reg8
2733 or Reg16.
2734
3d0afe12
JL
2735Tue Jun 18 13:19:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2736
2737 * config/tc-h8300.c (parse_reg): Tweak error messages.
2738 (build_bytes): Likewise.
2739 (skip_colonthing): Handle :32 suffix.
2740 (get_specific): Promote L_24 to L_32 if it makes a match.
2741 Don't always promote L_8 to L_16.
2742 (do_a_fix_imm): Clean up L_32 and L_24 handling.
2743
3d0afe12
JL
2744 * config/tc-h8300.c (Smode): New variable.
2745 (h8300hmode): Turn off Hmode.
2746 (h8300smode): New function. Turn on Smode and Hmode.
2747 (md_pseudo_table): New ".h8300s" pseudo-op.
2748 (parse_reg): Handle "exr" register.
2749 (get_operand): Handle bizarre syntax for "stm.l" and "ldm.l".
2750 Handle "mach" and "machl" operands for ldmac.
2751 (get_specific): Handle "stm.l" and "ldm.l".
2752 (build_bytes): Handle "stm.l" and "ldm.l"; handle MACREG operands.
2753 * config/tc-h8300.h (COFF_MAGIC): Handle H8/S magic number.
2754 (Smode): Declare.
2755
370181a2
C
2756Mon Jun 17 15:50:53 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2757
2758 * doc/as.texinfo: Reorder chapter of machine dependent options so
2759 that it is sorted by chip name.
2760
2761 * doc/as.texinfo: Use consistant spelling of Vax.
2762 * doc/c-vax.texi: Likewise.
2763
02d4dd87
JL
2764Mon Jun 17 11:26:56 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2765
2766 * config/tc-hppa.c (md_pseudo_table): Add ".begin_try" and ".end_try"
2767 pseudo ops.
2768 (tc_gen_reloc, SOM version): Handle R_BEGIN_TRY and R_END_TRY.
2769 (md_apply_fix): Likewise.
2770 (pa_try): New function.
2771 (hppa_force_relocation): Force relocs for BEGIN_TRY and END_TRY.
2772
b81231b7
JL
2773Sun Jun 16 22:57:47 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2774
2775 * config/tc-hppa.c (md_pseudo_table): Add ".level" pseudo op.
2776 (pa_level): New function.
2777
fe8d0ff3
ILT
2778Fri Jun 14 20:06:44 1996 Ian Lance Taylor <ian@cygnus.com>
2779
2780 * listing.c (listing_newline): Don't do anything if listing is 0.
2781
2782Thu Jun 13 17:50:54 1996 Ian Lance Taylor <ian@cygnus.com>
2783
2784 * subsegs.c (section_symbol): If symbol_table_frozen is set, call
2785 symbol_create, not symbol_new.
2786
9bec2a42
ILT
2787Wed Jun 12 14:10:44 1996 Ian Lance Taylor <ian@cygnus.com>
2788
2789 * write.c (adjust_reloc_syms): Don't set sy_used_in_reloc for an
2790 absolute symbol unless TC_FORCE_RELOCATION returns true.
2791
2792 * config/obj-coff.c (previous_file_symbol): Remove BFD_ASSEMBLER
2793 version.
2794 (c_dot_file_symbol): BFD_ASSEMBLER version: Don't set the value of
2795 the symbol to a pointer. Don't set previous_file_symbol.
2796 Simplify symbol list rearrangement.
2797 (coff_frob_symbol): Don't do anything with C_FILE symbols.
2798 (coff_adjust_symtab): Don't check previous_file_symbol.
2799
c992cf9b
MM
2800Mon Jun 10 14:52:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2801
2802 * config/tc-ppc.c (ppc_elf_lcomm): New function for .lcomm
2803 directive.
2804 (md_pseudo_table): Add ppc_elf_lcomm.
2805
1ba76615 2806Mon Jun 10 11:45:51 1996 Ian Lance Taylor <ian@cygnus.com>
92e61d31
ILT
2807
2808 * config/tc-m68k.c (m68k_ip): Accept ABSL for 'O', so that `bfextu
2809 d0{24:1},d0' works without an immediate prefix on the bit numbers.
2810 (md_begin): Add digits to alt_notend_table.
2811 (md_parse_option): Make s a const pointer.
1ba76615 2812
b91e85c2
ILT
2813 * config/tc-sparc.c (md_pseudo_table): Add "empty".
2814 (s_empty): New static function.
2815
e789e620
ILT
2816 * config/obj-coff.c (struct filename_list): Only define if not
2817 BFD_ASSEMBLER.
2818 (filename_list_head, filename_list_tail): Likewise.
2819 (c_section_symbol): Remove unused BFD_ASSEMBLER version.
2820 (obj_coff_endef, BFD_ASSEMBLER version): Don't set the debugging
2821 flag for C_MOS, C_MOE, C_MOU, or C_EOS symbols, since they should
2822 have a section of N_ABS rather than N_DEBUG. If we do a merge,
2823 remove the new symbol from the list.
2824 (obj_coff_endef, both versions): Call tag_insert even if there is
2825 an old symbol with the same name, if the old symbol does not
2826 happen to be a tag.
2827 (coff_frob_symbol): Check SF_GET_TAG, C_EOF, and C_FILE outside of
2828 the SF_GET_DEBUG condition. Don't call SA_SET_SYM_ENDNDX with a
2829 symbol that will be moved to the end of the symbol list.
2830 (coff_adjust_section_syms): Always call section_symbol for .text,
2831 .data, and .bss.
2832 (coff_frob_section): Likewise. Also, remove unused variable
2833 strname.
2834
0670452e
ILT
2835 * config/tc-ns32k.c (convert_iif): Call frag_grow rather than
2836 manipulating frags directly.
2837 (md_number_to_field): Adjust mem_ptr correctly if ENDIAN is
2838 defined.
2839
41822c41
ILT
2840 * app.c (do_scrub_chars): If '/' is LINE_COMMENT_START, check
2841 whether the next character is '*' before checking whether we are
2842 at the start of a line. Permit LINE_COMMENT_START to start a
2843 comment in state 1 (seen some whitespace) as well, to match the
2844 documentation.
2845
1ba76615
ILT
2846 * gasp.c (do_align): Permit a fill value for .align.
2847
ed381b67
JW
2848Wed Jun 5 17:09:26 1996 Ian Lance Taylor <ian@cygnus.com>
2849
2850 * read.c (next_char_of_string): Warn if a newline is seen in the
2851 middle of a string. Call bump_line_counters when appropriate.
2852
2853Wed Jun 5 17:08:36 1996 Richard Henderson <rth@tamu.edu>
2854
2855 * symbols.c (colon): Use LOCAL_LABEL.
2856
2c7aeec6
TT
2857Tue Jun 4 10:55:16 1996 Tom Tromey <tromey@csk3.cygnus.com>
2858
2859 * Makefile.in (install): Don't check to see if tooldir exists.
2860 Make $(tooldir) and $(tooldir)/bin.
2861
527b8324
MM
2862Tue Jun 4 10:14:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2863
2864 * config/ppc-sol.mt (TDEFINES): Don't turn on -mregnames by
2865 default.
2866
3b426f5a
ILT
2867Mon Jun 3 11:34:41 1996 Ian Lance Taylor <ian@cygnus.com>
2868
2869 * config/tc-mips.c (mips_ip): Don't call as_warn if we are setting
2870 insn_error. Don't put the string "ERROR" in insn_error. Set
2871 insn_error rather than calling as_warn for an unsupported opcode.
2872
9c44af60
ILT
2873Sat Jun 1 21:51:55 1996 Ian Lance Taylor <ian@cygnus.com>
2874
2875 * config/tc-mips.c (md_parse_option): Check for a 64 bit format
2876 before permitting -64.
2877 * output-file.c (output_file_create): Remove duplicate
2878 bfd_perror.
2879
98bfd087
ILT
2880Fri May 31 01:08:06 1996 Ian Lance Taylor <ian@cygnus.com>
2881
87178180
ILT
2882 * config/tc-mips.c (md_begin): If -64, create a .MIPS.options
2883 section rather than a .reginfo section.
2884 (mips_elf_final_processing): If -64, write out 64 bit RegInfo
2885 information.
2886
98bfd087
ILT
2887 * config/tc-mips.c (load_register): If mips_isa < 3, permit a 32
2888 bit value with the high bit set.
2889
b95bee13
ILT
2890Thu May 30 19:00:19 1996 Ian Lance Taylor <ian@cygnus.com>
2891
2892 * read.c (s_lcomm): Set section flags for .sbss section.
2893
2894 * config/tc-mips.c (mips_64): New static variable.
2895 (mips_target_format): If mips_64, return elf64 targets rather than
2896 elf32 ones.
2897 (md_longopts): Add "32" and "64".
2898 (md_parse_option): Handle -32 and -64.
2899 (md_show_usage): Mention -32 and -64.
2900 (cons_fix_new_mips): If mips_64, don't convert an 8 byte reloc to
2901 a 4 byte one.
2902
1facd5f0
MM
2903Thu May 30 10:36:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2904
98bfd087
ILT
2905 * config/tc-ppc.c (comment_chars): Make '!' a comment character
2906 for Solaris compatibility.
d0e1c803 2907
1facd5f0
MM
2908 * stabs.c (s_stab_generic): Under PowerPC Solaris, convert a
2909 .stabd with 4 arguments into a .stabn.
2910
a40aee38
ILT
2911Wed May 29 16:43:16 1996 Ian Lance Taylor <ian@cygnus.com>
2912
2913 * config/tc-mips.c (macro): When passing X_add_number to
2914 macro_build, cast it to int first.
2915
943bdfdc
ILT
2916Tue May 28 13:29:39 1996 Ian Lance Taylor <ian@cygnus.com>
2917
54388b85
ILT
2918 * config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, as
2919 created by emit_expr.
2920
943bdfdc
ILT
2921 * symbols.c (symbol_create): If bfd_make_empty_symbol fails, call
2922 as_perror rather than assert.
2923
9b61d62b
ILT
2924Fri May 24 18:24:11 1996 Ian Lance Taylor <ian@cygnus.com>
2925
2926 * config/tc-mips.c (mips_ip): Mark sections created to hold
2927 floating point information as read only.
2928
e30c0076
MM
2929Fri May 24 12:07:54 1996 David Edelsohn <edelsohn@mhpcc.edu>
2930
2931 * config/tc-ppc.c (ppc_set_cpu): Change defaults to match AIX.
2932
63cafcef
MM
2933Thu May 23 17:34:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2934
adeab39b
MM
2935 * read.c (potable): Add .skip as a synonym for .space.
2936
63cafcef
MM
2937 * stabs.c (s_stab_generic): For PowerPC ELF, allow .stabd to take
2938 4 arguments, providing the 4th argument is 0, to allow
2939 compatibility with the Solaris assembler.
2940
2941Thu May 16 15:51:48 1996 Ian Lance Taylor <ian@cygnus.com>
2942
2943 * config/tc-sh.h (struct sh_segment_info_type): Define.
2944 (TC_SEGMENT_INFO_TYPE): Define.
2945 (sh_frob_label): Declare.
2946 (tc_frob_label): Define.
2947 (sh_flush_pending_output): Declare.
2948 (md_flush_pending_output): Define.
2949 * config/tc-sh.c (md_assemble): If relaxing, emit a R_SH_CODE
2950 reloc before the instruction if necessary.
2951 (sh_frob_label): New function.
2952 (sh_flush_pending_output): New function.
2953 (sh_coff_frob_file): Ignore ALIGN, CODE, DATA, and LABEL relocs
2954 when looking for the reloc for the target of .uses.
2955 (md_convert_frag): Fix printf format (%0xlx to 0x%lx).
2956 (sh_force_relocation): Force CODE, DATA, and LABEL relocs to be
2957 emitted.
2958 (md_apply_fix): Ignore CODE, DATA, and LABEL relocs.
2959 (sh_coff_reloc_mangle): Force CODE, DATA, and LABEL relocs to use
2960 the absolute symbol.
2961
2962 * subsegs.h (segment_info_type): Add tc_segment_info_data field if
2963 TC_SEGMENT_INFO_TYPE is defined.
2964
3ea36b53
ILT
2965Wed May 15 12:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
2966
2967 * config/tc-i386.c (md_assemble): Make sure the opcode suffix
2968 matches the register size.
2969
ecb9b1ca
JL
2970Wed May 15 08:33:37 1996 Jeffrey A Law (law@cygnus.com)
2971
2972 * config/obj-coff.c (count_entries_in_chain): Ignore Fixups with
2973 fx_done set.
2974 (do_relocs_for): Likewise.
2975 (fixup_segment): Don't just quit if linkrelax is set. Try to
2976 apply non pc-relative sym1-sym2 fixups, even if linkrelax is
2977 nonzero.
2978
f122568e
MM
2979Fri May 10 14:16:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2980
2981 * config/tc-ppc.c (ppc_elf_validate_fix): Allow GOT and section
2982 relative relocations with -mrelocatable. Also allow unfixed
2983 relocs in .ex_shared.
2984
6648d3ae
ILT
2985Tue May 7 11:24:10 1996 Ian Lance Taylor <ian@cygnus.com>
2986
2987 * config/obj-coff.c (yank_symbols): Check that FNAME_OFFSET is
2988 non-zero before assuming this is a long file name.
2989 (w_strings): Likewise.
2990 (c_dot_file_symbol): Set FNAME_OFFSET to 1 for a long file name.
2991
2992 * config/obj-coff.c (w_strings): Move declaration of i inside
2993 #ifdef block which uses it.
2994
c47fc401
JL
2995Tue May 7 00:49:58 1996 Jeffrey A Law (law@cygnus.com)
2996
2997 * config/tc-h8300.c (do_a_fix_imm): Rename last argument to
2998 "relaxmode". Output relocs which identify various relaxing
2999 possibilities for mov.[bwl] instructions.
3000 (build_bytes): Pass in a relaxing mode to do_a_fix_imm.
3001
9ea82743
DE
3002Mon May 6 15:26:28 1996 Doug Evans <dje@canuck.cygnus.com>
3003
3004 * config/tc-arm.h (TC_HANDLES_FX_DONE): Define.
3005 (MD_APPLY_FIX3): Define.
3006 * config/tc-arm.c (my_get_expression): Only watch for bad segments
3007 if OBJ_AOUT.
3008 (md_apply_fix3): Renamed from md_apply_fix.
3009 If pcrel reloc and symbol is in different section, undo effects
3010 of md_pcrel_from.
3011
ab7db73b
JL
3012Sat May 4 12:49:35 1996 Jeffrey A Law (law@cygnus.com)
3013
3014 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
3015 any reloc with an LR% or RR% field selector for SOM.
3016
c9324fcd
ILT
3017Sat May 4 11:26:19 1996 Ian Lance Taylor <ian@cygnus.com>
3018
3019 * Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
3020 variables.
3021
d4d7d98c
ILT
3022Fri May 3 17:58:31 1996 Ian Lance Taylor <ian@cygnus.com>
3023
3024 * config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
3025 SF_GET_STATICS set.
3026 (yank_symbols): Likewise.
3027
8fe2ec52
ILT
3028Wed May 1 13:38:17 1996 Ian Lance Taylor <ian@cygnus.com>
3029
7681eb9d
ILT
3030 * subsegs.h (segment_info_type): If MANY_SEGMENTS and not
3031 BFD_ASSEMBLER, add name field.
ba97ba7e
ILT
3032 * config/obj-coff.c: Include "libiberty.h".
3033 (coff_header_append): Handle long section names.
7681eb9d
ILT
3034 (crawl_symbols): Just use the name field for the symbol name,
3035 without worrying about null byte termination.
3036 (w_strings): Handle long section names.
3037 (write_object_file): Likewise. Also, use the name field, rather
3038 than scnhdr.s_name.
3039 (obj_coff_add_segment): Permit long section names.
3040 (obj_coff_init_stab_section): Use the name field, rather than
3041 scnhdr.s_name.
3042 (adjust_stab_section): Likewise.
3043 * config/te-pe.h (COFF_LONG_SECTION_NAMES): Define.
3044
8fe2ec52
ILT
3045 * config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
3046 (mem_fmt): Likewise.
3047 (md_apply_fix): Don't check fx_im_disp field.
3048
556829bc
ILT
3049Thu Apr 25 11:39:51 1996 Ian Lance Taylor <ian@cygnus.com>
3050
f9e36fc6
ILT
3051 * configure.in: Add * after sparc*-*-vxworks.
3052 * configure: Rebuild.
3053
556829bc
ILT
3054 * app.c (do_scrub_begin): If tc_comment_chars is not defined,
3055 define it to comment_chars. Use tc_comment_chars rather than
3056 comment_chars.
3057 (do_scrub_chars): Use tc_comment_chars rather than comment_chars.
3058 * config/tc-m68k.h (tc_comment_chars): Define.
3059 (m68k_comment_chars): Declare.
3060 * config/tc-m68k.c (m68k_comment_chars): Rename from
3061 comment_chars. Change into a pointer rather than an array.
3062 (md_longopts): Add "bitwise-or".
3063 (md_parse_option): Handle OPTION_BITWISE_OR.
3064 (md_show_usage): Mention --bitwise-or.
3065 * doc/c-m68k.texi: Document --bitwise-or.
3066
116bf30f
ILT
3067Wed Apr 24 11:28:38 1996 Ian Lance Taylor <ian@cygnus.com>
3068
912e4245
ILT
3069 * config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
3070 in 68000 mode.
3071
116bf30f
ILT
3072 * config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
3073 call demand_empty_rest_of_line. Non BFD_ASSEMBLER version:
3074 correct handling of input line pointer, and call
3075 demand_empty_rest_of_line.
3076
58c9a12b
DE
3077Mon Apr 22 18:02:37 1996 Doug Evans <dje@blues.cygnus.com>
3078
3079 * config/tc-sparc.c (in_bitfield_range): New static function.
3080 (sparc_ip): New cases X,Y. Use SPARC_OPCODE_ARCH_V9_P.
3081 (md_apply_fix, cases BFD_RELOC_32_PCREL_S2,
3082 BFD_RELOC_SPARC_{WDISP16,WDISP19}): Fix undefined code.
3083 (md_apply_fix): New cases BFD_RELOC_SPARC_[56].
3084 (tc_gen_reloc): New cases BFD_RELOC_SPARC_[56].
3085
ff406bd3
ILT
3086Thu Apr 18 18:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
3087
3088 * config/obj-coff.c: BFD_ASSEMBLER:
3089 (coff_last_bf): New static variable.
3090 (coff_frob_symbol): Set endndx of a .bf symbol.
3091 Non BFD_ASSEMBLER:
3092 (obj_coff_endef): Call SF_SET_PROCESS on a .bf symbol.
3093 (last_bfP): New static variable.
3094 (yank_symbols): Set endndx of a .bf symbol.
3095
47d12b2c
MM
3096Thu Apr 18 11:53:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3097
3098 * config/tc-ppc.c (md_parse_option): Add support for Solaris's -le
3099 and -s options. Add -be for good measure.
3100
3ce7f41a
ILT
3101Wed Apr 17 12:31:01 1996 Ian Lance Taylor <ian@cygnus.com>
3102
3103 * read.c (s_space): Support non-constant fill value. Handle fill
3104 value correctly for a size other than 1.
3105
865447db
DE
3106Tue Apr 16 15:17:40 1996 Doug Evans <dje@canuck.cygnus.com>
3107
3108 * config/tc-arm.c (my_get_float_expression): Update call to
3109 gen_to_words, X_PRECISION changed from 6 to 5.
3110
159e6ef8
MM
3111Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3112
3113 * config/tc-ppc.c (register_name,reg_name_search): Move register
3114 name lookup from PE specific code to all targets. Add support for
3115 -mregnames/-mno-regnames to control whether register names are
3116 expanded or not.
3117 (md_assemble): Call register_name for all platforms.
3118 (md_parse_option): Add support for -mregnames/-mno-regnames.
3119
3120 * configure.in (powerpcle*-*-solaris): Add support.
3121 (powerpc*-*-linux): Ditto.
3122 * configure: Regenerate.
3123
3124 * config/ppc-sol.mt: New config file for PowerPC Solaris.
3125
7a15a226
ILT
3126Mon Apr 15 12:26:33 1996 Ian Lance Taylor <ian@cygnus.com>
3127
aa9e2dbe
ILT
3128 * config/tc-mips.c (mips_frob_file): Permit multiple %hi relocs to
3129 be associated with a single %lo reloc.
3130
7a15a226
ILT
3131 * config/tc-mips.c (load_address): Cast X_add_number to valueT
3132 before comparing against MAX_GPREL_OFFSET, so that negative
3133 numbers are handled correctly.
3134 (macro): Likewise.
3135
65feb78d
ILT
3136Thu Apr 11 12:39:02 1996 Ian Lance Taylor <ian@cygnus.com>
3137
ed94c2b8
ILT
3138 * config/tc-sparc.c (last_insn): New static variable.
3139 (md_assemble): Warn about putting floating point branches in a
3140 delay slot. If architecture is less than v9, insert NOP
3141 instructions between floating point instructions and floating
3142 point branches. (The SunOS assembler does both these operations.)
3143 Save the last instruction opcode.
3144 (sparc_ip): Add pinsn parameter. Change caller.
3145
65feb78d
ILT
3146 * config/tc-m68k.c (md_estimate_size_before_relax): Correct check
3147 for byte jump to next instruction to skip empty frags.
3148
456c301f
ILT
3149Wed Apr 10 16:48:12 1996 Ian Lance Taylor <ian@cygnus.com>
3150
3151 * config/tc-alpha.c (alpha_ip): If we are going to call emit_add64
3152 for addq with a 16 bit signed value, just emit a lda instruction
3153 instead.
3154
b3ed89e8
JL
3155Wed Apr 10 14:34:49 1996 Jeffrey A Law (law@cygnus.com)
3156
3157 * config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
3158 of a 32bit operand.
3159
b4cb4ea2
ILT
3160Mon Apr 8 14:42:53 1996 Ian Lance Taylor <ian@cygnus.com>
3161
3162 * configure.in: Permit --enable-shared to specify a list of
3163 directories.
3164 * configure: Rebuild.
3165
dcb195f8
JL
3166Fri Apr 5 17:01:35 1996 Jeffrey A Law (law@cygnus.com)
3167
3168 * config/tc-h8300.c (get_specific): Remove some #if 0 code.
3169 (build_bytes): Remove all ABSMOV related code; it's unnecessary.
3170
13e4a17e
ILT
3171Fri Apr 5 15:13:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3172
3173 * config/atof-ieee.c: Fix handling of denormalized extended
3174 precision numbers and overflow/underflow detection.
3175 (MAX_PRECISION, X_PRECISION, P_PRECISION): Changed from 6 to 5, to
3176 not include the 16 bit gap in the m68k extended precision format.
3177
2ae5f50b
ILT
3178Fri Apr 5 14:29:23 1996 Ian Lance Taylor <ian@cygnus.com>
3179
3180 * configure.in: Add i386-*-freebsdelf* target; from John Polstra
3181 <jdp@polstra.com>.
3182 * configure: Rebuild.
3183
54ea771f
JSC
3184Fri Apr 5 18:39:28 1996 James G. Smith <jsmith@cygnus.co.uk>
3185
3186 * config/tc-mips.c: Allow non-zero offsets from .sdata symbols to
3187 be accessed using the $gp register.
3188 * config/tc-mips.h (MAX_GPREL_OFFSET): Added.
3189
65b12103
DE
3190Wed Apr 3 10:56:14 1996 Doug Evans <dje@canuck.cygnus.com>
3191
3192 * config/tc-sparc.c (sparc_md_end): Set bfd machine number to
3193 bfd_mach_sparc_sparclet if current_architecture is sparclet.
3194
2271578d
ILT
3195Mon Apr 1 16:55:44 1996 Ian Lance Taylor <ian@cygnus.com>
3196
3197 * read.c (get_line_sb): Bump line counters based on
3198 input_line_pointer[-1], not *input_line_pointer. Don't bother to
3199 call LISTING_NEWLINE.
3200 (s_macro): Don't call demand_empty_rest_of_line.
3201 * app.c (do_scrub_chars): When handling C style comments, unget
3202 ch2 rather than ch.
3203
7d3741ed
ILT
3204Fri Mar 29 16:15:06 1996 Ian Lance Taylor <ian@cygnus.com>
3205
3206 * read.h (enum linkonce_type): Define.
3207 (s_linkonce): Declare.
3208 * read.c (potable): Add "linkonce".
3209 (s_linkonce): New function.
3210 * subsegs.h (segment_info_type): Add linkonce field to
3211 MANY_SEGMENTS && ! BFD_ASSEMBLER section.
3212 * config/obj-coff.h (obj_handle_link_once): Define if TE_PE.
3213 (obj_coff_pe_handle_link_once): Declare if TE_PE.
3214 * config/obj-coff.c: If TE_PE and not BFD_ASSEMBLER, #include
3215 "coff/pe.h".
3216 (obj_coff_pe_handle_link_once): New function, defined if TE_PE.
3217 (c_section_symbol): If TE_PE, set the x_comdat field in the aux
3218 entry based on the linkonce field in segment_info.
3219 * doc/as.texinfo: Document .linkonce.
3220
0c203340
C
3221Fri Mar 29 11:31:27 1996 J.T. Conklin (jtc@lisa.cygnus.com)
3222
3223 * doc/as.1: Changed to be recognized by catman -w on Solaris.
3224
867a58b3
ILT
3225Thu Mar 28 15:27:47 1996 Ian Lance Taylor <ian@cygnus.com>
3226
3197da91
ILT
3227 * stabs.c (s_stab_generic): Call the listing functions before
3228 doing the rest of the processing, which may involve freeing the
3229 string. Pass string, not string + stroff, to OBJ_PROCESS_STAB in
3230 SEPARATE_STAB_SECTIONS case.
3231
3c071b9f
ILT
3232 * config/tc-hppa.c: Remove nested comment.
3233 (tc_gen_reloc): Move label done inside the ifdef in which it is
3234 used.
3235 (md_apply_fix): Pass pointers to correct types to libhppa.h
3236 functions. Always return a value.
3237
867a58b3
ILT
3238 * config/tc-mips.h (tc_frob_file): Define.
3239 (mips_frob_file): Declare.
3240 * config/tc-mips.c (struct mips_hi_fixup): Define.
3241 (mips_hi_fixup_list): New static variable.
3242 (imm_unmatched_hi): New static variable.
3243 (md_assemble): Clear imm_reloc, imm_unmatched_hi, and
3244 offset_reloc. Pass imm_unmatched_hi to append_insn.
3245 (append_insn): Add unmatched_hi parameter. If it is set, add the
3246 new fixup to mips_hi_fixup_list. Change all callers.
3247 (mips_ip): Set imm_unmatched_hi when appropriate.
3248 (mips_frob_file): New function.
3249
d0352cbb
DE
3250Thu Mar 28 11:47:59 1996 Doug Evans <dje@canuck.cygnus.com>
3251
3252 * configure.in (sparc-*-solaris2*): Renamed from sparc*-*-solaris2*.
3253 * configure: Regenerated.
3254
4f74c042
ILT
3255Tue Mar 26 18:19:12 1996 Ian Lance Taylor <ian@cygnus.com>
3256
3257 * as.c (main): Call bfd_set_error_program_name.
3258
5ba7c0be
ILT
3259Fri Mar 22 11:13:00 1996 Ian Lance Taylor <ian@cygnus.com>
3260
c7a89bde
ILT
3261 * as.h (strdup): Don't declare.
3262 * stabs.c: Include libiberty.h
3263 (get_stab_string_offset): Use xstrdup rather than strdup.
3264 (s_stab_generic): Likewise.
3265 * as.c (parse_args): Likewise.
3266 * read.c (s_mri_sect): Likewise.
3267
5ba7c0be
ILT
3268 * gasp.c (change_base): Recognize \(...) construct documented to
3269 pass through enclosed characters literally through to the output.
3270 (process_assigns): Likewise. Also, be more careful to avoid
3271 looking past the end of the buffer.
3272
3273Thu Mar 21 13:18:43 1996 Ian Lance Taylor <ian@cygnus.com>
3274
3275 * config/tc-i386.c (md_parse_option): If OBJ_ELF, ignore -k for
3276 FreeBSD compatibility. From John Polstra <jdp@polstra.com>.
3277
d1f38e13
ILT
3278Wed Mar 20 18:13:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3279
3280 * doc/as.texinfo, doc/c-i960.texi: Fix typos.
3281
649d87fe
ILT
3282Wed Mar 20 17:05:16 1996 David Mosberger-Tang <davidm@azstarnet.com>
3283
3284 * config/alpha-opcode.h: Added cvtst instruction.
3285
975def01
ILT
3286Mon Mar 18 13:12:46 1996 Ian Lance Taylor <ian@cygnus.com>
3287
3288 * ecoff.c (ecoff_stab): Don't try to make a symbol out of the stab
3289 string. Extract the addend from the result of expression.
3290
fde6018a
ILT
3291Fri Mar 15 17:10:43 1996 Ian Lance Taylor <ian@cygnus.com>
3292
3293 * app.c (do_scrub_chars): If whitespace is seen in state 11, and
3294 LABELS_WITHOUT_COLONS is not defined, and we are not in m68k MRI
3295 mode, change the state to 3 rather than 1.
3296
ee0f488d
ILT
3297Thu Mar 14 18:18:25 1996 Ian Lance Taylor <ian@cygnus.com>
3298
3299 * config/obj-coff.h (C_REGISTER_SECTION): Change from 20 to 50, to
3300 correspond to 11 March change.
3301
9da28504
JL
3302Thu Mar 14 15:27:10 1996 Jeffrey A Law (law@cygnus.com)
3303
3304 * config/tc-h8300.c (build_bytes, MEMIND case): Generate
3305 an R_MEM_INDIRECT reloc rather than R_RELBYTE.
3306
ea2488ad
ILT
3307Tue Mar 12 12:21:10 1996 Ian Lance Taylor <ian@cygnus.com>
3308
3309 * configure: Rebuild with autoconf 2.8.
3310
8fee8bf3
ILT
3311Mon Mar 11 18:57:12 1996 Ian Lance Taylor <ian@cygnus.com>
3312
3313 * config/atof-ieee.c (gen_to_words): Improve handling of
3314 X_PRECISION numbers. Based on patches from Andreas Schwab
3315 <schwab@issan.informatik.uni-dortmund.de>.
3316
a31c2bc7
SC
3317Mon Mar 11 09:59:53 1996 Steve Chamberlain <sac@slash.cygnus.com>
3318
3319 * as.h (SEG_NORMAL, SEG_LIST): Bump segment limit from 10 to 40.
3320 (SEG_LAST): New.
3321 * subsegs.c (MANY_SEGMENTS): Increase segment limit.
3322 * obj-coff.c (seg_N_TYPE, seg_info_off_by_4): Likewise.
3323 (do_relocs_for, w_symbols, obj_coff_add_segment, do_linenos_for,
3324 crawl_symbols, coff_header_append): Loop to SEG_LAST rather than
3325 SEG_E9.
3326
3327Thu Mar 7 15:17:39 1996 Doug Evans <dje@charmed.cygnus.com>
3328
3329 * config/tc-sparc.c (sparc_ip): Handle operand char 'O' (neg reg).
3330
73578b1e
JL
3331Thu Mar 7 09:19:15 1996 Jeffrey A Law (law@cygnus.com)
3332
3333 * config/tc-hppa.c (SUBSEG_MILLI): Define.
3334 (pa_def_subspaces): Add $MILLICODE$.
3335 (pa_spaces_begin): Set section flags for $MILLICODE$.
3336
0c27542f
ILT
3337Wed Mar 6 14:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
3338
6b8ed20d
ILT
3339 * config/obj-elf.c (obj_elf_section): Only SEC_LOAD if the type is
3340 not SHT_NOBITS. Don't tamper with flags based on type if a
3341 special section was found (revert Feb 29 change).
3342
0c27542f
ILT
3343 * config/tc-sh.c (sh_do_align): Only align using the nop pattern
3344 if aligning to a longword boundary or greater.
3345
6a413d6f
JW
3346Tue Mar 5 15:10:43 1996 Jim Wilson <wilson@chestnut.cygnus.com>
3347
3348 * config/tc-sh.c (sh_do_align): Pass 1 not 2 to frag_align.
3349
4b295517
SC
3350Mon Mar 4 20:50:57 1996 Steve Chamberlain <sac@slash.cygnus.com>
3351
3352 * configure.in (i386-*-cygwin32): Don't use bfd_gas.
3353 * configure: Regenerated.
3354
eff5fcda
JL
3355Mon Mar 4 10:13:06 1996 Jeffrey A Law (law@cygnus.com)
3356
421e2c27
JL
3357 * config/tc-hppa.c: Add default definitions for R_N0SEL and
3358 R_N1SEL since they're not defined for old versions of hpux.
3359
eff5fcda
JL
3360 * config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
3361 Set "sym_ptr_ptr" and "addend" fields to dummy values for
3362 R_N0SEL and R_N1SEL.
3363
bb1013d9
ILT
3364Fri Mar 1 10:20:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3365
d197a7ab
ILT
3366 * flonum-konst.c: Add two more constants for 1e+-2048 and
3367 1e+-4096, and correct the other constants.
3368
bb1013d9
ILT
3369 * symbols.c (resolve_symbol_value): Handle O_logical_not.
3370
30510276
MM
3371Thu Feb 29 13:58:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3372
3373 * config/obj-elf.c (obj_elf_section): Allow predefined section
0d8405e8 3374 types to set the nobits type. Avoid a shadowed declaration.
30510276 3375
75c90d61
JL
3376Wed Feb 28 15:38:56 1996 Jeffrey A Law (law@cygnus.com)
3377
24b216e1
JL
3378 * config/tc-hppa.c (hppa_fix_adjustable): For SOM, don't
3379 reduce relocs using e_nlrsel field selectors.
3380
75c90d61
JL
3381 * write.c (fix_new_exp): Don't use #elif. Some compilers
3382 don't handle it.
83b59013
JL
3383
3384 * config/tc-hppa.c (selector_table): Add "n", "nl", and "nlr" to
3385 the selector table.
3386 (pa_chk_field_selector): Handle new field selectors for SOM.
3387
535cfd0f
ILT
3388Tue Feb 27 14:42:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3389
3390 * configure.in (m68k-*-linux*aout*, m68k-*-linux*): New targets.
3391 * configure: Rebuild.
3392 * config/te-linux.h (LOCAL_LABELS_FB): Define.
3393 * config/tc-m68k.h (TARGET_FORMAT) [TE_LINUX]: Define to
3394 "a.out-m68k-linux".
3395 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_LINUX
3396 is defined.
3397
d214421e
SS
3398Mon Feb 26 18:58:58 1996 Stan Shebs <shebs@andros.cygnus.com>
3399
3400 * mpw-make.sed: Update to handle shared library support.
3401
110b814d
DE
3402Mon Feb 26 10:34:10 1996 Doug Evans <dje@charmed.cygnus.com>
3403
3404 * config/tc-sparc.c (sparc_ip): Print all architectures that support
3405 the insn on mismatch.
3406
805e36ab
RS
3407Fri Feb 23 21:44:39 1996 Rob Savoye <rob@chinadoll.cygnus.com>
3408
3409 * configure.in: Add support for a29-coff.
3410 * configure: Rebuild.
3411
e41ab2a6
ILT
3412Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
3413
101a2346
ILT
3414 * config/tc-sh.c (sh_coff_frob_file): Don't consider the address
3415 of the section when looking for the R_SH_USES fixup, because the
3416 frag addresses have not yet been adjusted.
3417
940c413f
ILT
3418 * gdbinit.in: Set a breakpoint on as_warn_where.
3419
e41ab2a6
ILT
3420 * config/tc-mips.c (macro): Add missing arguments to macro_build
3421 omitted in last change. From Jim Wilson <wilson@cygnus.com>.
3422
c6016ce2
ILT
3423Wed Feb 21 17:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
3424
3425 * config/tc-h8300.c (tc_reloc_mangle): Change reloc based on size
3426 if it is TC_CONS_RELOC. Set a size of 4 to R_RELLONG.
3427
b32fbe07
DE
3428Wed Feb 21 09:25:39 1996 Doug Evans <dje@charmed.cygnus.com>
3429
3430 * config/tc-sparc.c (sparc_ip): Recognize %asr0 for v8.
3431
2e5e6879
DE
3432Tue Feb 20 21:48:03 1996 Doug Evans <dje@charmed.cygnus.com>
3433
3434 * config/tc-sparc.c (parse_keyword_arg): Accept leading '%'.
3435 (sparc_ip): Accept %asr[1..31] for v8 and %asr[%16..31] for v9.
3436 Recognize [uU] format args as sparclet cpregs.
3437
8a2e1fdd
ILT
3438Tue Feb 20 22:25:55 1996 Ian Lance Taylor <ian@cygnus.com>
3439
3440 * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
3441 in bss_section.
3442
21965655
ILT
3443Mon Feb 19 14:16:24 1996 Ian Lance Taylor <ian@cygnus.com>
3444
3445 * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
3446 well as S_IS_EXTERNAL.
3447 (tc_fix_adjustable): Likewise.
3448 * config/tc-sparc.c (md_apply_fix): In OBJ_ELF case, check for
3449 S_IS_WEAK as well as S_IS_EXTERNAL when deciding whether to return
3450 early.
3451 (tc_gen_reloc): Check S_IS_WEAK as wel as S_IS_EXTERNAL when
3452 deciding whether to convert BFD_RELOC_32_PCREL_S2 if PIC.
3453
d8b42b96
DE
3454Mon Feb 19 02:15:57 1996 Doug Evans <dje@charmed.cygnus.com>
3455
3456 * config/tc-sparc.c (max_architecture): Change to sparclite for
3457 32 bit arch.
3458 (default_compatible): Delete.
3459 (sparc_ffs): New function.
3460 (md_begin): Only call SPARC_OPCODE_CONFLICT_P once.
3461 (sparc_ip): Rewrite architecture match and bump logic.
3462
7925f4d4
ILT
3463Sun Feb 18 15:03:50 1996 Ian Lance Taylor <ian@cygnus.com>
3464
3465 * configure.in: Check for 'do not mix' from native linker before
3466 trying to use -rpath.
3467 * configure: Rebuild.
3468
ef2074c2
ILT
3469Fri Feb 16 16:53:31 1996 Ian Lance Taylor <ian@cygnus.com>
3470
3471 * config/obj-coff.h (SF_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
3472 (SF_GET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
3473 (SF_SET_ADJ_LNNOPTR): Define (non BFD_ASSEMBLER).
3474 * config/obj-coff.c (obj_coff_endef): Set ADJ_LNNOPTR when LNNOPTR
3475 is set.
3476 (w_symbols): If ADJ_LNNOPTR is set, add the section lnnoptr field
3477 to the symbol lnnoptr field, to get the correct file offset.
3478
28910c57
MM
3479Thu Feb 15 14:48:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3480
3481 * config/obj-elf.c (elf_frob_symbol): On the PowerPC, force all
3482 symbols that are not function, file, or section symbols to be
3483 object types.
3484
7c2fadd1
ILT
3485Thu Feb 15 11:20:18 1996 Ian Lance Taylor <ian@cygnus.com>
3486
1a2f3c3f
ILT
3487 * configure: Set and substitute RPATH_ENVVAR.
3488 * configure: Rebuild.
3489 * Makefile.in (RPATH_ENVVAR): New variable.
3490 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
3491
7c2fadd1
ILT
3492 * configure.in: Accept i686. From H.J. Lu <hjl@zoom.com>: i386
3493 doesn't need opcodes. If configuring shared, opcodes needs bfd.
3494 * configure: Rebuild.
3495
8a6f53e9
ILT
3496Wed Feb 14 16:33:12 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
3497
3498 * read.c (s_mri_sect): Don't return '\0' in type. Set all
3499 appropriate flags in BFD section.
3500
3501 * configure.in (m68k-*-psos*): New target.
3502 * configure: Rebuild.
3503 * config/te-psos.h: New file.
3504 * config/tc-m68k.c (comment_chars): Don't include '#' if TE_PSOS
3505 is defined.
3506
fb251650
ILT
3507Wed Feb 14 13:43:24 1996 Ian Lance Taylor <ian@cygnus.com>
3508
ae09d880
ILT
3509 From Alan Modra <alan@spri.levels.unisa.edu.au>:
3510 * configure.in: Remove duplicate setting of cpu_type. Check
3511 whether opcodes library is required for on all targets, not just
3512 primary one.
3513 * configure: Rebuild.
3514
fb251650
ILT
3515 * config/tc-mips.c (mips_big_got): New static variable.
3516 (s_extern): Don't declare.
3517 (reg_needs_delay): New static function.
3518 (macro_build): Permit GOT/CALL_HI/LO relocs.
3519 (macro_build_lui): If place is not NULL, use the number in the
3520 expression.
3521 (load_address): Handle mips_big_got case.
3522 (macro): Handle mips_big_got for M_LA_AB, M_JAL_A, and load and
3523 store macros.
3524 (OPTION_XGOT): Define.
3525 (md_longopts): Add "xgot" if OBJ_ELF.
3526 (md_parse_option): Handle -xgot.
3527 (md_show_usage): Mention -xgot.
3528 (md_apply_fix): Permit GOT/CALL_HI/LO relocs.
3529 (tc_gen_reloc): Handle GOT/CALL_HI/LO relocs.
3530
d9396c16
ILT
3531Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3532
3533 * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
3534 the byte relocation, point it to the low byte of the word.
3535
56f9773f
ILT
3536Tue Feb 13 15:31:18 1996 Ian Lance Taylor <ian@cygnus.com>
3537
3538 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
3539 * configure: Rebuild.
3540
63e4edb5
DE
3541Mon Feb 12 15:53:46 1996 Doug Evans <dje@charmed.cygnus.com>
3542
3543 * configure.in: Recognize any sparc* cpu.
3544 * configure: Regenerated.
3545
15ed5f2c
ILT
3546Mon Feb 12 15:41:21 1996 Ian Lance Taylor <ian@cygnus.com>
3547
20710f1c
ILT
3548 * read.c (potable): Add "mri" and ".mri".
3549 (s_mri): New function.
3550 * read.h (s_mri): Declare.
3551 * app.c (scrub_m68k_mri): New static variable.
3552 (mri_pseudo): New static variable.
3553 (do_scrub_begin): Add m68k_mri parameter. Use it rather than
3554 flag_m68k_mri. Initialize scrub_m68k_mri.
3555 (mri_state, mri_last_ch): New static variables.
3556 (struct app_save): Add scrub_m68k_mri, mri_state, and mri_last_ch
3557 fields.
3558 (app_push): Save new fields.
3559 (app_pop): Restore new fields.
3560 (do_scrub_chars): Check scrub_m68k_mri rather than flag_mri_mri.
3561 If TC_M68K, use a trivial state machine to look for occurrences of
3562 the .mri pseudo-op, and change the mode appropriately.
3563 * as.h (do_scrub_begin): Update prototype.
3564 * input-scrub.c (input_scrub_begin): Pass flag_m68k_mri to
3565 do_scrub_begin.
3566 * config/tc-m68k.c (reg_prefix_optional_seen): New static
3567 variable.
3568 (m68k_mri_mode_change): New function.
3569 (md_parse_option): Set reg_prefix_optional_seen.
3570 * config/tc-m68k.h (m68k_mri_mode_change): Declare.
3571 (MRI_MODE_CHANGE): Define.
3572 * doc/as.texinfo: Document .mri pseudo-op.
3573
15ed5f2c
ILT
3574 * app.c (do_scrub_chars): In MRI mode, don't treat '#' as a
3575 comment character.
3576
a043f579
ILT
3577Mon Feb 12 15:16:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3578
3579 Support for OBJ_ELF on m68k, mostly inside #ifdef OBJ_ELF:
3580 * config/m68k-parse.h (enum pic_relocation): Define.
3581 (struct m68k_exp): Add pic_reloc field.
3582 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Define.
3583 (tc_fix_adjustable): Define to call tc_m68k_fix_adjustable.
3584 (NO_RELOC): Define to BFD_RELOC_NONE if BFD_ASSEMBLER, to zero
3585 otherwise.
3586 * config/tc-m68k.c: Delete definition of NO_RELOC.
3587 (struct m68k_it): Add pic_reloc field.
3588 (add_fix): Copy over pic_reloc field.
3589 (md_pseudo_table): Interpret .align parameter as byte count.
3590 (mote_pseudo_table): Likewise.
3591 (tc_m68k_fix_adjustable): New function.
3592 (get_reloc_code): New function.
3593 (md_assemble): Use it as last argument to fix_new_exp.
3594 (md_apply_fix_2): For a relocation against a symbol don't put the
3595 addend into the data.
3596 (tc_gen_reloc): Different addend computation for OBJ_ELF.
3597 (m68k_ip): Don't relax an operand that requires pic relocation.
3598 (md_begin): Align .text, .data and .bss on 4 byte boundary by
3599 default.
3600 * write.c (fixup_segment): Don't add symbol value to addend if
3601 TC_M68K and OBJ_ELF.
3602 * config/m68k-parse.y (yylex): Handle @PLTPC, etc.
3603 (motorola_operand): Add rule for `(zapc, EXPR)'.
3604
6ca1156d
ILT
3605Mon Feb 12 10:07:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
3606
3607 * ecoff.c (ecoff_directive_weakext): Fixed so that whitespace
3608 *really* is permissible before the comma.
3609
fcee3e24
ILT
3610Mon Feb 12 00:12:13 1996 Ian Lance Taylor <ian@cygnus.com>
3611
3612 * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before
3613 inserting nop instructions.
3614
3e1c964d
ILT
3615Fri Feb 9 10:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
3616
3617 * config/te-aux.h: Change include of aux.h to aux-coff.h.
3618
4080c270
ILT
3619Thu Feb 8 20:02:58 1996 Ian Lance Taylor <ian@cygnus.com>
3620
d782e3cc
ILT
3621 * config/tc-i960.c (tc_coff_symbol_emit_hook): Correct storage
3622 class setting for a CALLNAME symbol in COFF.
3623
4080c270
ILT
3624 * read.c (potable): Pass negative numbers for new .balign[wl] and
3625 .p2align[wl] pseudo-ops.
3626 (s_align_bytes): Treat a negative argument as specifying the fill
3627 length.
3628 (s_align_ptwo): Likewise.
3629
1c9dbb83
ILT
3630Wed Feb 7 14:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
3631
71dd3c40
ILT
3632 * read.c (potable): Add balignw, balignl, p2alignw, and p2alignl.
3633 (do_align): Take new len parameter. Change all callers. Pass it
3634 to md_do_align.
3635 (s_align_bytes): Arg now indicates the length of the fill pattern.
3636 (s_align_ptwo): Likewise.
3637 * config/obj-coff.c (write_object_file): Pass length to
3638 md_do_align.
3639 * config/tc-i386.h (md_do_align): Take new len parameter.
3640 * config/tc-m88k.h (md_do_align): Likewise.
3641 * config/tc-m88k.c (m88k_do_align): Likewise.
3642 * config/tc-sh.h (md_do_align): Likewise.
3643 * config/tc-sh.c (sh_do_align): Likewise.
3644 * doc/as.texinfo: Document new pseudo-ops.
3645
3646 * config/obj-coff.c (fixup_mdeps): Divide offset by fr_var, as is
3647 done in cvt_frag_to_fill.
3648
9addcbb1
ILT
3649 * config/tc-sh.h (sh_do_align): Declare.
3650 (md_do_align): Define.
3651 * config/tc-sh.c (sh_do_align): New function.
3652
c15ea23a
ILT
3653 * ecoff.c (ecoff_build_lineno): Don't try to store the address
3654 difference if the next address is before the current one.
3655
9e64486e
ILT
3656 * config/tc-m68k.c (struct m68k_cpu): Add alias field.
3657 (archs): Initialize new field.
3658 (m68k_ip): Don't list alias names when listing CPUs which support
3659 an instruction.
3660
3661 * as.c (main): Call parse_args before read_begin.
3662 * app.c (do_scrub_chars): If flag_m68k_mri, don't put a dot in
3663 front of generated pseudo-ops.
3664 * read.c (potable): Ignore "name".
3665 (s_app_file): Permit a single quote after the string, since one
3666 may appear in m68k MRI mode.
3667
1c9dbb83
ILT
3668 * configure.in: Check for --enable-shared. If linking against
3669 shared BFD and opcodes, fix library name on SunOS, and try to set
3670 -rpath reasonably.
3671 * configure: Rebuild.
3672
3673Tue Feb 6 15:16:17 1996 Ian Lance Taylor <ian@cygnus.com>
3674
3675 * as.h (flag_m68k_mri): Declare.
3676 * as.c (parse_args): If TC_M68K, set flag_m68k_mri for -M.
3677 * Many files: For MRI syntax that is specific to the m68k MRI
3678 assembler, check flag_m68k_mri rather than flag_mri or
3679 MRI_MODE_NEEDS_PSEUDO_DOT.
3680
dd1d79e8
ILT
3681Mon Feb 5 16:29:11 1996 Ian Lance Taylor <ian@cygnus.com>
3682
f9e90c2e
ILT
3683 * config/tc-i960.c (ARCH_HX): Define.
3684 (arch_tab): Add HX.
3685 (targ_has_sfr): Handle ARCH_HX.
3686 (targ_has_iclass): Handle ARCH_HX.
3687 (tc_coff_fix2rtype): Add return 0 to avoid warning.
3688 (tc_headers_hook): If the architecture was specified explicitly,
3689 use it when setting the flags. Set the extern variable coff_flags
3690 rather than headers->filehdr.f_flags, since the latter is set
3691 unconditionally in obj-coff.c.
3692 (i960_handle_align): Remove unused variable fixp.
3693
dd1d79e8
ILT
3694 Support for building bfd and opcodes as shared libraries, based on
3695 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
3696 * configure.in: Set OPCODES and BFD to search directories.
3697 Substitute OPCODES_DEP and BFDDEP. On SunOS, set HLDFLAGS.
3698 * configure: Rebuild.
3699 * Makefile.in (LDFLAGS, HLDFLAGS): New variables.
3700 (LIBDEPS): New variable.
3701 (as.new0: Depend upon $(LIBDEPS) rather than $(LIBS). Use
3702 $(HLDFLAGS) in link.
3703 (check): Set LD_LIBRARY_PATH in the environment.
3704
3705Fri Feb 2 17:41:53 1996 Michael Meissner <meissner@wogglebug.tiac.net>
3706
3707 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Make .sdata2, .sbss2,
3708 .PPC.EMB.sdata0, and .PPC.EMB.sbss0 sections all default to
3709 read-only, not read/write.
3710
e277d131
ILT
3711Fri Feb 2 14:09:25 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
3712
3713 * Makefile.in (INSTALL_XFORM): Remove -e.
3714
e24cf2b5
ILT
3715Fri Feb 2 12:32:15 1996 Ian Lance Taylor <ian@cygnus.com>
3716
3717 * write.c (write_relocs): Use S_IS_DEFINED and S_IS_COMMON rather
3718 than comparing S_GET_SEGMENT to undefined_section.
3719 (write_object_file): Skip symbols which were equated to an
3720 undefined or common symbol.
3721 * symbols.c (resolve_symbol_value): Use S_IS_DEFINED and
3722 S_IS_COMMON rather than comparing S_GET_SEGMENT to
3723 undefined_section.
3724 (S_GET_VALUE): Likewise. Avoid recursion problems if S_IS_DEFINED
3725 or S_IS_COMMON call S_GET_VALUE.
3726 * config/obj-aout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
3727 * config/obj-aout.c (obj_emit_relocations): If a reloc is equated
3728 to an undefined or common symbol, convert the reloc to be against
3729 the target symbol.
3730 (obj_crawl_symbol_chain): Skip symbols which were equated to an
3731 undefined or common symbol.
3732 * config/obj-bout.h (S_IS_COMMON): Define if not BFD_ASSEMBLER.
3733 * config/obj-bout.c (obj_emit_relocations): If a reloc is equated
3734 to an undefined or common symbol, convert the reloc to be against
3735 the target symbol.
3736 (obj_crawl_symbol_chain): Skip symbols which were equated to an
3737 undefined or common symbol.
3738 * config/obj-coff.c (do_relocs_for): Use S_IS_DEFINED and
3739 S_IS_COMMON rather than comparing S_GET_SEGMENT to
3740 undefined_section.
3741 (yank_symbols): Skip symbols which were equated to an undefined or
3742 common symbol.
3743
4d9e33e4
ILT
3744Thu Feb 1 15:34:32 1996 Ian Lance Taylor <ian@cygnus.com>
3745
9e396994
ILT
3746 * config/obj-aout.h (S_IS_LOCAL): Check for \002 as well as \001.
3747 * config/obj-bout.h (S_IS_LOCAL): Likewise.
3748
4d9e33e4
ILT
3749 * configure.in: Make sure we only add m68k-parse.o to
3750 ${extra_objects} once, no matter how many m68k targets have been
3751 enabled.
3752 * configure: Rebuild.
3753
0ff513d9
SC
3754Wed Jan 31 18:31:46 1996 Steve Chamberlain <sac@slash.cygnus.com>
3755
3756 * configure.in (i386-*-cygwin32, ppc-*-cygwin32): New.
3757 * configure: Rebuild.
3758
66b935da
ILT
3759Wed Jan 31 14:03:17 1996 Richard Henderson <rth@tamu.edu>
3760
c174fb5c
ILT
3761 * config/tc-m68k.c (md_pseudo_table): Add "extend" and "ldouble".
3762 * doc/c-m68k.texi: Document .extend and .ldouble.
3763
66b935da
ILT
3764 * configure.in (m68*-apple-aux*): New target.
3765 * config/te-aux.h: New file.
3766 * config/obj-coff.c (compare_external_relocs): New static function
3767 if TE_AUX.
3768 (do_relocs_for): Sort relocs if TE_AUX.
3769 (fixup_segment): If TE_AUX, store common symbol value in segment.
3770 * config/tc-m68k.h (TARGET_FORMAT): Define if TE_AUX.
3771
30c2a08e
ILT
3772Wed Jan 31 12:24:58 1996 Ian Lance Taylor <ian@cygnus.com>
3773
9e396994 3774 * config/obj-coff.h (S_IS_LOCAL): Check for \002 as well as \001.
615c0a79 3775
30c2a08e
ILT
3776 * config/tc-mips.c (s_mips_globl): Set BSF_OBJECT if it is not
3777 BSF_FUNCTION.
3778 (s_cpload): Set BSF_OBJECT for _gp_disp symbol.
3779 * read.c (s_lcomm): If S_SET_SIZE is defined, set the size of the
3780 symbol.
3781 * ecoff.c (add_procedure): Set the BSF_FUNCTION flag.
3782 (ecoff_build_symbols): If S_SET_SIZE is defined, set the size of
3783 an undefined symbol and the size of a function symbol.
3784 * config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
3785 for all common symbols.
3786
0e6f2f82
KR
3787Tue Jan 30 12:35:24 1996 Ken Raeburn <raeburn@cygnus.com>
3788
3789 * config/tc-i960.c (parse_memop): In MRI mode, don't use implicit
3790 scaling of index.
3791
3792 * expr.c (operand): Accept 0x hex constants in MRI mode if not on
3793 m68k.
3794
8e3ff081
ILT
3795Mon Jan 29 12:21:30 1996 Ian Lance Taylor <ian@cygnus.com>
3796
3e78d072
ILT
3797 * config/obj-elf.c (obj_elf_type): Set BSF_OBJECT flag for a type
3798 of object. From Ronald F. Guilmette <rfg@monkeys.com>.
3799
8e3ff081
ILT
3800 * ecoff.c (localsym_t): Add addend field.
3801 (add_ecoff_symbol): Add addend argument. Change all callers.
3802 (coff_sym_value): Make static.
3803 (coff_sym_addend): New static variable.
3804 (ecoff_directive_def): Initialize coff_sym_addend.
3805 (ecoff_directive_val): Accept symbol + constant.
3806 (ecoff_directive_endef): Pass coff_sym_addend to add_ecoff_symbol.
3807 (ecoff_build_symbols): Include the addend in the symbol value.
3808
79edc846
KK
3809Fri Jan 26 19:28:52 1996 Kim Knuttila <krk@cygnus.com>
3810
3811 * config/tc-ppc.c (md_assemble): Ignore overflow on
3812 BFD_RELOC_16_GOTOFF and BFD_RELOC_PPC_TOC16.
3813
3814Fri Jan 26 16:14:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3815
3816 * config/tc-ppc.c (md_apply_fix3): SDA21 relocations are now 4
3817 bytes in size, so offset appropriately in big endian mode when
3818 writing the bottom 2 bytes.
3819
6cbc4e35
DE
3820Thu Jan 25 20:26:23 1996 Doug Evans <dje@charmed.cygnus.com>
3821
3822 * config/tc-sparc.c (default_compatible): New static local.
3823 (md_begin): Initialize it. Rewrite warn_on_bump handling.
3824 (sparc_ip): If no architecture or -bump specified, don't mark as
3825 mismatched those in default_compatible.
3826
4fe0fddd
ILT
3827Thu Jan 25 12:21:53 1996 Ian Lance Taylor <ian@cygnus.com>
3828
3829 SCO ELF support from Robert Lipe <robertl@arnet.com>:
3830 * configure.in (i386-*-sco*elf*): Use fmt elf, targ sco5.
3831 * configure: Rebuild.
3832 * config/sco5.mt: New file; set TDEFINES to -DSCO_ELF.
3833 * config/tc-i386.c (sco_id): New function, if SCO_ELF.
3834 * config/tc-i386.h (tc_init_after_args): Define if SCO_ELF.
3835 (sco_id): Declare if SCO_ELF.
3836
e70ad5d5
DE
3837Thu Jan 25 03:10:53 1996 Doug Evans <dje@charmed.cygnus.com>
3838
3839 * config/tc-sparc.c (initial_architecture,can_bump_v9_p): Deleted.
3840 ({max,warn_after}_architecture): New static locals.
3841 (md_begin): Replace NUMOPCODES with sparc_num_opcodes.
3842 If both architecture and -bump requested, set max_architecture to max.
3843 (sparc_md_end): Simplify.
3844 (sparc_ip): Replace references to can_bump_v9_p with max_architecture.
3845 Rewrite code to bump architecture and check for conflicts.
3846 (md_longopts): Recognize -xarch={v8plus,v8plusa} for compatibility
3847 with Solaris assembler.
3848 (md_parse_option): Likewise. Call sparc_opcode_lookup_arch.
3849 (md_show_usage): Update.
3850
a8248831
DE
3851Wed Jan 24 22:11:03 1996 Doug Evans <dje@charmed.cygnus.com>
3852
3853 * Makefile.in (RUNTEST): Fix reference to $${srcdir}.
3854
6df07e7f
DE
3855Mon Jan 22 09:21:36 1996 Doug Evans <dje@charmed.cygnus.com>
3856
3857 * config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
3858 #ifdef sparcv9 when choosing value.
3859 (ENV64): Delete.
3860 (md_end): Define.
3861 (sparc_md_end): Declare.
3862 * config/tc-sparc.c (SPARC_V9): Renamed from sparcv9.
3863 (initial_architecture): New static local.
3864 (can_bump_v9_p): Likewise.
3865 (NO_V9): Delete all occurrences.
3866 (sparc_md_end): New function.
3867 (sparc_ip): New local v9_arg_p. Rework fp reg number test.
3868 Don't bump architecture to v9 unless can_bump_v9_p set.
3869 (md_parse_option): -A<arch> passed, set can_bump_v9_p accordingly.
3870 * configure.in (sparc64 target cpu): Don't set obj_format here.
3871 (SPARC_V9): Renamed from sparcv9.
3872 (sparc64-*-elf*): Define SPARC_ARCH64.
3873 * configure: Regenerated.
3874 * acconfig.h (SPARC_V9): Renamed from sparcv9.
3875 (SPARC_ARCH64): Add.
7fcb3191 3876 * conf.in: Regenerated.
6df07e7f
DE
3877 * config/vmsconf.h: Update.
3878
c9c7c1d7
JSC
3879Mon Jan 22 17:24:47 1996 James G. Smith <jsmith@cygnus.co.uk>
3880
3881 * config/tc-mips.c (load_register): Optimise "dli" loads.
3882 (md_show_usage): add "-mcpu=vr4100" to help text.
16ce20d4 3883
07ce72c9
ILT
3884Mon Jan 22 11:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
3885
16ce20d4
ILT
3886 * symbols.c (resolve_symbol_value): If a symbol is equated to an
3887 undefined symbol, preserve the X_op of O_symbol.
3888 (S_GET_VALUE): Fix check to permit this case.
3889 * write.c (write_relocs): If a reloc is against an undefined
3890 symbol equated to another symbol, change the reloc to be against
3891 the latter symbol.
3892 * config/obj-coff.c (do_relocs_for): Likewise.
3893
07ce72c9
ILT
3894 * config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
3895 XMC_PR.
3896
d971d39e
MM
3897Mon Jan 22 10:59:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3898
3899 * config/obj-elf.c (elf/ppc.h): Include elf/ppc.h if target
3900 computer is PowerPC.
3901
3902 * config/tc-ppc.c (md_apply_fix3): Add more embedded relocations.
3903
3904 * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Add sections
3905 mentioned in the eabi.
3906
0291f0f5
KK
3907Thu Jan 18 17:58:19 1996 Kim Knuttila <krk@cygnus.com>
3908
3909 * config/tc-ppc.c (ppc_reldata): Changed alignement on reldata_section
3910 * config/tc-ppc.c (ppc_pdata): Changed the alignment on pdata_section
3911
c682be53
MM
3912Mon Jan 15 17:43:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3913
3914 * config/tc-ppc.c (mapping): Add more relocation suffixes.
3915
ee4fdbb9
MM
3916Sun Jan 14 21:29:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3917
3918 * config/tc-ppc.c (ppc_elf_validate_fix): Allow .gcc_except_table
3919 as a section it is ok to have unadorned -mrelocatable pointers in.
3920
3921Sat Jan 13 11:09:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
747b98fe
MM
3922
3923 * config/tc-ppc.c (ppc_section*): Wrap these functions inside
3924 #ifdef OBJ_ELF.
3925
f99d287b
MM
3926Fri Jan 12 15:32:07 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3927
3928 * config/obj-elf.c (obj_elf_section): Add hooks so machine
3929 dependent section attributes can be handled.
3930
3931 * config/tc-ppc.h: (md_elf_section_{letter,type,word,flags}): New
3932 macros to add support for exclude section flag and ordered section
3933 type.
3934
3935 * config/tc-ppc.c (ppc_elf_section_{letter,type,word,flags}): New
3936 functions to add support for exclude section flag and ordered
3937 section type.
3938
347a705b
ILT
3939Fri Jan 12 12:04:00 1996 Ian Lance Taylor <ian@cygnus.com>
3940
2a4e49a9
ILT
3941 * subsegs.c (section_symbol): Don't try to look up the section
3942 symbol in the hash table. It should be possible to have a symbol
3943 with the same name as a section, but no connection to it.
3944
d9f4dec1
ILT
3945 * read.c (cons_worker): Only call mri_comment_end from flag_mri.
3946 From James Carlson <carlson@xylogics.com>.
3947
347a705b
ILT
3948 * expr.c (operand): Skip whitespace after a close parenthesis.
3949 From James Carlson <carlson@xylogics.com>.
3950
10c8c95e
JW
3951Tue Jan 2 12:43:23 1996 Jim Wilson <wilson@chestnut.cygnus.com>
3952
3953 * config/tc-sh.c (md_apply_fix): Call as_bad_where instead of
3954 as_warn_where for relocation overflow.
347a705b
ILT
3955 (parse_reg): Accept register name only if next character is
3956 not alphanumeric.
10c8c95e 3957
cb844314
JL
3958Sat Dec 30 23:42:51 1995 Jeffrey A Law (law@cygnus.com)
3959
3960 * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset
3961 addresses for static variables.
3962
36cb0e7c
MM
3963Thu Dec 21 12:54:32 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3964
3965 * config/tc-ppc.c (mapping): Make @got give a real GOT relocation,
3966 and xgot give the old toc16 relocation.
3967 (md_apply_fix3): Support all GOT relocations.
3968
5e69b693
ILT
3969Wed Dec 20 14:57:17 1995 Ian Lance Taylor <ian@cygnus.com>
3970
3971 * config/tc-mips.c (load_address): Correctly handle a constant in
3972 SVR4_PIC case. From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>.
3973
29861dd0
C
3974Fri Dec 15 14:25:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3975
3976 * config/tc-sh.c (parse_reg): Recognize SH3 registers.
3977 (get_specific): Handle A_SSR, A_SPC and A_REG_B.
3978 (build_Mbytes): Handle REG_B.
3979
432b8fa8
ILT
3980Fri Dec 15 16:07:25 1995 Ian Lance Taylor <ian@cygnus.com>
3981
3982 * ecoff.c (ecoff_build_aux): Use new bfd_big_endian macro.
3983
ee68a042
RJ
3984Fri Dec 15 12:11:48 1995 Raymond Jou <rjou@mexican.cygnus.com>
3985
3986 * mpw-make.sed: If linking, edit ALL_CFLAGS to CFLAGS.
3987
b14630f2
ILT
3988Thu Dec 14 15:09:52 1995 Ian Lance Taylor <ian@cygnus.com>
3989
3990 * config/obj-coff.c (write_object_file): Set the s_align field to
3991 the number of bytes, rather than to the power of 2.
3992
4a3d48fc
ILT
3993Tue Dec 12 12:19:37 1995 Ian Lance Taylor <ian@cygnus.com>
3994
3995 * Makefile.in (DISTCLEAN_HERE): New variable.
3996 (distclean): Use it.
3997 (maintainer-clean): Depend upon clean-here rather than clean,
3998 distclean, and clean-info. Run make maintainer-clean in doc.
3999 Remove files listed in DISTCLEAN_HERE.
4000 * doc/Makefile.in (maintainer-clean realclean): Split out from
4001 distclean. Depend upon clean-info and distclean.
4002
7e5e83cf
SS
4003Mon Dec 11 16:23:51 1995 Stan Shebs <shebs@andros.cygnus.com>
4004
4005 * mac-as.r: Fix copyright and version strings.
4006 (cfrg): Use PROG_NAME instead of literal name.
4007
1b10f50d
ILT
4008Mon Dec 11 14:14:08 1995 Ian Lance Taylor <ian@cygnus.com>
4009
4010 * read.c (read_a_source_file): If tc_unrecognized_line is defined,
4011 call it.
4012 * config/tc-a29k.h (tc_unrecognized_line): Define.
4013 * config/tc-a29k.c (a29k_unrecognized_line): New function.
4014 (md_operand): Handle a29k style local dollar labels.
4015
2f3bbb1b
ILT
4016Wed Dec 6 17:52:52 1995 Ian Lance Taylor <ian@cygnus.com>
4017
4018 * config/obj-multi.h: If OBJ_MAYBE_ELF, define OBJ_SYMFIELD_TYPE.
4019
624c91d1
KR
4020Tue Dec 5 13:26:34 1995 Ken Raeburn <raeburn@cygnus.com>
4021
4022 * read.c (s_fill): If md_flush_pending_output is defined, call
4023 it.
4024
9e4b3a23
KR
4025Mon Dec 4 15:10:53 1995 Ken Raeburn <raeburn@cygnus.com>
4026
4027 * config/obj-coff.c (size_section, fill_section, fixup_mdeps):
4028 Treat rs_align_code like rs_align.
4029
3554987a
DE
4030Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
4031
4032 * config/tc-arm.c (cp_address_required_here): Set pre_inc when
4033 converting an absolute address into a PC-relative one.
4034
90f543f6
SS
4035Fri Dec 1 11:57:56 1995 Stan Shebs <shebs@andros.cygnus.com>
4036
4037 * mpw-config.in: Don't always use te-generic.h for emulation.
4038 (powerpc-apple-macos): Use emulation te-macos.h.
4039start-sanitize-gm
4040 (mips-gm-magic): New configuration.
4041end-sanitize-gm
4042 * mpw-make.sed (install, install-only): Edit in Mac-specific
4043 install procedure.
4044
d4c8a45e
ILT
4045Fri Dec 1 10:59:25 1995 Ian Lance Taylor <ian@cygnus.com>
4046
2eec8710
ILT
4047 * configure.in: Improve message about unsupported ELF targets.
4048 * configure: Rebuild.
4049
d4c8a45e
ILT
4050 * config/tc-m88k.c (m88k_do_align): Correct check for whether fill
4051 pattern is zero. From Manfred Hollstein.
4052
531a1af2
KK
4053Thu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com>
4054
4055 * config/tc-ppc.c (ppc_pe_section): To get the alignment right for
4056 the various idata sections, we check the name on the .section pseudo.
4057
464070de
ILT
4058Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
4059
4060 * config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
4061 add section's paddr to add_number; compatibility to native as and
4062 ld forbids.
4063
6a087325
KR
4064Wed Nov 29 23:14:27 1995 Ken Raeburn <raeburn@cygnus.com>
4065
9d5aef80
KR
4066 * configure.in: Treat m68k-sysv4 like m68k-elf, not m68k-sysv3.
4067
ac9ef8ee
KR
4068 * hash.c (struct hash_entry): Moved here...
4069 * hash.h (struct hash_entry): ...from here.
4070
6a087325
KR
4071 * config/obj-elf.c (elf_frob_symbol): Don't free and clear sy_obj
4072 if it's already known to be null.
4073
77fa4d98
MM
4074Wed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4075
4076 * config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32
4077 bit relocs converted to PC relative relocs. This turned out to
4078 add the offset from the beginning of .text twice.
4079
c6e4e834
KR
4080Tue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com>
4081
4082 * stabs.c (s_stab_generic): In 's' case, free string from
4083 obstack.
4084
4085 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Remove unused field
4086 sy_name_offset.
4087 * config/obj-multi.h (ELF_TARGET_SYMBOL_FIELDS) [OBJ_MAYBE_ELF]:
4088 Ditto.
4089
4090 * subsegs.h (segment_info_type): Make bitfields unsigned.
4091
4092 * expr.h (struct expressionS): Make X_op and X_unsigned bitfields,
4093 and move them together. On most systems this will reduce the
4094 structure size by one word.
4095 (operatorT): Define O_max.
4096 * expr.c (expr_begin): Verify that X_op is wide enough to hold
4097 O_max.
4098
4099 * read.c (pop_insert): Print error returned by hash table
4100 insertion code.
4101
4102 * as.c (dump_statistics): Split out from main; dump some hash
4103 table stats and target-specific stats.
4104 (start_time): No longer automatic to main.
4105 (main): Set file-level start_time and call dump_statistics at
4106 exit. Exit by calling xexit.
4107 (show_usage): Make --statistics description less specific.
4108 * subsegs.c (subsegs_print_statistics): New function.
4109 * write.c (write_print_statistics): New function.
4110 (n_fixups): New static variable.
4111 (fix_new_internal): Increment it.
4112 * read.c (read_print_statistics): New function.
4113 * read.h (read_print_statistics): Declare.
4114 * symbol.c (symbol_print_statistics): New function.
4115 * symbol.h (symbol_print_statistics): Declare.
4116 * hash.c (hash_print_statistics): New function.
4117 * hash.h (hash_print_statistics): Declare.
4118 * config/tc-i386.c (i386_print_statistics): New function.
4119 * config/tc-i386.h (i386_print_statistics): Declare.
4120 (tc_print_statistics): New macro.
4121 * messages.c (as_fatal, as_assert, as_abort): Use xexit, not
4122 exit.
4123
4124 * hash.c (DELETED): Rewrite to use a valid but unique address.
4125 (START_POWER): Reduce to 10.
4126 (enum stat_enum): New enumerator, replacing STAT_* index macros.
4127 Add new values for counting strcmp calls.
4128 (GROW_FACTOR): New macro.
4129 (hash_grow): Use GROW_FACTOR. Rewrite for quick returns instead
4130 of nesting blocks.
4131 (FULL_VALUE): New macro. Use 1/4 of table size instead of 1/2.
4132 (hash_new): Use FULL_VALUE.
4133 (struct hash_control): Definition moved here.
4134 (hash_code): Don't mask to low bits.
4135 (hash_ask): Mask returned hash code here. Check hash value before
4136 calling strcmp; count strcmp calls.
4137 * hash.h (struct hash_control): Declare, don't define, here.
4138 (HASH_STATLENGTH): Deleted.
4139 (struct hash_entry): Add field for hash code.
4140 (hash_say, hash_apply): Don't declare.
4141
4142 * hash.c (destroy): Return void.
4143 (applicatee): Ditto.
4144 (main): Fix declarations.
4145 (hash_apply): Return void. Argument `function' returns void. Put
4146 inside "#ifdef TEST".
4147 (hash_say): Define only if TEST is defined.
4148 * hash.h (hash_apply, hash_say): Declarations deleted.
4149
6a4667f4
ILT
4150Mon Nov 27 13:18:25 1995 Ian Lance Taylor <ian@cygnus.com>
4151
4152 * configure: Rebuild with autoconf 2.7.
4153
330add8a
ILT
4154Tue Nov 21 18:39:01 1995 Ian Lance Taylor <ian@cygnus.com>
4155
4156 * aclocal.m4 (AC_PROG_CC): Remove local definition.
4157 * configure: Rebuild with autoconf 2.6.
4158
520dd8d5
ILT
4159Mon Nov 20 17:26:00 1995 Ian Lance Taylor <ian@cygnus.com>
4160
4161 * config/tc-ppc.c (ppc_debug_name_section_size): Remove.
4162 (ppc_stabx): Don't increment ppc_debug_name_section_size.
4163 (ppc_bc): Likewise.
4164 (ppc_frob_file): Remove.
4165 * config/tc-ppc.h (tc_frob_file): Don't define.
4166 (ppc_frob_file): Don't declare.
4167
880b7429
KR
4168Mon Nov 20 13:37:05 1995 Ken Raeburn <raeburn@cygnus.com>
4169
d6c4a3fa
KR
4170 * Makefile.in (TARG_CPU_DEP_alpha): Mention alpha-opcode.h.
4171 * config/alpha-opcode.h: Include one-operand variants of jmp and
4172 jsr.
4173
880b7429
KR
4174 * config/te-delt88.h: Renamed from te-delta88.h, to avoid conflict
4175 with te-delta.h in 8.3 file systems.
4176 * configure.in: Adjusted.
4177
aa8a6656
ILT
4178Thu Nov 16 12:49:38 1995 Ian Lance Taylor <ian@cygnus.com>
4179
880b7429
KR
4180 * config/tc-mips.c (s_err): Remove; just use the one in read.c.
4181
aa8a6656
ILT
4182 * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
4183 number.
4184 * expr.c (operand): Handle MRI suffixes after unadorned 0.
4185
7b889f5e
KR
4186Thu Nov 16 00:21:44 1995 Ken Raeburn <raeburn@cygnus.com>
4187
da9b55af
KR
4188 Version 2.6 released.
4189 * Makefile.in (VERSION): Updated to 2.6.
4190
7b889f5e
KR
4191 * config/obj-coff.c (write_object_file): Change use of md_do_align
4192 to pass a pointer rather than a fill value, to match other uses.
4193
46618ae6
KR
4194Wed Nov 15 03:52:00 1995 Ken Raeburn <raeburn@cygnus.com>
4195
7b889f5e
KR
4196 * config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
4197
46618ae6
KR
4198 * as.c (main): Move md_end call to just after call to
4199 perform_an_assembly_pass. Delete cpu-specific code here.
4200 * config/tc-i960.h (md_end): New macro, calls brtab_emit.
46618ae6
KR
4201 * config/tc-arm.c (md_end): Unused function deleted.
4202 * config/tc-ns32k.c (md_end): Ditto.
4203
4204 * config/tc-i386.c (i386_align_code): New function, moved here
4205 from HANDLE_ALIGN macro.
4206 * config/tc-i386.h (HANDLE_ALIGN): Call it.
4207
4208 Mon Jul 31 14:53:19 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
4209
4210 * config/tc-i386.h (md_do_align): cast fill and 0x90 to char
4211 before comparing
4212
4213 Mon May 1 10:91:49 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
4214
4215 * config/tc-i386.h (md_do_align): Make ".align n,0x90" generate
4216 multi-byte nops to avoid changing gcc. The necessary gcc change
4217 might break old assemblers.
4218
4219 Sat Apr 22 20:53:05 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
4220
4221 * config/tc-i386.h (md_do_align, HANDLE_ALIGN): Add macros to
4222 generate optimal multi-byte nop instructions for ".align n"
4223 ".align n,0x90", and aligns requiring more than 15 bytes of
4224 padding still generate multiple 0x90's as before.
4225
4226Mon Nov 13 17:40:21 1995 Ian Lance Taylor <ian@cygnus.com>
4227
4228 * config/tc-m68k.c (s_mri_until): Call pop_mri_control.
4229
51bc513e
SS
4230Mon Nov 13 20:39:06 1995 Stan Shebs <shebs@andros.cygnus.com>
4231
4232 * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
4233 * configure: Update.
4234 * mpw-make.sed: Reorder commands to make sed happier.
4235 * config/te-macos.h: New file.
4236 * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
4237
8b39c5df
JL
4238Sun Nov 12 21:14:56 1995 Jeffrey A Law (law@cygnus.com)
4239
4240 * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
4241 conditional branches.
4242 (md_apply_fix): Likewise.
4243
4244Thu Nov 9 16:14:01 1995 Ian Lance Taylor <ian@cygnus.com>
4245
4246 * config/tc-a29k.c (md_apply_fix): Warn if an attempt is made to
4247 generate a reloc which the linker will not handle correctly. Fix
4248 overflow checking--R_IREL is 18 bits, not 17.
4249
6a649eda
ILT
4250Wed Nov 8 19:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
4251
a071b8e9
ILT
4252 * config/obj-coff.c (fixup_segment): Don't subtract md_pcrel_from
4253 from a PC relative reloc if TC_A29K.
4254
4255 * config/tc-a29k.c (line_separator_chars): Restore '@'. Existing
4256 code depends upon it.
4257
6a649eda
ILT
4258 * config/tc-a29k.c (md_operand): Handle $float, $double, and
4259 $extend. Based on code from Eric Freudenthal
4260 <freudenthal@nyu.edu>.
4261 * config/tc-a29k.h (LEX_DOLLAR): Define.
4262 * read.c (LEX_DOLLAR): Define if not defined.
4263 (lex_type): Use LEX_DOLLAR.
4264
6364a188
ILT
4265Wed Nov 8 16:38:14 1995 Eric Freudenthal <freudenthal@nyu.edu>
4266
4267 * configure.in (a29k-nyu-sym1): New target, just like other a29k
4268 targets.
4269
0fa6f8f6
ILT
4270Wed Nov 8 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
4271
4272 * config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
4273
4274Tue Nov 7 09:14:35 1995 Kim Knuttila <krk@cygnus.com>
4275
4276 * config/tc-ppc.c (md_apply_fix3): Added BFD_RELOC_RVA. Currently
4277 used only by "dlltool.c".
4278
eec2cfef
ILT
4279Mon Nov 6 18:51:26 1995 Ian Lance Taylor <ian@cygnus.com>
4280
4281 * config/tc-alpha.c: Undefine inline if not __GNUC__.
4282 (md_pseudo_table): Don't define "extern".
4283
df7504dc
ILT
4284Sat Nov 4 00:51:21 1995 Ian Lance Taylor <ian@cygnus.com>
4285
a3d1c561
ILT
4286 * config/tc-ppc.c (ppc_biei): Force symbol into text_section.
4287
df7504dc
ILT
4288 * config/tc-ppc.c (md_show_usage): Put backslash at end of line.
4289
07d012f6
ILT
4290Fri Nov 3 13:02:59 1995 Ian Lance Taylor <ian@cygnus.com>
4291
36e80ac6
ILT
4292 * macro.c (macro_expand_body): Don't warn about == with a
4293 nonexistent parameter, in case it is in a comment field.
4294
07d012f6
ILT
4295 * as.c (main): On TC_A29K, call macro_init with macro_alternate
4296 set to 1.
4297 * macro.c (get_any_string): Don't keep quotes if macro_strip_at is
4298 set, even if macro_alternate is set.
4299 (get_apost_token): If macro_strip_at, only skip kind if it is '@'.
4300 (sub_actual): If macro_strip_at, and kind is '@', don't look up
4301 the token unless it ended in '@'.
4302 * config/tc-a29k.c (line_separator_chars): Remove '@'.
4303 * doc/c-a29k.texi: Document macro usage on A29K.
4304
01f108bc
ILT
4305Thu Nov 2 23:07:57 1995 Ian Lance Taylor <ian@cygnus.com>
4306
4307 * config/tc-m68k.c (m68k_ip): Handle new 'W' place, meaning a
4308 signed word.
4309 (install_operand): Likewise.
4310
4311 * config/obj-elf.c (ecoff_debug_pseudo_table): Add "extern".
4312
4313Wed Nov 1 15:17:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
4314
4315 * configure.in (m88k-motorola-sysv*): New target.
4316 * configure: Rebuild.
4317 * config/te-delta88.h: New file.
4318 * config/obj-coff.c (write_object_file): Use md_do_align if it is
4319 defined.
4320 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Define.
4321 (md_do_align): Define.
4322 * config/tc-m88k.c: Include "subsegs.h".
4323 (m88k_do_align): New function.
4324
4325 * config/te-delta.h (STRIP_UNDERSCORE): Don't define.
4326 (COFF_NOLOAD_PROBLEM): Define.
4327 (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): Define.
4328
7954cc14
KR
4329Wed Nov 1 16:07:43 1995 Ken Raeburn <raeburn@cygnus.com>
4330
4331 * config/tc-i386.c (md_assemble): For a jump instruction with
4332 non-constant target, require 7 available bytes in the current
4333 frag, not 6.
4334
d033806f
FF
4335Tue Oct 31 15:37:16 1995 Fred Fish <fnf@rtl.cygnus.com>
4336
4337 * config/obj-elf.h: Include bfd/elf-bfd.h rather than
4338 bfd/libelf.h.
4339
d7b2038f
ILT
4340Tue Oct 31 16:34:28 1995 David Mosberger-Tang <davidm@azstarnet.com>
4341
4342 * configure.in (alpha-*-linux*): Use ecoff.
4343 * configure: Rebuild.
4344 * ecoff.c (ecoff_directive_extern): New function.
4345 (ecoff_directive_weakext): New function.
4346 (ecoff_build_symbols): Handle weak symbols.
4347 (ecoff_setup_ext): Likewise.
59c80ca2 4348 (ecoff_frob_symbol): Warn about weak common symbols.
d7b2038f
ILT
4349 * ecoff.h (ecoff_directive_extern): Declare.
4350 (ecoff_directive_weakext): Declare.
4351 * symbols.c (S_IS_WEAK): New function.
4352 * symbols.h (S_IS_WEAK): Declare.
4353 * config/obj-ecoff.c (obj_pseudo_table): Add "extern" and
4354 "weakext".
4355 * config/tc-mips.c (mips_pseudo_table): Remove "extern".
4356 (s_extern): Remove.
4357
cbdf59ad
ILT
4358Tue Oct 31 13:29:08 1995 Ian Lance Taylor <ian@cygnus.com>
4359
b629f627
ILT
4360 * config/tc-ppc.c (ppc_lglobl): Do the right thing.
4361
7ab1edc8
ILT
4362 * config/tc-ppc.c (ppc_bb): Call SF_SET_PROCESS.
4363 (ppc_eb): Likewise. Set the storage class to C_BLOCK, not C_FCN.
4364 (ppc_frob_symbol): Don't change C_BLOCK symbols to C_HIDEXT.
4365 * config/obj-coff.c (coff_frob_symbol): Don't call
4366 SA_SET_SYM_ENDNDX with the current symbol; call it with the next
4367 one. If OBJ_XCOFF, try to figure out whether the symbol is going
4368 to be dropped.
4369
31751d9d
ILT
4370 * config/tc-ppc.c (md_pseudo_table): Add "bc" and "ec".
4371 (ppc_stab_symbol): New static variable.
4372 (ppc_change_csect): Check that ppc_toc_csect is not NULL.
4373 (ppc_stabx): Set ppc_stab_symbol around call to symbol_make. Set
4374 sy_tc.real_name to the stab string.
4375 (ppc_bc, ppc_ec): New static functions.
4376 (ppc_canonicalize_symbol_name): If ppc_stab_symbol is set, don't
4377 do anything.
4378 (ppc_symbol_new_hook): If ppc_stab_symbol is set, don't look for a
4379 suffix.
0e3dd9a0
ILT
4380 (ppc_frob_symbol): Set BSF_NOT_AT_END for symbols with csect aux
4381 entries.
31751d9d 4382
cbdf59ad
ILT
4383 * input-scrub.c (input_scrub_push): Reset sb_index.
4384
91123dbe
ILT
4385Mon Oct 30 17:52:46 1995 Ian Lance Taylor <ian@cygnus.com>
4386
4387 * listing.c (listing_newline): Don't create a frag in the absolute
4388 section.
4389
73255941
ILT
4390Sat Oct 28 01:02:05 1995 Ian Lance Taylor <ian@cygnus.com>
4391
df72d2a5
ILT
4392 * config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
4393 (ppc_csect): Move most of the code to ppc_change_csect, and call
4394 it.
4395 (ppc_change_csect): New static function, taken from ppc_csect.
4396 (ppc_section): New static function.
4397 (ppc_saw_abs): New static varable.
4398 (ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
4399 a symbol has no csect.
4400 (ppc_adjust_symtab): New function.
4401 * config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
4402 (ppc_adjust_symtab): Declare if OBJ_XCOFF.
4403
4404 * write.c (write_object_file): If tc_adjust_symtab is defined,
4405 call it just before the call to obj_adjust_symtab.
4406
73255941
ILT
4407 * symbols.c (symbol_find_or_make): Change name to be const.
4408 * symbols.h (symbol_find_or_make): Update declaration.
4409
9bfaf1b9
KR
4410Thu Oct 26 19:18:27 1995 Ken Raeburn <raeburn@cygnus.com>
4411
4412 * doc/as.texinfo (Align): Mention SH.
4413 * doc/c-m68k.texi (M68K-Directives, .even): Describe behavior, not
4414 .align value.
4415 * doc/c-z8k.texi (Z8000 Directives, global): Fix minor typo.
4416 (Z8000 Directives, even): Don't give numeric align value, instead
4417 explain behavior.
4418
ae143278
DE
4419Thu Oct 26 11:45:03 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
4420
4421 * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
4422 instruction.
4423
270433cc
PB
4424Wed Oct 25 11:59:24 1995 Per Bothner <bothner@kalessin.cygnus.com>
4425
4426 * Makefile.in (diststuff): Also make info.
4427 (maintainer-clean realclean): Also make clean-info.
4428
18a11401
JL
4429Tue Oct 24 15:21:33 1995 Jeffrey A Law (law@cygnus.com)
4430
4431 * config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
4432 (pa_subspace): For ".nsubspa", always create a new subspace
4433 with the given attributes, even if one already exists with the
4434 same name.
4435
96fe71e1
MM
4436Tue Oct 24 14:50:38 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4437
4438 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Rename from
4439 TC_FORCE_RELOCATION, taking an additional section argument. If
4440 the section of the target symbol is not the same as the current
4441 section, always force the relocation to be used.
4442 (MD_PCREL_FROM_SECTION): New macro to call md_pcrel_from_section.
4443
4444 * config/tc-ppc.c (md_pcrel_from_section): Rename from the
4445 md_pcrel_from function, taking an additional section argument.
4446 Invoke TC_FORCE_RELOCATION_SECTION instead of TC_FORCE_RELOCATION.
4447
4448 * write.c (TC_FORCE_RELOCATION_SECTION): Define in terms of the
4449 older TC_FORCE_RELOCATION if not defined.
4450 (MD_PCREL_FROM_SECTION): If not defined, invoke md_pcrel_from.
4451 (fixup_segment): Use MD_PCREL_FROM_SECTION instead of
4452 md_pcrel_from, and TC_FORCE_RELOCATION_SECTION instead of
4453 TC_FORCE_RELOCATION.
4454
1d75481b
KR
4455Mon Oct 23 16:20:04 1995 Ken Raeburn <raeburn@cygnus.com>
4456
4457 * input-scrub.c (as_where): Set name to null pointer if we don't
4458 have a file name.
4459 * messages.c (identify): Only print filename if non-null.
4460 (as_show_where): Ditto, for line number too.
4461 (as_warn_internal, as_bad_internal): Ditto.
4462
4463 * input-file.c (input_file_open): If the input file can't be
4464 opened, consider it an error.
4465
c625fc23
JSC
4466Mon Oct 23 11:15:44 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
4467
4468 * config/tc-mips.c: Added mips_4100 control, and support for
4469 accepting the 4100 as a MIPS architecture variant (md_begin,
4470 macro_build, mips_ip, md_parse_option). Adding suitable
4471 command-line OPTIONs, and updating the help text (md_show_usage).
4472
dd1a5316
KR
4473Wed Oct 18 13:20:32 1995 Ken Raeburn <raeburn@cygnus.com>
4474
c625fc23
JSC
4475 * subsegs.c (subseg_begin): Only set absolute_frchain.fix_* when
4476 BFD_ASSEMBLER is defined.
4477
3366a224
KR
4478 * Use one active frag and one obstack per frag chain:
4479 * frags.c (frags): Variable deleted.
4480 (frag_alloc): New function.
4481 (frag_grow, frag_more, frag_variant, frag_now_fix,
4482 frag_append_1_char): Refer to frchain_now->frch_obstack instead of
4483 frags variable.
4484 (frag_new): Ditto. Verify that frch_last and frag_now match on
4485 entry and exit, and that old frag_now has non-zero type. Replace
4486 "know" uses with "assert". Use frag_alloc instead of mucking with
4487 obstack alignment.
4488 * frags.h (frags): Declaration deleted.
4489 * subsegs.h (struct frchain): Add new field frch_frag_now.
4490 * subsegs.c (frchains, dummy_frag, absolute_frchain): New static
4491 variables.
4492 (subsegs_begin): Initialize frchains obstack. Under gcc, don't
4493 give it any stricter alignment than frchainS structures need. Do
4494 not initialize frags obstack. Set frag_now to point to
4495 dummy_obstack. Initialize absolute_frchain.
4496 (subseg_set_rest): Save and restore frag_now in frch_frag_now
4497 field of frchainS. Don't create new frags on section switch, and
4498 use frag_alloc when creating a new frag chain. For absolute
4499 section, set frchain_now to absolute_frchain. Verify that
4500 frch_last and frag_now match on entry and exit. Initialize
4501 per-chain obstack, and under gcc, set required alignment to that
4502 needed by fragS structure.
c625fc23 4503
3366a224
KR
4504 * write.c (chain_frchains_together_1): Verify fr_type is nonzero.
4505
4506 * stabs.c (get_stab_string_offset): Only copy input string if a
4507 fresh copy is needed, not if the section already exists.
4508 (s_stab_generic): Cache stab section name to bypass lookups, since
4509 usually it will match. Could be made faster still by changing the
4510 memory allocation rules.
4511 (s_xstab): Cache section name to bypass repeated string
4512 allocation.
4513
4514 * frags.c (frag_new): Deleted register declarations.
4515
4516 * listing.c (frag_now): Don't declare.
4517
4518 * as.c (chunksize): New variable.
4519 (debug_memory): New variable.
4520 (main): If debug_memory is set, reduce chunksize and
4521 _bfd_chunksize.
4522 * as.h (chunksize): Declare it.
4523 * read.c (read_begin): Use it.
4524
de5ebe2e
KR
4525 * config/tc-alpha.c (md_shortopts): Include 'g'.
4526 (md_parse_option): Ignore it.
4527
dd1a5316
KR
4528 * Makefile.in (distclean): Remove Makefile and config.status from
4529 testsuite directory.
4530 (clean-here): Don't delete testsuite. Instead, delete only the
4531 files within it that would be generated by running tests.
4532
de5ebe2e
KR
4533 * config/tc-hppa.c (hppa_elf_mark_end_of_function): Call
4534 frag_now_fix instead of accessing obstack info directly.
4535 * config/tc-arm.c (s_ltorg): Ditto.
4536 (md_assemble): Ditto.
4537
4538 * config/tc-i386.c (md_assemble): Call frag_grow instead of
4539 obstack_room.
4540
625f4e48
KR
4541Wed Oct 18 12:22:59 1995 Ken Raeburn <raeburn@cygnus.com>
4542
4543 * stabs.c (aout_process_stab): Insert debug symbol into symbol
4544 chain after parsing value expression, if any, to avoid separating
4545 continued .stabs lines.
4546
33a8c1b6
ILT
4547Mon Oct 16 10:56:41 1995 Ian Lance Taylor <ian@cygnus.com>
4548
4549 * config/tc-mips.c (mips_elf_pseudo_table): Remove.
4550 (mips_pop_insert): Don't call pop_insert on mips_elf_pseudo_table.
4551
b6b8f911
MM
4552Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
4553
625f4e48
KR
4554 * config/tc-ppc.c (md_begin): Use new flags PPC_OPCODE_COMMON for
4555 -mcom support and PPC_OPCODE_ANY for -many.
4556 (md_parse_option): Ditto.
4557 (ppc_arch): Ditto.
4558 (md_begin): For duplicate instructions, print all duplicates
4559 before aborting.
b6b8f911 4560
4c2935f4
MM
4561Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
4562
4563 * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
4564 common mode operation.
4565 (md_show_usage): Add -mcom to usage message.
4c2935f4
MM
4566
4567Fri Oct 13 13:32:45 1995 steve chamberlain <sac@slash.cygnus.com>
4568
4569 * expr.c (op_rank): Add O_symbol_rva.
4570 * expr.h (operatorT): Add O_symbol_rva.
4571 * read.c (cons_worker): Set O_symbol_rva when necessary.
4572 * write.c (fix_new_exp): Understand O_symbol_rva.
4573
7db865dc
ILT
4574Tue Oct 10 11:34:14 1995 Ian Lance Taylor <ian@cygnus.com>
4575
4576 * config/tc-mips.c: Correct s_cons arguments. From Michael
4577 Joosten <joost@ori.cadlab.de>.
4578
1b13e6fc
ILT
4579Mon Oct 9 19:59:53 1995 Ian Lance Taylor <ian@cygnus.com>
4580
4581 * config/tc-ppc.c (ppc_macro): Make count unsigned.
4582 (ppc_biei): Set segment to now_seg and value to coff_n_line_nos.
4583 (ppc_frob_symbol): Handle C_BINCL and C_EINCL symbols by setting
4584 the fix_line field.
4585 * config/obj-coff.c (coff_n_line_nos): Rename from n_line_nos, and
4586 make non-static. Change all users.
4587 * config/obj-coff.h (coff_n_line_nos): Declare.
4588
9e3e3d4c
KR
4589Fri Oct 6 16:24:27 1995 Ken Raeburn <raeburn@cygnus.com>
4590
4591 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4592
4593 * configure.in (AC_ARG_WITH(bfd-assembler)): Fix help message.
4594
4595 * config/obj-elf.c (obj_elf_common): Convert specified byte
4596 alignment to power of two. Set size of local bss symbol.
4597
4598 * config/tc-m68k.c (tc_gen_reloc): Fix typo in variable name.
4599
13a6c753
ILT
4600Fri Oct 6 15:22:25 1995 Ian Lance Taylor <ian@cygnus.com>
4601
4602 * sb.c, macro.c: Decide whether to include <string.h> or
4603 <strings.h> just as as.h does.
4604
a75aafcd
DE
4605Fri Oct 6 09:55:33 1995 Doug Evans <dje@canuck.cygnus.com>
4606
4607 * Makefile.in (site.exp): Fix setting of $srcdir.
4608
4609 * config/tc-arm.c (md_atof): Fix little-endian output.
f6ec8c46
DE
4610 * config/tc-arm.h (ARM_BI_ENDIAN): Move definition so defined for
4611 all coff targets.
a75aafcd 4612
d89861c7
KR
4613Thu Oct 5 20:17:30 1995 Ken Raeburn <raeburn@cygnus.com>
4614
4d2ba393
KR
4615 * doc/as.texinfo: Split out the NS32k family documentation,
4616 despite its being commented out for now.
4617 * doc/c-ns32k.texi: New file.
4618
2c5eb48d
KR
4619 * sb.c, macro.c: Include string.h.
4620
6b0a6eaa
KR
4621 * Makefile.in (comparison): Only check *.o; we don't care if
4622 timestamps inserted by the native linker differ.
4623
d89861c7
KR
4624 * config/tc-alpha.c (alpha_align): Only fill with a no-op pattern
4625 if alignment stricter than 4 bytes is requested; in that case,
4626 align to a 4-byte boundary first.
4627
70aeac05
KR
4628 Thu Sep 28 19:35:27 1995 Pat Rankin <rankin@eql.caltech.edu>
4629
4630 * config/obj-vms.c (VMS_RSYM_Parse): eliminate "might be used
4631 uninitialized" warning for `Max_Source_Offset'.
4632
eaaa2a42
KK
4633Wed Oct 4 16:17:02 1995 Kim Knuttila <krk@cygnus.com>
4634
4635 * config/tc-ppc.c (parse_toc_entry): New function to parse [toc]
4636 qualifiers and detect errors if present.
4637 (md_assemble): Add call to parse_toc_entry. Also added some support
4638 for the [tocv] qualifier.
4639 (ppc_pe_tocd): New function to support data in the toc section.
4640
cd557d83
ILT
4641Wed Oct 4 14:03:39 1995 Ian Lance Taylor <ian@cygnus.com>
4642
4643 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
4644 an absolute symbol.
4645
42ac8fa8
ILT
4646Tue Oct 3 12:18:19 1995 Ian Lance Taylor <ian@cygnus.com>
4647
01f108bc 4648 * config/tc-m68k.c (isword): Accept all values from -65536 to
cd557d83
ILT
4649 +65535, so ~VAL will not be rejected.
4650
42ac8fa8
ILT
4651 * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
4652 skip characters after the pseudo-op.
4653 (s_else): Likewise.
4654 * read.c (get_line_sb): Don't look past buffer_limit.
4655 (s_include): In MRI mode, skip characters after the file name.
4656
eef66934
ILT
4657Mon Oct 2 16:15:27 1995 Ian Lance Taylor <ian@cygnus.com>
4658
4659 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
4660 periods in register names.
4661
cdc49cba 4662For older changes see ChangeLog.1.
This page took 0.309798 seconds and 4 git commands to generate.