OSDN Git Service

/gas:
[pf3gnuchains/pf3gnuchains3x.git] / gas / ChangeLog
1 2008-06-24  Eric B. Weddington  <eric.weddington@atmel.com>
2
3         Add support for ATtiny13A.
4         * config/tc-avr.c (mcu_types): Add attiny13a.
5         * doc/c-avr.texi: Likewise.
6
7 2008-06-24  Bob Wilson  <bob.wilson@acm.org>
8             Alan Modra  <amodra@bigpond.net.au>
9
10         * write.c (relax_segment <rs_org>): Include current stretch
11         value when calculating whether .org is backwards.
12
13 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14
15         * configure: Regenerate.
16
17 2008-06-17  Nick Clifton  <nickc@redhat.com>
18
19         * app.c (do_scrub_chars): Do not UNGET an EOF value.
20
21 2008-06-16  Hans-Peter Nilsson  <hp@bitrange.com>
22
23         PR gas/6607
24         * config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
25         text_section.  Do the "stepping backwards" test for text_section
26         using unsigned operands.
27
28 2008-06-13  Peter Bergner  <bergner@vnet.ibm.com>
29
30         * config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
31         (ppc_insert_operand): Likewise.
32         (ppc_machine): Likewise.
33         * config/tc-ppc.h: #include "opcode/ppc.h"
34         (struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
35         (ppc_cpu): Update extern decl.
36
37 2008-06-12  Adam Nemet  <anemet@caviumnetworks.com>
38
39         * config/tc-mips.c (validate_mips_insn): Handle field descriptors
40         +x, +X, +p, +P, +s, +S.
41         (mips_ip): Likewise.
42
43         * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
44         (mips_ip): Likewise.
45         (macro_build): Likewise.
46         (CPU_HAS_SEQ): New macro.
47         (macro2) <M_SEQ_I, M_SNE_I>: Use it.  Emit seq/sne and seqi/snei.
48
49 2008-06-09  Eric B. Weddington  <eric.weddington@atmel.com>
50
51         * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device.
52         * doc/c-avr.texi: Likewise.
53
54 2008-06-04  Nick Clifton  <nickc@redhat.com>
55
56         * app.c (do_scrub_chars): Do not UNGET an EOF value.
57
58 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
59
60         * config/tc-i386.c (set_sse_check): New.
61         (md_pseudo_table): Add "sse_check".
62
63 2008-06-03  Paul Brook  <paul@codesourcery.com>
64
65         * config/tc-arm.c (do_t_rbit): Populate both rm fields.
66
67 2008-05-30  Nick Clifton  <nickc@redhat.com>
68
69         PR 5523
70         * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown
71         relocs here.
72
73 2008-05-29  Maxim Kuvyrkov  <maxim@codesourcery.com>
74
75         * config/tc-mips.c (mips_cpu_info_table): Move records for
76         ST Loongson-2E/2F processors to a better place.
77
78 2008-05-23  H.J. Lu  <hongjiu.lu@intel.com>
79
80         PR gas/6518
81         * config/tc-i386.c (match_template): Report ambiguous operand
82         size, not invalid suffix when there is no match in Intel
83         syntax.
84
85 2008-05-22  Paul Brook  <paul@codesourcery.com>
86
87         * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
88
89 2008-05-21  I-Jui Sung  <ijsung@gmail.com>
90
91         * config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
92         compatible cores: fa526, fa626, fa626te, fa726te.
93         * doc/c-arm.texi (ARM Opts): Add -mcpu={fa526, fa626, fa626te,
94         fa726te} options.
95
96 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
97
98         * Makefile.am: Run "make dep-am".
99         * Makefile.in: Regenerate.
100         * doc/Makefile.in: Regenerate.
101         * po/POTFILES.in: Regenerate.
102
103 2008-05-09  Catherine Moore  <clm@codesourcery.com>
104
105         * config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
106         with non-MIPS16 relocs.
107
108 2008-05-09  Chao-ying Fu  <fu@mips.com>
109
110         * config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
111         case that some characters append at the end of the name.
112         (mips_ip): Likewise.
113         (s_change_sec): Likewise.
114         (md_section_align): Likewise.
115
116 2008-05-07  Bob Wilson  <bob.wilson@acm.org>
117
118         * config/tc-xtensa.c (xtensa_create_property_segments): Use
119         xtensa_make_property_section instead of xtensa_get_property_section.
120         (xtensa_create_xproperty_segments): Likewise.
121
122 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
123
124         * NEWS: Mention XSAVE, EPT and MOVBE.
125
126         * config/tc-i386.c (cpu_arch): Add .movbe and .ept.
127         (md_show_usage): Add .movbe and .ept.
128
129         * doc/c-i386.texi: Add movbe and ept to -march=.  Document
130         .movbe and .ept.
131
132 2008-04-29  David S. Miller  <davem@davemloft.net>
133
134         * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
135
136 2008-04-28  Adam Nemet  <anemet@caviumnetworks.com>
137
138         * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
139         New statics.
140         (OPTION_ELF_BASE): Make room for new option macros.
141         (OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
142         OPTION_DOUBLE_FLOAT): New option macros.
143         (md_longopts): Add msoft-float, mhard-float, msingle-float and
144         mdouble-float.
145         (md_parse_option): Handle OPTION_SINGLE_FLOAT,
146         OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
147         (md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
148         and -mdouble-float.
149         (struct mips_set_options): New fields soft_float and single_float.
150         (mips_opts): Initialized them.  Add comment for each field
151         initializer.
152         (mips_after_parse_args): Set them based on file_mips_soft_float
153         and file_mips_single_float.
154         (s_mipsset): Add support for `.set softfloat', `.set hardfloat',
155         `.set singlefloat' and `.set doublefloat'.
156         (is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
157         Handle single-float and soft-float instructions here.
158         (macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
159         (is_opcode_valid_16): New function.
160         (mips16_ip): Use it instead of OPCODE_IS_MEMBER.
161         (macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
162         M_S_DOB>: Remove special-casing of r4650.
163         * doc/c-mips.texi (-march=): Add Octeon.
164         (MIPS Opts): Document -msoft-float and -mhard-float.  Document
165         -msingle-float and -mdouble-float.
166         (MIPS floating-point): New section.  Document `.set softfloat' and
167         `.set hardfloat'.  Document `.set singlefloat' and `.set
168         doublefloat'.
169
170 2008-04-25  David S. Miller  <davem@davemloft.net>
171
172         * config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
173         %asr aliases.
174
175         * doc/c-sparc.texi: Consistently refer to architecture 'versions',
176         rather than occaisionally 'levels'.  Consistently refer to Sun's
177         UNIX variant as SunOS, every version of Solaris is also SunOS.
178         Document new 'softint_clear' and 'softint_set' aliases.  Clarify
179         which architecture versions support '%dcr', '%cq', and '%gl'. Add
180         section on 32-bit/64-bit opcode translations.
181
182 2008-04-23  Mike Frysinger  <vapier@gentoo.org>
183
184         * Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
185         (OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
186         (obj-fdpicelf.o): Define.
187         * Makefile.in: Regenerate.
188         * configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
189         (bfin-*-*): Delete.
190         (bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
191         (bfin-*-uclinux*): New; set fmt to elf and em to linux.
192         * config/obj-fdpicelf.c: New.
193         * config/obj-fdpicelf.h: Likewise.
194         * config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
195         the OBJ_FDPIC_ELF define.
196         (OPTION_NOPIC): Define.
197         (md_longopts): Add mnopic and mno-fdpic.
198         (md_parse_option): Handle OPTION_NOPIC.
199
200 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
201
202         * aclocal.m4: Regenerate.
203         * configure: Regenerate.
204
205 2008-04-23  David S. Miller  <davem@davemloft.net>
206
207         * config/tc-sparc.c (v9a_asr_table): Add missing
208         'stick' and 'stick_cmpr', and document ordering rules
209         of table.
210         (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
211         BFD_RELOC_SPARC_PC10.
212         * doc/c-sparc.texi: New section on Sparc constants.
213         Add documentation for %stick and %stick_cmpr.
214
215 2008-04-22  David S. Miller  <davem@davemloft.net>
216
217         * config/obj-elf.c (obj_elf_section_type): Add prototype
218         before obj_elf_section_word and add 'warn' arg.
219         (obj_elf_section_word): Add type pointer arg, and if no #SECTION
220         is matched, try checking for #SECTION_TYPE.
221         (obj_elf_section): Adjust for new args.
222         (obj_elf_type_name): New function.
223         (obj_elf_type): Call it, and accept STT_foo number strings
224         in .type statements as output by SunPRO compiler.
225
226 2008-04-22  H.J. Lu  <hongjiu.lu@intel.com>
227
228         * config/tc-i386.c (md_assemble): Don't check SSE instructions
229         if noavx is 0.
230
231 2008-04-18  David S. Miller  <davem@davemloft.net>
232
233         * doc/c-sparc.texi: Add syntax section.
234
235 2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>
236
237         * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
238         REG and NDS for instructions with immediate operand.
239
240 2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>
241
242         * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
243         FMA.
244
245 2008-04-16  David S. Miller  <davem@davemloft.net>
246
247         * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
248         and relocation generation.
249         (tc_gen_reloc): Likewise.
250
251 2008-04-15  Andrew Stubbs  <andrew.stubbs@st.com>
252
253         * config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
254         relocations are properly aligned, and not negative.
255
256 2008-04-15  Khem Raj  <kraj@mvista.com>
257
258         * doc/tc-arm.texi: Fix fnstart and fnend directive names.
259
260 2008-04-14  Edmar Wienskoski  <edmar@freescale.com>
261
262         * config/tc-ppc.c (parse_cpu): Handle "e500mc".  Extend "e500" to
263         accept e500mc instructions.
264         (md_show_usage): Document -me500mc.
265
266 2008-04-11  Nick Clifton  <nickc@redhat.com>
267
268         * listing.c (print_timestamp): Use localtime rather than
269         localtime_r since not all build environments provide the latter.
270
271 2008-04-10  H.J. Lu  <hongjiu.lu@intel.com>
272
273         * NEWS: Mention -msse-check=[none|error|warning].
274
275         * config/tc-i386.c (sse_check): New.
276         (OPTION_MSSE_CHECK): Likewise.
277         (md_assemble): Check SSE instructions if needed.
278         (md_longopts): Add -msse-check.
279         (md_parse_option): Handle OPTION_MSSE_CHECK.
280         (md_show_usage): Show -msse-check=[none|error|warning].
281
282         * doc/c-i386.texi: Document -msse-check=[none|error|warning].
283
284 2008-04-10  Santiago Urueña  <suruena@gmail.com>
285
286         * listing.c: Add -ag listing flag to show general information in
287         listings such as gas version, passed options, and time stamp.
288         (listing_general_info): New function.
289         (print_options): New function.
290         (print_single_option): New function.
291         (print_timestamp): New function.
292         (MAX_DATELEN): Define.
293         (listing_print): Add call to listing_general_info.
294         * listing.h (LISTING_GENERAL): Define.
295         (listing_print): Add new parameter.
296         * as.c (show_usage): Print new switch.
297         (parse_args): Parse new switch.
298         (main): Pass command line on to listing_print.
299         * NEWS: Mention this new feature.
300         * doc/as.texinfo: Document the new sub-option.
301
302 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
303
304         * dwarf2dbg.c (dwarf2_emit_insn): Simplify test before dwarf2_where
305         call.  Delete out of date comment.
306         (dwarf2_consume_line_info): Always clear dwarf2_loc_directive_seen.
307         (dwarf2_emit_label): Don't emit unless there has been a previous
308         .file or we are outputting assembler generated debug.
309         dwarf2_consume_line_info after emitting line info, not before.
310         (out_debug_info): Simplify files_in_use test.
311
312 2008-04-07  H.J. Lu  <hongjiu.lu@intel.com>
313
314         * config/tc-i386.c (parse_real_register): Return AVX register
315         only if AVX is enabled.
316
317 2008-04-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
318
319         PR gas/6043
320         * config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
321         md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
322
323 2008-04-04  Adrian Bunk  <bunk@stusta.de>
324             Bob Wilson  <bob.wilson@acm.org>
325
326         * config/tc-xtensa.c (xg_apply_fix_value): Check return code from
327         call to decode_reloc.
328
329 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
330
331         * NEWS: Mention XSAVE.  Change CLMUL to PCLMUL.
332
333         * config/tc-i386.c (cpu_arch): Add .pclmul.
334         (md_show_usage): Replace clmul with pclmul.
335         * doc/c-i386.texi: Likewise.
336
337 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
338
339         * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
340
341         * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
342         Document -msse2avx, .avx, .aes, .clmul and .fma.
343
344         * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
345         (vex_prefix): Likewise.
346         (sse2avx): Likewise.
347         (CPU_FLAGS_ARCH_MATCH): Likewise.
348         (CPU_FLAGS_64BIT_MATCH): Likewise.
349         (CPU_FLAGS_32BIT_MATCH): Likewise.
350         (CPU_FLAGS_PERFECT_MATCH): Likewise.
351         (regymm): Likewise.
352         (vex_imm4): Likewise.
353         (fits_in_imm4): Likewise.
354         (build_vex_prefix): Likewise.
355         (VEX_check_operands): Likewise.
356         (bad_implicit_operand): Likewise.
357         (OPTION_MSSE2AVX): Likewise.
358         (T_YMMWORD): Likewise.
359         (_i386_insn): Add vex.
360         (cpu_arch): Add .avx, .aes, .clmul and .fma.
361         (cpu_flags_match): Changed to take a pointer to const template.
362         Enable encoding SSE instructions with VEX prefix for -msse2avx.
363         (match_mem_size): Also check ymmword.
364         (operand_type_match): Clear ymmword.
365         (md_begin): Allow '_' in mnemonic.
366         (type_names): Add OPERAND_TYPE_VEX_IMM4.
367         (process_immext): Update assert.
368         (md_assemble): Don't call process_immext if sse2avx and immext
369         are true.  Call build_vex_prefix if vex is true.
370         (parse_insn): Updated for cpu_flags_match.
371         (swap_operands): Handle 5 operands.
372         (match_template): Handle 5 operands. Updated for cpu_flags_match.
373         Check regymm.  Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
374         (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
375         (check_byte_reg): Check regymm.
376         (process_operands): Duplicate the destination register for
377         -msse2avx if needed.
378         (build_modrm_byte): Updated for instructions with VEX encoding.
379         (output_insn): Output VEX prefix if needed.
380         (md_longopts): Add msse2avx.
381         (md_parse_option): Handle OPTION_MSSE2AVX.
382         (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
383         (intel_e09): Support YMMWORD.
384         (intel_e11): Likewise.
385         (intel_get_token): Likewise.
386
387 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
388
389         * config/tc-avr.c (mcu_types): Add attiny167.
390         * doc/c-avr.texi: Likewise.
391
392 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
393
394         * config/tc-avr.c (mcu_types): Add atmega32u4.
395         * doc/c-avr.texi: Likewise.
396
397 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
398
399         * config/tc-avr.c (mcu_types): Add atmega32c1.
400         * doc/c-avr.texi: Likewise.
401
402 2008-03-28  Paul Brook  <paul@codesourcery.com>
403
404         * config/tc-arm.c (parse_neon_mov): Parse register before immediate
405         to avoid spurious symbols.
406
407 2008-03-28  Nathan Sidwell  <nathan@codesourcery.com>
408
409         * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
410         as_bad_where.
411
412 2008-03-27  Eric B. Weddington  <eric.weddington@atmel.com>
413
414         * config/tc-avr.c (mcu_types): Add atmega32m1.
415         * doc/c-avr.texi: Likewise.
416
417 2008-03-27  Ineiev  <ineiev@yahoo.co.uk>
418
419         * config/tc-arm.c (do_neon_cvt): Move variable declarations to
420         start of block.
421         (do_neon_ext): Fix sign of comparison.
422
423 2008-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
424
425         From Jie Zhang  <jie.zhang@analog.com>
426         * config/bfin-parse.y (asm_1): Check AREGS in comparison
427         instructions. And call yyerror when comparing PREG with
428         DREG.
429         (check_macfunc_option): New.
430         (check_macfuncs): Check option by calling check_macfunc_option.
431         Fix comparison always true warnings.  Both scalar instructions
432         of vector instruction must share the same mode option.  Only allow
433         option mode at the end of the second instruction of the vector.
434         (asm_1): Check option by calling check_macfunc_option.
435
436         * config/bfin-parse.y (check_macfunc_option): Allow (IU)
437         option for multiply and multiply-accumulate to data register
438         instruction.
439         (check_macfuncs): Don't check if accumulator matches the data register
440         here.
441         (assign_macfunc): Check if accumulator matches the
442         data register in each rule that moves to the data
443         register.
444
445         * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
446         generated for LOOP_BEGIN and LOOP_END instructions.
447         (bfin_gen_loop): Likewise.
448
449 2008-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
450
451         * config/tc-s390.c (md_parse_option): z10 option added.
452
453 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
454
455         * aclocal.m4: Regenerate.
456         * configure: Likewise.
457         * Makefile.in: Likewise.
458         * doc/Makefile.in: Likewise.
459
460 2008-03-17  Adrian Bunk  <bunk@stusta.de>
461
462         PR 5946
463         * config/tc-hppa.c (is_same_frag): Delete.
464
465 2008-03-14  Sterling Augustine  <sterling@tensilica.com>
466
467         * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
468         RELAX_LOOP_END_ADD_NOP.
469
470 2008-03-13  Evandro Menezes  <evandro@yahoo.com>
471
472         PR gas/5895
473         * read.c (s_mexit): Warn if attempting to exit a macro when not
474         inside a macro definition.
475
476 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
477
478         * Makefile.am: Run "make dep-am".
479         * Makefile.in: Regenerate.
480         * configure: Regenerate.
481
482 2008-03-09  Paul Brook  <paul@codesourcery.com>
483
484         * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
485         * doc/c-arm.texi: Add cortex-a9.
486
487 2008-03-09  Paul Brook  <paul@codesourcery.com>
488
489         * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
490         (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
491         (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
492         (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
493         * doc/c-arm.texi: Document new ARM FPU variants.
494
495 2008-03-07  Paul Brook  <paul@codesourcery.com>
496
497         * config/tc-arm.c (md_apply_fix): Use correct offset range.
498
499 2008-03-07  Alan Modra  <amodra@bigpond.net.au>
500
501         * config/tc-ppc.c (ppc_setup_opcodes): Tidy.  Add code to test
502         for strict ordering of powerpc_opcodes, but disable for now.
503
504 2008-03-04  Paul Brook  <paul@codesourcery.com>
505
506         * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
507         (arm_ext_v7m): Rename...
508         (arm_ext_m): ... to this.  Include v6-M.
509         (do_t_add_sub): Allow narrow low-reg non flag setting adds.
510         (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
511         (md_assemble): Allow wide msr instructions.
512         (insns): Add classifications for v6-m instructions.
513         (arm_cpu_option_table): Add cortex-m1.
514         (arm_arch_option_table): Add armv6-m.
515         (cpu_arch): Add ARM_ARCH_V6M.  Fix numbering of other v6 variants.
516
517 2008-03-03  Sterling Augustine  <sterling@tensilica.com>
518             Bob Wilson  <bob.wilson@acm.org>
519
520         * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
521         (md_begin): Initialize it.
522         (resources_conflict): Use it.
523
524 2008-03-03  Sterling Augustine  <sterling@tensilica.com>
525
526         * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
527
528 2008-03-03  Denys Vlasenko <vda.linux@googlemail.com>
529             H.J. Lu  <hongjiu.lu@intel.com>
530
531         PR gas/5543
532         * read.c (pseudo_set): Don't allow global register symbol.
533
534         * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
535         global.
536
537 2008-03-03  H.J. Lu  <hongjiu.lu@intel.com>
538
539         PR gas/5543
540         * write.c (write_object_file): Don't allow symbols which were
541         equated to register.  Stop if there is an error.
542
543 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
544
545         * config/tc-ppc.h (struct _ppc_fix_extra): New.
546         (ppc_cpu): Declare.
547         (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
548         * config/tc-ppc.c (ppu_cpu): Make global.
549         (ppc_insert_operand): Add ppu_cpu parameter.
550         (md_assemble): Adjust for above change.
551         (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
552
553 2008-02-22  Nick Clifton  <nickc@redhat.com>
554
555         * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
556         targeted ARM ports, otherwise just skip generating the reloc.
557
558 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
559
560         * doc/c-i386.texi: Update -march= and .arch.
561
562 2008-02-18  Nick Clifton  <nickc@redhat.com>
563
564         * config/tc-mn10300.c (has_known_symbol_location): New function.
565         Do not regard weak symbols as having a known location.
566         (md_estimate_size_before_relax): Use new function.
567         (md_pcrel_from): Do not compute a pcrel against a weak symbol.
568
569 2008-02-18  Jan Beulich  <jbeulich@novell.com>
570
571         * config/tc-i386.c (match_template): Disallow 'l' suffix when
572         currently selected CPU has no 32-bit support.
573         (parse_real_register): Do not return registers not available on
574         currently selected CPU.
575
576 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
577
578         * config/tc-i386.c (process_immext): Fix format.
579
580 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
581
582         * config/tc-i386.c (inoutportreg): New.
583         (process_immext): New.
584         (md_assemble): Use it.
585         (update_imm): Use imm16 and imm32s.
586         (i386_att_operand): Use inoutportreg.
587
588 2008-02-14  H.J. Lu  <hongjiu.lu@intel.com>
589
590         * config/tc-i386.c (operand_type_all_zero): New.
591         (operand_type_set): Likewise.
592         (operand_type_equal): Likewise.
593         (cpu_flags_all_zero): Likewise.
594         (cpu_flags_set): Likewise.
595         (cpu_flags_equal): Likewise.
596         (UINTS_ALL_ZERO): Removed.
597         (UINTS_SET): Likewise.
598         (UINTS_CLEAR): Likewise.
599         (UINTS_EQUAL): Likewise.
600         (cpu_flags_match): Updated.
601         (smallest_imm_type): Likewise.
602         (set_cpu_arch): Likewise.
603         (md_assemble): Likewise.
604         (optimize_imm): Likewise.
605         (match_template): Likewise.
606         (process_suffix): Likewise.
607         (update_imm): Likewise.
608         (process_drex): Likewise.
609         (process_operands): Likewise.
610         (build_modrm_byte): Likewise.
611         (i386_immediate): Likewise.
612         (i386_displacement): Likewise.
613         (i386_att_operand): Likewise.
614         (parse_real_register): Likewise.
615         (md_parse_option): Likewise.
616         (i386_target_format): Likewise.
617
618 2008-02-14  Dimitry Andric  <dimitry@andric.com>
619
620         PR gas/5712
621         * config/tc-arm.c (s_arm_unwind_save): Advance the input line
622         pointer past the comma after parsing a floating point register
623         name.
624
625 2008-02-14  Hakan Ardo  <hakan@debian.org>
626
627         PR gas/2626
628         * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
629         to AVR_ISA_2xxe.
630         (avr_operand): Disallow post-increment addressing in the lpm
631         instruction for the attiny26.
632
633 2008-02-13  Jan Beulich  <jbeulich@novell.com>
634
635         * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
636         if not in Intel mode.
637         (i386_intel_operand): Ignore segment overrides in immediate and
638         offset operands.
639         (intel_e11): Range-check i.mem_operands before use as array
640         index. Filter out FLAT for uses other than as segment override.
641         (intel_get_token): Remove broken promotion of "FLAT:" to mean
642         "offset FLAT:".
643
644 2008-02-13  Jan Beulich  <jbeulich@novell.com>
645
646         * config/tc-i386.c (intel_e09): Also special-case 'bound'.
647
648 2008-02-13  Jan Beulich  <jbeulich@novell.com>
649
650         * config/tc-i386.c (allow_pseudo_reg): New.
651         (parse_real_register): Check for NULL just once. Allow all
652         register table entries when allow_pseudo_reg is non-zero.
653         Don't allow any registers without type when allow_pseudo_reg
654         is zero.
655         (tc_x86_regname_to_dw2regnum): Replace with ...
656         (tc_x86_parse_to_dw2regnum): ... this.
657         (tc_x86_frame_initial_instructions): Adjust for above change.
658         * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
659         (tc_parse_to_dw2regnum): New.
660         (tc_x86_regname_to_dw2regnum): Replace with ...
661         (tc_x86_parse_to_dw2regnum): ... this.
662         * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
663         (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
664         error handling.
665
666 2008-02-12  Nick Clifton  <nickc@redhat.com>
667
668         * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
669         argument.
670         (tic4x_insn_add): Likewise.
671         (md_begin): Drop cast that was discarding a const qualifier.
672         * config/tc-d30v.c (get_reloc): Add const qualifier to op
673         argument.
674         (build_insn): Drop cast that was discarding a const qualifier.
675
676 2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>
677
678         * config/tc-i386.c (cpu_arch): Add .xsave.
679         (md_show_usage): Add .xsave.
680
681         * doc/c-i386.texi: Add xsave to -march=.
682
683 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
684
685         * read.c (s_weakref): Don't pass unadorned NULL to concat.
686         * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
687
688 2008-02-05  Sterling Augustine  <sterling@tensilica.com>
689
690         * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
691         checks into assertions.  When relaxation produces an operation that
692         does not fit in the current FLIX instruction, make sure that the
693         operation is relaxed as needed to account for being placed following
694         the current instruction.
695
696 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
697
698         PR 5715
699         * configure: Regenerated.
700
701 2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
702
703         * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
704
705 2008-01-31  Marc Gauthier  <marc@tensilica.com>
706
707         * configure.tgt (xtensa*-*-*): Recognize processor variants.
708
709 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
710
711         * read.c: (emit_expr): Correct for mingw use of printf size
712         specifier.
713
714 2008-01-24  Bob Wilson  <bob.wilson@acm.org>
715
716         * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
717         can only be encoded in FLIX instructions but are not specified as such.
718         (Xtensa Automatic Alignment): Remove obsolete comment about debugging
719         labels.
720
721 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
722
723         * NEWS: Mention new command line options for x86 targets.
724
725 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
726
727         * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
728
729 2008-01-23  Eric B. Weddington  <eric.weddington@atmel.com>
730
731         * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
732
733 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
734
735         * config/tc-i386.c (md_show_usage): Show more processors for
736         -march=/-mtune=.
737
738 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
739
740         * config/tc-i386.c (i386_target_format): Remove cpummx2.
741
742 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
743
744         * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
745         (XXX_MNEM_SUFFIX): Likewise.
746         (END_OF_INSN): Likewise.
747         (templates): Likewise.
748         (modrm_byte): Likewise.
749         (rex_byte): Likewise.
750         (DREX_XXX): Likewise.
751         (drex_byte): Likewise.
752         (sib_byte): Likewise.
753         (processor_type): Likewise.
754         (arch_entry): Likewise.
755         (cpu_sub_arch_name): Remove const.
756         (cpu_arch): Add .vmx and .smx.
757         (set_cpu_arch): Append cpu_sub_arch_name.
758         (md_parse_option): Support -march=CPU[,+EXTENSION...].
759         (md_show_usage): Updated.
760
761         * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
762         (XXX_MNEM_SUFFIX): Likewise.
763         (END_OF_INSN): Likewise.
764         (templates): Likewise.
765         (modrm_byte): Likewise.
766         (rex_byte): Likewise.
767         (DREX_XXX): Likewise.
768         (drex_byte): Likewise.
769         (sib_byte): Likewise.
770         (processor_type): Likewise.
771         (arch_entry): Likewise.
772
773         * doc/as.texinfo: Update i386 -march option.
774
775         * doc/c-i386.texi: Update -march= for ISA.
776
777 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
778
779         * config/tc-xtensa.c (xtensa_leb128): New function.
780         (md_pseudo_table): Use it for sleb128 and uleb128.
781         (is_leb128_expr): New internal flag.
782         (xtensa_symbol_new_hook): Check new flag.
783
784 2008-01-16  Eric B. Weddington  <eric.weddington@atmel.com>
785
786         * config/tc-avr.c (mcu_types): Change opcode set for avr3,
787         at90usb82, at90usb162.
788         * doc/c-avr.texi: Change architecture grouping for at90usb82,
789         at90usb162.
790         These changes support the new avr35 architecture group in gcc.
791
792 2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>
793
794         * config/tc-i386.c (md_assemble): Also zap movzx and movsx
795         suffix for AT&T syntax.
796
797 2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>
798
799         * config/tc-i386.c (match_reg_size): New.
800         (match_mem_size): Likewise.
801         (operand_size_match): Likewise.
802         (operand_type_match): Also clear all size fields.
803         (match_template): Skip Intel syntax when in AT&T syntax.
804         Call operand_size_match to check operand size.
805         (i386_att_operand): Set the mem field to 1 for memory
806         operand.
807         (i386_intel_operand): Likewise.
808
809 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
810
811         PR gas/5534
812         * config/tc-i386.c (_i386_insn): Update comment.
813         (operand_type_match): Also clear unspecified.
814         (operand_type_register_match): Likewise.
815         (parse_operands): Initialize unspecified.
816         (i386_intel_operand): Likewise.
817         (match_template): Check memory and accumulator operand size.
818         (i386_att_operand): Clear unspecified on register operand.
819         (intel_e11): Likewise.
820         (intel_e09): Set operand size and clean unspecified for
821         "XXX PTR".
822
823 2008-01-11  Andreas Schwab  <schwab@suse.de>
824
825         * read.c (s_space): Declare `repeat' as offsetT.
826
827 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
828
829         * config/tc-i386.c (match_template): Check processor support
830         first.
831
832 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
833
834         * config/tc-i386.c (match_template): Continue if processor
835         doesn't match.
836
837 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
838
839         * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
840         unwind personality function address.
841
842 2008-01-09  Bob Wilson  <bob.wilson@acm.org>
843
844         * dwarf2dbg.c (out_sleb128): Delete.
845         (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
846         (out_fixed_inc_line_addr): Delete.
847         (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
848         size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
849         (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
850         (process_entries): Remove calls to out_fixed_inc_line_addr.  When
851         DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
852         * read.h (emit_expr_fix): New prototype.
853         * read.c (emit_expr): Move code to emit_expr_fix and use it here.
854         (emit_expr_fix): New.
855
856 2008-01-09  H.J. Lu  <hongjiu.lu@intel.com>
857
858         * config/tc-i386.c (match_template): Check register size
859         only when size of operands can be encoded the canonical way.
860
861 2008-01-08  H.J. Lu  <hongjiu.lu@intel.com>
862
863         * config/tc-i386.c (i386_operand): Renamed to ...
864         (i386_att_operand): This.
865         (parse_operands): Updated.
866
867 2008-01-05  H.J. Lu  <hongjiu.lu@intel.com>
868
869         * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
870
871         * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
872         only.
873         (md_assemble): Remove Intel mode workaround.
874         (match_template): Check support for old gcc, AT&T mnemonic
875         and Intel Syntax.
876         (md_parse_option): Don't set intel_mnemonic to 0 for
877         OPTION_MOLD_GCC.
878
879 2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>
880
881         * config/tc-i386.h: Update copyright to 2008.
882
883 2008-01-04  Nick Clifton  <nickc@redhat.com>
884
885         * config/tc-ppc.c (parse_cpu): Preserve the settings of the
886         PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
887
888 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
889
890         * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
891         of SYSV386_COMPAT.
892
893 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
894
895         * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
896         (cpu_flags_not): Likewise.
897         (cpu_flags_match): Updated to check 64bit and arch.
898         (set_code_flag): Remove cpu_arch_flags_not.
899         (set_16bit_gcc_code_flag): Likewise.
900         (set_cpu_arch): Likewise.
901         (md_begin): Likewise.
902         (parse_insn): Call cpu_flags_match to check 64bit and arch.
903         (match_template): Likewise.
904
905 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
906
907         * config/tc-i386.c (process_drex): Initialize modrm_reg and
908         modrm_regmem to 0 instead of None.
909
910 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
911
912         * config/tc-i386.c (match_template): Use the xmmword field
913         instead of no_xsuf.
914
915 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
916
917         * config/tc-i386.c (process_suffix): Fix a typo.
918
919 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
920
921         PR gas/5534
922         * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
923         Check memory size in Intel mode.
924         (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
925         (intel_e09): Likewise.
926
927         * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
928
929 2008-01-02  Catherine Moore  <clm@codesourcery.com>
930
931         * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
932
933 For older changes see ChangeLog-2007
934 \f
935 Local Variables:
936 mode: change-log
937 left-margin: 8
938 fill-column: 74
939 version-control: never
940 End: