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