* dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
eafbc43f
RH
12003-05-31 Richard Henderson <rth@redhat.com>
2
3 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
4 (cfi_finish): Set flag_traditional_format around .eh_frame data.
5
f37f01cf
RH
62003-05-29 Richard Henderson <rth@redhat.com>
7
8 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
9 (all_frame_data, plast_frame_data, cur_frame_data): New.
10 (s_alpha_ent): Record data for dwarf2 cfi.
11 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.[ (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
12 * config/tc-alpha.h (md_end): New.
13 (DWARF2_DEFAULT_RETURN_COLUMN): New.
14 (DWARF2_CIE_DATA_ALIGNMENT): New.
15
a197c351
NC
162003-05-29 Nick Clifton <nickc@redhat.com>
17
18 * configure.in: Add i386-*-freebsd* entry.
19 * configure: Regenerate.
20
4bf4a882
NC
212003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
22
23 * config/tc-m32r.c: Amend comment to refer to Renesas
24
756d1d01
RH
252003-05-27 Richard Henderson <rth@redhat.com>
26
27 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
28 symbol_create call.
29 (current_location): Use symbol_temp_new_now.
30 * stabs.c (s_stab_generic): Use symbol_temp_new.
31 * symbols.c (temp_label_name): Remove.
32 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
33
a4447b93
RH
342003-05-27 Richard Henderson <rth@redhat.com>
35
36 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
37 * as.c (main): Always call cfi_finish.
38 * config/tc-i386.c (x86_dwarf2_return_column): New.
39 (x86_cie_data_alignment): New.
40 (md_begin): Set them.
41 (tc_x86_cfi_init): Remove.
42 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
43 return int, not unsigned long; don't as_bad here.
44 (tc_x86_frame_initial_instructions): Streamline; use
45 updated api.
46 * config/tc-i386.h (tc_cfi_init): Remove.
47 (DWARF2_DEFAULT_RETURN_COLUMN): New.
48 (DWARF2_CIE_DATA_ALIGNMENT): New.
49
b7d6ed97
RH
502003-05-27 Richard Henderson <rth@redhat.com>
51
52 * symbols.c (temp_label_name): New.
53 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
54 (symbol_set_value_now): New.
55 * symbols.h: Prototype them.
56 * dwarf2dbg.c: Use them.
57 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
58
14218d5f
JE
592003-05-23 Jason Eckhardt <jle@rice.edu>
60
61 * config/tc-i860.c (target_xp): Declare variable.
62 (OPTION_XP): Declare macro.
63 (md_longopts): Add option -mxp.
64 (md_parse_option): Set target_xp.
65 (md_show_usage): Add -mxp usage.
66 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
67 (md_assemble): Don't try expansions if XP_ONLY is set.
68 * doc/c-i860.texi: Document -mxp option and i860XP support.
69
36ede617
EC
702003-05-23 Eric Christopher <echristo@redhat.com>
71
72 * config/tc-mips.c (macro_build_jalr): Warning patrol.
73
a105a300
TS
742003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
75
76 * config/tc-mips.c (append_insn): Use actual relocation size for new
77 fixp's. Don't relax overflow checking for partial_inplace relocations.
78 Use the actual relocation type in combined relocs, not just the type
79 of the first one.
80 (macro_build_jalr): Use actual relocation size for new fix.
81 (s_cpsetup, s_gpdword): Likewise.
82
dc9461f6
TS
832003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
84
85 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
86
ceb41009
NC
872003-05-22 Nick Clifton <nickc@redhat.com>
88
89 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
90 section relative offsets for relocs that will not be based on the
91 section symbol.
92 (xstormy16_md_apply_fix3): Remove previous patch to this
93 function.
94
143d77c5
EC
952003-05-07 Eric Christopher <echristo@redhat.com>
96
97 * config/tc-mips.c (mips_abicalls): New variable.
98 (md_parse_option): Use.
99 (s_option): Ditto.
100 (s_abicalls): Ditto.
101 (mips_elf_final_processing): Set EF_MIPS_PIC and
102 EF_MIPS_CPIC dependent on above.
103
85c77c38
DA
1042003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
105
106 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
107
87ccc1b0
NC
1082003-05-21 Nick Clifton <nickc@redhat.com>
109
110 * config/obj-elf.c: Include dwarf2dbg.h.
111 (elf_pseudo_tab): Add .file and .loc.
112 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
113 * config/tc-arm.c: Likewise.
114 * config/tc-h8300.c: Likewise.
115 * config/tc-hppa.c: Likewise.
116 * config/tc-ia64.c: Likewise.
117 * config/tc-m68hc11.c: Likewise.
118 * config/tc-m68k.c: Likewise.
119 * config/tc-mmix.c: Likewise.
120 * config/tc-mn10300.c: Likewise.
121 * config/tc-ppc.c: Likewise.
122 * config/tc-sh.c: Likewise.
123 * config/tc-sparc.c: Likewise.
124 * config/tc-v850.c: Likewise.
125 * config/tc-frv.c: Likewise, and remove redundant inclusion of
126 dwarf2dbg.h.
127 * config/tc-ip2k.c: Likewise.
128 * config/tc-iq2000.c: Likewise.
129 * config/tc-xstormy16.c: Likewise.
130 * config/tc-xtensa.c: Likewise.
131 * Makefile.am: Regenerate dependencies.
132 * Makefile.in: Regenerate.
133 * aclocal.m4: Regenerate.
134 * config.in: Regenerate.
135 * configure: Regenerate.
136 * po/POTFILES.in: Regenerate.
137 * po/gas.pot: Regenerate.
143d77c5 138
7ed2c8b0
NC
1392003-05-21 Nick Clifton <nickc@redhat.com>
140
141 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
142 BFD_ASSEMBLER targets.
143 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
144 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
145 defining BFD_ASSEMBLER.
146
39b82151
ML
1472003-05-20 Michal Ludvig <mludvig@suse.cz>
148
149 * as.c (main): Remove tc_cfi_init().
143d77c5 150 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
39b82151
ML
151 with '%'.
152 (cfi_pseudo_table): Add "cfi_register" entry.
153 (cfi_make_insn): Handle CFA_register.
154 (cfi_output_insn): Ditto.
155 (dot_cfi): Ditto.
156 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
157 (dot_cfi_endproc): Reuse already emitted CIEs.
158 * testsuite/gas/cfi/cfi-i386.d: New pattern.
159 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
160
f53e95c7
NC
1612003-05-20 Nick Clifton <nickc@redhat.com>
162
163 * config/tc-xstormy16.c: Include dwarf2dbg.h.
164 (md_pseudo_table): Add entries for .loc and .line.
165
7c0295b1
AM
1662003-05-20 Alan Modra <amodra@bigpond.net.au>
167
168 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
169 defined.
170 (dot_cfi_endproc): Avoid C99 construct.
171
54cfded0
AM
1722003-05-20 Michal Ludvig <mludvig@suse.cz>
173
174 * dw2gencfi.c, dw2gencfi.h: New files.
175 * config/tc-i386.c (tc_x86_cfi_init): New function.
176 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
177 * as.c (parse_args): Set verbose flag on --verbose.
178 (main): Call tc_cfi_init()/cfi_finish().
179 * as.h (verbose): New external variable.
180 * read.c (pobegin): Insert CFI pops to the list.
181 * symbols.c (local_symbol_make): Make symbol external.
182 * symbols.h (local_symbol_make): New prototype.
183 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
184 * Makefile.in: Regenerate.
185 * doc/as.texinfo: Added node "CFI directives" with description of
186 all implemented .cfi_* directives.
187 * doc/Makefile.in: Regenerate.
188 * po/POTFILES.in: Regenerate.
189
a1f3c24c
SS
1902003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
191
54cfded0
AM
192 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
193 insns.
1975ab25 194 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
a1f3c24c 195
b645cb17
JE
1962003-05-18 Jason Eckhardt <jle@rice.edu>
197
198 * config/tc-i860.c (i860_process_insn): Initialize fc after
199 each opcode mismatch.
200
80c7c40a
NC
2012003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
202
203 * configure.in: Accept i[3-7]86 variants.
204 * configure: Regenerate.
205
c344a4c8
TS
2062003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
207
208 * config/tc-mips.h: Fix comment formatting.
209
64e55042
HPN
2102003-05-13 Hans-Peter Nilsson <hp@axis.com>
211
212 * read.c (old_buffer, old_input, old_limit): Remove variables.
54cfded0 213 (read_a_source_file): Delete label contin.
64e55042
HPN
214 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
215 input as with macros, instead of in separate old_* variables.
216 Zero-terminate string being scrubbed.
217
e66c629e
NC
2182003-05-12 Nick Clifton <nickc@redhat.com>
219
220 * config/tc-xstormy16.c (skipping_fptr): New local variable.
221 (md_assemble): Reset skipping_fptr.
222 (md_operand): If @fptr() is followed by a minus sign, set
223 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
224 @fptr is detected, ignore it and reset skipping_fptr.
225
673a54e3
JE
2262003-05-11 Jason Eckhardt <jle@rice.edu>
227
228 * config/tc-i860.c (MAX_FIXUPS): Define.
229 (struct i860_fi fi[]): New struct.
230 (struct i860_it the_insn): Add above as member and move fields
231 exp, reloc, pcrel and fup into i860_fi.
232 (md_assemble): Replace all instances of exp, reloc, pcrel
233 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
234 Add a loop to possibly emit multiple fix-ups for each insn.
235 (i860_process_insn): Likewise.
236 (i860_get_expression): Likewise.
237 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
238
2ebb4b88
MS
2392003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
240
241 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
242
35f5df7f
L
2432003-05-07 H.J. Lu <hongjiu.lu@intel.com>
244
245 * config/tc-ia64.c (alias_hash): New.
246 (alias_name_hash): New.
247 (secalias_hash): New.
248 (secalias_name_hash): New.
249 (md_pseudo_table): Add "secalias".
250 (md_begin): Initialize alias_hash, alias_name_hash,
251 secalias_hash and secalias_name_hash.
252 (struct alias): New.
253 (dot_alias): Implement .alias and .secalias directives.
254 (do_alias): New.
255 (ia64_adjust_symtab): New.
256 (do_secalias): New.
257 (ia64_frob_file): New.
258
259 * config/tc-ia64.h (ia64_adjust_symtab): New.
260 (tc_adjust_symtab): Defined.
261 (ia64_frob_file): New.
262 (tc_frob_file): Defined.
263
d2bf1bda
NC
2642003-05-07 Dmitry Diky <diwil@mail.ru>
265
266 * tc-msp430.c: Add missing lines to known cpus list.
267
cac012d6
AO
2682003-05-06 Alexandre Oliva <aoliva@redhat.com>
269
270 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
271 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
272 * config.in, configure: Rebuilt.
273
d8dbbec1
L
2742003-05-05 H.J. Lu <hjl@gnu.org>
275
276 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
277 howto->partial_inplace is false.
278
9204e615
DJ
2792003-05-05 Daniel Jacobowitz <drow@mvista.com>
280
281 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
282 symbol_used_in_reloc_p check.
283 (md_apply_fix3): Remove check for howto->pcrel_offset.
284
711ef82f
L
2852003-05-03 H.J. Lu <hjl@gnu.org>
286
287 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
288 fatal error for unknown section attribute.
289
290 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
291 unknown section attribute.
292 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
293 * config/tc-ppc.c (ppc_section_letter): Likewise.
294
295 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
296 (ia64_elf_section_type): Accept "unwind".
297
83b5ab55
L
2982003-05-02 H.J. Lu <hjl@gnu.org>
299
300 * read.h (demand_copy_string): New.
301
302 * config/tc-alpha.c (demand_copy_string): Removed.
303
7ff0565e
MS
3042003-05-02 Michael Snyder <msnyder@redhat.com>
305
54cfded0 306 * write.h (FAKE_LABEL_NAME): Allow override
7ff0565e
MS
307 (for targets that like eg. a leading dot in a local label).
308
2968149b
NC
3092003-05-02 Nick Clifton <nickc@redhat.com>
310
311 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
312 addend with the symbol's value for pc-relative relocations against
313 a defined symbol - this will be done automatically.
314
e7b9a8c1
L
3152003-05-01 H.J. Lu <hjl@gnu.org>
316
317 * config/obj-elf.c (obj_elf_type): Accept "notype" and
318 "STT_NOTYPE".
319
612d7b83
L
3202003-05-01 H.J. Lu <hjl@gnu.org>
321
322 * config/tc-ia64.h (tc_canonicalize_section_name): New.
323
324 * config/obj-elf.c (obj_elf_section_name): Call
325 tc_canonicalize_section_name if it is defined.
326
a645d1eb
L
3272003-05-01 H.J. Lu <hjl@gnu.org>
328
329 * config/tc-ia64.c (ia64_check_label): New.
330 * config/tc-ia64.h (tc_check_label): New.
331
332 * read.c (read_a_source_file): Call tc_check_label after
333 creating a user-defined label if defined.
334
df12615d
AM
3352003-05-02 Alan Modra <amodra@bigpond.net.au>
336
337 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
338 -be and split strings to below 509 bytes in length.
339
f70c8412
CG
3402003-05-01 Christian Groessler <chris@groessler.org>
341
342 * expr.h: Fix comments in operatorT typedef.
54cfded0 343 * config/tc-z8k.c: Add 2003 to copyright message.
f70c8412
CG
344 Fold s_segm() and s_unseg() into one function s_segm(parm) which
345 decides by the parameter.
346 (md_begin): Don't set linkrelax. Only set Z8002 default if no
347 command line argument was given to select the intended
348 architecure.
349 (get_interrupt_operand): Warn if NOP type code is emitted.
350 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
351 (apply_fix): Call newfix with additional 'size' parameter.
352 (build_bytes): Remove unused variable 'nib'. Detect overflow in
353 4 bit immediate arguments.
354 (md_longopts): Add 'linkrelax' option.
355 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
356 variable when 'linkrelax' command line option is specified.
357 (md_show_usage): Display 'linkrelax' option.
358 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
359 R_CALLR and R_REL16.
360 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
361
10a98291
L
3622003-04-30 H.J. Lu <hjl@gnu.org>
363
364 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
365 (ia64_float_to_chars): Likewise.
366 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
367 and ia64_float_to_chars by tc_segment_info_data.endian from
368 the current segment if byteorder == -1.
369 (md_begin): Call dot_byteorder to set target_big_endian.
370 (md_atof): Call ia64_float_to_chars to convert floating point.
371 (ia64_float_to_chars_bigendian): New function.
372 (ia64_float_to_chars_littleendian): Likewise.
373 (ia64_elf_section_change_hook): Likewise.
374
375 * config/tc-ia64.h (ia64_number_to_chars): New.
376 (md_number_to_chars): Changed to (*ia64_number_to_chars)
377 (ia64_elf_section_change_hook): New.
378 (md_elf_section_change_hook): Defined.
379 (ia64_segment_info_type): New struct.
380 (TC_SEGMENT_INFO_TYPE): Defined.
381
bf57c3c9
L
3822003-04-30 H.J. Lu <hjl@gnu.org>
383
384 * config/tc-ia64.c (md_section_align): Deleted.
385
386 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
387 (md_section_align): New.
388
165a7f90
L
3892003-04-30 H.J. Lu <hjl@gnu.org>
390
391 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
392 and add real16.
393 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
394 "real16.ua".
395 (md_atof): Add 6 byte padding of zero for real16.
396
eba874d8
NC
3972003-04-29 Nick Clifton <nickc@redhat.com>
398
399 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
400 start of a version name.
401
dbeba5e5
CD
4022003-04-28 Chris Demetriou <cgd@broadcom.com>
403
404 * configure.in (mips-*-*n*bsd*): Replace with...
405 (mips-*-netbsd*, mips-*-openbsd*): These.
406 * configure: Regenerate.
407
f0d7d5f9
NC
4082003-04-28 H.J. Lu <hjl@gnu.org>
409
410 * config/tc-hppa.c (hppa_symbol_chars): New.
411 * config/tc-hppa.h (tc_symbol_chars): Likewise.
412
a38b42ab
TS
4132003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
414
415 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
416
69be0a2b
CD
4172003-04-25 Chris Demetriou <cgd@broadcom.com>
418
419 * NEWS: Belatedly mention support for MIPS32 Release 2.
420
684022ea
EC
4212003-04-24 Eric Christopher <echristo@redhat.com>
422
423 * config/tc-mips.c (nopic_need_relax): Revert previous
424 change.
425
2c8714f2
NC
4262003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
427
428 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
684022ea 429 * config/tc-h8300.c (dwarf2dbg.h): Include
2c8714f2
NC
430 (md_pseudo_table): Handle .loc and .file
431 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
432 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
433 * Makefile.in: Regenerate.
434
684022ea 4352003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8d9cd6b1
NC
436
437 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
438 (md_pseudo_table): Add h8300hn, h8300sn.
439 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
440 * doc/c-h8300.texi : Add documentation for new machine directives.
441
5ce8663f
NC
4422003-04-24 Nick Clifton <nickc@redhat.com>
443
444 * config/tc-ppc.c (ppc_symbol_chars): Define.
445 * config/tc-ppc.h (tc_symbol_chars): Define.
446
ef230218
JR
4472003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
448
449 * config/tc-sh.c: Amend comment to refer to SuperH.
450 * config/tc-sh.h: Likewise.
451 (LISTING_HEADER): Amend to refer to SuperH.
452 * config/tc-sh64.c: Change comment to refer to SuperH.
453 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
454 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
455 * doc/c-sh.texi: Amend to refer to SuperH.
456 Add SuperH architecture documentation references.
457 * doc/c-sh64.texi: Change to refer to SuperH.
458
204cd129
NC
4592003-04-23 H.J. Lu <hjl@gnu.org>
460
461 * app.c (do_scrub_chars): More checks for valid labels.
462
2cdb18a7
L
4632003-04-22 H.J. Lu <hjl@gnu.org>
464
465 * app.c (do_scrub_chars): Check for valid label.
466
26597c86
NC
4672003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
468
469 * doc/as.texinfo: Replace references to Mitsubishi M32R with
470 references to Renesas M32R.
471 * doc/c-m32r.texi: Likewise.
472
88b4ca40
RH
4732003-04-21 Richard Henderson <rth@redhat.com>
474
54cfded0
AM
475 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
476 (out_file_list): Assign non-null filename after generating error.
88b4ca40 477
e5f08f7e
JJ
4782003-04-18 Jakub Jelinek <jakub@redhat.com>
479
480 * ehopt.c (check_eh_frame): For aug_size == 0
481 in state_seeing_aug_size state skip the state_skipping_aug
482 state.
483
c2dcd04e
NC
4842003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
485
486 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
487 'Renesas'.
488 * doc/c-h8500.texi: Likewise.
489 * doc/c-sh.texi: Likewise.
490 * doc/c-sh64.texi: Likewise.
491 * doc/h8.texi: Likewise.
492 * config/tc-h8300.c: Likewise.
493 * config/tc-h8300.h: Likewise.
494 * config/tc-h8500.c: Likewise.
495 * config/tc-h8500.h: Likewise.
496 * config/tc-sh.c: Likewise.
497 * config/tc-sh.h: Likewise.
498 * config/tc-sh64.c: Likewise.
499 * config/tc-sh64.h: Likewise.
500
f5040a92
AO
5012003-04-10 Alexandre Oliva <aoliva@redhat.com>
502
503 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
504 * config/tc-mips.c: Use signed add for n32 address arithmetic.
505 (append_insn): When filling delay slots with instructions
506 that have fixups that tc_gen_reloc might consider modifyable
507 in variant frags, start a new frag.
508 (load_address): Generate GOT_DISP with of without offset
509 depending on whether symbol is local. For -xgot, use
510 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
511 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
512 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
513 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
514 <ld_st>: In NewABI with small got, always use
515 GOT_PAGE/GOT_OFST, with the latter in the load/store
516 instruction. With big got, use GOT_HI16/GOT_LO16 or
517 GOT_PAGE/GOT_OFST.
518 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
519 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
520 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
521 (md_convert_frag): Use memmove for safe copying of overlapping
522 regions.
523
35b55ed2
SC
5242003-04-09 Stephane Carrez <stcarrez@nerim.fr>
525
526 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
527 -mlong, -mshort-double and -mlong-double options; use table @code.
528 (M68HC11-Syntax): Update to document 68HC12 operands.
529 (M68HC11-Modifiers): New section for operand modifiers.
530 (M68HC11-Directives): New section for specific assembler directives.
531 (M68HC11-Branch): Fix Overfull hbox error.
532
9214dd3b
AO
5332003-04-09 Alexandre Oliva <aoliva@redhat.com>
534
535 * config/tc-mips.c (macro): Add comments explaining the rationale
536 for Chris' change.
537
eb0a7d52
AO
5382003-04-09 Chris Demetriou <cgd@broadcom.com>
539
540 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
541 constant address that Alexandre took out by accident. Reject
542 64-bit addresses that are not sign extensions of 32 bits only if
543 we don't support 64-bit address constants.
544
a7fc733f
AM
5452003-04-09 Alan Modra <amodra@bigpond.net.au>
546
547 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
548
9cc92a36
NC
5492003-04-08 Nick Clifton <nickc@redhat.com>
550
551 * as.c (perform_an_assembly_pass): If using cgen, call
552 gas_cgen_begin.
553 * cgen.c (gas_cgen_begin): New function. If
554 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
555 otherwise call cgen_clear_signed_overflow_ok.
556 * cgen.h: Prototype gas_cgen_begin.
557
fe59a223
TS
5582003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
559
560 * write.c (write_relocs): Remove unused variable.
561
5a7a0b7b
AO
5622003-04-06 Chris Demetriou <cgd@broadcom.com>
563
564 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
565 (macro): Use new macro to decide whether to emit constant address
566 as 32 or 64 bits if addresses are 32-bit wide but registers are
567 64-bit wide.
568
577300ce
SC
5692003-04-05 Stephane Carrez <stcarrez@nerim.fr>
570
571 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
572 (M6811_OP_PAGE_ADDR): New internal define.
684022ea 573 (get_operand): New modifier %page and %addr to obtain page and
577300ce 574 address part of a far-function.
684022ea 575 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
577300ce
SC
576 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
577 relocs.
578 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
579 (find_opcode): Add comment.
580 (md_estimate_size_before_relax): Force relocation of
581 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
582 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
583 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
584 on the symbol itself so that DWARF2 strings are merged correctly.
585
be33c5dd
SS
5862003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
587
588 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
589 default tic4x target format to 'coff2-tic4x'.
590 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
591 s/c3x/tic3x/
592 * config/tc-tic4x.h: Ditto
593
e8fd7476
NC
5942003-04-03 Nick Clifton <nickc@redhat.com>
595
596 * NEWS: Mention support for Xtensa architecture.
597
47281638
PB
5982003-04-02 Philip Blundell <philb@gnu.org>
599
600 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
601
af22f5b2
CD
6022003-04-02 Chris Demetriou <cgd@broadcom.com>
603
604 * config/tc-mips.c (macro2): Adjust implementation of
605 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
606 in the case where the source and destination registers
607 are the same.
608
e0001a05
NC
6092003-04-01 Bob Wilson <bob.wilson@acm.org>
610
54cfded0
AM
611 * Makefile.am (CPU_TYPES): Add xtensa.
612 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
613 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
614 (xtensa-relax.o): New target.
615 Run "make dep-am".
616 * Makefile.in: Regenerate.
617 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
618 extra_objects for xtensa targets.
619 * configure: Regenerate.
620 * write.c (write_object_file): Add new md_post_relax_hook.
621 * config/tc-xtensa.c: New file.
622 * config/tc-xtensa.h: Likewise.
623 * config/xtensa-istack.h: Likewise.
624 * config/xtensa-relax.c: Likewise.
625 * config/xtensa-relax.h: Likewise.
626 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
627 * doc/Makefile.in: Regenerate.
628 * doc/all.texi: Set new XTENSA variable.
629 * doc/as.texinfo: Set new Xtensa variable. Describe
630 Xtensa-specific options. Define line comment character for
631 Xtensa. Add Xtensa processors to list of ELF targets where
632 alignment is specified in bytes. Add new Xtensa-Dependent node.
633 Add acknowledgements for those contributing to the Xtensa port.
634 * doc/internals.texi: Describe new md_post_relax_hook.
635 * doc/c-xtensa.texi: New file.
e0001a05 636
5a6c6817
NC
6372003-04-01 Nick Clifton <nickc@redhat.com>
638 Richard Earnshaw <rearnsha@arm.com>
639
640 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
641 (ARM_ARCH_IWMMXT): Simplify.
642 (insns): Place iwmmx instructions in correct place in table.
643 (arm_add_note): New function: Add a note entry to a .note section.
644 (md_begin): Make the default architecture be unknown.
645 Suppress the creation of an arm note section.
646
97bbfa38
EC
6472003-03-26 Eric Christopher <echristo@redhat.com>
648
54cfded0 649 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
97bbfa38 650
e16bb312
NC
6512003-03-25 Stan Cox <scox@redhat.com>
652 Nick Clifton <nickc@redhat.com>
97bbfa38 653
e16bb312
NC
654 Contribute support for Intel's iWMMXt chip - an ARM variant:
655
656 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
657 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
658 (enum wreg_type, enum iwmmxt_insn_type): New types.
659 (wr_register, wc_register, wcg_register): New macros.
660 (iwmmxt_table): New variable.
661 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
662 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
663 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
664 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
665 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
666 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
667 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
668 cp_byte_address_offset, cp_byte_address_required_here,
669 check_iwmmxt_insn): New functions.
97bbfa38 670 (asm_opcode_insns): Add iWMMXt instructions.
e16bb312
NC
671 (md_begin): Set the mach value for iWMMXt targets. Create a note
672 section to identify iwmmxt binaries.
673 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
674 * doc/c-arm.texi: Document the support for the iWMMXt.
675 * NEWS: Mention new support.
676