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