2003-05-02 Chris Demetriou <cgd@broadcom.com>
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
83b5ab55
L
12003-05-02 H.J. Lu <hjl@gnu.org>
2
3 * read.h (demand_copy_string): New.
4
5 * config/tc-alpha.c (demand_copy_string): Removed.
6
7ff0565e
MS
72003-05-02 Michael Snyder <msnyder@redhat.com>
8
9 * write.h (FAKE_LABEL_NAME): Allow override
10 (for targets that like eg. a leading dot in a local label).
11
2968149b
NC
122003-05-02 Nick Clifton <nickc@redhat.com>
13
14 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
15 addend with the symbol's value for pc-relative relocations against
16 a defined symbol - this will be done automatically.
17
e7b9a8c1
L
182003-05-01 H.J. Lu <hjl@gnu.org>
19
20 * config/obj-elf.c (obj_elf_type): Accept "notype" and
21 "STT_NOTYPE".
22
612d7b83
L
232003-05-01 H.J. Lu <hjl@gnu.org>
24
25 * config/tc-ia64.h (tc_canonicalize_section_name): New.
26
27 * config/obj-elf.c (obj_elf_section_name): Call
28 tc_canonicalize_section_name if it is defined.
29
a645d1eb
L
302003-05-01 H.J. Lu <hjl@gnu.org>
31
32 * config/tc-ia64.c (ia64_check_label): New.
33 * config/tc-ia64.h (tc_check_label): New.
34
35 * read.c (read_a_source_file): Call tc_check_label after
36 creating a user-defined label if defined.
37
df12615d
AM
382003-05-02 Alan Modra <amodra@bigpond.net.au>
39
40 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
41 -be and split strings to below 509 bytes in length.
42
f70c8412
CG
432003-05-01 Christian Groessler <chris@groessler.org>
44
45 * expr.h: Fix comments in operatorT typedef.
46 * config/tc-z8k.c: Add 2003 to copyright message.
47 Fold s_segm() and s_unseg() into one function s_segm(parm) which
48 decides by the parameter.
49 (md_begin): Don't set linkrelax. Only set Z8002 default if no
50 command line argument was given to select the intended
51 architecure.
52 (get_interrupt_operand): Warn if NOP type code is emitted.
53 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
54 (apply_fix): Call newfix with additional 'size' parameter.
55 (build_bytes): Remove unused variable 'nib'. Detect overflow in
56 4 bit immediate arguments.
57 (md_longopts): Add 'linkrelax' option.
58 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
59 variable when 'linkrelax' command line option is specified.
60 (md_show_usage): Display 'linkrelax' option.
61 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
62 R_CALLR and R_REL16.
63 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
64
10a98291
L
652003-04-30 H.J. Lu <hjl@gnu.org>
66
67 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
68 (ia64_float_to_chars): Likewise.
69 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
70 and ia64_float_to_chars by tc_segment_info_data.endian from
71 the current segment if byteorder == -1.
72 (md_begin): Call dot_byteorder to set target_big_endian.
73 (md_atof): Call ia64_float_to_chars to convert floating point.
74 (ia64_float_to_chars_bigendian): New function.
75 (ia64_float_to_chars_littleendian): Likewise.
76 (ia64_elf_section_change_hook): Likewise.
77
78 * config/tc-ia64.h (ia64_number_to_chars): New.
79 (md_number_to_chars): Changed to (*ia64_number_to_chars)
80 (ia64_elf_section_change_hook): New.
81 (md_elf_section_change_hook): Defined.
82 (ia64_segment_info_type): New struct.
83 (TC_SEGMENT_INFO_TYPE): Defined.
84
bf57c3c9
L
852003-04-30 H.J. Lu <hjl@gnu.org>
86
87 * config/tc-ia64.c (md_section_align): Deleted.
88
89 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
90 (md_section_align): New.
91
165a7f90
L
922003-04-30 H.J. Lu <hjl@gnu.org>
93
94 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
95 and add real16.
96 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
97 "real16.ua".
98 (md_atof): Add 6 byte padding of zero for real16.
99
eba874d8
NC
1002003-04-29 Nick Clifton <nickc@redhat.com>
101
102 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
103 start of a version name.
104
dbeba5e5
CD
1052003-04-28 Chris Demetriou <cgd@broadcom.com>
106
107 * configure.in (mips-*-*n*bsd*): Replace with...
108 (mips-*-netbsd*, mips-*-openbsd*): These.
109 * configure: Regenerate.
110
f0d7d5f9
NC
1112003-04-28 H.J. Lu <hjl@gnu.org>
112
113 * config/tc-hppa.c (hppa_symbol_chars): New.
114 * config/tc-hppa.h (tc_symbol_chars): Likewise.
115
a38b42ab
TS
1162003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
117
118 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
119
69be0a2b
CD
1202003-04-25 Chris Demetriou <cgd@broadcom.com>
121
122 * NEWS: Belatedly mention support for MIPS32 Release 2.
123
684022ea
EC
1242003-04-24 Eric Christopher <echristo@redhat.com>
125
126 * config/tc-mips.c (nopic_need_relax): Revert previous
127 change.
128
2c8714f2
NC
1292003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
130
131 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
684022ea 132 * config/tc-h8300.c (dwarf2dbg.h): Include
2c8714f2
NC
133 (md_pseudo_table): Handle .loc and .file
134 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
135 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
136 * Makefile.in: Regenerate.
137
684022ea 1382003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8d9cd6b1
NC
139
140 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
141 (md_pseudo_table): Add h8300hn, h8300sn.
142 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
143 * doc/c-h8300.texi : Add documentation for new machine directives.
144
5ce8663f
NC
1452003-04-24 Nick Clifton <nickc@redhat.com>
146
147 * config/tc-ppc.c (ppc_symbol_chars): Define.
148 * config/tc-ppc.h (tc_symbol_chars): Define.
149
ef230218
JR
1502003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
151
152 * config/tc-sh.c: Amend comment to refer to SuperH.
153 * config/tc-sh.h: Likewise.
154 (LISTING_HEADER): Amend to refer to SuperH.
155 * config/tc-sh64.c: Change comment to refer to SuperH.
156 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
157 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
158 * doc/c-sh.texi: Amend to refer to SuperH.
159 Add SuperH architecture documentation references.
160 * doc/c-sh64.texi: Change to refer to SuperH.
161
204cd129
NC
1622003-04-23 H.J. Lu <hjl@gnu.org>
163
164 * app.c (do_scrub_chars): More checks for valid labels.
165
2cdb18a7
L
1662003-04-22 H.J. Lu <hjl@gnu.org>
167
168 * app.c (do_scrub_chars): Check for valid label.
169
26597c86
NC
1702003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
171
172 * doc/as.texinfo: Replace references to Mitsubishi M32R with
173 references to Renesas M32R.
174 * doc/c-m32r.texi: Likewise.
175
88b4ca40
RH
1762003-04-21 Richard Henderson <rth@redhat.com>
177
178 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
179 (out_file_list): Assign non-null filename after generating error.
180
e5f08f7e
JJ
1812003-04-18 Jakub Jelinek <jakub@redhat.com>
182
183 * ehopt.c (check_eh_frame): For aug_size == 0
184 in state_seeing_aug_size state skip the state_skipping_aug
185 state.
186
c2dcd04e
NC
1872003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
188
189 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
190 'Renesas'.
191 * doc/c-h8500.texi: Likewise.
192 * doc/c-sh.texi: Likewise.
193 * doc/c-sh64.texi: Likewise.
194 * doc/h8.texi: Likewise.
195 * config/tc-h8300.c: Likewise.
196 * config/tc-h8300.h: Likewise.
197 * config/tc-h8500.c: Likewise.
198 * config/tc-h8500.h: Likewise.
199 * config/tc-sh.c: Likewise.
200 * config/tc-sh.h: Likewise.
201 * config/tc-sh64.c: Likewise.
202 * config/tc-sh64.h: Likewise.
203
f5040a92
AO
2042003-04-10 Alexandre Oliva <aoliva@redhat.com>
205
206 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
207 * config/tc-mips.c: Use signed add for n32 address arithmetic.
208 (append_insn): When filling delay slots with instructions
209 that have fixups that tc_gen_reloc might consider modifyable
210 in variant frags, start a new frag.
211 (load_address): Generate GOT_DISP with of without offset
212 depending on whether symbol is local. For -xgot, use
213 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
214 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
215 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
216 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
217 <ld_st>: In NewABI with small got, always use
218 GOT_PAGE/GOT_OFST, with the latter in the load/store
219 instruction. With big got, use GOT_HI16/GOT_LO16 or
220 GOT_PAGE/GOT_OFST.
221 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
222 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
223 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
224 (md_convert_frag): Use memmove for safe copying of overlapping
225 regions.
226
35b55ed2
SC
2272003-04-09 Stephane Carrez <stcarrez@nerim.fr>
228
229 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
230 -mlong, -mshort-double and -mlong-double options; use table @code.
231 (M68HC11-Syntax): Update to document 68HC12 operands.
232 (M68HC11-Modifiers): New section for operand modifiers.
233 (M68HC11-Directives): New section for specific assembler directives.
234 (M68HC11-Branch): Fix Overfull hbox error.
235
9214dd3b
AO
2362003-04-09 Alexandre Oliva <aoliva@redhat.com>
237
238 * config/tc-mips.c (macro): Add comments explaining the rationale
239 for Chris' change.
240
eb0a7d52
AO
2412003-04-09 Chris Demetriou <cgd@broadcom.com>
242
243 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
244 constant address that Alexandre took out by accident. Reject
245 64-bit addresses that are not sign extensions of 32 bits only if
246 we don't support 64-bit address constants.
247
a7fc733f
AM
2482003-04-09 Alan Modra <amodra@bigpond.net.au>
249
250 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
251
9cc92a36
NC
2522003-04-08 Nick Clifton <nickc@redhat.com>
253
254 * as.c (perform_an_assembly_pass): If using cgen, call
255 gas_cgen_begin.
256 * cgen.c (gas_cgen_begin): New function. If
257 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
258 otherwise call cgen_clear_signed_overflow_ok.
259 * cgen.h: Prototype gas_cgen_begin.
260
fe59a223
TS
2612003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
262
263 * write.c (write_relocs): Remove unused variable.
264
5a7a0b7b
AO
2652003-04-06 Chris Demetriou <cgd@broadcom.com>
266
267 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
268 (macro): Use new macro to decide whether to emit constant address
269 as 32 or 64 bits if addresses are 32-bit wide but registers are
270 64-bit wide.
271
577300ce
SC
2722003-04-05 Stephane Carrez <stcarrez@nerim.fr>
273
274 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
275 (M6811_OP_PAGE_ADDR): New internal define.
684022ea 276 (get_operand): New modifier %page and %addr to obtain page and
577300ce 277 address part of a far-function.
684022ea 278 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
577300ce
SC
279 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
280 relocs.
281 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
282 (find_opcode): Add comment.
283 (md_estimate_size_before_relax): Force relocation of
284 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
285 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
286 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
287 on the symbol itself so that DWARF2 strings are merged correctly.
288
be33c5dd
SS
2892003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
290
291 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
292 default tic4x target format to 'coff2-tic4x'.
293 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
294 s/c3x/tic3x/
295 * config/tc-tic4x.h: Ditto
296
e8fd7476
NC
2972003-04-03 Nick Clifton <nickc@redhat.com>
298
299 * NEWS: Mention support for Xtensa architecture.
300
47281638
PB
3012003-04-02 Philip Blundell <philb@gnu.org>
302
303 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
304
af22f5b2
CD
3052003-04-02 Chris Demetriou <cgd@broadcom.com>
306
307 * config/tc-mips.c (macro2): Adjust implementation of
308 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
309 in the case where the source and destination registers
310 are the same.
311
e0001a05
NC
3122003-04-01 Bob Wilson <bob.wilson@acm.org>
313
314 * Makefile.am (CPU_TYPES): Add xtensa.
315 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
316 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
317 (xtensa-relax.o): New target.
318 Run "make dep-am".
319 * Makefile.in: Regenerate.
320 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
321 extra_objects for xtensa targets.
322 * configure: Regenerate.
323 * write.c (write_object_file): Add new md_post_relax_hook.
324 * config/tc-xtensa.c: New file.
325 * config/tc-xtensa.h: Likewise.
326 * config/xtensa-istack.h: Likewise.
327 * config/xtensa-relax.c: Likewise.
328 * config/xtensa-relax.h: Likewise.
329 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
330 * doc/Makefile.in: Regenerate.
331 * doc/all.texi: Set new XTENSA variable.
332 * doc/as.texinfo: Set new Xtensa variable. Describe
333 Xtensa-specific options. Define line comment character for
334 Xtensa. Add Xtensa processors to list of ELF targets where
335 alignment is specified in bytes. Add new Xtensa-Dependent node.
336 Add acknowledgements for those contributing to the Xtensa port.
337 * doc/internals.texi: Describe new md_post_relax_hook.
338 * doc/c-xtensa.texi: New file.
339
340
5a6c6817
NC
3412003-04-01 Nick Clifton <nickc@redhat.com>
342 Richard Earnshaw <rearnsha@arm.com>
343
344 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
345 (ARM_ARCH_IWMMXT): Simplify.
346 (insns): Place iwmmx instructions in correct place in table.
347 (arm_add_note): New function: Add a note entry to a .note section.
348 (md_begin): Make the default architecture be unknown.
349 Suppress the creation of an arm note section.
350
97bbfa38
EC
3512003-03-26 Eric Christopher <echristo@redhat.com>
352
353 * config/tc-mips.c (nopic_need_relax): Check for
354 S_IS_EXTERN.
355
e16bb312
NC
3562003-03-25 Stan Cox <scox@redhat.com>
357 Nick Clifton <nickc@redhat.com>
97bbfa38 358
e16bb312
NC
359 Contribute support for Intel's iWMMXt chip - an ARM variant:
360
361 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
362 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
363 (enum wreg_type, enum iwmmxt_insn_type): New types.
364 (wr_register, wc_register, wcg_register): New macros.
365 (iwmmxt_table): New variable.
366 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
367 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
368 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
369 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
370 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
371 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
372 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
373 cp_byte_address_offset, cp_byte_address_required_here,
374 check_iwmmxt_insn): New functions.
97bbfa38 375 (asm_opcode_insns): Add iWMMXt instructions.
e16bb312
NC
376 (md_begin): Set the mach value for iWMMXt targets. Create a note
377 section to identify iwmmxt binaries.
378 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
379 * doc/c-arm.texi: Document the support for the iWMMXt.
380 * NEWS: Mention new support.
381