gas/
[platform/upstream/binutils.git] / gas / ChangeLog
1 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * config/tc-i386.c (inoutportreg): New.
4         (process_immext): New.
5         (md_assemble): Use it.
6         (update_imm): Use imm16 and imm32s.
7         (i386_att_operand): Use inoutportreg. 
8
9 2008-02-14  H.J. Lu  <hongjiu.lu@intel.com>
10
11         * config/tc-i386.c (operand_type_all_zero): New.
12         (operand_type_set): Likewise.
13         (operand_type_equal): Likewise.
14         (cpu_flags_all_zero): Likewise.
15         (cpu_flags_set): Likewise.
16         (cpu_flags_equal): Likewise.
17         (UINTS_ALL_ZERO): Removed.
18         (UINTS_SET): Likewise.
19         (UINTS_CLEAR): Likewise.
20         (UINTS_EQUAL): Likewise.
21         (cpu_flags_match): Updated.
22         (smallest_imm_type): Likewise.
23         (set_cpu_arch): Likewise.
24         (md_assemble): Likewise.
25         (optimize_imm): Likewise.
26         (match_template): Likewise.
27         (process_suffix): Likewise.
28         (update_imm): Likewise.
29         (process_drex): Likewise.
30         (process_operands): Likewise.
31         (build_modrm_byte): Likewise.
32         (i386_immediate): Likewise.
33         (i386_displacement): Likewise.
34         (i386_att_operand): Likewise.
35         (parse_real_register): Likewise.
36         (md_parse_option): Likewise.
37         (i386_target_format): Likewise.
38
39 2008-02-14  Dimitry Andric  <dimitry@andric.com>
40
41         PR gas/5712
42         * config/tc-arm.c (s_arm_unwind_save): Advance the input line
43         pointer past the comma after parsing a floating point register
44         name.
45
46 2008-02-14  Hakan Ardo  <hakan@debian.org>
47
48         PR gas/2626
49         * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
50         to AVR_ISA_2xxe.
51         (avr_operand): Disallow post-increment addressing in the lpm
52         instruction for the attiny26.
53
54 2008-02-13  Jan Beulich  <jbeulich@novell.com>
55
56         * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
57         if not in Intel mode.
58         (i386_intel_operand): Ignore segment overrides in immediate and
59         offset operands.
60         (intel_e11): Range-check i.mem_operands before use as array
61         index. Filter out FLAT for uses other than as segment override.
62         (intel_get_token): Remove broken promotion of "FLAT:" to mean
63         "offset FLAT:".
64
65 2008-02-13  Jan Beulich  <jbeulich@novell.com>
66
67         * config/tc-i386.c (intel_e09): Also special-case 'bound'.
68
69 2008-02-13  Jan Beulich  <jbeulich@novell.com>
70
71         * config/tc-i386.c (allow_pseudo_reg): New.
72         (parse_real_register): Check for NULL just once. Allow all
73         register table entries when allow_pseudo_reg is non-zero.
74         Don't allow any registers without type when allow_pseudo_reg
75         is zero.
76         (tc_x86_regname_to_dw2regnum): Replace with ...
77         (tc_x86_parse_to_dw2regnum): ... this.
78         (tc_x86_frame_initial_instructions): Adjust for above change.
79         * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
80         (tc_parse_to_dw2regnum): New.
81         (tc_x86_regname_to_dw2regnum): Replace with ...
82         (tc_x86_parse_to_dw2regnum): ... this.
83         * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
84         (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
85         error handling.
86
87 2008-02-12  Nick Clifton  <nickc@redhat.com>
88
89         * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
90         argument.
91         (tic4x_insn_add): Likewise.
92         (md_begin): Drop cast that was discarding a const qualifier.
93         * config/tc-d30v.c (get_reloc): Add const qualifier to op
94         argument.
95         (build_insn): Drop cast that was discarding a const qualifier.
96
97 2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>
98
99         * config/tc-i386.c (cpu_arch): Add .xsave.
100         (md_show_usage): Add .xsave.
101
102         * doc/c-i386.texi: Add xsave to -march=.
103
104 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
105
106         * read.c (s_weakref): Don't pass unadorned NULL to concat.
107         * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
108
109 2008-02-05  Sterling Augustine  <sterling@tensilica.com>
110         
111         * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
112         checks into assertions.  When relaxation produces an operation that
113         does not fit in the current FLIX instruction, make sure that the
114         operation is relaxed as needed to account for being placed following
115         the current instruction.
116         
117 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
118
119         PR 5715
120         * configure: Regenerated.
121
122 2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
123
124         * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
125
126 2008-01-31  Marc Gauthier  <marc@tensilica.com>
127
128         * configure.tgt (xtensa*-*-*): Recognize processor variants.
129
130 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
131
132         * read.c: (emit_expr): Correct for mingw use of printf size 
133         specifier.
134
135 2008-01-24  Bob Wilson  <bob.wilson@acm.org>
136         
137         * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
138         can only be encoded in FLIX instructions but are not specified as such.
139         (Xtensa Automatic Alignment): Remove obsolete comment about debugging
140         labels.
141         
142 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
143
144         * NEWS: Mention new command line options for x86 targets.
145
146 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
147
148         * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
149
150 2008-01-23  Eric B. Weddington  <eric.weddington@atmel.com>
151
152         * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
153
154 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
155
156         * config/tc-i386.c (md_show_usage): Show more processors for
157         -march=/-mtune=.
158
159 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
160
161         * config/tc-i386.c (i386_target_format): Remove cpummx2.
162
163 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
164
165         * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
166         (XXX_MNEM_SUFFIX): Likewise.
167         (END_OF_INSN): Likewise.
168         (templates): Likewise.
169         (modrm_byte): Likewise.
170         (rex_byte): Likewise.
171         (DREX_XXX): Likewise.
172         (drex_byte): Likewise.
173         (sib_byte): Likewise.
174         (processor_type): Likewise.
175         (arch_entry): Likewise.
176         (cpu_sub_arch_name): Remove const.
177         (cpu_arch): Add .vmx and .smx.
178         (set_cpu_arch): Append cpu_sub_arch_name.
179         (md_parse_option): Support -march=CPU[,+EXTENSION...].
180         (md_show_usage): Updated.
181
182         * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
183         (XXX_MNEM_SUFFIX): Likewise.
184         (END_OF_INSN): Likewise.
185         (templates): Likewise.
186         (modrm_byte): Likewise.
187         (rex_byte): Likewise.
188         (DREX_XXX): Likewise.
189         (drex_byte): Likewise.
190         (sib_byte): Likewise.
191         (processor_type): Likewise.
192         (arch_entry): Likewise.
193
194         * doc/as.texinfo: Update i386 -march option.
195
196         * doc/c-i386.texi: Update -march= for ISA.
197
198 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
199         
200         * config/tc-xtensa.c (xtensa_leb128): New function.
201         (md_pseudo_table): Use it for sleb128 and uleb128.
202         (is_leb128_expr): New internal flag.
203         (xtensa_symbol_new_hook): Check new flag.
204         
205 2008-01-16  Eric B. Weddington  <eric.weddington@atmel.com>
206
207         * config/tc-avr.c (mcu_types): Change opcode set for avr3,
208         at90usb82, at90usb162.
209         * doc/c-avr.texi: Change architecture grouping for at90usb82, 
210         at90usb162.
211         These changes support the new avr35 architecture group in gcc.
212
213 2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>
214
215         * config/tc-i386.c (md_assemble): Also zap movzx and movsx
216         suffix for AT&T syntax.
217
218 2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>
219
220         * config/tc-i386.c (match_reg_size): New.
221         (match_mem_size): Likewise.
222         (operand_size_match): Likewise.
223         (operand_type_match): Also clear all size fields.
224         (match_template): Skip Intel syntax when in AT&T syntax.
225         Call operand_size_match to check operand size.
226         (i386_att_operand): Set the mem field to 1 for memory
227         operand.
228         (i386_intel_operand): Likewise.
229
230 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
231
232         PR gas/5534
233         * config/tc-i386.c (_i386_insn): Update comment.
234         (operand_type_match): Also clear unspecified.
235         (operand_type_register_match): Likewise.
236         (parse_operands): Initialize unspecified.
237         (i386_intel_operand): Likewise.
238         (match_template): Check memory and accumulator operand size.
239         (i386_att_operand): Clear unspecified on register operand.
240         (intel_e11): Likewise.
241         (intel_e09): Set operand size and clean unspecified for
242         "XXX PTR".
243
244 2008-01-11  Andreas Schwab  <schwab@suse.de>
245
246         * read.c (s_space): Declare `repeat' as offsetT.
247
248 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
249
250         * config/tc-i386.c (match_template): Check processor support
251         first.
252
253 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
254
255         * config/tc-i386.c (match_template): Continue if processor
256         doesn't match.
257
258 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
259
260         * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
261         unwind personality function address.
262
263 2008-01-09  Bob Wilson  <bob.wilson@acm.org>
264         
265         * dwarf2dbg.c (out_sleb128): Delete.
266         (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
267         (out_fixed_inc_line_addr): Delete.
268         (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
269         size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
270         (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
271         (process_entries): Remove calls to out_fixed_inc_line_addr.  When
272         DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
273         * read.h (emit_expr_fix): New prototype.
274         * read.c (emit_expr): Move code to emit_expr_fix and use it here.
275         (emit_expr_fix): New.
276         
277 2008-01-09  H.J. Lu  <hongjiu.lu@intel.com>
278
279         * config/tc-i386.c (match_template): Check register size
280         only when size of operands can be encoded the canonical way.
281
282 2008-01-08  H.J. Lu  <hongjiu.lu@intel.com>
283
284         * config/tc-i386.c (i386_operand): Renamed to ...
285         (i386_att_operand): This.
286         (parse_operands): Updated.
287
288 2008-01-05  H.J. Lu  <hongjiu.lu@intel.com>
289
290         * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
291
292         * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
293         only.
294         (md_assemble): Remove Intel mode workaround.
295         (match_template): Check support for old gcc, AT&T mnemonic
296         and Intel Syntax.
297         (md_parse_option): Don't set intel_mnemonic to 0 for
298         OPTION_MOLD_GCC.
299
300 2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>
301
302         * config/tc-i386.h: Update copyright to 2008.
303
304 2008-01-04  Nick Clifton  <nickc@redhat.com>
305
306         * config/tc-ppc.c (parse_cpu): Preserve the settings of the
307         PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
308
309 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
310
311         * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
312         of SYSV386_COMPAT.
313
314 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
315
316         * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
317         (cpu_flags_not): Likewise.
318         (cpu_flags_match): Updated to check 64bit and arch.
319         (set_code_flag): Remove cpu_arch_flags_not.
320         (set_16bit_gcc_code_flag): Likewise.
321         (set_cpu_arch): Likewise.
322         (md_begin): Likewise.
323         (parse_insn): Call cpu_flags_match to check 64bit and arch.
324         (match_template): Likewise.
325
326 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
327
328         * config/tc-i386.c (process_drex): Initialize modrm_reg and
329         modrm_regmem to 0 instead of None.
330
331 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
332
333         * config/tc-i386.c (match_template): Use the xmmword field
334         instead of no_xsuf.
335
336 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
337
338         * config/tc-i386.c (process_suffix): Fix a typo.
339
340 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
341
342         PR gas/5534
343         * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
344         Check memory size in Intel mode.
345         (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
346         (intel_e09): Likewise.
347
348         * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
349
350 2008-01-02  Catherine Moore  <clm@codesourcery.com>
351
352         * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
353
354 For older changes see ChangeLog-2007
355 \f
356 Local Variables:
357 mode: change-log
358 left-margin: 8
359 fill-column: 74
360 version-control: never
361 End: