* config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 Tue Apr 9 15:17:53 2002 J"orn Rennecke <joern.rennecke@superh.com>
2
3 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4 endian hosts.
5
6 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7
8 * dep-in.sed: Cope with absolute paths.
9 * Makefile.am (dep.sed): Subst TOPDIR.
10 Run "make dep-am".
11 * Makefile.in: Regenerate.
12
13 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
14
15 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
16 (mips_ip): Remove unused variable.
17 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
18 unsigned char with bfd_byte.
19 (s_file): Remove unused variable.
20 (s_mips_ent): Likewise.
21
22 2002-04-03 Tom Rix <trix@redhat.com>
23
24 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
25 (build_insn): Same.
26 (find_opcode): Fix warning in as_warn.
27 * config/tc-d10v.h: Update Copyright.
28
29 2002-04-03 Alan Matsuoka <alanm@redhat.com>
30 Tom Rix <trix@redhat.com>
31
32 From Jeff Knaggs <jknaggs@redhat.com>
33 * config/tc-d10v.c (check_resource_conflict): New function to
34 check for resource conflicts.
35
36 From Jason Eckhardt <jle@redhat.com>
37 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
38 imm3 fields.
39 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
40 reserved control registers is used.
41 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
42 imm3 fields.
43
44 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
45 * tc-d10v.c (parallel_ok): Prevent packing only if the first
46 instruction cannot be packed.
47
48 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
49 * gas/config/tc-d10v.c (check_resource_conflict): Only check
50 write-write conflicts.
51 (md_assemble): Reformat introductory comment.
52 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
53 arguments.
54
55 2002-04-03 Alan Modra <amodra@bigpond.net.au>
56
57 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
58 O_logical_not>): Derive final_seg from add_symbol.
59 <O_multiply..O_logical_or>: More final_seg twiddles.
60
61 2002-04-01 Jessica Han <jessica@cup.hp.com>
62
63 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
64 in 32-bit mode.
65
66 2002-03-27 Andreas Schwab <schwab@suse.de>
67
68 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
69 field for pc-relative fixups.
70 (output_disp): Likewise.
71 (md_estimate_size_before_relax): Likewise.
72 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
73 pc-relative fixups in 64bit mode.
74
75 2002-03-22 Alan Modra <amodra@bigpond.net.au>
76
77 * config/te-aix5.h: Typo fix.
78
79 2002-03-21 Alan Modra <amodra@bigpond.net.au>
80
81 * Makefile.am: Run "make dep-am".
82 * Makefile.in: Regenerate.
83 * doc/Makefile.in: Regenerate.
84
85 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
86
87 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
88 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
89
90 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
91
92 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
93 the EXTENDED bit here; report the estimate according to the
94 current size.
95
96 2002-03-18 Tom Rix <trix@redhat.com>
97
98 * configure.in: Add AIX 5 support.
99 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
100 * config/te-aix5.h: New file. AIX 5 support.
101 * configure: Regenerate.
102
103 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
104
105 * po/fr.po: Updated version.
106
107 2002-03-16 Andreas Jaeger <aj@suse.de>
108
109 * doc/c-mips.texi (Machine Dependencies): Add new node.
110
111 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
112
113 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
114 (mips_opts): Initialize "ase_mips3d" member.
115 (file_ase_mips3d): New variable.
116 (CPU_HAS_MIPS3D): New macro.
117 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
118 based on command line options and configuration defaults.
119 (macro_build, mips_ip): Accept MIPS-3D instructions if
120 mips_opts.ase_mips3d is set.
121 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
122 Add support for "-mips3d" and "-no-mips3d" options.
123 (OPTION_ELF_BASE): Move to accomodate new options.
124 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
125 (mips_elf_final_processing): Add a comment indicating that a
126 MIPS-3D ASE ELF header flag should be set, when one exists.
127 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
128 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
129 nomips3d" directives.
130
131 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
132
133 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
134 a weak symbol in same section to be within reach.
135
136 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
137
138 * po/fr.po: Updated version.
139
140 2002-03-12 Andreas Schwab <schwab@suse.de>
141
142 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
143 body record so that an error is given for misplaced .save
144 pseudo-ops.
145
146 2002-03-09 Alan Modra <amodra@bigpond.net.au>
147
148 * config/tc-i386.h (REX_OPCODE): Define.
149 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
150 (rex_byte): typedef to int.
151 * config/tc-i386.c: Group prototypes and vars together.
152 Formatting fixes. Remove occurrences of "register" keyword.
153 (true): Delete.
154 (false): Delete.
155 (mode_from_disp_size): Add INLINE keyword to prototype.
156 (fits_in_signed_byte): Likewise.
157 (fits_in_unsigned_byte): Likewise.
158 (fits_in_unsigned_word): Likewise.
159 (fits_in_signed_word): Likewise.
160 (fits_in_unsigned_long): Likewise.
161 (fits_in_signed_long): Likewise.
162 (type_names): Constify.
163 (intel_float_operand): Constify param.
164 (add_prefix): Use REX_OPCODE.
165 (md_assemble): Likewise. Modify for changed rex_byte.
166 (parse_insn): Split out of md_assemble.
167 (parse_operands): Likewise.
168 (swap_operands): Likewise.
169 (optimize_imm): Likewise.
170 (optimize_disp): Likewise.
171 (match_template): Likewise.
172 (check_string): Likewise.
173 (process_suffix): Likewise.
174 (check_byte_reg): Likewise.
175 (check_long_reg): Likewise.
176 (check_qword_reg): Likewise.
177 (check_word_reg): Likewise.
178 (finalize_imm): Likewise.
179 (process_operands): Likewise.
180 (build_modrm_byte): Likewise.
181 (output_insn): Likewise.
182 (output_branch): Likewise.
183 (output_jump): Likewise.
184 (output_interseg_jump): Likewise.
185 (output_disp): Likewise.
186 (output_imm): Likewise.
187
188 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
189
190 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
191
192 2002-03-06 Alan Modra <amodra@bigpond.net.au>
193
194 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
195 relocs except when BFD64.
196
197 * write.c (number_to_chars_bigendian): Don't abort when N is
198 larger than sizeof (VAL).
199 (number_to_chars_littleendian): Likewise.
200
201 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
202
203 * config/tc-hppa.c (md_apply_fix3): Add cast.
204 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
205 e_rrsel.
206
207 2002-03-05 Paul Koning <pkoning@equallogic.com>
208
209 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
210 (parse_ac5): New function for parsing float regs in float operand.
211 (parse_expression): Remove attempt to make literals be octal.
212 (parse_op_no_deferred): Support float literals.
213 (parse_op): Reject attempts to refer to float regs.
214 (parse_fop): New function, like parse_op but for float operand.
215 (md_assemble): Add cases to parse float operands. Also fix
216 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
217
218 2002-03-04 H.J. Lu <hjl@gnu.org>
219
220 * config/obj-elf.c (special_section): Add .init_array,
221 .fini_array and .preinit_array.
222
223 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
224 .init_array and .fini_array.
225
226 2002-03-01 Jakub Jelinek <jakub@redhat.com>
227
228 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
229 visibility.
230 (obj_frob_symbol): Copy visibility.
231
232 2002-02-28 Jakub Jelinek <jakub@redhat.com>
233
234 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
235 s_text.
236 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
237
238 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
239
240 * po/es.po: Updated.
241
242 2002-02-26 Chris Demetriou <cgd@broadcom.com>
243
244 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
245 only, undo the changes made on 2001-06-08, with the
246 effect being that common or extern symbols are
247 adjusted for embedded-PIC, but weak symbols are not.
248 (md_estimate_size_before_relax: Likewise, with the effect
249 that extern symbols are treated the same as weak symbols
250 only if not embedded-PIC.
251 (mips_fix_adjustable) Likewise, with the effect that
252 weak or extern symbols are not adjusted for embedded-PIC.
253 (md_apply_fix3): Tweak so that the case where value is zero
254 is handled more correctly for embedded-PIC code.
255
256 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
257
258 * doc/as.texinfo (Overview): Add missing @ifset IA64
259
260 * configure.in (LINGUAS): Add es.po.
261 * configure: Regenerate.
262 * po/es.po: New file.
263
264 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
265
266 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
267 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
268 and NO_PIC cases. Code cleanup.
269 (macro2): Fix handling of 64bit register loads.
270
271 2002-02-25 David Mosberger <davidm@hpl.hp.com>
272
273 * doc/as.texinfo: Add entry for IA64.
274 * doc/c-ia64.texi: New file.
275
276 2002-02-25 Alan Modra <amodra@bigpond.net.au>
277
278 * config/tc-hppa.c: Update copyright date.
279
280 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
281 Remove references to chip manufacturers.
282 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
283 Correct comments.
284 (md_show_usage): Remove references to chip manufacturers. Mention
285 -mpower4.
286 (md_begin): Test power4 opcode flag bits.
287
288 2002-02-22 David Mosberger <davidm@hpl.hp.com>
289
290 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
291 count exceeds prologue count.
292 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
293 (unwind.label_prologue_count): New member.
294
295 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
296
297 (get_saved_prologue_count): New function.
298 (save_prologue_count): New function.
299 (free_saved_prologue_count): New function.
300 (dot_label_state): Record state label by calling save_prologue_count().
301 (dot_copy_state): Restore prologue count by calling
302 get_saved_prologue_count().
303 (generate_unwind_image): Free up list of saved prologue
304 counts by calling free_saved_prologue_counts().
305
306 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
307
308 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
309 function declarations.
310
311 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
312
313 * NEWS: Note that GASP is now deprecated.
314 * Makefile.am: Do not build gasp-new by default.
315 * Makefile.in: Regenerate.
316 * doc/Makefile.am: Do not install gasp.info.
317 * doc/Makefile.in: Regenerate.
318 * gas/gasp.texi: Note that gasp is now deprecated.
319
320 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
321
322 * NEWS: Mark 2.12 branch.
323
324 2002-02-19 Tom Tromey <tromey@redhat.com>
325
326 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
327
328 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
329
330 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
331 option input.
332
333 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
334
335 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
336 Make bit size independent of architecture switch.
337 (md_begin): Add warning for -m64 with -Aesa.
338 (s390_md_end): Use renamed architecture defines.
339
340 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
341
342 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
343
344 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
345
346 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
347 instead of CRIS.
348
349 2002-02-15 Chris Demetriou <cgd@broadcom.com>
350
351 * config/tc-mips.c (md_estimate_size_before_relax): Really
352 make sure we treat weak like extern only for ELF. (Fixes
353 patch from 2001-07-25.)
354
355 2002-02-15 Ben Elliston <bje@redhat.com>
356
357 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
358 works as expected.
359
360 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
361
362 * NEWS: Mention support for MMIX.
363
364 2002-02-13 Chris Demetriou <cgd@broadcom.com>
365
366 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
367 a sequence of indpendent 'if' statements for easier debugging
368 and future modification.
369
370 2002-02-13 Matt Fredette <fredette@netbsd.org>
371
372 * config/tc-m68k.c (md_show_usage): No longer display a
373 hard-coded "68020" for the default CPU, instead display the
374 canonical name of the true, configured default CPU.
375 (m68k_elf_final_processing): Mark objects for sub-68020
376 CPUs with the new EF_M68000 flag.
377
378 2002-02-13 Andreas Schwab <schwab@suse.de>
379
380 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
381 pc-relative relocations to merge sections in 64-bit mode.
382
383 2002-02-13 Ben Elliston <bje@redhat.com>
384
385 * NEWS: Document floating point number handling in gasp.
386 * gasp.c: Include <assert.h> and "xregex.h".
387 (is_flonum): New function.
388 (chew_flownum): Likewise.
389 (change_base): Consume flonums from the input, where possible.
390 * doc/gasp.texi (Constants): Document floating point numbers.
391
392 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
393
394 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
395 that implicitly use LR and RR selectors.
396
397 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
398
399 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
400 and `epsw' as available on AM33 and above only.
401 (other_register_name): Add logic to handle machine type encoded in
402 reg_number.
403
404 2002-02-11 Tom Rix <trix@redhat.com>
405
406 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
407 xcoff64.
408
409 Mon Feb 11 11:23:38 2002 Alexandre Oliva <aoliva@redhat.com>
410
411 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
412 Use all over.
413
414 Mon Feb 11 12:59:29 CET 2002 Jan Hubicka <jh@suse.cz>
415
416 * i386.c (md_assemble): Support 32bit address prefix.
417 (i386_displacement): Likewise.
418 (i386_index_check): Accept 32bit addressing in 64bit mode.
419
420 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
421
422 * config/tc-sh.c (dot): Removed unused function.
423
424 2002-02-11 Alan Modra <amodra@bigpond.net.au>
425
426 * Makefile.am: "make dep-am".
427 * Makefile.in: Regenerate.
428 * aclocal.m4: Regenerate.
429 * config.in: Regenerate.
430 * configure: Regenerate.
431 * doc/Makefile.in: Regenerate.
432
433 2002-02-10 Richard Henderson <rth@redhat.com>
434
435 * doc/c-alpha.texi: New file.
436 * doc/Makefile.am (CPU_DOCS): Add it.
437 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
438
439 2002-02-09 Richard Henderson <rth@redhat.com>
440
441 * config/tc-alpha.c (O_samegp): New.
442 (USER_RELOC_P): Include it.
443 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
444 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
445 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
446 (alpha_validate_fix): New.
447 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
448
449 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
450
451 * doc/c-cris.texi: New.
452 * doc/all.texi: @set CRIS.
453 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
454 Include c-cris.texi.
455 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
456 * doc/Makefile.in: Regenerate.
457
458 2002-02-08 Chris Demetriou <cgd@broadcom.com>
459
460 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
461 determine if a number is a sign-extended 32-bit number.
462 (load_register): Use IS_SEXT_32BIT_NUM.
463 (macro): Check if load/store macro handling is using a
464 constant 32-bit address on 64-bit address systems, and if
465 so optimize the generation of that address.
466
467 2002-02-08 Richard Henderson <rth@redhat.com>
468
469 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
470 we've eliminated all foreign relocation types yet.
471 (alpha_fix_adjustable): Likewise.
472
473 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
474
475 Contribute sh64-elf.
476 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
477 Stephen Clarke <Stephen.Clarke@st.com>
478 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
479 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
480 * config/tc-sh.c (md_relax_table): Added default sizes for
481 non-PC-relative UNDEF_MOVI, and relaxation sequences for
482 MOVI_16, MOVI_32 and MOVI_48.
483 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
484 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
485 and MOVI_16.
486 (shmedia_md_estimate_size_before_relax): Remove redundant
487 blocks. Set fragP->fr_var even if relaxation type unchanged.
488 Retain UNDEF_MOVI until expression decays to number.
489 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
490 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
491 relocation types. Take fixP->fx_addnumber into account too.
492 (shmedia_md_apply_fix): Likewise.
493 (shmedia_md_convert_frag): Likewise.
494 (shmedia_build_Mytes): Likewise.
495 (sh64_consume_datalabel): Complain about nested datalabel.
496 Support PIC relocs. Call sh_parse_name.
497 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
498 in tc-sh.h to SHmedia reloc types.
499 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
500 MOVI_GOTPC): New relaxation constants.
501 (md_relax_table): Introduce relaxation directives for PIC-related
502 constants.
503 (sh_PIC_related_p): Handle datalabel.
504 (sh_check_fixup): Choose SH5 PIC relocations.
505 (sh_cons_fix_new): Added BDF_RELOC_64.
506 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
507 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
508 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
509 current ISA is SHmedia, get 7 bytes.
510 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
511 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
512 void function.
513 * config/tc-sh64.c (shmedia_apply_fix): Rename to
514 shmedia_apply_fix3 and make void.
515 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
516 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
517 as_bad.
518 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
519 * config/tc-sh64.h (md_parse_name): Take &c as argument.
520 2001-03-14 DJ Delorie <dj@redhat.com>
521 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
522 * doc/Makefile.in(CPU_DOCS): Ditto.
523 * doc/c-sh64.texi: New file.
524 * doc/as.texinfo: Add SH64 support.
525 2001-03-13 DJ Delorie <dj@redhat.com>
526 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
527 A_REUSE_PREV so that its purpose is more obvious.
528 (shmedia_build_Mytes): Ditto.
529 2001-03-07 DJ Delorie <dj@redhat.com>
530 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
531 before processing.
532 (sh64_vtable_inherit): Ditto.
533 (strip_datalabels): New, strip "datalabel" from given line.
534 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
535 pseudos.
536 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
537 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
538 call ...
539 (shmedia_build_Mytes): ... to here.
540 2001-03-06 DJ Delorie <dj@redhat.com>
541 * config/tc-sh.c: Remove sh64-specific uaquad now that there
542 is a generic one.
543 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
544 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
545 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
546 address by one in call to dwarf2_emit_insn.
547 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
548 Implement ".abi" pseudo and correct .cranges descriptors. Correct
549 alignment handling broken by imported changes.
550 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
551 (sh64_handle_align): Declare.
552 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
553 (sh64_max_mem_for_rs_align_code): Declare.
554 (enum sh64_isa_values): Moved here from tc-sh64.c.
555 (md_do_align): Define.
556 (sh64_do_align): Declare.
557 (struct sh64_tc_frag_data): New.
558 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
559 changed.
560 (TC_FRAG_INIT): Change to set new datatype.
561 (struct sh64_segment_info_type): Rename member
562 last_flushed_location to last_contents_mark. All users changed.
563 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
564 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
565 * config/tc-sh.c (md_pseudo_table): Add ".abi".
566 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
567 of unsetting seen_insn.
568 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
569 call sh64_update_contents_mark.
570 (sh_handle_align): Remove HAVE_SH64-conditioned code.
571 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
572 enum sh64_isa_values.
573 (sh64_set_contents_type): Drop segT parameter. All callers changed.
574 (emitting_crange): Boolean guard moved to file scope from function
575 scope in sh64_set_contents_type.
576 (s_sh64_abi): New.
577 (sh64_update_contents_mark): New; most split out from
578 sh64_flush_pending_output.
579 (shmedia_md_end): Call sh64_update_contents_mark. Set
580 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
581 (sh64_do_align): New function.
582 (sh64_max_mem_for_rs_align_code): New function.
583 (sh64_handle_align): Rename from shmedia_do_align. Make
584 non-static. Add head comment. Emit zero bytes for n bytes modulo
585 four. Change return-type to void.
586 (shmedia_elf_new_section): Remove.
587 (shmedia_md_assemble): Call sh64_update_contents_mark.
588 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
589 new frag. Call sh64_update_contents_mark after making the new
590 frag.
591 (sh64_flush_pending_output): Just call sh64_update_contents_mark
592 and sh_flush_pending_output.
593 (sh64_flag_output): Also call md_flush_pending_output, but add
594 condition on not emitting_crange.
595 (sh64_tc_cons_fix_new): Remove.
596 2001-01-12 Nick Clifton <nickc@redhat.com>
597 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
598 alignment handling scheme imported from sourceware.
599 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
600 * config/tc-sh64.h (TARGET_FORMAT): Define.
601 (sh64_target_format): Prototype.
602 * config/tc-sh64.c (sh64_target_mach): New function.
603 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
604 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
605 zero_address_frag instead of copying the frag of the symbol.
606 (shmedia_frob_file_before_adjust): Ditto.
607 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
608 to valueT to remove signedness.
609 (shmedia_md_convert_frag): Add parameter final. Rename parameter
610 headers to output_bfd. Do not evaluate symbols if final is false;
611 do emit fixups.
612 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
613 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
614 to the current frag, call shmedia_md_convert_frag to emit fixups
615 and make frag_wane neutralize the frag. Update comments.
616 * config/tc-sh.c (md_convert_frag): Change caller of
617 shmedia_md_convert_frag.
618 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
619 * config/tc-sh64.h: Tweak comments and correct formatting.
620 * config/tc-sh64.c: Ditto.
621 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
622 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
623 for the no-relocation case.
624 (shmedia_check_limits): Fix range check being off-by-one for PTA.
625 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
626 wrappers.
627 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
628 comment.
629 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
630 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
631 expansion.
632 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
633 Correct comment.
634 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
635 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
636 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
637 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
638 al>: Set lowest bit of field to relocate to 1 and rest to empty,
639 if reloc is emitted.
640 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
641 New options plus bugfixes.
642 * config/tc-sh.c (md_longopts): New options "-no-expand" and
643 "-expand-pt32".
644 (md_parse_option): Handle new options.
645 (md_show_usage): Add blurb for new options.
646 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
647 (sh64_expand, sh64_pt32): New variables.
648 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
649 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
650 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
651 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
652 <resolved previously-pc-relative relocs>: Handle
653 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
654 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
655 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
656 points to SHcompact code.
657 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
658 SH64PCREL16)>: Check that ISA of what operand points at and
659 PTA/PTB matches, or emit error.
660 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
661 SHMEDIA_BFD_RELOC_PT.
662 (shmedia_immediate_op): If pcrel, emit fixup also for constant
663 operand.
664 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
665 condition for MOVI expansion.
666 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
667 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
668 sh64_expand.
669 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
670 fixup.
671 (sh64_target_format): Error-check setting of sh64_pt32 and
672 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
673 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
674 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
675 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
676 * config/tc-sh64.c: Improve comments.
677 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
678 not say the linker will check correctness of PTA/PTB expansion.
679 (shmedia_md_end): Make non-static.
680 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
681 prototype.
682 * config/tc-sh.c (sh_finalize): Remove.
683 * config/tc-sh.h (md_end): Do not define.
684 Remove prototype for sh_finalize.
685 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
686 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
687 sh64_section_data container when storing section type in tdata
688 field in elf_section_data.
689 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
690 EF_SH5.
691 * Makefile.am: Update dependencies.
692 * Makefile.in: Regenerate.
693 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
694 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
695 dwarf2_emit_insn call with test on debug_type.
696 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
697 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
698 CRT_SH5_ISA32 sticky for 64-bit.
699 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
700 Generate .crange sections when switching ISA mode or emitting
701 constants in same section as code.
702 * config/tc-sh64.c: Reformat structure definitions.
703 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
704 variables.
705 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
706 to emit a .cranges descriptor when contents type changes. Only
707 emit error if changing contents type and -no-mix is in effect.
708 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
709 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
710 (shmedia_md_end): Set sh64_end_of_assembly. Pass
711 sh64_flush_last_crange over sections.
712 When checking main symbol of datalabel symbol, check for
713 STO_SH5_ISA32, not ISA type of section in definition.
714 (shmedia_frob_file_before_adjust): Check main symbol for
715 STO_SH5_ISA32; don't check ISA type of section in definition.
716 (shmedia_frob_section_type): Adjust for .cranges; set section flag
717 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
718 .cranges entries have been output.
719 (shmedia_elf_new_section): Just call md_flush_pending_output.
720 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
721 fix. Do not set tc_segment_info_data.in_code for section. Call
722 sh64_set_contents_type for SHmedia code.
723 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
724 false. Call md_flush_pending_output.
725 (sh64_target_format): Check that -no-mix and
726 -shcompact-const-crange are used in sane combination with other
727 options.
728 (shmedia_md_pcrel_from_section): Check type of fix for how to
729 adjust pc-relative.
730 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
731 not ISA type of section in definition.
732 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
733 hold contents-type state.
734 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
735 (sh64_flush_pending_output): Declare.
736 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
737 (sh64_tc_cons_fix_new): Declare.
738 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
739 call sh64_flag_output.
740 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
741 call sh64_set_contents_type to mark SHcompact code and set
742 seen_insn.
743 (md_longopts): New options "-no-mix" and
744 "-shcompact-const-crange".
745 (md_parse_option): Handle new options.
746 (md_show_usage): Add blurb for new options.
747 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
748 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
749 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
750 (sh64_last_insn_frag): New.
751 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
752 to get frag for insn opcode for generating fixups; do not assume it
753 is the same frag.
754 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
755 for new insn.
756 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
757 section.
758 (TC_FRAG_TYPE): Define as fragS *.
759 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
760 (sh64_last_insn_frag): Declare.
761 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
762 not == NULL before dereferencing.
763 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
764 Get rid of BFD section flag and EF_SH64_ABI64.
765 * config/tc-sh64.c (shmedia_frob_section_type): Use
766 elf_section_data (sec)->tdata, not a specific BFD section flag, to
767 communicate the section as containing SHmedia code. Describe why.
768 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
769 EF_SH64 regardless of ABI.
770 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
771 in error message. Handle resolved expressions for
772 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
773 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
774 (shmedia_check_limits): Handle BFD_RELOC_64.
775 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
776 a STO_SH5_ISA32 symbol, only the BFD value.
777 2000-12-11 Ben Elliston <bje@redhat.com>
778 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
779 dwarf2_generate_asm_lineno.
780 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
781 Handle PC-relative MOVI expansions with assembler relaxation.
782 Generate PC-relative relocs from 16-bit PC-relative expressions.
783 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
784 (shmedia_md_pcrel_from_section): ...here.
785 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
786 turned completely resolved. Adjust relocation type for 16-bit
787 immediate operands that has turned PC-relative. Adjust back for
788 MD_PCREL_FROM_SECTION being applied twice.
789 (shmedia_md_convert_frag): Always emit reloc for expression with
790 global or weak symbol. Handle relaxation result for PC-relative
791 expressions.
792 (shmedia_md_estimate_size_before_relax): An expression with a weak
793 or global symbol can not be relaxed. Break out tests for
794 relaxable symbol into variable sym_relaxable.
795 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
796 UNDEF_MOVI)>: Break out any PC-relative expression and change
797 relaxation type.
798 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
799 opjp.
800 <case A_IMMS16>: Fix typo for initial minor relaxation type of
801 MOVI expansion. If X_op_symbol of the immediate expression is
802 set, make an expression symbol for the argument to frag_var.
803 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
804 relaxations.
805 (END): Adjust for new relaxations.
806 (md_relax_table): Add entries for new relaxations.
807 2000-12-07 Ben Elliston <bje@redhat.com>
808 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
809 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
810 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
811 SHORI operand offsets in PT/PTA/PTB expansions.
812 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
813 Implement DataLabel semantics.
814 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
815 shmedia_frob_file_before_adjust.
816 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
817 (DATALABEL_SUFFIX): Define.
818 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
819 symbol list to update "datalabel" symbols to their main symbol
820 counterparts.
821 (shmedia_frob_file_before_adjust): New.
822 (sh64_adjust_symtab): For remaining datalabel symbols, set to
823 undefined and set STT_DATALABEL.
824 (sh64_frob_label): Initialize TC symbol field.
825 (sh64_consume_datalabel): Actually implement semantics. New
826 parameter operandf, call it instead of expression.
827 (sh64_exclude_symbol): New.
828 * config/tc-sh64.h (md_parse_name): Pass on the function operand
829 to sh64_consume_datalabel.
830 (tc_symbol_new_hook): Define to tc_frob_symbol.
831 (TC_SYMFIELD_TYPE): Define to symbolS *.
832 (tc_frob_symbol): Define to call sh64_exclude_symbol.
833 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
834 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
835 case.
836 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
837 generating dwarf2 debug information.
838 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
839 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
840 elf64-sh64 for the 64-bit ABI.
841 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
842 option.
843 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
844 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
845 case-insensitivity.
846 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
847 * config/tc-sh64.c: Tweak comments, formatting and error messages.
848 (enum sh64_abi_values): New type.
849 (enum sh64_isa_values): New type.
850 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
851 (seen_shcompact_mode, seen_shmedia_mode): Delete.
852 (sh64_abi): Replace shmedia_64.
853 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
854 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
855 (s_sh64_mode): Check validity for this target.
856 (sh64_target_format): Initialize defaults for ISA and ABI.
857 Fallback to old object format if no SH64 ISA or ABI has been
858 specified.
859 * config/tc-sh.c (md_parse_option): Check combinations for errors.
860 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
861 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
862 * config/tc-sh64.h: Fix typo in comment.
863 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
864 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
865 <PT fixups for absolute values>: Size will be longest, not
866 shortest.
867 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
868 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
869 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
870 and l1 to hold lowercase of two first characters. Change all
871 remaining TO_LOWER to tolower.
872 * config/tc-sh64.c (TO_LOWER): Delete.
873 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
874 (md_parse_name): Define.
875 (sh64_consume_datalabel): Declare.
876 (DOLLAR_DOT): Define.
877 * config/tc-sh64.c (shmedia_parse_exp): New.
878 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
879 (shmedia_parse_reg): Remove const from src
880 parameter.
881 (shmedia_get_operands): Ditto for args parameter and ptr variable.
882 (shmedia_md_assemble): Ditto for op_end variable.
883 (shmedia_get_operand): Ditto for ptr parameter and src variable.
884 Use shmedia_parse_exp, not parse_exp.
885 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
886 parameter. All callers changed.
887 (shmedia_get_operand): Add shmedia_arg_type parameter. All
888 callers changed.
889 (shmedia_parse_reg): Put first two character in local variables.
890 Use tolower, not TO_LOWER. If no register is found and argtype
891 indicates a control register, scan shmedia_creg_table
892 case-insensitive.
893 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
894 * Makefile.am (CPU_TYPES): Add sh64.
895 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
896 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
897 Regenerate dependencies.
898 * Makefile.in: Regenerate.
899 * configure.in: Add support for sh64-*-elf*.
900 * configure: Regenerate.
901 * config/tc-sh64.h: New.
902 * config/tc-sh64.c: New.
903 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
904 .mode, .isa and .uaquad.
905 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
906 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
907 [HAVE_SH64] (END): Define as 10.
908 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
909 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
910 MOVI_64): Define.
911 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
912 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
913 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
914 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
915 Define.
916 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
917 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
918 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
919 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
920 SHmedia instructions. Handle state-change after switching to
921 SHcompact.
922 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
923 (md_parse_option) [HAVE_SH64]: Parse new options.
924 (md_show_usage) [HAVE_SH64]: Show usage of new options.
925 (md_convert_frag) [HAVE_SH64] <default>: Call
926 shmedia_md_convert_frag instead of abort.
927 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
928 BFD_RELOC_SH_SHMEDIA_CODE.
929 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
930 SHcompact or SHmedia code.
931 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
932 shmedia_md_apply_fix instead of abort.
933 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
934 result from calling shmedia_md_estimate_size_before_relax instead
935 of calling abort.
936 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
937 do the work.
938 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
939 shmedia_init_reloc and do nothing more if it returns non-zero.
940 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
941 * po/POTFILES.in: Regenerate.
942 * po/gas.pot: Regenerate.
943
944 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
945
946 * config/tc-sh.c (parse_at): Install the correct version of
947 2002-02-04's patch.
948
949 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
950 assume fixP->fx_subsy is non-NULL.
951
952 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
953
954 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
955 A_DISP_PC_ABS, and adjust it by -4.
956 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
957 expected.
958 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
959 the operand type is not A_DISP_PC_ABS.
960
961 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
962
963 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
964 common and weak symbols. Handle common and weak symbols as
965 undefined symbols with regards to GREG handling and merging.
966 (mmix_frob_file): Ditto.
967
968 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
969
970 * configure.in (hppa-*-netbsd*): New target.
971 * configure: Regenerate.
972 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
973
974 2002-02-02 Alan Modra <amodra@bigpond.net.au>
975
976 * config/tc-v850.c: Add missing prototypes amd use old-style
977 function definitions.
978 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
979 (sdata_section tdata_section, zdata_section, sbss_section,
980 tbss_section, zbss_section, rosdata_section, rozdata_section,
981 scommon_section, tcommon_section, zcommon_section,
982 call_table_data_section, call_table_text_section): Delete.
983 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
984 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
985 v850_call_table_data, v850_call_table_text): Delete.
986 (struct v850_seg_entry): New.
987 (v850_seg_table): New.
988 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
989 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
990 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
991 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
992 (do_v850_seg): New.
993 (v850_seg): New.
994 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
995 recording of alignment.
996 (md_pseudo_table): Use v850_seg.
997 (md_begin): Don't init .call_table_data and .call_table_text here.
998 Set v850_seg_table bss entry.
999
1000 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1001
1002 Support on-demand global register allocation by passing on
1003 base-plus-offset relocs to the linker.
1004 * config/tc-mmix.c: Tweak and fix typos in comments.
1005 (allocate_undefined_gregs_in_linker): New variable.
1006 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
1007 (md_longopts): Add --linker-allocated-gregs.
1008 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
1009 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
1010 (md_show_usage): Update text for -x. Add text for
1011 --linker-allocated-gregs.
1012 (tc_gen_reloc): Derive default value for addend from val and
1013 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
1014 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
1015 GREG if allocate_undefined_gregs_in_linker.
1016 * doc/as.texinfo (Overview) <Target MMIX options>: Add
1017 --linker-allocated-gregs.
1018 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
1019 --linker-allocated-gregs. Mention that it's implied by -x.
1020 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
1021 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
1022
1023 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
1024
1025 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1026
1027 * Makefile.am: Run "make dep-am"
1028 * Makefile.in: Regenerate.
1029
1030 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1031
1032 * config/tc-or32.c: New file.
1033 * config/tc-or32.h: New file.
1034 * configure.in: Add support for or32 targets.
1035 * configure: Regenerate.
1036 * config/obj-coff.c: Add support for or32 targets.
1037 * config/obj-coff.h: Add support for or32 targets.
1038 * Makefile.am: Add support for or32 targets.
1039 * Makefile.in: Regenerate.
1040 * NEWS: Mention support for OpenRISC.
1041 * doc/Makefile.in: Regenerate.
1042 * po/POTFILES.in: Regenerate.
1043 * po/gas.pot: Regenerate.
1044
1045 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
1046
1047 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
1048 and mod.
1049
1050 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1051
1052 * config/tc-mips.c (tc_gen_reloc): Arrange for
1053 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
1054 their LO16 parts, even for ELF.
1055
1056 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
1057
1058 * config/tc-i386.c: Protect definitions of true and false
1059 from redefinition.
1060
1061 2002-01-28 Jakub Jelinek <jakub@redhat.com>
1062
1063 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
1064 made because of .weak, if they are neither defined nor used in any
1065 way.
1066
1067 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1068
1069 * configure: Regenerated.
1070
1071 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1072
1073 * doc/Makefile.am (install): Depend on install-info.
1074 * doc/Makefile.in: Regenerate.
1075
1076 2002-01-26 Nick Clifton <nick@redhat.com>
1077
1078 * po/fr.po: Updated version
1079
1080 2002-01-24 Kazu Hirata <kazu@hxi.com>
1081
1082 * config/tc-h8300.c (check_operand): Don't print a warning
1083 when a valid 24-bit address is given to a 16-bit address
1084 operand.
1085
1086 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1087
1088 * config/tc-sh.c (sh_elf_suffix): Removed.
1089 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
1090 sh_end_of_match, sh_parse_name): New functions.
1091 (sh_elf_cons): Simplify.
1092 (parse_exp): Reject misplaced PIC operands.
1093 (md_undefined_symbol): Simplify.
1094 (sh_fix_adjustable): Let @GOTOFF be adjusted.
1095 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
1096 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
1097 Complain if subsy remains at the end.
1098 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
1099 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
1100
1101 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
1102
1103 * config/tc-mn10300.c (xr_registers): Move `pc'...
1104 (other_registers): ... here.
1105
1106 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1107
1108 * Makefile.am: Run "make dep-am".
1109 * Makefile.in: Regenerate.
1110 * gas/po/POTFILES.in: Regenerate.
1111
1112 2002-01-21 DJ Delorie <dj@redhat.com>
1113
1114 * config/obj-coff.c (obj_coff_init_stab_section): Make the
1115 stabstr_name allocation permanent, as it will be referenced from
1116 the section hash.
1117
1118 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1119
1120 * configure.in (ia64-*-netbsd*): New target.
1121 * configure: Regenerate.
1122
1123 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
1124
1125 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
1126 to @dots call.
1127 <Detailed description, ARM options>: Ditto.
1128 * doc/c-arm.texi (ARM Options): Ditto.
1129
1130 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1131
1132 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
1133 do_mia, do_mar and do_mra respectively.
1134 (do_mav_*): Renamed from do_c_*.
1135 (mav_reg_required_here, mav_parse_offset): Renamed from
1136 cirrus_reg_required_here and cirrus_parse_offset respectively.
1137 (MAV_MODE?): Renamed from CIRRUS_MODE?.
1138
1139 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1140 Keith Walker <keith.walker@arm.com>
1141
1142 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
1143 (insns): Add pattern for bxj instruction.
1144 (do_bxj): New function.
1145 (arm_cpus): Add arm926ej.
1146 (arm_archs): Add armv5tej.
1147
1148 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1149
1150 * doc/c-arm.texi: Add new fpe options to list of supported flags.
1151
1152 2002-01-19 Keith Walker <keith.walker@arm.com>
1153
1154 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
1155
1156 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1157
1158 * NEWS: Mention new ARM command-line options and VFP support.
1159
1160 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
1161 uses changed.
1162 (ARM_CEXT_MAVERICK): Similarly.
1163 (ARM_ANY): Now means any core instruction.
1164 (CPU_DEFAULT): Default to ARM_ANY.
1165 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
1166 (pic_code): Declare for all object types. Make type int.
1167 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
1168 (march_fpu_opt, mfpu_opt): Declare.
1169 (md_longopts): Tidy up conditional definitions.
1170 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
1171 (arm_long_opts): New tables.
1172 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
1173 (arm_parse_extension): New function.
1174 (md_parse_option): Rewrite using new table-driven system.
1175 (md_show_usage): Use new table-driven system.
1176 (md_begin): Calculate cpu_variant from command line option data.
1177 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
1178 command-line options.
1179 * doc/c-arm.texi: Likewise.
1180
1181 2002-01-18 Andreas Jaeger <aj@suse.de>
1182
1183 * as.c (parse_args): Update year.
1184
1185 2002-01-17 Timothy Wall <twall@alum.mit.edu>
1186
1187 * config/tc-tic54x.c (encode_address): Add a more informative
1188 warning about incorrect syntax.
1189
1190 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1191
1192 * po/gas.pot: Regenerate.
1193
1194 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1195
1196 * macro.c (get_any_string): Add no-c-format comment to prevent
1197 confusion when translating string.
1198 * gasp.c (get_any_string): Add no-c-format comment to prevent
1199 confusion when translating string.
1200
1201 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1202 Johannes Stezenbach <js@convergence.de>
1203 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
1204 matched before the shorter ones.
1205 (my_getSmallParser): Fix handling of nested parentheses in
1206 percent_op's. Code cleanup.
1207 (my_getPercentOp): New function, code from my_getSmallParser.
1208 (my_getSmallExpression): Fix handling of closing parentheses.
1209 Code cleanup. Better comments.
1210
1211 2002-01-16 Nick Clifton <nickc@redhat.com>
1212
1213 po/tr.po: New file: Turkish translation.
1214 configure.in (LINGUAS): Add "tr".
1215 configure: Regenerate.
1216
1217 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
1218
1219 Support for VFP instructions
1220 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
1221 (cp_address_required_here): New argument wb_ok. When false, do not
1222 accept write-back forms of addressing. Change all callers.
1223 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
1224 (FPU_VFP_EXT_V2): Define.
1225 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
1226 Define in terms of above.
1227 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
1228 (vfp_reg): New struct.
1229 (vfp_regs): New array of registers.
1230 (insns): Add VFP instructions.
1231 (sn_table): New array of VFP single-precision register names.
1232 (dn_table): New array of VFP double-precision register names.
1233 (all_reg_maps): Add the new register tables.
1234 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
1235 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
1236 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
1237 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
1238 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
1239 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
1240 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
1241 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
1242 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
1243 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
1244 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
1245 (do_vfp_sp_dp_cvt): New functions.
1246 (md_begin): Set soft-float flag for appropriate VFP work.
1247 (md_atof): Handle VFP-format doubles.
1248 (md_parse_option): Handle VFP command-line options.
1249 (md_show_usage): Display VFP command-line options.
1250
1251 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
1252
1253 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
1254 various command line options.
1255
1256 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1257
1258 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
1259 vtinherit relocs.
1260 (xstormy16_md_apply_fix3): Do not return a value.
1261
1262 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1263
1264 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
1265 the -EL/-EB option that matches the target's endianness.
1266 (md_parse_option): Likewise.
1267
1268 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1269
1270 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
1271 is not dependent on ARM_BI_ENDIAN.
1272
1273 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1274
1275 * tc-arm.c (all error messages): Normalize capitalization of messages.
1276
1277 * tc-arm.h (md_operand): Delete define.
1278 * tc-arm.c (in_my_get_expression): New static variable.
1279 (my_get_expression): Set and clear it.
1280 (md_operand): New function. If called from my_get_expression
1281 put the error in inst.error.
1282 (output_inst): Now takes argument of instruction being assembled.
1283 Print it out with any error message.
1284 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
1285 with '=' syntax.
1286 (end_of_line): Don't update inst.error if it is already set.
1287
1288 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
1289
1290 * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
1291 op that can be translated into a mvn instruction.
1292
1293 2002-01-11 Steve Ellcey <sje@cup.hp.com>
1294
1295 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
1296 setting default md.flags.
1297 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
1298 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
1299 * gas/config/tc-ia64.c (setup_unwind_header): Add support
1300 for 32 bit unwind info blocks.
1301 (generate_unwind_image): Add support for different types
1302 of unwind images (32 bits and/or big-endian).
1303 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
1304 (ia64_target_format): Add support for hpux target formats.
1305 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
1306 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
1307 SHT_FINI_ARRAY elf section types.
1308
1309 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
1310
1311 * tc-arm.c (struct reg_entry): Move before prototypes.
1312 (int_register, cp_register, fp_register): Delete.
1313 (reg_table): Delete. Replaced with ...
1314 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
1315 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
1316 (mav_dspsc_table): ... one table per register set.
1317 (arm_reg_hsh): Delete.
1318 (struct reg_map): New structure.
1319 (all_reg_maps): New array.
1320 (enum arm_reg_type): New enums.
1321 (build_reg_hsh): New function.
1322 (insert_reg_alias): Use hash table passed by caller. Adjust all
1323 callers.
1324 (create_register_alias): New function, split out from ...
1325 (md_assemble): ... here.
1326 (md_begin): Build new register hash tables.
1327 (arm_reg_parse): New argument for the hash table to search. Adjust all
1328 callers.
1329 (arm_reg_parse_any): New function.
1330 (co_proc_number): Look up the processor number in the processor hash
1331 table.
1332 (cirrus_regtype): Delete.
1333 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
1334 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
1335 (ARM_EXT_MAVERICKsc_register): Delete.
1336 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
1337 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
1338 functions.
1339 (do_c_triple_4, do_c_triple_5): Delete.
1340 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
1341 (do_c_quad_6): Delete.
1342 (do_c_quad_6[ab]): New functions.
1343 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
1344 arguments to use new register parsing methods.
1345 (cirrus_reg_required_here): Likewise.
1346 (insns): Reclassify cirrus maverick worker functions.
1347 (cirrus_valid_reg): Delete.
1348
1349 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1350
1351 * configure.in (sh*le): Set cpu_type=sh and endian=little.
1352 (sh*-*-netbsdelf*): New target.
1353 * configure: Regenerate.
1354 * tc-sh.h: Update copyright years.
1355 (TARGET_FORMAT): Add version for TE_NetBSD.
1356
1357 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1358
1359 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
1360 negative.
1361
1362 2002-01-06 Alan Modra <amodra@bigpond.net.au>
1363
1364 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
1365 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
1366
1367 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
1368
1369 * tc-mips.c (mips_cprestore_valid): New flag.
1370 (mips_frame_reg_valid): New flag.
1371 (macro) [M_JAL_2]: Check both flags.
1372 [M_JAL_A]: Likewise.
1373 (s_cprestore): Set mips_cprestore_valid.
1374 (tc_get_register): If setting mips_frame_reg, set
1375 mips_frame_reg_valid and clear mips_cprestore_valid.
1376 (s_mips_ent): Clear both flags.
1377 (s_mips_end): Clear both flags.
1378
1379 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1380
1381 * write.c (write_object_file): Make use of bfd_section_list_remove.
1382 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
1383 * config/tc-mmix.c (mmix_frob_file): Likewise.
1384
1385 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1386
1387 * configure.in (i386-*-netbsdelf*): Collapse target into...
1388 (i386-*-netbsd*): ...this. Add support for x86-64.
1389 * configure: Regenerated.
1390
1391 2002-01-03 matthew green <mrg@redhat.com>
1392
1393 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
1394
1395 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1396
1397 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
1398 NULL frag link.
1399
1400 For older changes see ChangeLog-0001
1401 \f
1402 Local Variables:
1403 mode: change-log
1404 left-margin: 8
1405 fill-column: 74
1406 version-control: never
1407 End:
This page took 0.057474 seconds and 5 git commands to generate.