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