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