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