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