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