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