2011-03-30 Tristan Gingold <gingold@adacore.com>
[binutils-gdb.git] / gas / ChangeLog
1 2011-03-30 Tristan Gingold <gingold@adacore.com>
2
3 * config/tc-ppc.c (ppc_frob_symbol): Convert stsym symbols value
4 to offset only if within is set.
5 (ppc_stabx): Reformat. For stsym stabs, add a check and set
6 within only for symbols.
7
8 2011-03-29 Richard Henderson <rth@redhat.com>
9
10 PR 12610
11 * config/tc-alpha.c (s_alpha_align): Don't auto-align a previous
12 label; zap alpha_insn_label.
13
14 2011-03-29 H.J. Lu <hongjiu.lu@intel.com>
15
16 * config/tc-i386.c (handle_quad): Properly handle multiple
17 operands.
18
19 2011-03-29 Mike Frysinger <vapier@gentoo.org>
20
21 * config/bfin-parse.y (BYTEUNPACK): Return yyerror when dest
22 reg $2 is the same as dest reg $4.
23
24 2011-03-29 Mike Frysinger <vapier@gentoo.org>
25
26 * config/bfin-parse.y (BYTEOP16M): Return yyerror when dest
27 reg $2 is the same as dest reg $4.
28
29 2011-03-29 Mike Frysinger <vapier@gentoo.org>
30
31 * config/bfin-parse.y (BYTEOP16P): Return yyerror when dest
32 reg $2 is the same as dest reg $4.
33
34 2011-03-28 Mike Frysinger <vapier@gentoo.org>
35
36 * config/bfin-parse.y (16bit acc add): Return yyerror when dest
37 reg $1 is the same as dest reg $7.
38
39 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
40
41 * config/tc-i386.c (handle_quad): New.
42 (md_pseudo_table): Add "quad".
43
44 2011-03-26 John Marino <binutils@marino.st>
45
46 * configure.tgt: Fix support for *-*-dragonfly*.
47 * config/tc-i386.c: define SVR4_COMMENT_CHARS for dragonfly.
48 * config/te-dragonfly.h: New file.
49
50 2011-03-24 Eric B. Weddington <eric.weddington@atmel.com>
51
52 * config/tc-avr.c (mcu_types): Add new devices: atmega325pa,
53 atmega3250pa, atmega3290pa, atmega16hvbrevb, atmega32hvbrevb,
54 at90pwm161.
55 * doc/c-avr.texi: Document new device names.
56
57 2011-03-24 Mike Frysinger <vapier@gentoo.org>
58
59 * config/bfin-parse.y (dual 32bit add/sub): Return yyerror when dest
60 reg $1 is the same as dest reg $7.
61 (quad 16bit add/sub): Return yyerror when dest reg $1 is the same as
62 dest reg $7.
63
64 2011-03-24 Mike Frysinger <vapier@gentoo.org>
65
66 * config/bfin-parse.y (check_macfuncs): Clarify error message when
67 P is mismatched. Check destination regno are off by one when P is
68 set, or are equal when P is not set.
69
70 2011-03-23 Mike Frysinger <vapier@gentoo.org>
71
72 * config/bfin-parse.y (SEARCH): Return yyerror when dest reg $2 is
73 the same as dest reg $4.
74 (BITMUX): Return yyerror when dest reg $3 is the same as dest reg $5.
75
76 2011-03-23 Eric B. Weddington <eric.weddington@atmel.com>
77
78 * config/tc-avr.c (mcu_types): Add new xmega devices: atxmega64a1u,
79 atxmega128a1u, atxmega16x1, atxmega32x1, atxmega128b1, atxmega256a3bu.
80 * doc/c-avr.texi: Document new device names.
81
82 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
83
84 * config/tc-avr.c (struct avr_opcodes_s): Add opcode field.
85 (AVR_INSN): Change definition to match.
86 (avr_opcodes): Likewise, change to match.
87 (mcu_types): Add XMEGA architecture names and new XMEGA device names.
88 (md_show_usage): Add XMEGA architecture names.
89 (avr_operand): Add 'E' constraint for DES instruction of XMEGA devices.
90 Add support for SPM Z+ instruction.
91 * doc/c-avr.texi: Add documentation for XMEGA architectures and
92 devices.
93
94 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
95
96 * config/tc-avr.c (md_show_usage): Add "Assembler" text to output.
97
98 2011-03-18 Alan Modra <amodra@gmail.com>
99
100 * config/obj-elf.c (elf_frob_symbol): Report S_SET_SIZE symbol
101 on .size expression errors rather than symbols in the size expression.
102
103 2011-03-18 Alan Modra <amodra@gmail.com>
104
105 * input-scrub.c (line_numberT): Delete.
106 (input_scrub_close): Reset line counters.
107 * messages.c (as_show_where): Don't print invalid line number.
108 (as_warn_internal, as_bad_internal): Likewise.
109
110 2011-03-18 Alan Modra <amodra@gmail.com>
111
112 * read.c (read_a_source_file): Remove md_after_pass_hook.
113 Move "quit" label before set of dot_symbol.
114 * config/tc-d10v.h (md_after_pass_hook): Don't define.
115 * config/tc-d30v.h (md_after_pass_hook): Likewise.
116 * config/tc-m32r.h (md_after_pass_hook): Likewise.
117 (md_cleanup): Define to call m32r_fill_insn.
118
119 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
120
121 * config/tc-s390.c (md_parse_option): Add -march=all option which
122 switches to the highest available CPU.
123
124 2011-03-17 Alan Modra <amodra@gmail.com>
125
126 PR 12569
127 * expr.c (operand): Correct passing of "mode" to expr.
128 * read.c (do_org): Allow expr_section.
129 (get_known_segmented_expression): Don't assert anything about the
130 segment.
131
132 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
133
134 * as.c (show_usage): Add --size-check=.
135 (parse_args): Add and handle OPTION_SIZE_CHECK.
136
137 * as.h (flag_size_check): New.
138
139 * config/obj-elf.c (elf_frob_symbol): Use as_bad to report
140 bad .size directive only for --size-check=error.
141
142 * doc/as.texinfo: Document --size-check=.
143
144 2011-03-14 Mike Frysinger <vapier@gentoo.org>
145
146 * config/tc-bfin.c (bfin_cpus[]): Add 0.4 for
147 bf542/bf544/bf547/bf548/bf549.
148
149 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
150
151 * config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
152 determine whether a relocation is needed.
153 (md_apply_fix, arm_apply_sym_value): Likewise.
154
155 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
156
157 * config/tc-arm.c (arm_adjust_symtab): Set the branch type
158 for Thumb symbols.
159
160 2011-03-11 Nick Clifton <nickc@redhat.com>
161
162 * remap.c (remap_debug_filename): Always allocate a buffer for the
163 returned pointer.
164 * stabs.c (stabs_generate_asm_file): Free the pointer returned by
165 remap_debug_filename.
166
167 2011-03-10 Michael Snyder <msnyder@vmware.com>
168
169 Revert the following change:
170 * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
171 (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
172
173 2011-03-10 Alan Modra <amodra@gmail.com>
174
175 * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
176 TARGET_SYMBOL_FIELDS): Don't define.
177 * gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
178
179 2011-03-09 Michael Snyder <msnyder@vmware.com>
180
181 * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
182 (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
183 (emit_fixed_inc_line_addr): Assign instead of conditional in
184 assert.
185
186 2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
187
188 * config/obj-elf.c (elf_frob_symbol): Mention symbol name in
189 non-constant .size expression.
190
191 2011-03-02 Nick Clifton <nickc@redhat.com>
192
193 * ecoff.c: Incldue filenames.h
194
195 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
196
197 * depend.c (register_dependency): Use filename_(n)cmp.
198 * dwarf2dbg.c (get_filenum): Likewise.
199 * ecoff.c (add_file): Likewise.
200 (ecoff_generate_asm_lineno): Likewise.
201 * input-scrub.c (new_logical_line_flags): Likewise.
202 * listing.c (file_info): Likewise.
203 (listing_newline): Likewise.
204 * remap.c (remap_debug_filename): Likewise.
205 * stabs.c (generate_asm_file): Likewise.
206 (stabs_generate_asm_lineno): Likewise.
207
208 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
209
210 * config/tc-mips.c (append_insn): Disable branch relaxation for
211 DSP instructions.
212
213 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
214
215 * config/tc-mips.c (macro): Handle M_PREF_AB.
216
217 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
218
219 * config/tc-mips.c (RELAX_BRANCH_ENCODE): Encode the temporary
220 register to use.
221 (RELAX_BRANCH_UNCOND): Adjust accordingly.
222 (RELAX_BRANCH_LIKELY): Likewise.
223 (RELAX_BRANCH_LINK): Likewise.
224 (RELAX_BRANCH_TOOFAR): Likewise.
225 (RELAX_BRANCH_AT): New macro.
226 (append_insn): Encode the temporary register to use in standard
227 MIPS branch relaxation.
228 (relaxed_branch_length): Update according to changes to
229 RELAX_BRANCH_ENCODE.
230 (md_convert_frag): Use the encoded register as the temporary.
231
232 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
233
234 * config/tc-mips.c (mips_fix_adjustable): On REL targets also
235 reject PC-relative relocations.
236
237 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
238
239 * config/tc-mips.c (md_convert_frag): Correct message
240 capitalization.
241
242 2011-02-28 Alan Modra <amodra@gmail.com>
243
244 * symbols.c (report_op_error): Remove unnecessary forward declaration.
245 Add "op" parameter. Report operator and operand segments in error
246 message, not operand symbols.
247 (resolve_symbol_value): Always set segment for equated symbols, not
248 just when finalizing. Adjust report_op_error calls.
249
250 2011-02-25 H.J. Lu <hongjiu.lu@intel.com>
251
252 * config/tc-i386.c (reloc): Don't sign-check 4-byte relocations
253 if 64bit relocations aren't allowed.
254
255 2011-02-25 Alan Modra <amodra@gmail.com>
256
257 PR gas/12519
258 * config/obj-elf.c (elf_frob_symbol): Properly handle size expression.
259
260 2011-02-21 Maciej W. Rozycki <macro@codesourcery.com>
261
262 * config/tc-mips.c (mips_ip) <'o'>: Remove duplicate
263 initialization of offset_reloc.
264
265 2011-02-15 Richard Henderson <rth@redhat.com>
266
267 * dw2gencfi.c (dot_cfi_dummy): New.
268 (cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New.
269 * read.c (pobegin): Unconditionally call cfi_pop_insert.
270
271 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
272
273 * configure: Regenerate.
274
275 2011-02-13 Mike Frysinger <vapier@gentoo.org>
276
277 * config/bfin-lex.l (BYTEOP2M): Remove tokenization.
278 * config/bfin-parse.y (BYTEOP2M): Delete token.
279 (asm_1): Remove BYTEOP2M insn matching.
280
281 2011-02-12 Mike Frysinger <vapier@gentoo.org>
282
283 * config/bfin-defs.h: Include opcode/bfin.h.
284 (M_S2RND, M_T, M_W32, M_FU, M_TFU, M_IS, M_ISS2, M_IH, M_IU): Delete.
285
286 2011-02-11 Mike Frysinger <vapier@gentoo.org>
287
288 * doc/c-bfin.texi (Instruction Delimiting): Fix occur typo.
289 (Modify Registers): Fix subtracted typo.
290 (.byte2): Extend and swap descriptions with .byte4.
291 (.byte4): Extend and swap descriptions with .byte2.
292 (.db, .dw, .dd): Document behavior.
293
294 2011-02-11 Mike Frysinger <vapier@gentoo.org>
295
296 * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP.
297
298 2011-02-11 Alan Modra <amodra@gmail.com>
299
300 * doc/c-ppc.texi (PowerPC-Opts <-nops>): Clarify.
301
302 2011-02-10 Alan Modra <amodra@gmail.com>
303
304 * doc/as.texinfo (Overview): Add missing markup around Blackfin
305 and PowerPC options.
306
307 2011-02-10 Alan Modra <amodra@gmail.com>
308
309 * config/tc-ppc.c (md_show_usage): Remove -l and -b. Add -K PIC.
310 * doc/as.texinfo: Refer to and include c-ppc.texi for PowerPC options.
311 (Overview <Target PowerPC options>): Add a number of missing options.
312 * doc/c-ppc.texi: Likewise. Add markup for use in manpage generation.
313
314 2011-02-08 H.J. Lu <hongjiu.lu@intel.com>
315
316 PR gas/6957
317 * config/tc-i386.c (i386_align_code): Use f32_patt when tuning
318 for i686.
319
320 2011-02-08 H.J. Lu <hongjiu.lu@intel.com>
321
322 * config/tc-i386.c (set_cpu_arch): Also update cpu_arch_isa_flags
323 for ISA extensions.
324 (md_parse_option): Likewise.
325
326 2011-02-04 Bernd Schmidt <bernds@codesourcery.com>
327
328 * doc/as.texinfo (Target TIC6X options): Don't mention "-matomic".
329 * doc/c-tic6x.texi (TIC6X Directives): Don't mention ".atomic".
330 (TIC6X Options): Don't mention "-matomic".
331 * config/tc-tic6x.c (OPTION_MATOMIC, OPTION_MNO_ATOMIC): Delete.
332 (md_longopts): Remove corresponding entries.
333 (md_parse_option): Don't handle them.
334 (md_show_usage): Don't document them.
335 (tic6x_atomic): Delete variable.
336 (tic6x_update_features): Always copy tic6x_arch_enable to
337 tic6x_features.
338 (tic6x_arch_enable): Remove references to TIC6X_INSN_ATOMIC.
339 (s_tic6x_atomic, s_tic6x_noatomic): Remove functions.
340 (md_pseudo_table): Remove ".atomic" and ".noatomic".
341
342 2011-01-31 Nick Clifton <nickc@redhat.com>
343
344 * write.c (write_contents): Include output file name and bfd error
345 value when reporting the inability to write to the output file.
346 * config/tc-rx.c (rx_handle_align): Do not insert NOPs into align
347 frag that has a non-zero fill value.
348
349 2011-01-27 DJ Delorie <dj@redhat.com>
350
351 * config/tc-rx.c (md_convert_frag): If we can't compute the target
352 address, zero out the values stored in the object file to make
353 objdump's output consistent.
354
355 2011-01-26 Kai Tietz <kai.tietz@onevision.com>
356
357 * config/tc-i386.c (md_begin): Set for x64 windows COFF target
358 x86_dwarf2_return_column to 32.
359
360 2011-01-20 Nick Clifton <nickc@redhat.com>
361
362 PR gas/12384
363 * config/tc-h8300.c (constant_fits_width_p): Use correct type for
364 comparison.
365
366 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
367
368 * write.c (compress_debug): Return if section size is smaller
369 than 32 bytes.
370
371 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
372
373 PR gas/12409
374 * write.c (compress_debug): Return if section size is 0.
375
376 2011-01-18 Mingfeng Wu <mingfeng@faraday-tech.com>
377
378 * config/tc-arm.c (arm_cpus): Add Faraday ARMv5TE compatible
379 cores: fa606te, fa616te, fmp626. Modify the VFP of fa626te.
380 * doc/c-arm.texi (ARM Options): Add -mcpu={fa606te, fa616te,
381 fmp626} options.
382
383 2011-01-18 Nick Clifton <nickc@redhat.com>
384
385 PR gas/12390
386 * doc/all.texi: Add NS32K
387 * doc/as.texinfo: Remove target specific details of which
388 characters act as comment initiators and statement separators into
389 individual target specific files.
390 * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of
391 the hash character at the start of a line.
392 * doc/c-arm.texi (ARM-Chars): Likewise.
393 * doc/c-avr.texi (AVR-Chars): Likewise.
394 * doc/c-d10v.texi (D10V-Chars): Likewise.
395 * doc/c-d30v.texi (D30V-Chars): Likewise.
396 * doc/c-mmix.texi (MMIX-Chars): Likewise.
397 * doc/c-s390.texi (s390 characters): Likewise.
398 * doc/c-sh.texi (SH-Chars): Likewise.
399 * doc/c-sh64.texi (SH64-Chars): Likewise.
400 * doc/c-sparc.texi (SPARC-Chars): Likewise.
401 * doc/c-tic6x.texi (TIC6X Syntax): Likewise.
402 * doc/c-xtensa.texi (Xtensa Syntax): Likewise.
403 * doc/c-z80.texi (Z80-Chars): Likewise.
404 * doc/c-z8k.texi (Z8000-Chars): Likewise.
405 * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character.
406 * doc/c-arc.texi (ARC-Chars): Fill in this subsection.
407 * doc/c-bfin.texi (Blackfin Syntax): Document line comment and
408 line separator characters.
409 * doc/c-cr16.texi (CR16 Syntax): Likewise.
410 * doc/c-i386.texi (i386-Chars): Likewise.
411 * doc/c-i860.texi (i860-Chars): Likewise.
412 * doc/c-i960.texi (i960-Chars): Likewise.
413 * doc/c-ip2k.texi (IP2K-Chars): Likewise.
414 * doc/c-lm32.texi (LM32-Chars): likewise.
415 * doc/c-m32c.texi (M32C-Chars): Likewise.
416 * doc/c-m68hc11.texi (M68HC11-syntax): Likewise.
417 * doc/c-m68k.texi (M68K-Chars): Likewise.
418 * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise.
419 * doc/c-msp430.texi (MSP430-Chars): Likewise.
420 * doc/c-mt.texi (MT-Chars): Likewise.
421 * doc/c-ns32k.texi (NS32K-Chars): Likewise.
422 * doc/c-pj.texi (PJ-Chars): Likewise.
423 * doc/c-ppc.texi (PowerPC-Chars): Likewise.
424 * doc/c-rx.texi (RX-Chars): Likewise.
425 * doc/c-score.texi (SCORE-Chars): Likewise.
426 * doc/c-tic54x.texi (TIC54X-Chars): Likewise.
427 * doc/c-v850.texi (V850-Chars): Likewise.
428 * doc/c-vax.texi (VAX-Chars): Likewise.
429 * doc/c-xc16x.texi (xc16x-Chars): Likewise.
430
431 2011-01-17 Quentin Neill <quentin.neill@amd.com>
432
433 * config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS.
434
435 * doc/c-i386.texi (i386-TBM): New section.
436
437 2011-01-16 H.J. Lu <hongjiu.lu@intel.com>
438
439 * config/tc-i386.c (disallow_64bit_disp): Renamed to ...
440 (disallow_64bit_reloc): This.
441 (md_assemble): Don't check movabs for x32 mode here.
442 (i386_target_format): Updated.
443 (tc_gen_reloc): Check if 64bit relocations are allowed.
444
445 2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
446
447 * config/tc-i386.c (disallow_64bit_disp): New.
448 (x86_elf_abi): Replace X86_64_LP64_ABI/X86_64_ILP32_ABI with
449 X86_64_ABI/X86_64_X32_ABI.
450 (md_assemble): Don't allow movabs with relocation in x32 mode.
451 (i386_target_format): Updated.
452
453 2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
454
455 * config/tc-i386.c (OPTION_N32): Renamed to ...
456 (OPTION_X32): This.
457 (md_longopts): Replace n32 with x32.
458 (md_parse_option): Updated.
459 (md_show_usage): Likewise.
460
461 * doc/c-i386.texi: Replace --n32 with --x32.
462
463 2011-01-11 Mingjie Xing <mingjie.xing@gmail.com>
464
465 * config/tc-mips.c (mips_ip): Update error messages. Take an
466 unadjusted offset for "+c" argument.
467
468 2011-01-10 Nick Clifton <nickc@redhat.com>
469
470 * config/tc-i386.c (x86_elf_abi): Only define for targets that use
471 it.
472
473 2011-01-10 Nick Clifton <nickc@redhat.com>
474
475 * config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
476 part of the file.
477
478 2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
479 Glauber de Oliveira Costa <glommer@gmail.com>
480
481 * doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
482 .tlsdescseq directive.
483 * config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
484 following a symbol.
485 (s_arm_tls_descseq): New directive.
486 (md_pseudo_table): Add it.
487 (encode_branch): Allow TLS_CALL relocs too.
488 (do_t_blx, do_t_branch23): Use encode_branch.
489 (reloc_names): Add tlsdesc and tlscall.
490 (md_apply_fix): Process tls desc relocations.
491 (tc_gen_reloc): Likewise.
492 (arm_fix_adjustable): Likewise.
493
494 2011-01-07 Quentin Neill <quentin.neill@amd.com>
495
496 * config/tc-i386.c (cpu_arch): Add CPU_BMI_FLAGS.
497
498 * doc/c-i386.texi (i386-BMI): New section.
499
500 2011-01-06 Paul Koning <ni1d@arrl.net>
501
502 * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
503 references to absolute addresses.
504
505 2011-01-05 DJ Delorie <dj@redhat.com>
506
507 * config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
508 instead of an RH_NEG32 one.
509
510 2011-01-05 Jonathan Wakely <jwakely.gcc@gmail.com>
511
512 * doc/c-i386.texi: Clarify --n32.
513
514 2011-01-04 H.J. Lu <hongjiu.lu@intel.com>
515
516 * config/tc-i386.c (build_modrm_byte): Allow encoding 32/64bit
517 integer registers in VEX.vvvv. Check register-only source
518 operand when two source operands are swapped. Properly update
519 destination when two source operands are swapped.
520
521 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
522
523 * gas.c (parse_args): Update copyright to 2011.
524
525 For older changes see ChangeLog-2010
526 \f
527 Local Variables:
528 mode: change-log
529 left-margin: 8
530 fill-column: 74
531 version-control: never
532 End: