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