2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
12b55ccc
L
12003-06-09 H.J. Lu <hongjiu.lu@intel.com>
2
3 * NEWS: Updated for the new -n option for the i386 assembler.
4
5 * config/tc-i386.c (optimize_align_code): New.
6 (md_shortopts): Add 'n'.
7 (md_parse_option): Handle 'n'.
8 (md_show_usage): Add '-n'.
9
10 * config/tc-i386.h (optimize_align_code): Declared.
11 (md_do_align): Optimize code alignment only if optimize_align_code
12 is not 0.
13
14 * doc/as.texinfo: Add the new -n option.
15
16 * doc/c-i386.texi: Document the new -n option.
17
fa87b337
RH
182003-06-07 Richard Henderson <rth@redhat.com>
19
17076204
RH
20 * doc/as.texinfo: Document .cfi_rel_offset.
21
fa87b337
RH
22 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
23 (cfi_add_CFA_offset): Detect invalid offsets.
24 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
25 (cfi_add_CFA_restore_state): Restore it.
26 (CFI_rel_offset): New.
27 (cfi_pseudo_table): Add it.
28 (dot_cfi): Handle it.
29
52628315
L
302003-06-07 H.J. Lu <hongjiu.lu@intel.com>
31
32 * app.c (do_scrub_chars): Add states 14 and 15 to handle
33 predicate for ia64.
34
d4ea8842
MS
352003-06-05 Michael Snyder <msnyder@redhat.com>
36
37 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
38 (build_bytes): Ditto.
39
402003-06-05 Richard Sandiford <rsandifo@redhat.com>
41
42 * config/tc-h8sx.c (DMODE): Remove.
43 (colonmod24): Don't choose a default if the operand is a 16-bit
44 constant integer.
45 (fix_operand_size): New function.
46 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
47 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
48
2be24b54
ML
492003-06-05 Michal Ludvig <mludvig@suse.cz>
50
51 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
52 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
53 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
54 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
55 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
56 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
57 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
58 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
59 (cfi_pseudo_table): New directives .cfi_return_column,
60 .cfi_restore, .cfi_undefined, .cfi_same_value,
61 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
62 (dot_cfi, output_cfi_insn): Handle new directives.
63 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
64 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
65 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
66
757bc393
RH
672003-06-04 Richard Henderson <rth@redhat.com>
68
1233ae62
RH
69 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
70
757bc393
RH
71 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
72
f4b97536
RH
732003-06-04 Richard Henderson <rth@redhat.com>
74
75 * config/tc-alpha.c (s_alpha_usepv): New.
76 (md_pseudo_table): Add it.
77 (alpha_cfi_frame_initial_instructions): New.
78 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
79 (tc_cfi_frame_initial_instructions): New.
80 * doc/c-alpha.texi: Document .usepv.
81
68d55fe3
JJ
822003-06-04 Jakub Jelinek <jakub@redhat.com>
83
84 * as.c (show_usage): Document --execstack and --noexecstack.
85 (parse_args): Add --execstack and --noexecstack.
86 (main): Create .note.GNU-stack section if --execstack or
87 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
88 * as.h (flag_execstack, flag_noexecstack): New.
89
f9b4148d
CD
902003-06-03 Chris Demetriou <cgd@broadcom.com>
91
92 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
93 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
94 (OPTION_MISC_BASE): New defines.
95 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
96 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
97 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
98 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
99 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
100 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
101 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
102 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
103 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
104 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
105 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
106 (OPTION_TRAP): Redefine in terms of new defines.
107 (md_longopts): Reorder entries.
108
7ee7b84d
MS
1092003-05-14 Michael Snyder <msnyder@redhat.com>
110 From Bernd Schmidt <bernds@redhat.com>
111 and Michael Snyder <msnyder@redhat.com>
112 and Alexandre Oliva <aoliva@redhat.com>
113 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
114 * config/tc-h8300.h: Ditto.
115
e30ddb24
NC
1162003-06-03 Nick Clifton <nickc@redhat.com>
117
118 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
119 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
120 before calling bfd_reloc_type_lookup.
121
ed7d5d1a
AM
1222003-06-02 Alan Modra <amodra@bigpond.net.au>
123
124 * read.c (emit_expr): Set dot_value.
125 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
126
c1ed1235
AM
1272003-06-02 Alan Modra <amodra@bigpond.net.au>
128
129 * macro.c (sub_actual): Don't lose string if it turns out that
130 &string wasn't an arg.
131
eafbc43f
RH
1322003-05-31 Richard Henderson <rth@redhat.com>
133
134 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
135 (cfi_finish): Set flag_traditional_format around .eh_frame data.
136
f37f01cf
RH
1372003-05-29 Richard Henderson <rth@redhat.com>
138
139 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
140 (all_frame_data, plast_frame_data, cur_frame_data): New.
141 (s_alpha_ent): Record data for dwarf2 cfi.
9f470756
L
142 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
143 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
f37f01cf
RH
144 * config/tc-alpha.h (md_end): New.
145 (DWARF2_DEFAULT_RETURN_COLUMN): New.
146 (DWARF2_CIE_DATA_ALIGNMENT): New.
147
a197c351
NC
1482003-05-29 Nick Clifton <nickc@redhat.com>
149
150 * configure.in: Add i386-*-freebsd* entry.
151 * configure: Regenerate.
152
4bf4a882 1532003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
ed7d5d1a
AM
154
155 * config/tc-m32r.c: Amend comment to refer to Renesas
4bf4a882 156
756d1d01
RH
1572003-05-27 Richard Henderson <rth@redhat.com>
158
159 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
160 symbol_create call.
161 (current_location): Use symbol_temp_new_now.
162 * stabs.c (s_stab_generic): Use symbol_temp_new.
163 * symbols.c (temp_label_name): Remove.
164 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
165
a4447b93
RH
1662003-05-27 Richard Henderson <rth@redhat.com>
167
168 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
169 * as.c (main): Always call cfi_finish.
170 * config/tc-i386.c (x86_dwarf2_return_column): New.
171 (x86_cie_data_alignment): New.
172 (md_begin): Set them.
173 (tc_x86_cfi_init): Remove.
174 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
175 return int, not unsigned long; don't as_bad here.
176 (tc_x86_frame_initial_instructions): Streamline; use
177 updated api.
178 * config/tc-i386.h (tc_cfi_init): Remove.
179 (DWARF2_DEFAULT_RETURN_COLUMN): New.
180 (DWARF2_CIE_DATA_ALIGNMENT): New.
181
b7d6ed97
RH
1822003-05-27 Richard Henderson <rth@redhat.com>
183
184 * symbols.c (temp_label_name): New.
185 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
186 (symbol_set_value_now): New.
187 * symbols.h: Prototype them.
188 * dwarf2dbg.c: Use them.
189 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
190
14218d5f
JE
1912003-05-23 Jason Eckhardt <jle@rice.edu>
192
193 * config/tc-i860.c (target_xp): Declare variable.
194 (OPTION_XP): Declare macro.
195 (md_longopts): Add option -mxp.
196 (md_parse_option): Set target_xp.
197 (md_show_usage): Add -mxp usage.
198 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
199 (md_assemble): Don't try expansions if XP_ONLY is set.
200 * doc/c-i860.texi: Document -mxp option and i860XP support.
201
36ede617
EC
2022003-05-23 Eric Christopher <echristo@redhat.com>
203
204 * config/tc-mips.c (macro_build_jalr): Warning patrol.
205
a105a300
TS
2062003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
207
208 * config/tc-mips.c (append_insn): Use actual relocation size for new
209 fixp's. Don't relax overflow checking for partial_inplace relocations.
210 Use the actual relocation type in combined relocs, not just the type
211 of the first one.
212 (macro_build_jalr): Use actual relocation size for new fix.
213 (s_cpsetup, s_gpdword): Likewise.
214
dc9461f6
TS
2152003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
216
217 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
218
ceb41009
NC
2192003-05-22 Nick Clifton <nickc@redhat.com>
220
221 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
222 section relative offsets for relocs that will not be based on the
223 section symbol.
224 (xstormy16_md_apply_fix3): Remove previous patch to this
225 function.
226
143d77c5
EC
2272003-05-07 Eric Christopher <echristo@redhat.com>
228
ed7d5d1a
AM
229 * config/tc-mips.c (mips_abicalls): New variable.
230 (md_parse_option): Use.
231 (s_option): Ditto.
232 (s_abicalls): Ditto.
233 (mips_elf_final_processing): Set EF_MIPS_PIC and
234 EF_MIPS_CPIC dependent on above.
143d77c5 235
85c77c38
DA
2362003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
237
238 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
239
87ccc1b0
NC
2402003-05-21 Nick Clifton <nickc@redhat.com>
241
ed7d5d1a
AM
242 * config/obj-elf.c: Include dwarf2dbg.h.
243 (elf_pseudo_tab): Add .file and .loc.
244 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
245 * config/tc-arm.c: Likewise.
246 * config/tc-h8300.c: Likewise.
247 * config/tc-hppa.c: Likewise.
248 * config/tc-ia64.c: Likewise.
249 * config/tc-m68hc11.c: Likewise.
250 * config/tc-m68k.c: Likewise.
251 * config/tc-mmix.c: Likewise.
252 * config/tc-mn10300.c: Likewise.
253 * config/tc-ppc.c: Likewise.
254 * config/tc-sh.c: Likewise.
255 * config/tc-sparc.c: Likewise.
256 * config/tc-v850.c: Likewise.
257 * config/tc-frv.c: Likewise, and remove redundant inclusion of
258 dwarf2dbg.h.
259 * config/tc-ip2k.c: Likewise.
260 * config/tc-iq2000.c: Likewise.
261 * config/tc-xstormy16.c: Likewise.
262 * config/tc-xtensa.c: Likewise.
87ccc1b0 263 * Makefile.am: Regenerate dependencies.
ed7d5d1a
AM
264 * Makefile.in: Regenerate.
265 * aclocal.m4: Regenerate.
266 * config.in: Regenerate.
267 * configure: Regenerate.
268 * po/POTFILES.in: Regenerate.
269 * po/gas.pot: Regenerate.
143d77c5 270
7ed2c8b0
NC
2712003-05-21 Nick Clifton <nickc@redhat.com>
272
273 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
274 BFD_ASSEMBLER targets.
275 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
276 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
277 defining BFD_ASSEMBLER.
278
39b82151
ML
2792003-05-20 Michal Ludvig <mludvig@suse.cz>
280
281 * as.c (main): Remove tc_cfi_init().
143d77c5 282 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
39b82151
ML
283 with '%'.
284 (cfi_pseudo_table): Add "cfi_register" entry.
285 (cfi_make_insn): Handle CFA_register.
286 (cfi_output_insn): Ditto.
287 (dot_cfi): Ditto.
288 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
289 (dot_cfi_endproc): Reuse already emitted CIEs.
290 * testsuite/gas/cfi/cfi-i386.d: New pattern.
291 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
292
f53e95c7
NC
2932003-05-20 Nick Clifton <nickc@redhat.com>
294
295 * config/tc-xstormy16.c: Include dwarf2dbg.h.
296 (md_pseudo_table): Add entries for .loc and .line.
297
7c0295b1
AM
2982003-05-20 Alan Modra <amodra@bigpond.net.au>
299
300 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
301 defined.
302 (dot_cfi_endproc): Avoid C99 construct.
303
54cfded0
AM
3042003-05-20 Michal Ludvig <mludvig@suse.cz>
305
306 * dw2gencfi.c, dw2gencfi.h: New files.
307 * config/tc-i386.c (tc_x86_cfi_init): New function.
308 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
309 * as.c (parse_args): Set verbose flag on --verbose.
310 (main): Call tc_cfi_init()/cfi_finish().
311 * as.h (verbose): New external variable.
312 * read.c (pobegin): Insert CFI pops to the list.
313 * symbols.c (local_symbol_make): Make symbol external.
314 * symbols.h (local_symbol_make): New prototype.
315 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
316 * Makefile.in: Regenerate.
317 * doc/as.texinfo: Added node "CFI directives" with description of
318 all implemented .cfi_* directives.
319 * doc/Makefile.in: Regenerate.
320 * po/POTFILES.in: Regenerate.
321
a1f3c24c
SS
3222003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
323
54cfded0
AM
324 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
325 insns.
1975ab25 326 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
a1f3c24c 327
b645cb17
JE
3282003-05-18 Jason Eckhardt <jle@rice.edu>
329
330 * config/tc-i860.c (i860_process_insn): Initialize fc after
331 each opcode mismatch.
332
80c7c40a
NC
3332003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
334
335 * configure.in: Accept i[3-7]86 variants.
336 * configure: Regenerate.
337
c344a4c8
TS
3382003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
339
340 * config/tc-mips.h: Fix comment formatting.
341
64e55042
HPN
3422003-05-13 Hans-Peter Nilsson <hp@axis.com>
343
344 * read.c (old_buffer, old_input, old_limit): Remove variables.
54cfded0 345 (read_a_source_file): Delete label contin.
64e55042
HPN
346 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
347 input as with macros, instead of in separate old_* variables.
348 Zero-terminate string being scrubbed.
349
e66c629e
NC
3502003-05-12 Nick Clifton <nickc@redhat.com>
351
352 * config/tc-xstormy16.c (skipping_fptr): New local variable.
353 (md_assemble): Reset skipping_fptr.
354 (md_operand): If @fptr() is followed by a minus sign, set
355 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
356 @fptr is detected, ignore it and reset skipping_fptr.
357
673a54e3
JE
3582003-05-11 Jason Eckhardt <jle@rice.edu>
359
360 * config/tc-i860.c (MAX_FIXUPS): Define.
361 (struct i860_fi fi[]): New struct.
362 (struct i860_it the_insn): Add above as member and move fields
363 exp, reloc, pcrel and fup into i860_fi.
364 (md_assemble): Replace all instances of exp, reloc, pcrel
365 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
366 Add a loop to possibly emit multiple fix-ups for each insn.
367 (i860_process_insn): Likewise.
368 (i860_get_expression): Likewise.
369 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
370
2ebb4b88
MS
3712003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
372
373 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
374
35f5df7f
L
3752003-05-07 H.J. Lu <hongjiu.lu@intel.com>
376
377 * config/tc-ia64.c (alias_hash): New.
378 (alias_name_hash): New.
379 (secalias_hash): New.
380 (secalias_name_hash): New.
381 (md_pseudo_table): Add "secalias".
382 (md_begin): Initialize alias_hash, alias_name_hash,
383 secalias_hash and secalias_name_hash.
384 (struct alias): New.
385 (dot_alias): Implement .alias and .secalias directives.
386 (do_alias): New.
387 (ia64_adjust_symtab): New.
388 (do_secalias): New.
389 (ia64_frob_file): New.
390
391 * config/tc-ia64.h (ia64_adjust_symtab): New.
392 (tc_adjust_symtab): Defined.
393 (ia64_frob_file): New.
394 (tc_frob_file): Defined.
395
d2bf1bda
NC
3962003-05-07 Dmitry Diky <diwil@mail.ru>
397
398 * tc-msp430.c: Add missing lines to known cpus list.
399
cac012d6
AO
4002003-05-06 Alexandre Oliva <aoliva@redhat.com>
401
402 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
403 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
404 * config.in, configure: Rebuilt.
405
d8dbbec1
L
4062003-05-05 H.J. Lu <hjl@gnu.org>
407
408 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
409 howto->partial_inplace is false.
410
9204e615
DJ
4112003-05-05 Daniel Jacobowitz <drow@mvista.com>
412
413 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
414 symbol_used_in_reloc_p check.
415 (md_apply_fix3): Remove check for howto->pcrel_offset.
416
711ef82f
L
4172003-05-03 H.J. Lu <hjl@gnu.org>
418
419 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
420 fatal error for unknown section attribute.
421
422 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
423 unknown section attribute.
424 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
425 * config/tc-ppc.c (ppc_section_letter): Likewise.
426
427 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
428 (ia64_elf_section_type): Accept "unwind".
429
83b5ab55
L
4302003-05-02 H.J. Lu <hjl@gnu.org>
431
432 * read.h (demand_copy_string): New.
433
434 * config/tc-alpha.c (demand_copy_string): Removed.
435
7ff0565e
MS
4362003-05-02 Michael Snyder <msnyder@redhat.com>
437
54cfded0 438 * write.h (FAKE_LABEL_NAME): Allow override
7ff0565e
MS
439 (for targets that like eg. a leading dot in a local label).
440
2968149b
NC
4412003-05-02 Nick Clifton <nickc@redhat.com>
442
443 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
444 addend with the symbol's value for pc-relative relocations against
445 a defined symbol - this will be done automatically.
446
e7b9a8c1
L
4472003-05-01 H.J. Lu <hjl@gnu.org>
448
449 * config/obj-elf.c (obj_elf_type): Accept "notype" and
450 "STT_NOTYPE".
451
612d7b83
L
4522003-05-01 H.J. Lu <hjl@gnu.org>
453
454 * config/tc-ia64.h (tc_canonicalize_section_name): New.
455
456 * config/obj-elf.c (obj_elf_section_name): Call
457 tc_canonicalize_section_name if it is defined.
458
a645d1eb
L
4592003-05-01 H.J. Lu <hjl@gnu.org>
460
461 * config/tc-ia64.c (ia64_check_label): New.
462 * config/tc-ia64.h (tc_check_label): New.
463
464 * read.c (read_a_source_file): Call tc_check_label after
465 creating a user-defined label if defined.
466
df12615d
AM
4672003-05-02 Alan Modra <amodra@bigpond.net.au>
468
469 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
470 -be and split strings to below 509 bytes in length.
471
f70c8412
CG
4722003-05-01 Christian Groessler <chris@groessler.org>
473
474 * expr.h: Fix comments in operatorT typedef.
54cfded0 475 * config/tc-z8k.c: Add 2003 to copyright message.
f70c8412
CG
476 Fold s_segm() and s_unseg() into one function s_segm(parm) which
477 decides by the parameter.
478 (md_begin): Don't set linkrelax. Only set Z8002 default if no
479 command line argument was given to select the intended
480 architecure.
481 (get_interrupt_operand): Warn if NOP type code is emitted.
482 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
483 (apply_fix): Call newfix with additional 'size' parameter.
484 (build_bytes): Remove unused variable 'nib'. Detect overflow in
485 4 bit immediate arguments.
486 (md_longopts): Add 'linkrelax' option.
487 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
488 variable when 'linkrelax' command line option is specified.
489 (md_show_usage): Display 'linkrelax' option.
490 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
491 R_CALLR and R_REL16.
492 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
493
10a98291
L
4942003-04-30 H.J. Lu <hjl@gnu.org>
495
496 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
497 (ia64_float_to_chars): Likewise.
498 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
499 and ia64_float_to_chars by tc_segment_info_data.endian from
500 the current segment if byteorder == -1.
501 (md_begin): Call dot_byteorder to set target_big_endian.
502 (md_atof): Call ia64_float_to_chars to convert floating point.
503 (ia64_float_to_chars_bigendian): New function.
504 (ia64_float_to_chars_littleendian): Likewise.
505 (ia64_elf_section_change_hook): Likewise.
506
507 * config/tc-ia64.h (ia64_number_to_chars): New.
508 (md_number_to_chars): Changed to (*ia64_number_to_chars)
509 (ia64_elf_section_change_hook): New.
510 (md_elf_section_change_hook): Defined.
511 (ia64_segment_info_type): New struct.
512 (TC_SEGMENT_INFO_TYPE): Defined.
513
bf57c3c9
L
5142003-04-30 H.J. Lu <hjl@gnu.org>
515
516 * config/tc-ia64.c (md_section_align): Deleted.
517
518 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
519 (md_section_align): New.
520
165a7f90
L
5212003-04-30 H.J. Lu <hjl@gnu.org>
522
523 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
524 and add real16.
525 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
526 "real16.ua".
527 (md_atof): Add 6 byte padding of zero for real16.
528
eba874d8
NC
5292003-04-29 Nick Clifton <nickc@redhat.com>
530
531 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
532 start of a version name.
533
dbeba5e5
CD
5342003-04-28 Chris Demetriou <cgd@broadcom.com>
535
536 * configure.in (mips-*-*n*bsd*): Replace with...
537 (mips-*-netbsd*, mips-*-openbsd*): These.
538 * configure: Regenerate.
539
f0d7d5f9
NC
5402003-04-28 H.J. Lu <hjl@gnu.org>
541
542 * config/tc-hppa.c (hppa_symbol_chars): New.
543 * config/tc-hppa.h (tc_symbol_chars): Likewise.
544
a38b42ab
TS
5452003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
546
547 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
548
69be0a2b
CD
5492003-04-25 Chris Demetriou <cgd@broadcom.com>
550
551 * NEWS: Belatedly mention support for MIPS32 Release 2.
552
684022ea
EC
5532003-04-24 Eric Christopher <echristo@redhat.com>
554
555 * config/tc-mips.c (nopic_need_relax): Revert previous
556 change.
557
2c8714f2
NC
5582003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
559
560 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
684022ea 561 * config/tc-h8300.c (dwarf2dbg.h): Include
2c8714f2
NC
562 (md_pseudo_table): Handle .loc and .file
563 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
564 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
565 * Makefile.in: Regenerate.
566
684022ea 5672003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8d9cd6b1
NC
568
569 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
570 (md_pseudo_table): Add h8300hn, h8300sn.
571 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
572 * doc/c-h8300.texi : Add documentation for new machine directives.
573
5ce8663f
NC
5742003-04-24 Nick Clifton <nickc@redhat.com>
575
576 * config/tc-ppc.c (ppc_symbol_chars): Define.
577 * config/tc-ppc.h (tc_symbol_chars): Define.
578
ef230218
JR
5792003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
580
581 * config/tc-sh.c: Amend comment to refer to SuperH.
582 * config/tc-sh.h: Likewise.
583 (LISTING_HEADER): Amend to refer to SuperH.
584 * config/tc-sh64.c: Change comment to refer to SuperH.
585 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
586 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
587 * doc/c-sh.texi: Amend to refer to SuperH.
588 Add SuperH architecture documentation references.
589 * doc/c-sh64.texi: Change to refer to SuperH.
590
204cd129
NC
5912003-04-23 H.J. Lu <hjl@gnu.org>
592
593 * app.c (do_scrub_chars): More checks for valid labels.
594
2cdb18a7
L
5952003-04-22 H.J. Lu <hjl@gnu.org>
596
597 * app.c (do_scrub_chars): Check for valid label.
598
26597c86
NC
5992003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
600
601 * doc/as.texinfo: Replace references to Mitsubishi M32R with
602 references to Renesas M32R.
603 * doc/c-m32r.texi: Likewise.
604
88b4ca40
RH
6052003-04-21 Richard Henderson <rth@redhat.com>
606
54cfded0
AM
607 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
608 (out_file_list): Assign non-null filename after generating error.
88b4ca40 609
e5f08f7e
JJ
6102003-04-18 Jakub Jelinek <jakub@redhat.com>
611
612 * ehopt.c (check_eh_frame): For aug_size == 0
613 in state_seeing_aug_size state skip the state_skipping_aug
614 state.
615
c2dcd04e
NC
6162003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
617
618 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
619 'Renesas'.
620 * doc/c-h8500.texi: Likewise.
621 * doc/c-sh.texi: Likewise.
622 * doc/c-sh64.texi: Likewise.
623 * doc/h8.texi: Likewise.
624 * config/tc-h8300.c: Likewise.
625 * config/tc-h8300.h: Likewise.
626 * config/tc-h8500.c: Likewise.
627 * config/tc-h8500.h: Likewise.
628 * config/tc-sh.c: Likewise.
629 * config/tc-sh.h: Likewise.
630 * config/tc-sh64.c: Likewise.
631 * config/tc-sh64.h: Likewise.
632
f5040a92
AO
6332003-04-10 Alexandre Oliva <aoliva@redhat.com>
634
635 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
636 * config/tc-mips.c: Use signed add for n32 address arithmetic.
637 (append_insn): When filling delay slots with instructions
638 that have fixups that tc_gen_reloc might consider modifyable
639 in variant frags, start a new frag.
640 (load_address): Generate GOT_DISP with of without offset
641 depending on whether symbol is local. For -xgot, use
642 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
643 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
644 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
645 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
646 <ld_st>: In NewABI with small got, always use
647 GOT_PAGE/GOT_OFST, with the latter in the load/store
648 instruction. With big got, use GOT_HI16/GOT_LO16 or
649 GOT_PAGE/GOT_OFST.
650 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
651 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
652 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
653 (md_convert_frag): Use memmove for safe copying of overlapping
654 regions.
655
35b55ed2
SC
6562003-04-09 Stephane Carrez <stcarrez@nerim.fr>
657
658 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
659 -mlong, -mshort-double and -mlong-double options; use table @code.
660 (M68HC11-Syntax): Update to document 68HC12 operands.
661 (M68HC11-Modifiers): New section for operand modifiers.
662 (M68HC11-Directives): New section for specific assembler directives.
663 (M68HC11-Branch): Fix Overfull hbox error.
664
9214dd3b
AO
6652003-04-09 Alexandre Oliva <aoliva@redhat.com>
666
667 * config/tc-mips.c (macro): Add comments explaining the rationale
668 for Chris' change.
669
eb0a7d52
AO
6702003-04-09 Chris Demetriou <cgd@broadcom.com>
671
672 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
673 constant address that Alexandre took out by accident. Reject
674 64-bit addresses that are not sign extensions of 32 bits only if
675 we don't support 64-bit address constants.
676
a7fc733f
AM
6772003-04-09 Alan Modra <amodra@bigpond.net.au>
678
679 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
680
9cc92a36
NC
6812003-04-08 Nick Clifton <nickc@redhat.com>
682
683 * as.c (perform_an_assembly_pass): If using cgen, call
684 gas_cgen_begin.
685 * cgen.c (gas_cgen_begin): New function. If
686 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
687 otherwise call cgen_clear_signed_overflow_ok.
688 * cgen.h: Prototype gas_cgen_begin.
689
fe59a223
TS
6902003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
691
692 * write.c (write_relocs): Remove unused variable.
693
5a7a0b7b
AO
6942003-04-06 Chris Demetriou <cgd@broadcom.com>
695
696 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
697 (macro): Use new macro to decide whether to emit constant address
698 as 32 or 64 bits if addresses are 32-bit wide but registers are
699 64-bit wide.
700
577300ce
SC
7012003-04-05 Stephane Carrez <stcarrez@nerim.fr>
702
703 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
704 (M6811_OP_PAGE_ADDR): New internal define.
684022ea 705 (get_operand): New modifier %page and %addr to obtain page and
577300ce 706 address part of a far-function.
684022ea 707 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
577300ce
SC
708 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
709 relocs.
710 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
711 (find_opcode): Add comment.
712 (md_estimate_size_before_relax): Force relocation of
713 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
714 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
715 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
716 on the symbol itself so that DWARF2 strings are merged correctly.
717
be33c5dd
SS
7182003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
719
720 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
721 default tic4x target format to 'coff2-tic4x'.
722 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
723 s/c3x/tic3x/
724 * config/tc-tic4x.h: Ditto
725
e8fd7476
NC
7262003-04-03 Nick Clifton <nickc@redhat.com>
727
728 * NEWS: Mention support for Xtensa architecture.
729
47281638
PB
7302003-04-02 Philip Blundell <philb@gnu.org>
731
732 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
733
af22f5b2
CD
7342003-04-02 Chris Demetriou <cgd@broadcom.com>
735
736 * config/tc-mips.c (macro2): Adjust implementation of
737 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
738 in the case where the source and destination registers
739 are the same.
740
e0001a05
NC
7412003-04-01 Bob Wilson <bob.wilson@acm.org>
742
54cfded0
AM
743 * Makefile.am (CPU_TYPES): Add xtensa.
744 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
745 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
746 (xtensa-relax.o): New target.
747 Run "make dep-am".
748 * Makefile.in: Regenerate.
749 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
750 extra_objects for xtensa targets.
751 * configure: Regenerate.
752 * write.c (write_object_file): Add new md_post_relax_hook.
753 * config/tc-xtensa.c: New file.
754 * config/tc-xtensa.h: Likewise.
755 * config/xtensa-istack.h: Likewise.
756 * config/xtensa-relax.c: Likewise.
757 * config/xtensa-relax.h: Likewise.
758 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
759 * doc/Makefile.in: Regenerate.
760 * doc/all.texi: Set new XTENSA variable.
761 * doc/as.texinfo: Set new Xtensa variable. Describe
762 Xtensa-specific options. Define line comment character for
763 Xtensa. Add Xtensa processors to list of ELF targets where
764 alignment is specified in bytes. Add new Xtensa-Dependent node.
765 Add acknowledgements for those contributing to the Xtensa port.
766 * doc/internals.texi: Describe new md_post_relax_hook.
767 * doc/c-xtensa.texi: New file.
e0001a05 768
5a6c6817
NC
7692003-04-01 Nick Clifton <nickc@redhat.com>
770 Richard Earnshaw <rearnsha@arm.com>
771
772 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
773 (ARM_ARCH_IWMMXT): Simplify.
774 (insns): Place iwmmx instructions in correct place in table.
775 (arm_add_note): New function: Add a note entry to a .note section.
776 (md_begin): Make the default architecture be unknown.
777 Suppress the creation of an arm note section.
778
97bbfa38
EC
7792003-03-26 Eric Christopher <echristo@redhat.com>
780
54cfded0 781 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
97bbfa38 782
e16bb312
NC
7832003-03-25 Stan Cox <scox@redhat.com>
784 Nick Clifton <nickc@redhat.com>
97bbfa38 785
e16bb312
NC
786 Contribute support for Intel's iWMMXt chip - an ARM variant:
787
788 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
789 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
790 (enum wreg_type, enum iwmmxt_insn_type): New types.
791 (wr_register, wc_register, wcg_register): New macros.
792 (iwmmxt_table): New variable.
793 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
794 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
795 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
796 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
797 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
798 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
799 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
800 cp_byte_address_offset, cp_byte_address_required_here,
801 check_iwmmxt_insn): New functions.
97bbfa38 802 (asm_opcode_insns): Add iWMMXt instructions.
e16bb312
NC
803 (md_begin): Set the mach value for iWMMXt targets. Create a note
804 section to identify iwmmxt binaries.
805 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
806 * doc/c-arm.texi: Document the support for the iWMMXt.
807 * NEWS: Mention new support.
808