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