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