* config/tc-vax.c: Update copyright year.
[external/binutils.git] / gas / ChangeLog
1 2006-03-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2
3         * config/tc-vax.c: Update copyright year.
4         * config/tc-vax.h: Likewise.
5
6 2006-03-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7
8         * config/tc-vax.c (md_chars_to_number): Used only locally, so
9         make it static.
10         * config/tc-vax.h (md_chars_to_number): Remove obsolete declaration.
11
12 2006-03-17  Paul Brook  <paul@codesourcery.com>
13
14         * config/tc-arm.c (insns): Add ldm and stm.
15
16 2006-03-17  Ben Elliston  <bje@au.ibm.com>
17
18         PR gas/2446
19         * doc/as.texinfo (Ident): Document this directive more thoroughly.
20
21 2006-03-16  Paul Brook  <paul@codesourcery.com>
22
23         * config/tc-arm.c (insns): Add "svc".
24
25 2006-03-13  Bob Wilson  <bob.wilson@acm.org>
26
27         * config/tc-xtensa.c (xg_translate_sysreg_op): Remove has_underbar
28         flag and avoid double underscore prefixes.
29
30 2006-03-10  Paul Brook  <paul@codesourcery.com>
31
32         * config/tc-arm.c (md_begin): Handle EABIv5.
33         (arm_eabis): Add EF_ARM_EABI_VER5.
34         * doc/c-arm.texi: Document -meabi=5.
35
36 2006-03-10  Ben Elliston  <bje@au.ibm.com>
37
38         * app.c (do_scrub_chars): Simplify string handling.
39
40 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
41             Daniel Jacobowitz  <dan@codesourcery.com>
42             Zack Weinberg  <zack@codesourcery.com>
43             Nathan Sidwell  <nathan@codesourcery.com>
44             Paul Brook  <paul@codesourcery.com>
45             Ricardo Anguiano  <anguiano@codesourcery.com>
46             Phil Edwards  <phil@codesourcery.com>
47
48         * config/tc-arm.c (md_apply_fix): Install a value of zero into a
49         BFD_RELOC_ARM_OFFSET_IMM field if we're going to generate a RELA
50         R_ARM_ABS12 reloc.
51         (tc_gen_reloc): Keep the original fx_offset for RELA pc-relative
52         relocs, but adjust by md_pcrel_from_section.  Create R_ARM_ABS12
53         relocations for BFD_RELOC_ARM_OFFSET_IMM on RELA targets.
54
55 2006-03-06  Bob Wilson  <bob.wilson@acm.org>
56
57         * config/tc-xtensa.c (xtensa_post_relax_hook): Generate literal tables
58         even when using the text-section-literals option.
59
60 2006-03-06  Nathan Sidwell  <nathan@codesourcery.com>
61
62         * config/tc-m68k.c (m68k_extensions): Allow 'float' on both m68k
63         and cf.
64         (m68k_ip): <case 'J'> Check we have some control regs.
65         (md_parse_option): Allow raw arch switch.
66         (m68k_init_arch): Better detection of arch/cpu mismatch.  Detect
67         whether 68881 or cfloat was meant by -mfloat.
68         (md_show_usage): Adjust extension display.
69         (m68k_elf_final_processing): Adjust.
70
71 2006-03-03  Bjoern Haase  <bjoern.m.haase@web.de>
72
73         * config/tc-avr.c (avr_mod_hash_value): New function.
74         (md_apply_fix, exp_mod): Use BFD_RELOC_HH8_LDI and
75         BFD_RELOC_MS8_LDI for hlo8() and hhi8() 
76         (md_begin): Set linkrelax variable to 1, use avr_mod_hash_value
77         instead of int avr_ldi_expression: use avr_mod_hash_value instead
78         of (int).
79         (tc_gen_reloc): Handle substractions of symbols, if possible do
80         fixups, abort otherwise.        
81         * config/tc-avr.h (TC_LINKRELAX_FIXUP, TC_VALIDATE_FIX,
82         tc_fix_adjustable): Define.
83         
84 2006-03-02  James E Wilson  <wilson@specifix.com>
85
86         * config/tc-ia64.c (emit_one_bundle): For IA64_OPCODE_LAST, if we
87         change the template, then clear md.slot[curr].end_of_insn_group.
88
89 2006-02-28  Jan Beulich  <jbeulich@novell.com>
90
91         * macro.c (get_any_string): Don't insert quotes for <>-quoted input.
92
93 2006-02-28  Jan Beulich  <jbeulich@novell.com>
94
95         PR/1070
96         * macro.c (getstring): Don't treat parentheses special anymore.
97         (get_any_string): Don't consider '(' and ')' as quoting anymore.
98         Special-case '(', ')', '[', and ']' when dealing with non-quoting
99         characters.
100
101 2006-02-28  Mat <mat@csail.mit.edu>
102
103         * dwarf2dbg.c (get_filenum): Don't inadvertently decrease files_in_use.
104
105 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
106
107         * dw2gencfi.c (struct fde_entry, struct cie_entry): Add signal_frame
108         field.
109         (CFI_signal_frame): Define.
110         (cfi_pseudo_table): Add .cfi_signal_frame.
111         (dot_cfi): Handle CFI_signal_frame.
112         (output_cie): Handle cie->signal_frame.
113         (select_cie_for_fde): Don't share CIE if signal_frame flag is
114         different.  Copy signal_frame from FDE to newly created CIE.
115         * doc/as.texinfo: Document .cfi_signal_frame.
116
117 2006-02-27  Carlos O'Donell  <carlos@codesourcery.com>
118
119         * doc/Makefile.am: Add html target.
120         * doc/Makefile.in: Regenerate.
121         * po/Make-in: Add html target.
122
123 2006-02-27  H.J. Lu <hongjiu.lu@intel.com>
124
125         * config/tc-i386.c (output_insn): Support Intel Merom New
126         Instructions.
127
128         * config/tc-i386.h (CpuMNI): New.
129         (CpuUnknownFlags): Add CpuMNI.
130
131 2006-02-24  David S. Miller  <davem@sunset.davemloft.net>
132
133         * config/tc-sparc.c (priv_reg_table): Add entry for "gl".
134         (hpriv_reg_table): New table for hyperprivileged registers.
135         (sparc_ip): New cases '$' and '%' for wrhpr/rdhpr hyperprivileged
136         register encoding.
137
138 2006-02-24  DJ Delorie  <dj@redhat.com>
139
140         * config/tc-m32c.h (md_apply_fix): Define to m32c_apply_fix.
141         (tc_gen_reloc): Don't define.
142         * config/tc-m32c.c (rl_for, relaxable): New convenience macros.
143         (OPTION_LINKRELAX): New.
144         (md_longopts): Add it.
145         (m32c_relax): New.
146         (md_parse_options): Set it.
147         (md_assemble): Emit relaxation relocs as needed.
148         (md_convert_frag): Emit relaxation relocs as needed.
149         (md_cgen_lookup_reloc): Add LAB_8_8 and LAB_8_16.
150         (m32c_apply_fix): New.
151         (tc_gen_reloc): New.
152         (m32c_force_relocation): Force out jump relocs when relaxing.
153         (m32c_fix_adjustable): Return false if relaxing.
154
155 2006-02-24  Paul Brook  <paul@codesourcery.com>
156
157         * config/arm/tc-arm.c (arm_ext_v6_notm, arm_ext_div, arm_ext_v7,
158         arm_ext_v7a, arm_ext_v7r, arm_ext_v7m): New variables.
159         (struct asm_barrier_opt): Define.
160         (arm_v7m_psr_hsh, arm_barrier_opt_hsh): New variables.
161         (parse_psr): Accept V7M psr names.
162         (parse_barrier): New function.
163         (enum operand_parse_code): Add OP_oBARRIER.
164         (parse_operands): Implement OP_oBARRIER.
165         (do_barrier): New function.
166         (do_dbg, do_pli, do_t_barrier, do_t_dbg, do_t_div): New functions.
167         (do_t_cpsi): Add V7M restrictions.
168         (do_t_mrs, do_t_msr): Validate V7M variants.
169         (md_assemble): Check for NULL variants.
170         (v7m_psrs, barrier_opt_names): New tables.
171         (insns): Add V7 instructions.  Mark V6 instructions absent from V7M.
172         (md_begin): Initialize arm_v7m_psr_hsh and arm_barrier_opt_hsh.
173         (arm_cpu_option_table): Add Cortex-M3, R4 and A8.
174         (arm_arch_option_table): Add armv7, armv7a, armv7r and armv7m.
175         (struct cpu_arch_ver_table): Define.
176         (cpu_arch_ver): New.
177         (aeabi_set_public_attributes): Use cpu_arch_ver.  Set
178         Tag_CPU_arch_profile.
179         * doc/c-arm.texi: Document new cpu and arch options.
180
181 2006-02-23  H.J. Lu  <hongjiu.lu@intel.com>
182
183         * config/tc-ia64.c (operand_match): Handle IA64_OPND_IMMU5b.
184
185 2006-02-23  H.J. Lu  <hongjiu.lu@intel.com>
186
187         * config/tc-ia64.c: Update copyright years.
188
189 2006-02-22  H.J. Lu  <hongjiu.lu@intel.com>
190
191         * config/tc-ia64.c (specify_resource): Add the rule 17 from
192         SDM 2.2.
193
194 2005-02-22  Paul Brook  <paul@codesourcery.com>
195
196         * config/tc-arm.c (do_pld): Remove incorrect write to
197         inst.instruction.
198         (encode_thumb32_addr_mode): Use correct operand.
199
200 2006-02-21  Paul Brook  <paul@codesourcery.com>
201
202         * config/tc-arm.c (md_apply_fix): Fix off-by-one errors.
203
204 2006-02-17  Shrirang Khisti  <shrirangk@kpitcummins.com>
205             Anil Paranjape   <anilp1@kpitcummins.com>
206             Shilin Shakti    <shilins@kpitcummins.com>
207
208         * Makefile.am: Add xc16x related entry.
209         * Makefile.in: Regenerate.
210         * configure.in: Added xc16x related entry.
211         * configure: Regenerate.
212         * config/tc-xc16x.h: New file
213         * config/tc-xc16x.c: New file
214         * doc/c-xc16x.texi: New file for xc16x
215         * doc/all.texi: Entry for xc16x
216         * doc/Makefile.texi: Added c-xc16x.texi 
217         * NEWS: Announce the support for the new target.
218
219 2006-02-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
220
221         * configure.tgt: set emulation for mips-*-netbsd*
222
223 2006-02-14  Jakub Jelinek  <jakub@redhat.com>
224
225         * config.in: Rebuilt.
226
227 2006-02-13  Bob Wilson  <bob.wilson@acm.org>
228
229         * config/tc-xtensa.c (xg_add_opcode_fix): Number operands starting
230         from 1, not 0, in error messages.
231         (md_assemble): Simplify special-case check for ENTRY instructions.
232         (tinsn_has_invalid_symbolic_operands): Do not include opcode and
233         operand in error message.
234
235 2006-02-13  Joseph S. Myers  <joseph@codesourcery.com>
236
237         * configure.tgt (arm-*-linux-gnueabi*): Change to
238         arm-*-linux-*eabi*.
239
240 2006-02-10  Nick Clifton  <nickc@redhat.com>
241
242         * config/tc-crx.c (check_range): Ensure that the sign bit of a
243         32-bit value is propagated into the upper bits of a 64-bit long.
244
245         * config/tc-arc.c (init_opcode_tables): Fix cast.
246         (arc_extoper, md_operand): Likewise.
247
248 2006-02-09  David Heine  <dlheine@tensilica.com>
249
250         * config/tc-xtensa.c (xg_assembly_relax): Increment steps_taken for
251         each relaxation step.
252
253 2006-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
254         
255         * configure.in (CHECK_DECLS): Add vsnprintf.
256         * configure: Regenerate.
257         * messages.c (errno.h, stdarg.h, varargs.h, va_list): Do not
258         include/declare here, but...
259         * as.h: Move code detecting VARARGS idiom to the top.
260         (errno.h, stdarg.h, varargs.h, va_list): ...here.
261         (vsnprintf): Declare if not already declared.
262
263 2006-02-08  H.J. Lu  <hongjiu.lu@intel.com>
264
265         * as.c (close_output_file): New.
266         (main): Register close_output_file with xatexit before
267         dump_statistics. Don't call output_file_close.
268
269 2006-02-07  Nathan Sidwell  <nathan@codesourcery.com>
270
271         * config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
272         mcf5329_control_regs): New.
273         (not_current_architecture, selected_arch, selected_cpu): New.
274         (m68k_archs, m68k_extensions): New.
275         (archs): Renamed to ...
276         (m68k_cpus): ... here.  Adjust.
277         (n_arches): Remove.
278         (md_pseudo_table): Add arch and cpu directives.
279         (find_cf_chip, m68k_ip): Adjust table scanning.
280         (no_68851, no_68881): Remove.
281         (md_assemble): Lazily initialize.
282         (select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
283         (md_init_after_args): Move functionality to m68k_init_arch.
284         (mri_chip): Adjust table scanning.
285         (md_parse_option): Reimplement 'm' processing to add -march & -mcpu
286         options with saner parsing.
287         (m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
288         m68k_init_arch): New.
289         (s_m68k_cpu, s_m68k_arch): New.
290         (md_show_usage): Adjust.
291         (m68k_elf_final_processing): Set CF EF flags.
292         * config/tc-m68k.h (m68k_init_after_args): Remove.
293         (tc_init_after_args): Remove.
294         * doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
295         (M68k-Directives): Document .arch and .cpu directives.
296
297 2006-02-05  Arnold Metselaar  <arnold.metselaar@planet.nl>
298
299         * config/tc-z80.c (z80_start_line_hook): allow .equ and .defl as 
300         synonyms for equ and defl. 
301         (z80_cons_fix_new): New function.
302         (emit_byte): Disallow relative jumps to absolute locations.
303         (emit_data): Only handle defb, prototype changed, because defb is 
304         now handled as pseudo-op rather than an instruction.
305         (instab): Entries for defb,defw,db,dw moved from here...
306         (md_pseudo_table): ... to here, use generic cons() for defw,dw. 
307         Add entries for def24,def32,d24,d32.
308         (md_assemble): Improved error handling.
309         (md_apply_fix): New case BFD_RELOC_24, set fixP->fx_no_overflow to one.
310         * config/tc-z80.h (TC_CONS_FIX_NEW): Define.
311         (z80_cons_fix_new): Declare.
312         * doc/c-z80.texi (defb, db): Mention warning on overflow. 
313         (def24,d24,def32,d32): New pseudo-ops.
314         
315 2006-02-02  Paul Brook  <paul@codesourcery.com>
316
317         * config/tc-arm.c (do_shift): Remove Thumb-1 constraint.
318
319 2005-02-02  Paul Brook  <paul@codesourcery.com>
320
321         * config/tc-arm.c (T2_OPCODE_MASK, T2_DATA_OP_SHIFT, T2_OPCODE_AND,
322         T2_OPCODE_BIC, T2_OPCODE_ORR, T2_OPCODE_ORN, T2_OPCODE_EOR,
323         T2_OPCODE_ADD, T2_OPCODE_ADC, T2_OPCODE_SBC, T2_OPCODE_SUB,
324         T2_OPCODE_RSB): Define.
325         (thumb32_negate_data_op): New function.
326         (md_apply_fix): Use it.
327
328 2006-01-31  Bob Wilson  <bob.wilson@acm.org>
329
330         * config/xtensa-istack.h (TInsn): Remove record_fix and sub_symbol
331         fields.
332         * config/tc-xtensa.h (xtensa_frag_type): Remove slot_sub_symbols field.
333         * config/tc-xtensa.c (md_apply_fix): Check for unexpected uses of
334         subtracted symbols.
335         (relaxation_requirements): Add pfinish_frag argument and use it to
336         replace setting tinsn->record_fix fields.
337         (xg_assemble_vliw_tokens): Adjust calls to relaxation_requirements
338         and vinsn_to_insnbuf.  Remove references to record_fix and
339         slot_sub_symbols fields.
340         (xtensa_mark_narrow_branches): Delete unused code.
341         (is_narrow_branch_guaranteed_in_range): Handle expr that is not just
342         a symbol.
343         (convert_frag_immed): Adjust vinsn_to_insnbuf call and do not set
344         record_fix fields.
345         (tinsn_immed_from_frag): Remove code for handling slot_sub_symbols.
346         (vinsn_to_insnbuf): Change use of record_fixup argument, replacing use
347         of the record_fix field.  Simplify error messages for unexpected
348         symbolic operands.
349         (set_expr_symbol_offset_diff): Delete.
350
351 2006-01-31  Paul Brook  <paul@codesourcery.com>
352
353         * config/tc-arm.c (arm_reg_parse): Check if reg is non-NULL.
354
355 2006-01-31  Paul Brook  <paul@codesourcery.com>
356         Richard Earnshaw <rearnsha@arm.com>
357
358         * config/tc-arm.c: Use arm_feature_set.
359         (arm_ext_*, arm_arch_full, arm_arch_t2, arm_arch_none,
360         arm_cext_iwmmxt, arm_cext_xscale, arm_cext_maverick, fpu_fpa_ext_v1,
361         fpu_fpa_ext_v2, fpu_vfp_ext_v1xd, fpu_vfp_ext_v1, fpu_vfp_ext_v2):
362         New variables.
363         (insns): Use them.
364         (md_atof, opcode_select, opcode_select, md_assemble, md_assemble,
365         md_begin, arm_parse_extension, arm_parse_cpu, arm_parse_arch,
366         arm_parse_fpu, arm_parse_float_abi, aeabi_set_public_attributes,
367         s_arm_cpu, s_arm_arch, s_arm_fpu): Use macros for accessing CPU
368         feature flags.
369         (arm_legacy_option_table, arm_option_cpu_value_table): New types.
370         (arm_opts): Move old cpu/arch options from here...
371         (arm_legacy_opts): ... to here.
372         (md_parse_option): Search arm_legacy_opts.
373         (arm_cpus, arm_archs, arm_extensions, arm_fpus)
374         (arm_float_abis, arm_eabis): Make const.
375
376 2006-01-25  Bob Wilson  <bob.wilson@acm.org>
377
378         * config/tc-xtensa.c (md_apply_fix): Set value to zero for PLT relocs.
379
380 2006-01-21  Jie Zhang  <jie.zhang@analog.com>
381
382         * config/bfin-parse.y (asm_1): Check value range for 16 bit immediate
383         in load immediate intruction.
384
385 2006-01-21  Jie Zhang  <jie.zhang@analog.com>
386
387         * config/bfin-parse.y (value_match): Use correct conversion
388         specifications in template string for __FILE__ and __LINE__.
389         (binary): Ditto.
390         (unary): Ditto.
391
392 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
393
394         Introduce TLS descriptors for i386 and x86_64.
395         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
396         BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC_CALL,
397         BFD_RELOC_X86_64_GOTPC32_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL.
398         (optimize_disp): Emit fix up for BFD_RELOC_386_TLS_DESC_CALL and
399         BFD_RELOC_X86_64_TLSDESC_CALL immediately, and clear the
400         displacement bits.
401         (build_modrm_byte): Set up zero modrm for TLS desc calls.
402         (lex_got): Handle @tlsdesc and @tlscall.
403         (md_apply_fix, tc_gen_reloc): Handle the new relocations.
404
405 2006-01-11  Nick Clifton  <nickc@redhat.com>
406
407         Fixes for building on 64-bit hosts:
408         * config/tc-avr.c (mod_index): New union to allow conversion
409         between pointers and integers.
410         (md_begin, avr_ldi_expression): Use it.
411         * config/tc-i370.c (md_assemble): Add cast for argument to print
412         statement.
413         * config/tc-tic54x.c (subsym_substitute): Likewise.
414         * config/tc-mn10200.c (md_assemble): Use a union to convert the
415         opindex field of fr_cgen structure into a pointer so that it can
416         be stored in a frag.
417         * config/tc-mn10300.c (md_assemble): Likewise.
418         * config/tc-frv.c (frv_debug_tomcat): Use %p to print pointer
419         types.
420         * config/tc-v850.c: Replace uses of (int) casts with correct
421         types.
422
423 2006-01-09  H.J. Lu  <hongjiu.lu@intel.com>
424
425         PR gas/2117
426         * symbols.c (snapshot_symbol): Don't change a defined symbol.
427
428 2006-01-03  Hans-Peter Nilsson  <hp@bitrange.com>
429
430         PR gas/2101
431         * config/tc-mmix.c (mmix_handle_mmixal): Don't treat #[0-9][FB] as
432         a local-label reference.
433
434 For older changes see ChangeLog-2005
435 \f
436 Local Variables:
437 mode: change-log
438 left-margin: 8
439 fill-column: 74
440 version-control: never
441 End: