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