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