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