2012-07-26 Segher Boessenkool <segher@kernel.crashing.org>
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2012-07-26 Segher Boessenkool <segher@kernel.crashing.org>
2
3 * listing.c (struct list_message): New.
4 (struct list_info_struct): Delete "message". Add "messages"
5 and "last_message".
6 (listing_message): Adjust.
7 (listing_newline): Adjust.
8 (print_lines): Adjust.
9
10 2012-07-24 Jan Beulich <jbeulich@suse.com>
11
12 * config/tc-i386-intel.c (i386_intel_simplify_register): Handle
13 xmm/ymm index register being specified first as well as esp/rsp
14 base register being specified last in a memory operand.
15
16 2012-07-24 Jan Beulich <jbeulich@suse.com>
17
18 * config/tc-i386-intel.c (i386_intel_simplify_register):
19 Replace literal 4 by corresponding ESP_REG_NUM.
20
21 2012-07-24 Sandra Loosemore <sandra@codesourcery.com>
22 Jie Zhang <jzhang918@gmail.com>
23
24 * config/tc-arm.c (md_apply_fix): Use encoding A2 of ADR
25 if offset is negative.
26
27 2012-07-16 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28
29 * config/tc-i386.c: Add ADX, RDSEED and PRFCHW asm directives.
30 * doc/c-i386.texi: Document the new directives.
31
32 2012-07-02 Nick Clifton <nickc@redhat.com>
33
34 * write.c (fixup_segment): Only perform the subtraction of an
35 fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is
36 properly defined.
37 * config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.
38
39 2012-06-30 Alan Modra <amodra@gmail.com>
40
41 PR gas/14315
42 * config/obj-elf.c (obj_elf_weak): Don't set local.
43
44 2012-06-30 Johan Olmutz Nielsen <jnielsen@ddci.com>
45
46 * frags.h (frag_offset_fixed_p): Update prototype.
47 * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT.
48 * expr.c (expr, resolve_expression): Likewise for frag_off var.
49
50 2012-06-29 Nick Clifton <nickc@redhat.com>
51
52 PR gas/14263
53 * config/tc-arm.c (parse_operands): Initialise val.
54
55 2012-06-28 Nick Clifton <nickc@redhat.com>
56
57 PR gas/14260
58 * config/tc-arm.c (encode_arm_addr_mode_common): Generate an error
59 message if literal pool addressing is used.
60
61 2012-06-28 Nick Clifton <nickc@redhat.com>
62
63 * dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
64 linker relaxation.
65 (dwarf2_gen_line_info): Generate real, local, labels for line
66 numbers.
67 (dwarf2dbg_convert_frag): Do not finalize the computation of the
68 frag's symbol value when linker relaxation is enabled.
69 (ADDR_DELTA_LIMIT): Define.
70 (size_fixed_inc_line_addr): Use ADDR_DELTA_LIMIT.
71 (emit_fixed_inc_line_addr): Likewise.
72 * write.c (fixup_segment): If the subtraction of two symbols
73 cannot be resolved but is valid, then prevent bogus range warnings
74 by pre-biasing add_number.
75 * config/tc-h8300.h (DWARF2_USE_FIXED_ADVANCE_PC): Define to 0.
76
77 2012-06-22 Roland McGrath <mcgrathr@google.com>
78
79 * NEWS: Mention 'rep ret' too.
80
81 * config/tc-i386.c (parse_insn): Don't complain about REP prefix
82 when the template has opcode_modifier.repprefixok set.
83 * NEWS: Mention the change.
84
85 2012-06-18 Iain Sandoe <iain@codesourcery.com>
86
87 * configure.in: Check DECLS for free, getenv, malloc, realloc,
88 * configure: Regenerate.
89 * config.in: Likewise.
90
91 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
92
93 * config/tc-i386.c (x86_address_bytes): New.
94 * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
95 (x86_address_bytes): Likewise.
96
97 2012-06-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
98
99 PR gas/12698
100 * config/tc-arm.c (do_t_mrs): Do not require an m-profile
101 architecure when assembling for all archiectures.
102 (do_t_msr): Likewise.
103
104 2012-06-11 Georg-Johann Lay <avr@gjlay.de>
105
106 PR 13503
107 * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
108 from 2012-05-16.
109
110 2012-06-09 H.J. Lu <hongjiu.lu@intel.com>
111
112 * input-scrub.c (input_scrub_include_sb): Use sb_build to
113 allocate sufficient space for from_sb. Use sb_terminate to
114 terminate string.
115 * read.c (read_a_source_file): Use sb_build to allocate
116 sufficient space and replace sb_add_string with sb_add_buffer.
117 (s_macro): Likewise.
118 (input_scrub_insert_line): Likewise.
119 (s_irp): Use sb_build to allocate sufficient space.
120 (do_repeat): Use sb_build to allocate sufficient space
121 for many.
122 * sb.c (sb_build): Remove static.
123 * sb.h (sb_build): New prototype.
124
125 2012-06-09 Alan Modra <amodra@gmail.com>
126
127 * sb.c: Include limits.h.
128 (dsize): Delete.
129 (MALLOC_OVERHEAD, INIT_ALLOC): Define.
130 (sb_new): Use INIT_ALLOC.
131 (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
132 (sb_terminate): Don't use sb_add_char.
133
134 2012-06-07 Alan Modra <amodra@gmail.com>
135
136 PR gas/14201
137 * sb.h (sb_max_power_two): Delete.
138 (struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
139 (sb_element): Delete.
140 (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
141 prototypes.
142 * sb.c (string_count, free_list): Delete.
143 (sb_build, sb_kill, sb_check): Rewrite.
144 (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
145 sb_skip_white, sb_skip_comma): Replace assorted int params,
146 vars and return types with size_t.
147 * input-scrub.c: Likewise.
148 * macro.c: Likewise.
149 * macro.h: Likewise.
150 * as.c: Likewise.
151 * as.h: Likewise.
152 * input-file.h: Likewise.
153 * input-file.c: Likewise.
154 * read.c: Likewise.
155 * app.c: ..or ptrdiff_t.
156 * input-file.c (input_file_get): Use ferror.
157 (input_file_give_next_buffer): Use input_file_get.
158
159 2012-05-29 Roland McGrath <mcgrathr@google.com>
160
161 * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
162 (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
163 [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
164 pairs.
165
166 2012-05-28 Nick Clifton <nickc@redhat.com>
167
168 * read.c (read_symbol_name): New function. Reads a symbol names.
169 Allows escape codes in names.
170 (s_comm_internal): Use read_symbol_name.
171 (s_globl, s_lsym, s_set, s_weakref): Likewise.
172 * doc/as.texinfo: Document support for multibyte characters in
173 symbol names.
174
175 2012-05-21 Mike Frysinger <vapier@gentoo.org>
176
177 * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
178 is non-NULL.
179
180 2012-05-19 Alan Modra <amodra@gmail.com>
181
182 * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
183 targets when checking for "comdat".
184
185 2012-05-19 Alan Modra <amodra@gmail.com>
186
187 * config/tc-dlx.c (s_proc): Don't use asprintf.
188
189 2012-05-18 Alan Modra <amodra@gmail.com>
190
191 * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
192 return value.
193
194 2012-05-18 James Lemke <jwlemke@codesourcery.com>
195 Alan Modra <amodra@gmail.com>
196
197 * config/tc-ppc.c: Don't capitalise error and warning messages.
198 (md_parse_option): Add checks for -a32 -mvle.
199
200 2012-05-18 Alan Modra <amodra@gmail.com>
201
202 * config/obj-evax.c: Include as.h first.
203
204 2012-05-18 Andreas Schwab <schwab@linux-m68k.org>
205
206 * aclocal.m4: Regenerate.
207 * configure: Regenerate.
208 * Makefile.in: Regenerate.
209
210 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
211 Nick Clifton <nickc@redhat.com>
212
213 PR 14072
214 * configure.in: Add check that sysdep.h has been included before
215 any system header files.
216 * configure: Regenerate.
217 * config.in: Regenerate.
218 * aclocal.m4: Regenerate.
219 * Makefile.am: Use wrappers around C files generated by flex.
220 * Makefile.in: Regenerate.
221 * doc/Makefile.in: Regenerate.
222 * itbl-lex-wrapper.c: New file.
223 * config/bfin-lex-wrapper.c: New file.
224 * cgen.c: Include as.h before setjmp.h.
225 * config/tc-dlx.c: Include as.h before any other header.
226 * config/tc-h8300.c: Likewise.
227 * config/tc-lm32.c: Likewise.
228 * config/tc-mep.c: Likewise.
229 * config/tc-microblaze.c: Likewise.
230 * config/tc-mmix.c: Likewise.
231 * config/tc-msp430.c: Likewise.
232 * config/tc-or32.c: Likewise.
233 * config/tc-tic4x.c: Likewise.
234 * config/tc-tic54x.c: Likewise.
235 * config/tc-xtensa.c: Likewise.
236
237 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
238
239 * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
240 as the first argument for `bfd_get_section_vma'.
241
242 2012-05-16 Alberto Garcia <agarcia@igalia.com>
243
244 PR gas/14082
245 * app.c (do_scrub_chars): Prevent possible out of bounds access to
246 lex[] array.
247
248 2012-05-16 Georg-Johann Lay <avr@gjlay.de>
249
250 PR target/13503
251 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
252 R_AVR_8_HLO8.
253 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
254 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
255
256 2012-05-16 Nathan Sidwell <nathan@codesourcery.com>
257 Kwok Cheung Yeung <kcy@codesourcery.com>
258
259 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
260 51qm variants.
261
262 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
263
264 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
265 Add option to offset S12 addresses into XGATE memory space.
266 Tweak target flags to match other tools. (i.e. -m m68hc11).
267 * doc/as.texinfo: Mention new options.
268 * doc/c-m68hc11.texi: Document new options.
269 * NEWS: Mention new support.
270
271 2012-05-14 DJ Delorie <dj@redhat.com>
272
273 * config/rx-parse.y (rx_range): declare.
274 (O1,O2,O3,O4): Add calls to rx_range.
275 (UO1,UO2,UO3): Likewise.
276 (IMM2,IMMB): Likewise.
277 (rx_range): New.
278
279 * config/tc-rx.c (rx_fetchalign): Declare.
280 (md_pseudo_table): Add .fetchalign.
281 (RX_NBASE_FETCHALIGN): New.
282 (fetchalign_bytes): New.
283 (rx_fetchalign): New.
284 (rx_frag_init): If a "magic" value is found, also init the
285 machine-specific data.
286 (md_assemble): Note following opcode size if called for.
287 (rx_next_opcode): New.
288 (rx_relax_frag): Support .fetchalign.
289 (md_convert_frag): Likewise.
290 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
291
292 2012-05-14 James Lemke <jwlemke@codesourcery.com>
293
294 * config/tc-ppc.c (insn_validate): New func of existing code to call..
295 (ppc_setup_opcodes): ..from 2 places here.
296 Revise for second (VLE) opcode table.
297 Add #ifdef'd code to print opcode tables.
298
299 2012-05-14 James Lemke <jwlemke@codesourcery.com>
300
301 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
302 for the VLE conditional branches.
303
304 2012-05-14 Catherine Moore <clm@codesourcery.com>
305 Maciej W. Rozycki <macro@codesourcery.com>
306 Rhonda Wittels <rhonda@codesourcery.com>
307
308 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
309 (PPC_VLE_SPLIT16D): New macro.
310 (PPC_VLE_LO16A): New macro.
311 (PPC_VLE_LO16D): New macro.
312 (PPC_VLE_HI16A): New macro.
313 (PPC_VLE_HI16D): New macro.
314 (PPC_VLE_HA16A): New macro.
315 (PPC_VLE_HA16D): New macro.
316 (PPC_APUINFO_VLE): New definition.
317 (md_chars_to_number): New function.
318 (md_parse_option): Check for combinations of little
319 endian and -mvle.
320 (md_show_usage): Document -mvle.
321 (ppc_arch): Recognize VLE.
322 (ppc_mach): Recognize bfd_mach_ppc_vle.
323 (ppc_setup_opcodes): Print the opcode table if
324 * config/tc-ppc.h (ppc_frag_check): Declare.
325 * doc/c-ppc.texi: Document -mvle.
326 * NEWS: Mention PowerPC VLE port.
327
328 2012-05-14 Catherine Moore <clm@codesourcery.com>
329
330 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
331 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
332 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
333 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
334 for DWARF2_LINE_MIN_INSN_LENGTH.
335
336 2012-05-12 H.J. Lu <hongjiu.lu@intel.com>
337
338 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
339 for BFD_RELOC_64.
340
341 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
342
343 PR binutils/14028
344 * configure.in: Invoke ACX_HEADER_STRING.
345 * configure: Regenerate.
346 * config.in: Regenerate.
347 * as.h: If STRINGS_WITH_STRING is defined then include both
348 string.h and strings.h.
349
350 2012-05-11 Georg-Johann Lay <avr@gjlay.de
351
352 PR target/13503
353 * config/tc-avr.c (exp_mod_pm): Remove variable.
354 (exp_mod_data_t): New typedef.
355 (pexp_mod_data, exp_mod_data): New variables.
356 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
357 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
358 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
359 (avr_cons_fix_new): Handle new data expression modifiers shipped
360 in pexp_mod_data.
361 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
362 BFD_RELOC_AVR_8_HHI.
363
364 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
365
366 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
367 addend overflow check.
368
369 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
370
371 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
372 x32 addend overflow check.
373
374 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
375
376 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
377
378 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
379
380 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
381 for BFD_RELOC_64.
382
383 2012-05-08 Alan Modra <amodra@gmail.com>
384
385 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
386 LC and LANG environment vars.
387 * Makefile.in: Regenerate.
388
389 2012-05-07 Alan Modra <amodra@gmail.com>
390
391 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
392 * Makefile.in: Regenerate.
393
394 2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
395
396 * config/tc-z80.h(md_register_arithmetic): Define as 0.
397 * config/tc-z80.c(md_begin): Store register names in symbol table,
398 preventing usage as ordinary symbol.
399 * config/tc-z80.c(contains_register): New function.
400 * config/tc-z80.c(parse_exp2): Removed.
401 * config/tc-z80.c(parse_exp_not_indexed): New function.
402 * config/tc-z80.c(parse_exp): Add code to recogize indexed
403 addressing after parsing.
404 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
405 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
406 condition for jump to register.
407 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
408 parse_exp_not_indexed.
409
410 2012-05-05 Alan Modra <amodra@gmail.com>
411
412 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
413 bfd_und_section and bfd_ind_section with their _ptr variants, or
414 use corresponding bfd_is_* macros.
415 * symbols.c: Likewise.
416 * config/obj-aout.c: Likewise.
417 * config/obj-coff-seh.h: Likewise.
418 * config/tc-hppa.c: Likewise.
419 * config/tc-hppa.h: Likewise.
420 * config/tc-ia64.c: Likewise.
421 * config/tc-m32r.c: Likewise.
422 * config/tc-microblaze.c: Likewise.
423 * config/tc-mips.c: Likewise.
424 * config/tc-score.c: Likewise.
425 * config/tc-score7.c: Likewise.
426 * config/tc-tic6x.c: Likewise.
427
428 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
429
430 * configure.tgt: Support x86_64-*-linux-gnux32.
431
432 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
433
434 * config/tc-i386.c (match_template): Add `instruction' to
435 unsupported error message.
436
437 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
438
439 * config/tc-i386.c (output_insn): Reformat.
440
441 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
442
443 * config/tc-i386.c (output_insn): Remove the extra VEX check.
444
445 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
446
447 * config/tc-i386.c (match_template): Improve unsupported error
448 message.
449
450 2012-05-03 Sean Keys <skeys@ipdatasys.com>
451
452 * configure, Makefile.in: Regenerate.
453 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
454 * configure.tgt: Added cpu type.
455 Added files for XGATE assembler.
456 * config/tc-xgate.c: Assembler for XGATE.
457 * config/tc-xgate.h: Header definition for assembler
458 Added files for XGATE testsuite.
459 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
460 * doc/c-xgate.texi: Document XGATE and XGATE port.
461 * doc/as.texinfo: Ditto.
462 * doc/all.texi: Ditto
463 * NEWS: Mention the new support.
464
465 2012-04-30 DJ Delorie <dj@redhat.com>
466
467 * config/rx-parse.y (rx_intop): Add parameter for operation size.
468 Check for large positive constants really being small negative
469 ones.
470 (BRA, BSR): Update calls to rx_intop.
471 (immediate): Likewise.
472
473 2012-04-26 Mark Wielaard <mjw@redhat.com>
474
475 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
476 (DWARF2_LINE_VERSION): Likewise.
477 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
478 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
479 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
480 DWARF2_VERSION >= 4.
481 (out_debug_info): Use difference between start and end as data
482 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
483 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
484
485 2012-04-27 David S. Miller <davem@davemloft.net>
486
487 * doc/c-sparc.text: Document %l34 and %h34.
488
489 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
490
491 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
492 v8pluse, v8plusv, v9e, and v9v.
493 (v9a_asr_table): Add 'pause'.
494
495 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
496 sparc4, v8pluse, v8plusv, v9e, and v9v.
497 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
498 order to accomodate cbcond which otherwise would require two
499 relocations to be handled in a single instruction..
500
501 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
502 names containing "_".
503 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
504 hwcap masks to v8plusv and v9v.
505
506 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
507 masks.
508 (sparc_md_end): No longer need to translate hwcap_seen values into
509 ELF hwcap bits, they now match exactly.
510 (get_hwcap_name): Use HWCAP_* and handle new values.
511 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
512
513 2012-04-20 Tristan Gingold <gingold@adacore.com>
514
515 * config/tc-ia64.c (obj_elf_vms_common): New function.
516 (md_pseudo_table): Add .vms_common pseudo.
517 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
518 * config/obj-elf.c (obj_elf_section_name): Make it public.
519
520 2012-04-17 Richard Sandiford <r.sandiford@uk.ibm.com>
521
522 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
523
524 2012-04-12 David S. Miller <davem@davemloft.net>
525
526 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
527 BFD_RELOC_SPARC_H34.
528 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
529 (tc_gen_reloc): Likewise.
530
531 2012-04-12 Roland McGrath <mcgrathr@google.com>
532
533 * configure.tgt (arm-*-nacl*): Match it.
534 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
535 (LOCAL_LABELS_DOLLAR): Define.
536 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
537 Use nacl format variants.
538
539 2012-04-12 Jie Zhang <jie@codesourcery.com>
540 Meador Inge <meadori@codesourcery.com>
541
542 * config/tc-arm.c (only_one_reg_in_list): New function.
543 (encode_ldmstm): Ditto.
544 (do_ldmstm): Use a different encoding when pushing or poping
545 a single register.
546 (A_COND_MASK): New macro.
547 (A_PUSH_POP_OP_MASK): Ditto.
548 (A1_OPCODE_PUSH): Ditto.
549 (A2_OPCODE_PUSH): Ditto.
550 (A2_OPCODE_POP): Ditto.
551
552 2012-04-06 Maciej W. Rozycki <macro@linux-mips.org>
553
554 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
555 -mno-fix-24k.
556
557 2012-04-06 Roland McGrath <mcgrathr@google.com>
558
559 * configure.in (AC_CHECK_HEADERS): Add locale.h.
560 * config.in: Regenerate.
561 * configure: Regenerate.
562
563 2012-04-05 Nick Clifton <nickc@redhat.com>
564
565 * configure.in (AC_CHECK_FUNCS): Add setlocale.
566 (AM_LC_MESSAGES): Add.
567 * aclocal.m4: Regenerate.
568 * config.in: Regenerate.
569 * configure: Regenerate.
570
571 2012-04-03 DJ Delorie <dj@redhat.com>
572
573 * config/rx-parse.y: Make the .L optional for ADC and SBB.
574
575 2012-04-02 DJ Delorie <dj@redhat.com>
576
577 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
578 transfer size.
579 (IMM): New, call IMM_ with the default 32.
580 (IMMW,IMMB): Likewise, for 16 and 8.
581 (NIMM, MBIMM): Add size parameter.
582 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
583 (MOV.W): Use IMMW instead of IMM.
584
585 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
586 (op_dp20_rm_l): New.
587 (op_dp20_rim_l): New.
588
589 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
590 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
591
592 2012-03-29 Terry Guo <terry.guo@arm.com>
593
594 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
595 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
596
597 2012-03-23 Maxim Kuvyrkov <maxim@codesourcery.com>
598
599 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
600 * doc/c-mips.texi: Mention XLP.
601
602 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
603
604 [SH] Support the .uaquad and .8byte directives also for non-sh64
605 configurations.
606
607 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
608 BFD_RELOC_64.
609 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
610 description...
611 * doc/c-sh.texi (SH Machine Directives): ... here.
612
613 2012-03-20 Nick Clifton <nickc@redhat.com>
614
615 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
616 registers.
617 (do_vmsr): Likewise.
618 (arm_opcode_insns): Do not default to using the FPSCR register in
619 the VMRS and VMSR registers.
620
621 2012-03-16 Roland McGrath <mcgrathr@google.com>
622
623 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
624 Define for this case.
625 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
626
627 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
628
629 * config/tc-arm.c (aeabi_set_public_attributes): Correct
630 handling of Tag_DIV_use.
631
632 2012-03-15 Thomas Schwinge <thomas@codesourcery.com>
633
634 * doc/as.texinfo (Bundle directives): Fix typo.
635
636 2012-03-14 Ryan Mansfield <rmansfield@qnx.com>
637
638 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
639
640 2012-03-13 Roland McGrath <mcgrathr@google.com>
641
642 * config/tc-arm.c (arm_frag_max_var): New function.
643 * config/tc-arm.h: Declare it.
644 (md_frag_max_var): New macro.
645
646 * config/tc-i386.c (i386_frag_max_var): New function.
647 * config/tc-i386.h: Declare it.
648 (md_frag_max_var): New macro.
649
650 * doc/as.texinfo (Bundle directives): New node.
651 (Pseudo Ops): Add it to the menu.
652 * NEWS: Mention new feature.
653 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
654 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
655 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
656 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
657 New functions.
658 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
659 to md_assembly if not.
660 (read_a_source_file): Call assemble_one in place of md_assemble.
661 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
662 .bundle_lock at end of processing.
663 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
664 New functions.
665 [HANDLE_BUNDLE] (potable): Add their entries.
666 * read.h: Declare new functions.
667
668 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
669
670 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
671 (ppc_handle_align): Add termination nop opcode for e500mc family.
672 * doc/as.texinfo: Document options -me5500 and -me6500.
673 * doc/c-ppc.texi: Likewise.
674
675 2012-03-07 Nick Clifton <nickc@redhat.com>
676
677 * config/tc-mn10300.c (other_registers): Add SSP and USP.
678 (md_assemble): Add support for TLS relocs.
679 (mn10300_parse_name): Likewise.
680
681 2012-02-27 Alan Modra <amodra@gmail.com>
682
683 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
684
685 2012-02-27 Alan Modra <amodra@gmail.com>
686
687 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
688 params. Properly generate NOP pattern. Comment reason for
689 subseg_text_p failure.
690
691 2012-02-27 Alan Modra <amodra@gmail.com>
692
693 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
694 and sign extend before range tests.
695 (constant_fits_size_p): Similarly.
696 (get_specific): Trim X_add_number to 32 bits.
697 (fix_operand_size): Likewise, and use unsigned test for signed
698 ranges.
699
700 2012-02-27 Alan Modra <amodra@gmail.com>
701
702 * config/tc-crx.c: Include bfd_stdint.h.
703 (getconstant): Remove irrelevant comment. Don't fail due to
704 sign-extension of int mask.
705 (check_range): Rewrite using unsigned arithmetic throughout.
706
707 2012-02-25 Walter Lee <walt@tilera.com>
708
709 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
710 non-local before checking sy_value.
711 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
712
713 2012-02-25 Walter Lee <walt@tilera.com>
714
715 * tc-tilepro.c (O_tls_le): Define operator.
716 (O_tls_le_lo16): Ditto.
717 (O_tls_le_hi16): Ditto.
718 (O_tls_le_ha16): Ditto.
719 (O_tls_gd_call): Ditto.
720 (O_tls_gd_add): Ditto.
721 (O_tls_ie_load): Ditto.
722 (md_begin): Delete old operators; handle new operators.
723 (emit_tilepro_instruction): Ditto.
724 (md_apply_fix): Ditto.
725 * tc-tilegx.c (O_hw1_got): Delete operator.
726 (O_hw2_got): Ditto.
727 (O_hw3_got): Ditto.
728 (O_hw2_last_got): Ditto.
729 (O_hw1_tls_gd): Ditto.
730 (O_hw2_tls_gd): Ditto.
731 (O_hw3_tls_gd): Ditto.
732 (O_hw2_last_tls_gd): Ditto.
733 (O_hw1_tls_ie): Ditto.
734 (O_hw2_tls_ie): Ditto.
735 (O_hw3_tls_ie): Ditto.
736 (O_hw2_last_tls_ie): Ditto.
737 (O_hw0_tls_le): Define operator.
738 (O_hw0_last_tls_le): Ditto.
739 (O_hw1_last_tls_le): Ditto.
740 (O_tls_gd_call): Ditto.
741 (O_tls_gd_add): Ditto.
742 (O_tls_ie_load): Ditto.
743 (O_tls_add): Ditto.
744 (md_begin): Delete old operators; handle new operators.
745 (emit_tilegx_instruction): Ditto.
746 (md_apply_fix): Ditto.
747 * doc/c-tilegx.texi: Delete old operators; document new operators.
748 * doc/c-tilepro.texi: Ditto.
749
750 2012-02-25 Walter Lee <walt@tilera.com>
751
752 * tc-tilepro.c (apply_special_operator): delete cases for
753 got and tls operators.
754 (md_apply_fix): Ditto.
755 * tc-tilegx.c (md_begin): Set architecture and machine.
756 (tilegx_target_format): Handle big endian.
757 (OPTION_EB): Define.
758 (OPTION_EL): Define.
759 (md_longopts): Add entries for "EB" and "EL".
760 (md_parse_option): Handle OPTION_EB and OPTION_EL.
761 (md_show_usage): Add -EB and -EL.
762 (md_number_to_chars): New.
763 (apply_special_operator): delete cases for got and tls
764 operators.
765 (md_apply_fix): Ditto.
766 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
767 ifndef.
768 (md_number_to_chars): Delete.
769 * configure.tgt (tilegx*be): Handle.
770 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
771 * doc/c-tilegx.texi: Ditto.
772
773 2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
774
775 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
776 HLEPrefixAny and HLEPrefixRelease.
777
778 2012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
779
780 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
781
782 2012-02-21 Iain Sandoe <idsandoe@googlemail.com>
783
784 * write.c (write_object_file): Add md_pre_output_hook.
785 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
786 (obj_mach_o_pre_output_hook): New.
787 * config/obj-macho.h (md_pre_output_hook): Define.
788 (obj_mach_o_pre_output_hook): Declare.
789
790 2012-02-21 Tristan Gingold <gingold@adacore.com>
791
792 * config/tc-i386.h (OBJ_MACH_O): New section.
793 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
794 (TC_FORCE_RELOCATION_SUB_SAME): New
795 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
796 (TC_VALIDATE_FIX_SUB): New.
797 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
798 * symbols.c (colon): obj_frob_colon: New hook.
799 * write.c (write_object_file): md_pre_relax_hook, new
800 hook.
801 * config/obj-macho.c (obj_mach_o_frob_colon): New.
802 (obj_mach_o_frob_label): Record sub-section labels.
803 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
804 (obj_mach_o_set_subsections): New.
805 (obj_mach_o_pre_relax_hook): New.
806 (obj_mach_o_in_different_subsection): New.
807 (obj_mach_o_force_reloc_sub_same): New.
808 (obj_mach_o_force_reloc_sub_local): New.
809 (obj_mach_o_force_reloc): New.
810 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
811 (obj_frob_colon): New Define.
812 (obj_mach_o_frob_label): Renamed.
813 (obj_mach_o_frob_symbol): Renamed.
814 (OBJ_FRAG_TYPE): New.
815 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
816 obj_mach_o_force_reloc_sub_same,
817 obj_mach_o_force_reloc_sub_local): New declarations.
818
819 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
820
821 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
822 (obj_mach_o_allow_local_subtract): New.
823 * config/obj-macho.h (md_allow_local_subtract): Define.
824 (obj_mach_o_allow_local_subtract): Declare.
825
826 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
827
828 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
829 canonical information, try to determine CODE and DEBUG section flags
830 from the mach-o section data.
831
832 2012-02-20 Nick Clifton <nickc@redhat.com>
833
834 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
835 local symbols.
836
837 2012-02-12 Iain Sandoe <idsandoe@googlemail.com>
838
839 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
840 any local symbol used as an indirect.
841
842 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
843
844 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
845 stub size when provided. (obj_mach_o_section): Flag that stub-size
846 has been provided.
847
848 2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
849
850 * config/tc-i386.c (HLE_PREFIX): New.
851 (check_hle): Likewise.
852 (_i386_insn): Add have_hle.
853 (cpu_arch): Add .hle and .rtm.
854 (md_assemble): Call check_hle if i.have_hle isn't zero.
855 (parse_insn): Set i.have_hle to 1 for HLE prefix.
856 (output_jump): Support up to 2 byte opcode.
857
858 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
859
860 2012-02-02 Tristan Gingold <gingold@adacore.com>
861
862 * config/obj-macho.c (obj_mach_o_zerofill): Silent
863 uninitialized variable warning.
864
865 2012-02-02 Nick Clifton <nickc@redhat.com>
866
867 PR gas/13224
868 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
869 to 'is_clone' to avoid shadowing a gloabl.
870 (obj_elf_section): Likewise.
871
872 2012-01-31 Paul Brook <paul@codesourcery.com>
873
874 * doc/c-tic6x.c: Fix typo.
875
876 2012-01-26 Alexey Makhalov <makhaloff@gmail.com>
877
878 PR gas/13624
879 * app.c (app_push): Set 'add_newlines' to zero after saving.
880
881 2012-01-24 DJ Delorie <dj@redhat.com>
882
883 * config/rl78-parse.y (NOT1): Add.
884
885 2012-01-23 Roland McGrath <mcgrathr@google.com>
886
887 * configure.tgt (i386-*-nacl*): Match it.
888 * config/te-nacl.h: New file.
889 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
890 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
891 Use TE_GNU et al case for TE_NACL too.
892
893 2012-01-20 H.J. Lu <hongjiu.lu@intel.com>
894
895 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
896 disp_encoding.
897 (md_assemble): Updated.
898 (output_branch): Likewise.
899 (parse_insn): Support .d8 suffix.
900 (build_modrm_byte): Fake zero displacement for .d8 and .d32
901 suffixes.
902
903 * doc/c-i386.texi: Document .d8 suffix.
904
905 2012-01-17 Andrew Burgess <aburgess@broadcom.com>
906
907 * write.c (fix_new_internal): Don't mark used parameter as unused.
908
909 2012-01-17 Alan Modra <amodra@gmail.com>
910
911 * as.c (parse_args): Update copyright message year.
912
913 2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
914
915 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
916
917 * doc/c-i386.texi: Document vmfunc.
918
919 2012-01-13 Tristan Gingold <gingold@adacore.com>
920
921 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
922 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
923 (obj_mach_o_reorder_section_relocs): Declare.
924
925 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
926
927 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
928 absolute indirect symbols.
929
930 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
931
932 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
933 (obj_mach_o_set_section_vma): New.
934 (obj_mach_o_post_relax_hook): New.
935 * config/obj-macho.h (md_post_relax_hook): Define.
936 (obj_mach_o_post_relax_hook): Declare.
937
938 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
939
940 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
941 lazy when the symbol is private_extern.
942 (obj_mach_o_indirect_sym): New type.
943 (obj_mach_o_indirect_symbol): New.
944 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
945 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
946 (obj_macho_frob_label): Likewise. Adjust external and comm
947 symbol tests.
948 (obj_mach_o_set_indirect_symbols): New.
949 (obj_mach_o_frob_file_after_relocs): New.
950 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
951 (obj_mach_o_frob_file_after_relocs): Declare.
952
953 2012-01-12 Tristan Gingold <gingold@adacore.com>
954
955 PR gas/13591
956 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
957
958 2012-01-10 Tristan Gingold <gingold@adacore.com>
959
960 * struc-symbol.h (struct symbol_flags): New struct, created from...
961 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
962 (struct local_symbol): Replace lsy_marker field by lsy_flags.
963 Adjust comment.
964 (local_symbol_resolved_p): Adjust.
965 (local_symbol_mark_resolved): Likewise.
966 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
967 (local_symbol_make, local_symbol_convert, colon)
968 (symbol_clone_if_forward_ref, verify_symbol_chain)
969 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
970 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
971 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
972 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
973 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
974 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
975 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
976 (symbol_mark_mri_common, symbol_clear_mri_common)
977 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
978 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
979 (symbol_equated_reloc_p, dot_symbol_init)
980 (print_symbol_value_1): Adjust.
981
982 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
983
984 * config/obj-macho.c (obj_mach_o_weak): Remove.
985 (obj_mach_o_common_parse): Set symbol qualifiers.
986 (LAZY, REFE): New macros.
987 (obj_mach_o_symbol_type): New enum.
988 (obj_mach_o_set_symbol_qualifier): New.
989 (obj_mach_o_sym_qual): New.
990 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
991 a dummy function.
992 (obj_mach_o_type_for_symbol): New.
993 (obj_macho_frob_label): New.
994 (obj_macho_frob_symbol): New.
995 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
996 (obj_frob_label, obj_macho_frob_label): Declare.
997 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
998
999 2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
1000
1001 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
1002
1003 2012-01-08 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1004 Richard Sandiford <rdsandiford@googlemail.com>
1005
1006 * config/tc-mips.c (mips_move_labels): Take the list of labels and
1007 textness as parameters.
1008 (mips_move_text_labels): New function.
1009 (append_insn): Use it instead of mips_move_labels.
1010 (mips_emit_delays, start_noreorder): Likewise.
1011 (mips_align): Take the labels rather than just one label.
1012 Move all labels to after the .align.
1013 (s_align): Change the last argument to mips_align.
1014 (s_cons): Likewise.
1015 (s_float_cons): Likewise.
1016 (s_gpword): Likewise.
1017 (s_gpdword): Likewise.
1018
1019 2012-01-06 Tristan Gingold <gingold@adacore.com>
1020
1021 * config/tc-i386.c: Update copyright year.
1022 (lex_got): Also defined for Mach-O.
1023 Add a guard for non-ELF configuration.
1024 (md_longopts): Also handle -64 for Mach-O.
1025 (md_parse_option): Likewise.
1026 (i386_target_format): Adjust for x86_64-darwin.
1027
1028 2012-01-04 Iain Sandoe <idsandoe@googlemail.com>
1029
1030 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
1031 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
1032 (obj_mach_o_make_or_get_sect): Likewise.
1033 (obj_mach_o_section): Split out the functionality shared with zerofill.
1034 (obj_mach_o_zerofill): New.
1035 (obj_mach_o_common_parse): Ensure whitespace is skipped.
1036 (mach_o_pseudo_table): Add .zerofill.
1037
1038 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1039
1040 * config/obj-macho.c (obj_macho_process_stab): New.
1041 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
1042 (obj_macho_process_stab): Declare.
1043
1044 For older changes see ChangeLog-2011
1045 \f
1046 Local Variables:
1047 mode: change-log
1048 left-margin: 8
1049 fill-column: 74
1050 version-control: never
1051 End:
This page took 0.056543 seconds and 4 git commands to generate.