Fix typo in spelling of name of R_H8_DIR8 reloc
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
673a54e3
JE
12003-05-11 Jason Eckhardt <jle@rice.edu>
2
3 * config/tc-i860.c (MAX_FIXUPS): Define.
4 (struct i860_fi fi[]): New struct.
5 (struct i860_it the_insn): Add above as member and move fields
6 exp, reloc, pcrel and fup into i860_fi.
7 (md_assemble): Replace all instances of exp, reloc, pcrel
8 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
9 Add a loop to possibly emit multiple fix-ups for each insn.
10 (i860_process_insn): Likewise.
11 (i860_get_expression): Likewise.
12 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
13
2ebb4b88
MS
142003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
15
16 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
17
35f5df7f
L
182003-05-07 H.J. Lu <hongjiu.lu@intel.com>
19
20 * config/tc-ia64.c (alias_hash): New.
21 (alias_name_hash): New.
22 (secalias_hash): New.
23 (secalias_name_hash): New.
24 (md_pseudo_table): Add "secalias".
25 (md_begin): Initialize alias_hash, alias_name_hash,
26 secalias_hash and secalias_name_hash.
27 (struct alias): New.
28 (dot_alias): Implement .alias and .secalias directives.
29 (do_alias): New.
30 (ia64_adjust_symtab): New.
31 (do_secalias): New.
32 (ia64_frob_file): New.
33
34 * config/tc-ia64.h (ia64_adjust_symtab): New.
35 (tc_adjust_symtab): Defined.
36 (ia64_frob_file): New.
37 (tc_frob_file): Defined.
38
d2bf1bda
NC
392003-05-07 Dmitry Diky <diwil@mail.ru>
40
41 * tc-msp430.c: Add missing lines to known cpus list.
42
cac012d6
AO
432003-05-06 Alexandre Oliva <aoliva@redhat.com>
44
45 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
46 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
47 * config.in, configure: Rebuilt.
48
d8dbbec1
L
492003-05-05 H.J. Lu <hjl@gnu.org>
50
51 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
52 howto->partial_inplace is false.
53
9204e615
DJ
542003-05-05 Daniel Jacobowitz <drow@mvista.com>
55
56 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
57 symbol_used_in_reloc_p check.
58 (md_apply_fix3): Remove check for howto->pcrel_offset.
59
711ef82f
L
602003-05-03 H.J. Lu <hjl@gnu.org>
61
62 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
63 fatal error for unknown section attribute.
64
65 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
66 unknown section attribute.
67 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
68 * config/tc-ppc.c (ppc_section_letter): Likewise.
69
70 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
71 (ia64_elf_section_type): Accept "unwind".
72
83b5ab55
L
732003-05-02 H.J. Lu <hjl@gnu.org>
74
75 * read.h (demand_copy_string): New.
76
77 * config/tc-alpha.c (demand_copy_string): Removed.
78
7ff0565e
MS
792003-05-02 Michael Snyder <msnyder@redhat.com>
80
81 * write.h (FAKE_LABEL_NAME): Allow override
82 (for targets that like eg. a leading dot in a local label).
83
2968149b
NC
842003-05-02 Nick Clifton <nickc@redhat.com>
85
86 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
87 addend with the symbol's value for pc-relative relocations against
88 a defined symbol - this will be done automatically.
89
e7b9a8c1
L
902003-05-01 H.J. Lu <hjl@gnu.org>
91
92 * config/obj-elf.c (obj_elf_type): Accept "notype" and
93 "STT_NOTYPE".
94
612d7b83
L
952003-05-01 H.J. Lu <hjl@gnu.org>
96
97 * config/tc-ia64.h (tc_canonicalize_section_name): New.
98
99 * config/obj-elf.c (obj_elf_section_name): Call
100 tc_canonicalize_section_name if it is defined.
101
a645d1eb
L
1022003-05-01 H.J. Lu <hjl@gnu.org>
103
104 * config/tc-ia64.c (ia64_check_label): New.
105 * config/tc-ia64.h (tc_check_label): New.
106
107 * read.c (read_a_source_file): Call tc_check_label after
108 creating a user-defined label if defined.
109
df12615d
AM
1102003-05-02 Alan Modra <amodra@bigpond.net.au>
111
112 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
113 -be and split strings to below 509 bytes in length.
114
f70c8412
CG
1152003-05-01 Christian Groessler <chris@groessler.org>
116
117 * expr.h: Fix comments in operatorT typedef.
118 * config/tc-z8k.c: Add 2003 to copyright message.
119 Fold s_segm() and s_unseg() into one function s_segm(parm) which
120 decides by the parameter.
121 (md_begin): Don't set linkrelax. Only set Z8002 default if no
122 command line argument was given to select the intended
123 architecure.
124 (get_interrupt_operand): Warn if NOP type code is emitted.
125 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
126 (apply_fix): Call newfix with additional 'size' parameter.
127 (build_bytes): Remove unused variable 'nib'. Detect overflow in
128 4 bit immediate arguments.
129 (md_longopts): Add 'linkrelax' option.
130 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
131 variable when 'linkrelax' command line option is specified.
132 (md_show_usage): Display 'linkrelax' option.
133 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
134 R_CALLR and R_REL16.
135 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
136
10a98291
L
1372003-04-30 H.J. Lu <hjl@gnu.org>
138
139 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
140 (ia64_float_to_chars): Likewise.
141 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
142 and ia64_float_to_chars by tc_segment_info_data.endian from
143 the current segment if byteorder == -1.
144 (md_begin): Call dot_byteorder to set target_big_endian.
145 (md_atof): Call ia64_float_to_chars to convert floating point.
146 (ia64_float_to_chars_bigendian): New function.
147 (ia64_float_to_chars_littleendian): Likewise.
148 (ia64_elf_section_change_hook): Likewise.
149
150 * config/tc-ia64.h (ia64_number_to_chars): New.
151 (md_number_to_chars): Changed to (*ia64_number_to_chars)
152 (ia64_elf_section_change_hook): New.
153 (md_elf_section_change_hook): Defined.
154 (ia64_segment_info_type): New struct.
155 (TC_SEGMENT_INFO_TYPE): Defined.
156
bf57c3c9
L
1572003-04-30 H.J. Lu <hjl@gnu.org>
158
159 * config/tc-ia64.c (md_section_align): Deleted.
160
161 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
162 (md_section_align): New.
163
165a7f90
L
1642003-04-30 H.J. Lu <hjl@gnu.org>
165
166 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
167 and add real16.
168 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
169 "real16.ua".
170 (md_atof): Add 6 byte padding of zero for real16.
171
eba874d8
NC
1722003-04-29 Nick Clifton <nickc@redhat.com>
173
174 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
175 start of a version name.
176
dbeba5e5
CD
1772003-04-28 Chris Demetriou <cgd@broadcom.com>
178
179 * configure.in (mips-*-*n*bsd*): Replace with...
180 (mips-*-netbsd*, mips-*-openbsd*): These.
181 * configure: Regenerate.
182
f0d7d5f9
NC
1832003-04-28 H.J. Lu <hjl@gnu.org>
184
185 * config/tc-hppa.c (hppa_symbol_chars): New.
186 * config/tc-hppa.h (tc_symbol_chars): Likewise.
187
a38b42ab
TS
1882003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
189
190 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
191
69be0a2b
CD
1922003-04-25 Chris Demetriou <cgd@broadcom.com>
193
194 * NEWS: Belatedly mention support for MIPS32 Release 2.
195
684022ea
EC
1962003-04-24 Eric Christopher <echristo@redhat.com>
197
198 * config/tc-mips.c (nopic_need_relax): Revert previous
199 change.
200
2c8714f2
NC
2012003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
202
203 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
684022ea 204 * config/tc-h8300.c (dwarf2dbg.h): Include
2c8714f2
NC
205 (md_pseudo_table): Handle .loc and .file
206 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
207 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
208 * Makefile.in: Regenerate.
209
684022ea 2102003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8d9cd6b1
NC
211
212 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
213 (md_pseudo_table): Add h8300hn, h8300sn.
214 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
215 * doc/c-h8300.texi : Add documentation for new machine directives.
216
5ce8663f
NC
2172003-04-24 Nick Clifton <nickc@redhat.com>
218
219 * config/tc-ppc.c (ppc_symbol_chars): Define.
220 * config/tc-ppc.h (tc_symbol_chars): Define.
221
ef230218
JR
2222003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
223
224 * config/tc-sh.c: Amend comment to refer to SuperH.
225 * config/tc-sh.h: Likewise.
226 (LISTING_HEADER): Amend to refer to SuperH.
227 * config/tc-sh64.c: Change comment to refer to SuperH.
228 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
229 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
230 * doc/c-sh.texi: Amend to refer to SuperH.
231 Add SuperH architecture documentation references.
232 * doc/c-sh64.texi: Change to refer to SuperH.
233
204cd129
NC
2342003-04-23 H.J. Lu <hjl@gnu.org>
235
236 * app.c (do_scrub_chars): More checks for valid labels.
237
2cdb18a7
L
2382003-04-22 H.J. Lu <hjl@gnu.org>
239
240 * app.c (do_scrub_chars): Check for valid label.
241
26597c86
NC
2422003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
243
244 * doc/as.texinfo: Replace references to Mitsubishi M32R with
245 references to Renesas M32R.
246 * doc/c-m32r.texi: Likewise.
247
88b4ca40
RH
2482003-04-21 Richard Henderson <rth@redhat.com>
249
250 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
251 (out_file_list): Assign non-null filename after generating error.
252
e5f08f7e
JJ
2532003-04-18 Jakub Jelinek <jakub@redhat.com>
254
255 * ehopt.c (check_eh_frame): For aug_size == 0
256 in state_seeing_aug_size state skip the state_skipping_aug
257 state.
258
c2dcd04e
NC
2592003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
260
261 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
262 'Renesas'.
263 * doc/c-h8500.texi: Likewise.
264 * doc/c-sh.texi: Likewise.
265 * doc/c-sh64.texi: Likewise.
266 * doc/h8.texi: Likewise.
267 * config/tc-h8300.c: Likewise.
268 * config/tc-h8300.h: Likewise.
269 * config/tc-h8500.c: Likewise.
270 * config/tc-h8500.h: Likewise.
271 * config/tc-sh.c: Likewise.
272 * config/tc-sh.h: Likewise.
273 * config/tc-sh64.c: Likewise.
274 * config/tc-sh64.h: Likewise.
275
f5040a92
AO
2762003-04-10 Alexandre Oliva <aoliva@redhat.com>
277
278 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
279 * config/tc-mips.c: Use signed add for n32 address arithmetic.
280 (append_insn): When filling delay slots with instructions
281 that have fixups that tc_gen_reloc might consider modifyable
282 in variant frags, start a new frag.
283 (load_address): Generate GOT_DISP with of without offset
284 depending on whether symbol is local. For -xgot, use
285 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
286 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
287 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
288 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
289 <ld_st>: In NewABI with small got, always use
290 GOT_PAGE/GOT_OFST, with the latter in the load/store
291 instruction. With big got, use GOT_HI16/GOT_LO16 or
292 GOT_PAGE/GOT_OFST.
293 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
294 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
295 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
296 (md_convert_frag): Use memmove for safe copying of overlapping
297 regions.
298
35b55ed2
SC
2992003-04-09 Stephane Carrez <stcarrez@nerim.fr>
300
301 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
302 -mlong, -mshort-double and -mlong-double options; use table @code.
303 (M68HC11-Syntax): Update to document 68HC12 operands.
304 (M68HC11-Modifiers): New section for operand modifiers.
305 (M68HC11-Directives): New section for specific assembler directives.
306 (M68HC11-Branch): Fix Overfull hbox error.
307
9214dd3b
AO
3082003-04-09 Alexandre Oliva <aoliva@redhat.com>
309
310 * config/tc-mips.c (macro): Add comments explaining the rationale
311 for Chris' change.
312
eb0a7d52
AO
3132003-04-09 Chris Demetriou <cgd@broadcom.com>
314
315 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
316 constant address that Alexandre took out by accident. Reject
317 64-bit addresses that are not sign extensions of 32 bits only if
318 we don't support 64-bit address constants.
319
a7fc733f
AM
3202003-04-09 Alan Modra <amodra@bigpond.net.au>
321
322 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
323
9cc92a36
NC
3242003-04-08 Nick Clifton <nickc@redhat.com>
325
326 * as.c (perform_an_assembly_pass): If using cgen, call
327 gas_cgen_begin.
328 * cgen.c (gas_cgen_begin): New function. If
329 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
330 otherwise call cgen_clear_signed_overflow_ok.
331 * cgen.h: Prototype gas_cgen_begin.
332
fe59a223
TS
3332003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
334
335 * write.c (write_relocs): Remove unused variable.
336
5a7a0b7b
AO
3372003-04-06 Chris Demetriou <cgd@broadcom.com>
338
339 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
340 (macro): Use new macro to decide whether to emit constant address
341 as 32 or 64 bits if addresses are 32-bit wide but registers are
342 64-bit wide.
343
577300ce
SC
3442003-04-05 Stephane Carrez <stcarrez@nerim.fr>
345
346 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
347 (M6811_OP_PAGE_ADDR): New internal define.
684022ea 348 (get_operand): New modifier %page and %addr to obtain page and
577300ce 349 address part of a far-function.
684022ea 350 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
577300ce
SC
351 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
352 relocs.
353 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
354 (find_opcode): Add comment.
355 (md_estimate_size_before_relax): Force relocation of
356 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
357 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
358 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
359 on the symbol itself so that DWARF2 strings are merged correctly.
360
be33c5dd
SS
3612003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
362
363 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
364 default tic4x target format to 'coff2-tic4x'.
365 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
366 s/c3x/tic3x/
367 * config/tc-tic4x.h: Ditto
368
e8fd7476
NC
3692003-04-03 Nick Clifton <nickc@redhat.com>
370
371 * NEWS: Mention support for Xtensa architecture.
372
47281638
PB
3732003-04-02 Philip Blundell <philb@gnu.org>
374
375 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
376
af22f5b2
CD
3772003-04-02 Chris Demetriou <cgd@broadcom.com>
378
379 * config/tc-mips.c (macro2): Adjust implementation of
380 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
381 in the case where the source and destination registers
382 are the same.
383
e0001a05
NC
3842003-04-01 Bob Wilson <bob.wilson@acm.org>
385
386 * Makefile.am (CPU_TYPES): Add xtensa.
387 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
388 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
389 (xtensa-relax.o): New target.
390 Run "make dep-am".
391 * Makefile.in: Regenerate.
392 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
393 extra_objects for xtensa targets.
394 * configure: Regenerate.
395 * write.c (write_object_file): Add new md_post_relax_hook.
396 * config/tc-xtensa.c: New file.
397 * config/tc-xtensa.h: Likewise.
398 * config/xtensa-istack.h: Likewise.
399 * config/xtensa-relax.c: Likewise.
400 * config/xtensa-relax.h: Likewise.
401 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
402 * doc/Makefile.in: Regenerate.
403 * doc/all.texi: Set new XTENSA variable.
404 * doc/as.texinfo: Set new Xtensa variable. Describe
405 Xtensa-specific options. Define line comment character for
406 Xtensa. Add Xtensa processors to list of ELF targets where
407 alignment is specified in bytes. Add new Xtensa-Dependent node.
408 Add acknowledgements for those contributing to the Xtensa port.
409 * doc/internals.texi: Describe new md_post_relax_hook.
410 * doc/c-xtensa.texi: New file.
411
412
5a6c6817
NC
4132003-04-01 Nick Clifton <nickc@redhat.com>
414 Richard Earnshaw <rearnsha@arm.com>
415
416 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
417 (ARM_ARCH_IWMMXT): Simplify.
418 (insns): Place iwmmx instructions in correct place in table.
419 (arm_add_note): New function: Add a note entry to a .note section.
420 (md_begin): Make the default architecture be unknown.
421 Suppress the creation of an arm note section.
422
97bbfa38
EC
4232003-03-26 Eric Christopher <echristo@redhat.com>
424
425 * config/tc-mips.c (nopic_need_relax): Check for
426 S_IS_EXTERN.
427
e16bb312
NC
4282003-03-25 Stan Cox <scox@redhat.com>
429 Nick Clifton <nickc@redhat.com>
97bbfa38 430
e16bb312
NC
431 Contribute support for Intel's iWMMXt chip - an ARM variant:
432
433 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
434 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
435 (enum wreg_type, enum iwmmxt_insn_type): New types.
436 (wr_register, wc_register, wcg_register): New macros.
437 (iwmmxt_table): New variable.
438 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
439 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
440 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
441 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
442 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
443 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
444 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
445 cp_byte_address_offset, cp_byte_address_required_here,
446 check_iwmmxt_insn): New functions.
97bbfa38 447 (asm_opcode_insns): Add iWMMXt instructions.
e16bb312
NC
448 (md_begin): Set the mach value for iWMMXt targets. Create a note
449 section to identify iwmmxt binaries.
450 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
451 * doc/c-arm.texi: Document the support for the iWMMXt.
452 * NEWS: Mention new support.
453