6243dfe802d2032718e5865305a0c06935f0e4da
[platform/upstream/binutils.git] / gas / ChangeLog
1 2012-04-06  Maciej W. Rozycki  <macro@linux-mips.org>
2
3         * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
4         -mno-fix-24k.
5
6 2012-04-06  Roland McGrath  <mcgrathr@google.com>
7
8         * configure.in (AC_CHECK_HEADERS): Add locale.h.
9         * config.in: Regenerate.
10         * configure: Regenerate.
11
12 2012-04-05  Nick Clifton  <nickc@redhat.com>
13
14         * configure.in (AC_CHECK_FUNCS): Add setlocale.
15         (AM_LC_MESSAGES): Add.
16         * aclocal.m4: Regenerate.
17         * config.in: Regenerate.
18         * configure: Regenerate.
19
20 2012-04-03  DJ Delorie  <dj@redhat.com>
21
22         * config/rx-parse.y: Make the .L optional for ADC and SBB.
23
24 2012-04-02  DJ Delorie  <dj@redhat.com>
25
26         * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
27         transfer size.
28         (IMM): New, call IMM_ with the default 32.
29         (IMMW,IMMB): Likewise, for 16 and 8.
30         (NIMM, MBIMM): Add size parameter.
31         (immediate): Likewise.  Allow 32768..65535 for 16-bit transfers.
32         (MOV.W): Use IMMW instead of IMM.
33
34         * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
35         (op_dp20_rm_l): New.
36         (op_dp20_rim_l): New.
37
38         * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
39         (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
40
41 2012-03-29  Terry Guo  <terry.guo@arm.com>
42
43         * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
44         * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
45
46 2012-03-23  Maxim Kuvyrkov  <maxim@codesourcery.com>
47
48         * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
49         * doc/c-mips.texi: Mention XLP.
50
51 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
52
53         [SH] Support the .uaquad and .8byte directives also for non-sh64
54         configurations.
55
56         * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
57         BFD_RELOC_64.
58         * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
59         description...
60         * doc/c-sh.texi (SH Machine Directives): ... here.
61
62 2012-03-20  Nick Clifton  <nickc@redhat.com>
63
64         * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
65         registers.
66         (do_vmsr): Likewise.
67         (arm_opcode_insns): Do not default to using the FPSCR register in
68         the VMRS and VMSR registers.
69
70 2012-03-16  Roland McGrath  <mcgrathr@google.com>
71
72         * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
73         Define for this case.
74         * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
75
76 2012-03-16  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
77
78         * config/tc-arm.c (aeabi_set_public_attributes): Correct
79         handling of Tag_DIV_use.
80
81 2012-03-15  Thomas Schwinge  <thomas@codesourcery.com>
82
83         * doc/as.texinfo (Bundle directives): Fix typo.
84
85 2012-03-14  Ryan Mansfield  <rmansfield@qnx.com>
86
87         * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
88
89 2012-03-13  Roland McGrath  <mcgrathr@google.com>
90
91         * config/tc-arm.c (arm_frag_max_var): New function.
92         * config/tc-arm.h: Declare it.
93         (md_frag_max_var): New macro.
94
95         * config/tc-i386.c (i386_frag_max_var): New function.
96         * config/tc-i386.h: Declare it.
97         (md_frag_max_var): New macro.
98
99         * doc/as.texinfo (Bundle directives): New node.
100         (Pseudo Ops): Add it to the menu.
101         * NEWS: Mention new feature.
102         * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
103         [HANDLE_BUNDLE] (bundle_align_p2): New variable.
104         [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
105         [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
106         New functions.
107         (assemble_one): New function if [HANDLE_BUNDLE], #define directly
108         to md_assembly if not.
109         (read_a_source_file): Call assemble_one in place of md_assemble.
110         (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
111         .bundle_lock at end of processing.
112         [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
113         New functions.
114         [HANDLE_BUNDLE] (potable): Add their entries.
115         * read.h: Declare new functions.
116
117 2012-03-10  Edmar Wienskoski  <edmar@freescale.com>
118
119         * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
120         (ppc_handle_align): Add termination nop opcode for e500mc family.
121         * doc/as.texinfo: Document options -me5500 and -me6500.
122         * doc/c-ppc.texi: Likewise.
123
124 2012-03-07  Nick Clifton  <nickc@redhat.com>
125
126         * config/tc-mn10300.c (other_registers): Add SSP and USP.
127         (md_assemble): Add support for TLS relocs.
128         (mn10300_parse_name): Likewise.
129
130 2012-02-27  Alan Modra  <amodra@gmail.com>
131
132         * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
133
134 2012-02-27  Alan Modra  <amodra@gmail.com>
135
136         * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
137         params.  Properly generate NOP pattern.  Comment reason for
138         subseg_text_p failure.
139
140 2012-02-27  Alan Modra  <amodra@gmail.com>
141
142         * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
143         and sign extend before range tests.
144         (constant_fits_size_p): Similarly.
145         (get_specific): Trim X_add_number to 32 bits.
146         (fix_operand_size): Likewise, and use unsigned test for signed
147         ranges.
148
149 2012-02-27  Alan Modra  <amodra@gmail.com>
150
151         * config/tc-crx.c: Include bfd_stdint.h.
152         (getconstant): Remove irrelevant comment.  Don't fail due to
153         sign-extension of int mask.
154         (check_range): Rewrite using unsigned arithmetic throughout.
155
156 2012-02-25  Walter Lee  <walt@tilera.com>
157
158         * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
159         non-local before checking sy_value.
160         * tc-tilegx.c (emit_tilegx_instruction): Ditto.
161
162 2012-02-25  Walter Lee  <walt@tilera.com>
163
164         * tc-tilepro.c (O_tls_le): Define operator.
165         (O_tls_le_lo16): Ditto.
166         (O_tls_le_hi16): Ditto.
167         (O_tls_le_ha16): Ditto.
168         (O_tls_gd_call): Ditto.
169         (O_tls_gd_add): Ditto.
170         (O_tls_ie_load): Ditto.
171         (md_begin): Delete old operators; handle new operators.
172         (emit_tilepro_instruction): Ditto.
173         (md_apply_fix): Ditto.
174         * tc-tilegx.c (O_hw1_got): Delete operator.
175         (O_hw2_got): Ditto.
176         (O_hw3_got): Ditto.
177         (O_hw2_last_got): Ditto.
178         (O_hw1_tls_gd): Ditto.
179         (O_hw2_tls_gd): Ditto.
180         (O_hw3_tls_gd): Ditto.
181         (O_hw2_last_tls_gd): Ditto.
182         (O_hw1_tls_ie): Ditto.
183         (O_hw2_tls_ie): Ditto.
184         (O_hw3_tls_ie): Ditto.
185         (O_hw2_last_tls_ie): Ditto.
186         (O_hw0_tls_le): Define operator.
187         (O_hw0_last_tls_le): Ditto.
188         (O_hw1_last_tls_le): Ditto.
189         (O_tls_gd_call): Ditto.
190         (O_tls_gd_add): Ditto.
191         (O_tls_ie_load): Ditto.
192         (O_tls_add): Ditto.
193         (md_begin): Delete old operators; handle new operators.
194         (emit_tilegx_instruction): Ditto.
195         (md_apply_fix): Ditto.
196         * doc/c-tilegx.texi: Delete old operators; document new operators.
197         * doc/c-tilepro.texi: Ditto.
198
199 2012-02-25  Walter Lee  <walt@tilera.com>
200
201         * tc-tilepro.c (apply_special_operator): delete cases for
202         got and tls operators.
203         (md_apply_fix): Ditto.
204         * tc-tilegx.c (md_begin): Set architecture and machine.
205         (tilegx_target_format): Handle big endian.
206         (OPTION_EB): Define.
207         (OPTION_EL): Define.
208         (md_longopts): Add entries for "EB" and "EL".
209         (md_parse_option): Handle OPTION_EB and OPTION_EL.
210         (md_show_usage): Add -EB and -EL.
211         (md_number_to_chars): New.
212         (apply_special_operator): delete cases for got and tls
213         operators.
214         (md_apply_fix): Ditto.
215         * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
216         ifndef.
217         (md_number_to_chars): Delete.
218         * configure.tgt (tilegx*be): Handle.
219         * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
220         * doc/c-tilegx.texi: Ditto.
221
222 2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>
223
224         * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
225         HLEPrefixAny and HLEPrefixRelease.
226
227 2012-02-21  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
228
229         * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
230
231 2012-02-21  Iain Sandoe  <idsandoe@googlemail.com>
232
233         * write.c (write_object_file): Add md_pre_output_hook.
234         * config/obj-macho.c (obj_mach_o_check_before_writing): New.
235         (obj_mach_o_pre_output_hook): New.
236         * config/obj-macho.h (md_pre_output_hook): Define.
237         (obj_mach_o_pre_output_hook): Declare.
238
239 2012-02-21  Tristan Gingold  <gingold@adacore.com>
240
241         * config/tc-i386.h (OBJ_MACH_O): New section.
242         (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
243         (TC_FORCE_RELOCATION_SUB_SAME): New
244         (TC_FORCE_RELOCATION_SUB_LOCAL): New.
245         (TC_VALIDATE_FIX_SUB): New.
246         * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
247         * symbols.c (colon): obj_frob_colon: New hook.
248         * write.c (write_object_file): md_pre_relax_hook, new
249         hook.
250         * config/obj-macho.c (obj_mach_o_frob_colon): New.
251         (obj_mach_o_frob_label): Record sub-section labels.
252         (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
253         (obj_mach_o_set_subsections): New.
254         (obj_mach_o_pre_relax_hook): New.
255         (obj_mach_o_in_different_subsection): New.
256         (obj_mach_o_force_reloc_sub_same): New.
257         (obj_mach_o_force_reloc_sub_local): New.
258         (obj_mach_o_force_reloc): New.
259         * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
260         (obj_frob_colon): New Define.
261         (obj_mach_o_frob_label): Renamed.
262         (obj_mach_o_frob_symbol): Renamed.
263         (OBJ_FRAG_TYPE): New.
264         (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
265          obj_mach_o_force_reloc_sub_same,
266          obj_mach_o_force_reloc_sub_local): New declarations.
267
268 2012-02-20  Iain Sandoe  <idsandoe@googlemail.com>
269
270         * config/obj-macho.c (obj_mach_o_is_frame_section): New.
271         (obj_mach_o_allow_local_subtract): New.
272         * config/obj-macho.h (md_allow_local_subtract): Define.
273         (obj_mach_o_allow_local_subtract): Declare.
274
275 2012-02-20  Iain Sandoe  <idsandoe@googlemail.com>
276
277         * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
278         canonical information, try to determine CODE and DEBUG section flags
279         from the mach-o section data.
280
281 2012-02-20  Nick Clifton  <nickc@redhat.com>
282
283         * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
284         local symbols.
285
286 2012-02-12  Iain Sandoe  <idsandoe@googlemail.com>
287
288         * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
289         any local symbol used as an indirect.
290
291 2012-02-10  Iain Sandoe  <idsandoe@googlemail.com>
292
293         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
294         stub size when provided.  (obj_mach_o_section): Flag that stub-size
295         has been provided.
296
297 2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>
298
299         * config/tc-i386.c (HLE_PREFIX): New.
300         (check_hle): Likewise.
301         (_i386_insn): Add have_hle.
302         (cpu_arch): Add .hle and .rtm.
303         (md_assemble): Call check_hle if i.have_hle isn't zero.
304         (parse_insn): Set i.have_hle to 1 for HLE prefix.
305         (output_jump): Support up to 2 byte opcode.
306
307         * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
308
309 2012-02-02  Tristan Gingold  <gingold@adacore.com>
310
311         * config/obj-macho.c (obj_mach_o_zerofill): Silent
312         uninitialized variable warning.
313
314 2012-02-02  Nick Clifton  <nickc@redhat.com>
315
316         PR gas/13224
317         * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
318         to 'is_clone' to avoid shadowing a gloabl.
319         (obj_elf_section): Likewise.
320
321 2012-01-31  Paul Brook  <paul@codesourcery.com>
322
323         * doc/c-tic6x.c: Fix typo.
324
325 2012-01-26  Alexey Makhalov  <makhaloff@gmail.com>
326
327         PR gas/13624
328         * app.c (app_push): Set 'add_newlines' to zero after saving.
329
330 2012-01-24  DJ Delorie  <dj@redhat.com>
331
332         * config/rl78-parse.y (NOT1): Add.
333
334 2012-01-23  Roland McGrath  <mcgrathr@google.com>
335
336         * configure.tgt (i386-*-nacl*): Match it.
337         * config/te-nacl.h: New file.
338         * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
339         * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
340         Use TE_GNU et al case for TE_NACL too.
341
342 2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>
343
344         * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
345         disp_encoding.
346         (md_assemble): Updated.
347         (output_branch): Likewise.
348         (parse_insn): Support .d8 suffix.
349         (build_modrm_byte): Fake zero displacement for .d8 and .d32
350         suffixes.
351
352         * doc/c-i386.texi: Document .d8 suffix.
353
354 2012-01-17  Andrew Burgess  <aburgess@broadcom.com>
355
356         * write.c (fix_new_internal): Don't mark used parameter as unused.
357
358 2012-01-17  Alan Modra  <amodra@gmail.com>
359
360         * as.c (parse_args): Update copyright message year.
361
362 2012-01-13  H.J. Lu  <hongjiu.lu@intel.com>
363
364         * config/tc-i386.c (cpu_arch): Add ".vmfunc".
365
366         * doc/c-i386.texi: Document vmfunc.
367
368 2012-01-13  Tristan Gingold  <gingold@adacore.com>
369
370         * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
371         * config/obj-macho.h (SET_SECTION_RELOCS): Define.
372         (obj_mach_o_reorder_section_relocs): Declare.
373
374 2012-01-13  Iain Sandoe  <idsandoe@googlemail.com>
375
376         * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
377         absolute indirect symbols.
378
379 2012-01-13  Iain Sandoe  <idsandoe@googlemail.com>
380
381         * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
382         (obj_mach_o_set_section_vma): New.
383         (obj_mach_o_post_relax_hook): New.
384         * config/obj-macho.h (md_post_relax_hook): Define.
385         (obj_mach_o_post_relax_hook): Declare.
386
387 2012-01-12  Iain Sandoe  <idsandoe@googlemail.com>
388
389         * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
390         lazy when the symbol is private_extern.
391         (obj_mach_o_indirect_sym): New type.
392         (obj_mach_o_indirect_symbol): New.
393         (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
394         (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
395         (obj_macho_frob_label): Likewise.  Adjust external and comm
396         symbol tests.
397         (obj_mach_o_set_indirect_symbols): New.
398         (obj_mach_o_frob_file_after_relocs): New.
399         *config/obj-macho.h (obj_frob_file_after_relocs): Define.
400         (obj_mach_o_frob_file_after_relocs): Declare.
401
402 2012-01-12  Tristan Gingold  <gingold@adacore.com>
403
404         PR gas/13591
405         * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
406
407 2012-01-10  Tristan Gingold  <gingold@adacore.com>
408
409         * struc-symbol.h (struct symbol_flags): New struct, created from...
410         (struct symbol): ... this one.  Add sy_flags field, remove flag fields.
411         (struct local_symbol): Replace lsy_marker field by lsy_flags.
412         Adjust comment.
413         (local_symbol_resolved_p): Adjust.
414         (local_symbol_mark_resolved): Likewise.
415         * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
416         (local_symbol_make, local_symbol_convert, colon)
417         (symbol_clone_if_forward_ref, verify_symbol_chain)
418         (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
419         (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
420         (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
421         (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
422         (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
423         (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
424         (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
425         (symbol_mark_mri_common, symbol_clear_mri_common)
426         (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
427         (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
428         (symbol_equated_reloc_p, dot_symbol_init)
429         (print_symbol_value_1): Adjust.
430
431 2012-01-09  Iain Sandoe  <idsandoe@googlemail.com>
432
433         * config/obj-macho.c (obj_mach_o_weak): Remove.
434         (obj_mach_o_common_parse): Set symbol qualifiers.
435         (LAZY, REFE): New macros.
436         (obj_mach_o_symbol_type): New enum.
437         (obj_mach_o_set_symbol_qualifier): New.
438         (obj_mach_o_sym_qual): New.
439         (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
440         a dummy function.
441         (obj_mach_o_type_for_symbol): New.
442         (obj_macho_frob_label): New.
443         (obj_macho_frob_symbol): New.
444         * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
445         (obj_frob_label, obj_macho_frob_label): Declare.
446         (obj_frob_symbol, obj_macho_frob_symbol): Declare.
447
448 2012-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
449
450         * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
451
452 2012-01-08  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
453             Richard Sandiford  <rdsandiford@googlemail.com>
454
455         * config/tc-mips.c (mips_move_labels): Take the list of labels and
456         textness as parameters.
457         (mips_move_text_labels): New function.
458         (append_insn): Use it instead of mips_move_labels.
459         (mips_emit_delays, start_noreorder): Likewise.
460         (mips_align): Take the labels rather than just one label.
461         Move all labels to after the .align.
462         (s_align): Change the last argument to mips_align.
463         (s_cons): Likewise.
464         (s_float_cons): Likewise.
465         (s_gpword): Likewise.
466         (s_gpdword): Likewise.
467
468 2012-01-06  Tristan Gingold  <gingold@adacore.com>
469
470         * config/tc-i386.c: Update copyright year.
471         (lex_got): Also defined for Mach-O.
472         Add a guard for non-ELF configuration.
473         (md_longopts): Also handle -64 for Mach-O.
474         (md_parse_option): Likewise.
475         (i386_target_format): Adjust for x86_64-darwin.
476
477 2012-01-04  Iain Sandoe  <idsandoe@googlemail.com>
478
479         * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
480         (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
481         (obj_mach_o_make_or_get_sect): Likewise.
482         (obj_mach_o_section): Split out the functionality shared with zerofill.
483         (obj_mach_o_zerofill): New.
484         (obj_mach_o_common_parse): Ensure whitespace is skipped.
485         (mach_o_pseudo_table): Add .zerofill.
486
487 2012-01-03  Iain Sandoe  <idsandoe@googlemail.com>
488
489         * config/obj-macho.c (obj_macho_process_stab): New.
490         * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
491         (obj_macho_process_stab): Declare.
492
493 For older changes see ChangeLog-2011
494 \f
495 Local Variables:
496 mode: change-log
497 left-margin: 8
498 fill-column: 74
499 version-control: never
500 End: