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