gas/
[external/binutils.git] / gas / ChangeLog
1 2006-02-14  Jakub Jelinek  <jakub@redhat.com>
2
3         * config.in: Rebuilt.
4
5 2006-02-13  Bob Wilson  <bob.wilson@acm.org>
6
7         * config/tc-xtensa.c (xg_add_opcode_fix): Number operands starting
8         from 1, not 0, in error messages.
9         (md_assemble): Simplify special-case check for ENTRY instructions.
10         (tinsn_has_invalid_symbolic_operands): Do not include opcode and
11         operand in error message.
12
13 2006-02-13  Joseph S. Myers  <joseph@codesourcery.com>
14
15         * configure.tgt (arm-*-linux-gnueabi*): Change to
16         arm-*-linux-*eabi*.
17
18 2006-02-10  Nick Clifton  <nickc@redhat.com>
19
20         * config/tc-crx.c (check_range): Ensure that the sign bit of a
21         32-bit value is propagated into the upper bits of a 64-bit long.
22
23         * config/tc-arc.c (init_opcode_tables): Fix cast.
24         (arc_extoper, md_operand): Likewise.
25
26 2006-02-09  David Heine  <dlheine@tensilica.com>
27
28         * config/tc-xtensa.c (xg_assembly_relax): Increment steps_taken for
29         each relaxation step.
30
31 2006-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
32         
33         * configure.in (CHECK_DECLS): Add vsnprintf.
34         * configure: Regenerate.
35         * messages.c (errno.h, stdarg.h, varargs.h, va_list): Do not
36         include/declare here, but...
37         * as.h: Move code detecting VARARGS idiom to the top.
38         (errno.h, stdarg.h, varargs.h, va_list): ...here.
39         (vsnprintf): Declare if not already declared.
40
41 2006-02-08  H.J. Lu  <hongjiu.lu@intel.com>
42
43         * as.c (close_output_file): New.
44         (main): Register close_output_file with xatexit before
45         dump_statistics. Don't call output_file_close.
46
47 2006-02-07  Nathan Sidwell  <nathan@codesourcery.com>
48
49         * config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
50         mcf5329_control_regs): New.
51         (not_current_architecture, selected_arch, selected_cpu): New.
52         (m68k_archs, m68k_extensions): New.
53         (archs): Renamed to ...
54         (m68k_cpus): ... here.  Adjust.
55         (n_arches): Remove.
56         (md_pseudo_table): Add arch and cpu directives.
57         (find_cf_chip, m68k_ip): Adjust table scanning.
58         (no_68851, no_68881): Remove.
59         (md_assemble): Lazily initialize.
60         (select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
61         (md_init_after_args): Move functionality to m68k_init_arch.
62         (mri_chip): Adjust table scanning.
63         (md_parse_option): Reimplement 'm' processing to add -march & -mcpu
64         options with saner parsing.
65         (m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
66         m68k_init_arch): New.
67         (s_m68k_cpu, s_m68k_arch): New.
68         (md_show_usage): Adjust.
69         (m68k_elf_final_processing): Set CF EF flags.
70         * config/tc-m68k.h (m68k_init_after_args): Remove.
71         (tc_init_after_args): Remove.
72         * doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
73         (M68k-Directives): Document .arch and .cpu directives.
74
75 2006-02-05  Arnold Metselaar  <arnold.metselaar@planet.nl>
76
77         * config/tc-z80.c (z80_start_line_hook): allow .equ and .defl as 
78         synonyms for equ and defl. 
79         (z80_cons_fix_new): New function.
80         (emit_byte): Disallow relative jumps to absolute locations.
81         (emit_data): Only handle defb, prototype changed, because defb is 
82         now handled as pseudo-op rather than an instruction.
83         (instab): Entries for defb,defw,db,dw moved from here...
84         (md_pseudo_table): ... to here, use generic cons() for defw,dw. 
85         Add entries for def24,def32,d24,d32.
86         (md_assemble): Improved error handling.
87         (md_apply_fix): New case BFD_RELOC_24, set fixP->fx_no_overflow to one.
88         * config/tc-z80.h (TC_CONS_FIX_NEW): Define.
89         (z80_cons_fix_new): Declare.
90         * doc/c-z80.texi (defb, db): Mention warning on overflow. 
91         (def24,d24,def32,d32): New pseudo-ops.
92         
93 2006-02-02  Paul Brook  <paul@codesourcery.com>
94
95         * config/tc-arm.c (do_shift): Remove Thumb-1 constraint.
96
97 2005-02-02  Paul Brook  <paul@codesourcery.com>
98
99         * config/tc-arm.c (T2_OPCODE_MASK, T2_DATA_OP_SHIFT, T2_OPCODE_AND,
100         T2_OPCODE_BIC, T2_OPCODE_ORR, T2_OPCODE_ORN, T2_OPCODE_EOR,
101         T2_OPCODE_ADD, T2_OPCODE_ADC, T2_OPCODE_SBC, T2_OPCODE_SUB,
102         T2_OPCODE_RSB): Define.
103         (thumb32_negate_data_op): New function.
104         (md_apply_fix): Use it.
105
106 2006-01-31  Bob Wilson  <bob.wilson@acm.org>
107
108         * config/xtensa-istack.h (TInsn): Remove record_fix and sub_symbol
109         fields.
110         * config/tc-xtensa.h (xtensa_frag_type): Remove slot_sub_symbols field.
111         * config/tc-xtensa.c (md_apply_fix): Check for unexpected uses of
112         subtracted symbols.
113         (relaxation_requirements): Add pfinish_frag argument and use it to
114         replace setting tinsn->record_fix fields.
115         (xg_assemble_vliw_tokens): Adjust calls to relaxation_requirements
116         and vinsn_to_insnbuf.  Remove references to record_fix and
117         slot_sub_symbols fields.
118         (xtensa_mark_narrow_branches): Delete unused code.
119         (is_narrow_branch_guaranteed_in_range): Handle expr that is not just
120         a symbol.
121         (convert_frag_immed): Adjust vinsn_to_insnbuf call and do not set
122         record_fix fields.
123         (tinsn_immed_from_frag): Remove code for handling slot_sub_symbols.
124         (vinsn_to_insnbuf): Change use of record_fixup argument, replacing use
125         of the record_fix field.  Simplify error messages for unexpected
126         symbolic operands.
127         (set_expr_symbol_offset_diff): Delete.
128
129 2006-01-31  Paul Brook  <paul@codesourcery.com>
130
131         * config/tc-arm.c (arm_reg_parse): Check if reg is non-NULL.
132
133 2006-01-31  Paul Brook  <paul@codesourcery.com>
134         Richard Earnshaw <rearnsha@arm.com>
135
136         * config/tc-arm.c: Use arm_feature_set.
137         (arm_ext_*, arm_arch_full, arm_arch_t2, arm_arch_none,
138         arm_cext_iwmmxt, arm_cext_xscale, arm_cext_maverick, fpu_fpa_ext_v1,
139         fpu_fpa_ext_v2, fpu_vfp_ext_v1xd, fpu_vfp_ext_v1, fpu_vfp_ext_v2):
140         New variables.
141         (insns): Use them.
142         (md_atof, opcode_select, opcode_select, md_assemble, md_assemble,
143         md_begin, arm_parse_extension, arm_parse_cpu, arm_parse_arch,
144         arm_parse_fpu, arm_parse_float_abi, aeabi_set_public_attributes,
145         s_arm_cpu, s_arm_arch, s_arm_fpu): Use macros for accessing CPU
146         feature flags.
147         (arm_legacy_option_table, arm_option_cpu_value_table): New types.
148         (arm_opts): Move old cpu/arch options from here...
149         (arm_legacy_opts): ... to here.
150         (md_parse_option): Search arm_legacy_opts.
151         (arm_cpus, arm_archs, arm_extensions, arm_fpus)
152         (arm_float_abis, arm_eabis): Make const.
153
154 2006-01-25  Bob Wilson  <bob.wilson@acm.org>
155
156         * config/tc-xtensa.c (md_apply_fix): Set value to zero for PLT relocs.
157
158 2006-01-21  Jie Zhang  <jie.zhang@analog.com>
159
160         * config/bfin-parse.y (asm_1): Check value range for 16 bit immediate
161         in load immediate intruction.
162
163 2006-01-21  Jie Zhang  <jie.zhang@analog.com>
164
165         * config/bfin-parse.y (value_match): Use correct conversion
166         specifications in template string for __FILE__ and __LINE__.
167         (binary): Ditto.
168         (unary): Ditto.
169
170 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
171
172         Introduce TLS descriptors for i386 and x86_64.
173         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
174         BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC_CALL,
175         BFD_RELOC_X86_64_GOTPC32_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL.
176         (optimize_disp): Emit fix up for BFD_RELOC_386_TLS_DESC_CALL and
177         BFD_RELOC_X86_64_TLSDESC_CALL immediately, and clear the
178         displacement bits.
179         (build_modrm_byte): Set up zero modrm for TLS desc calls.
180         (lex_got): Handle @tlsdesc and @tlscall.
181         (md_apply_fix, tc_gen_reloc): Handle the new relocations.
182
183 2006-01-11  Nick Clifton  <nickc@redhat.com>
184
185         Fixes for building on 64-bit hosts:
186         * config/tc-avr.c (mod_index): New union to allow conversion
187         between pointers and integers.
188         (md_begin, avr_ldi_expression): Use it.
189         * config/tc-i370.c (md_assemble): Add cast for argument to print
190         statement.
191         * config/tc-tic54x.c (subsym_substitute): Likewise.
192         * config/tc-mn10200.c (md_assemble): Use a union to convert the
193         opindex field of fr_cgen structure into a pointer so that it can
194         be stored in a frag.
195         * config/tc-mn10300.c (md_assemble): Likewise.
196         * config/tc-frv.c (frv_debug_tomcat): Use %p to print pointer
197         types.
198         * config/tc-v850.c: Replace uses of (int) casts with correct
199         types.
200
201 2006-01-09  H.J. Lu  <hongjiu.lu@intel.com>
202
203         PR gas/2117
204         * symbols.c (snapshot_symbol): Don't change a defined symbol.
205
206 2006-01-03  Hans-Peter Nilsson  <hp@bitrange.com>
207
208         PR gas/2101
209         * config/tc-mmix.c (mmix_handle_mmixal): Don't treat #[0-9][FB] as
210         a local-label reference.
211
212 For older changes see ChangeLog-2005
213 \f
214 Local Variables:
215 mode: change-log
216 left-margin: 8
217 fill-column: 74
218 version-control: never
219 End: