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