PR gas/14201
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
39a45edc
AM
12012-06-07 Alan Modra <amodra@gmail.com>
2
3 PR gas/14201
4 * sb.h (sb_max_power_two): Delete.
5 (struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
6 (sb_element): Delete.
7 (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
8 prototypes.
9 * sb.c (string_count, free_list): Delete.
10 (sb_build, sb_kill, sb_check): Rewrite.
11 (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
12 sb_skip_white, sb_skip_comma): Replace assorted int params,
13 vars and return types with size_t.
14 * input-scrub.c: Likewise.
15 * macro.c: Likewise.
16 * macro.h: Likewise.
17 * as.c: Likewise.
18 * as.h: Likewise.
19 * input-file.h: Likewise.
20 * input-file.c: Likewise.
21 * read.c: Likewise.
22 * app.c: ..or ptrdiff_t.
23 * input-file.c (input_file_get): Use ferror.
24 (input_file_give_next_buffer): Use input_file_get.
25
d416e51d
RM
262012-05-29 Roland McGrath <mcgrathr@google.com>
27
28 * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
29 (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
30 [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
31 pairs.
32
7bfd842d
NC
332012-05-28 Nick Clifton <nickc@redhat.com>
34
35 * read.c (read_symbol_name): New function. Reads a symbol names.
36 Allows escape codes in names.
37 (s_comm_internal): Use read_symbol_name.
38 (s_globl, s_lsym, s_set, s_weakref): Likewise.
39 * doc/as.texinfo: Document support for multibyte characters in
40 symbol names.
41
95bfe26e
MF
422012-05-21 Mike Frysinger <vapier@gentoo.org>
43
44 * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
45 is non-NULL.
46
59365e19
AM
472012-05-19 Alan Modra <amodra@gmail.com>
48
49 * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
50 targets when checking for "comdat".
51
f3719d90
AM
522012-05-19 Alan Modra <amodra@gmail.com>
53
54 * config/tc-dlx.c (s_proc): Don't use asprintf.
55
74cda0c4
AM
562012-05-18 Alan Modra <amodra@gmail.com>
57
58 * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
59 return value.
60
d6ed37ed
AM
612012-05-18 James Lemke <jwlemke@codesourcery.com>
62 Alan Modra <amodra@gmail.com>
63
64 * config/tc-ppc.c: Don't capitalise error and warning messages.
65 (md_parse_option): Add checks for -a32 -mvle.
66
222661cb
AM
672012-05-18 Alan Modra <amodra@gmail.com>
68
69 * config/obj-evax.c: Include as.h first.
70
f2c621e4
AS
712012-05-18 Andreas Schwab <schwab@linux-m68k.org>
72
73 * aclocal.m4: Regenerate.
74 * configure: Regenerate.
75 * Makefile.in: Regenerate.
76
df7b86aa
NC
772012-05-17 Daniel Richard G. <skunk@iskunk.org>
78 Nick Clifton <nickc@redhat.com>
79
80 PR 14072
81 * configure.in: Add check that sysdep.h has been included before
82 any system header files.
83 * configure: Regenerate.
84 * config.in: Regenerate.
85 * aclocal.m4: Regenerate.
86 * Makefile.am: Use wrappers around C files generated by flex.
87 * Makefile.in: Regenerate.
88 * doc/Makefile.in: Regenerate.
89 * itbl-lex-wrapper.c: New file.
90 * config/bfin-lex-wrapper.c: New file.
91 * cgen.c: Include as.h before setjmp.h.
92 * config/tc-dlx.c: Include as.h before any other header.
93 * config/tc-h8300.c: Likewise.
94 * config/tc-lm32.c: Likewise.
95 * config/tc-mep.c: Likewise.
96 * config/tc-microblaze.c: Likewise.
97 * config/tc-mmix.c: Likewise.
98 * config/tc-msp430.c: Likewise.
99 * config/tc-or32.c: Likewise.
100 * config/tc-tic4x.c: Likewise.
101 * config/tc-tic54x.c: Likewise.
102 * config/tc-xtensa.c: Likewise.
103
a0f49396
NC
1042012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
105
106 * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
107 as the first argument for `bfd_get_section_vma'.
108
536695d0
NC
1092012-05-16 Alberto Garcia <agarcia@igalia.com>
110
111 PR gas/14082
112 * app.c (do_scrub_chars): Prevent possible out of bounds access to
113 lex[] array.
114
40551fb8
NC
1152012-05-16 Georg-Johann Lay <avr@gjlay.de>
116
117 PR target/13503
118 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
119 R_AVR_8_HLO8.
120 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
121 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
122
c1c30076
NS
1232012-05-16 Nathan Sidwell <nathan@codesourcery.com>
124 Kwok Cheung Yeung <kcy@codesourcery.com>
125
126 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
127 51qm variants.
128
6927f982
NC
1292012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
130
131 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
132 Add option to offset S12 addresses into XGATE memory space.
133 Tweak target flags to match other tools. (i.e. -m m68hc11).
134 * doc/as.texinfo: Mention new options.
135 * doc/c-m68hc11.texi: Document new options.
136 * NEWS: Mention new support.
137
0e25bcb4
DD
1382012-05-14 DJ Delorie <dj@redhat.com>
139
918edac3
DD
140 * config/rx-parse.y (rx_range): declare.
141 (O1,O2,O3,O4): Add calls to rx_range.
142 (UO1,UO2,UO3): Likewise.
143 (IMM2,IMMB): Likewise.
144 (rx_range): New.
145
0e25bcb4
DD
146 * config/tc-rx.c (rx_fetchalign): Declare.
147 (md_pseudo_table): Add .fetchalign.
148 (RX_NBASE_FETCHALIGN): New.
149 (fetchalign_bytes): New.
150 (rx_fetchalign): New.
151 (rx_frag_init): If a "magic" value is found, also init the
152 machine-specific data.
153 (md_assemble): Note following opcode size if called for.
154 (rx_next_opcode): New.
155 (rx_relax_frag): Support .fetchalign.
156 (md_convert_frag): Likewise.
157 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
158
b9c361e0
JL
1592012-05-14 James Lemke <jwlemke@codesourcery.com>
160
161 * config/tc-ppc.c (insn_validate): New func of existing code to call..
162 (ppc_setup_opcodes): ..from 2 places here.
163 Revise for second (VLE) opcode table.
164 Add #ifdef'd code to print opcode tables.
165
1662012-05-14 James Lemke <jwlemke@codesourcery.com>
167
168 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
169 for the VLE conditional branches.
170
1712012-05-14 Catherine Moore <clm@codesourcery.com>
172 Maciej W. Rozycki <macro@codesourcery.com>
173 Rhonda Wittels <rhonda@codesourcery.com>
174
175 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
176 (PPC_VLE_SPLIT16D): New macro.
177 (PPC_VLE_LO16A): New macro.
178 (PPC_VLE_LO16D): New macro.
179 (PPC_VLE_HI16A): New macro.
180 (PPC_VLE_HI16D): New macro.
181 (PPC_VLE_HA16A): New macro.
182 (PPC_VLE_HA16D): New macro.
183 (PPC_APUINFO_VLE): New definition.
184 (md_chars_to_number): New function.
185 (md_parse_option): Check for combinations of little
186 endian and -mvle.
187 (md_show_usage): Document -mvle.
188 (ppc_arch): Recognize VLE.
189 (ppc_mach): Recognize bfd_mach_ppc_vle.
6927f982 190 (ppc_setup_opcodes): Print the opcode table if
b9c361e0
JL
191 * config/tc-ppc.h (ppc_frag_check): Declare.
192 * doc/c-ppc.texi: Document -mvle.
193 * NEWS: Mention PowerPC VLE port.
194
1952012-05-14 Catherine Moore <clm@codesourcery.com>
196
197 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
198 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
199 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
200 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
6927f982 201 for DWARF2_LINE_MIN_INSN_LENGTH.
b9c361e0 202
56e63005
L
2032012-05-12 H.J. Lu <hongjiu.lu@intel.com>
204
205 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
206 for BFD_RELOC_64.
207
208a4923
NC
2082012-05-11 Daniel Richard G. <skunk@iskunk.org>
209
210 PR binutils/14028
211 * configure.in: Invoke ACX_HEADER_STRING.
212 * configure: Regenerate.
213 * config.in: Regenerate.
214 * as.h: If STRINGS_WITH_STRING is defined then include both
215 string.h and strings.h.
216
99700d6f
NC
2172012-05-11 Georg-Johann Lay <avr@gjlay.de
218
219 PR target/13503
220 * config/tc-avr.c (exp_mod_pm): Remove variable.
221 (exp_mod_data_t): New typedef.
222 (pexp_mod_data, exp_mod_data): New variables.
223 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
224 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
225 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
226 (avr_cons_fix_new): Handle new data expression modifiers shipped
227 in pexp_mod_data.
228 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
229 BFD_RELOC_AVR_8_HHI.
230
268a8d3a
L
2312012-05-10 H.J. Lu <hongjiu.lu@intel.com>
232
233 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
234 addend overflow check.
235
6f2c9068
L
2362012-05-10 H.J. Lu <hongjiu.lu@intel.com>
237
238 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
239 x32 addend overflow check.
240
83acd3e8
L
2412012-05-09 H.J. Lu <hongjiu.lu@intel.com>
242
243 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
244
8cf0d2dd
L
2452012-05-09 H.J. Lu <hongjiu.lu@intel.com>
246
247 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
248 for BFD_RELOC_64.
249
e5b62927
AM
2502012-05-08 Alan Modra <amodra@gmail.com>
251
252 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
253 LC and LANG environment vars.
254 * Makefile.in: Regenerate.
255
cce3d66c
AM
2562012-05-07 Alan Modra <amodra@gmail.com>
257
258 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
259 * Makefile.in: Regenerate.
260
25045f79
AM
2612012-05-06 Arnold Metselaar <arnold_m@operamail.com>
262
263 * config/tc-z80.h(md_register_arithmetic): Define as 0.
cce3d66c
AM
264 * config/tc-z80.c(md_begin): Store register names in symbol table,
265 preventing usage as ordinary symbol.
25045f79
AM
266 * config/tc-z80.c(contains_register): New function.
267 * config/tc-z80.c(parse_exp2): Removed.
268 * config/tc-z80.c(parse_exp_not_indexed): New function.
cce3d66c
AM
269 * config/tc-z80.c(parse_exp): Add code to recogize indexed
270 addressing after parsing.
25045f79 271 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
cce3d66c
AM
272 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
273 condition for jump to register.
274 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
275 parse_exp_not_indexed.
25045f79 276
45dfa85a
AM
2772012-05-05 Alan Modra <amodra@gmail.com>
278
279 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
280 bfd_und_section and bfd_ind_section with their _ptr variants, or
281 use corresponding bfd_is_* macros.
282 * symbols.c: Likewise.
283 * config/obj-aout.c: Likewise.
284 * config/obj-coff-seh.h: Likewise.
285 * config/tc-hppa.c: Likewise.
286 * config/tc-hppa.h: Likewise.
287 * config/tc-ia64.c: Likewise.
288 * config/tc-m32r.c: Likewise.
289 * config/tc-microblaze.c: Likewise.
290 * config/tc-mips.c: Likewise.
291 * config/tc-score.c: Likewise.
292 * config/tc-score7.c: Likewise.
293 * config/tc-tic6x.c: Likewise.
294
3c995545
L
2952012-05-04 H.J. Lu <hongjiu.lu@intel.com>
296
297 * configure.tgt: Support x86_64-*-linux-gnux32.
298
35262a23
L
2992012-05-04 H.J. Lu <hongjiu.lu@intel.com>
300
301 * config/tc-i386.c (match_template): Add `instruction' to
302 unsupported error message.
303
89e71f5c
L
3042012-05-04 H.J. Lu <hongjiu.lu@intel.com>
305
306 * config/tc-i386.c (output_insn): Reformat.
307
ae5c1c7b
L
3082012-05-04 H.J. Lu <hongjiu.lu@intel.com>
309
310 * config/tc-i386.c (output_insn): Remove the extra VEX check.
311
10efe3f6
L
3122012-05-04 H.J. Lu <hongjiu.lu@intel.com>
313
314 * config/tc-i386.c (match_template): Improve unsupported error
315 message.
316
f6c1a2d5
NC
3172012-05-03 Sean Keys <skeys@ipdatasys.com>
318
319 * configure, Makefile.in: Regenerate.
320 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
321 * configure.tgt: Added cpu type.
322 Added files for XGATE assembler.
323 * config/tc-xgate.c: Assembler for XGATE.
324 * config/tc-xgate.h: Header definition for assembler
325 Added files for XGATE testsuite.
326 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
327 * doc/c-xgate.texi: Document XGATE and XGATE port.
328 * doc/as.texinfo: Ditto.
329 * doc/all.texi: Ditto
330 * NEWS: Mention the new support.
331
cad335c9
DD
3322012-04-30 DJ Delorie <dj@redhat.com>
333
334 * config/rx-parse.y (rx_intop): Add parameter for operation size.
335 Check for large positive constants really being small negative
336 ones.
337 (BRA, BSR): Update calls to rx_intop.
338 (immediate): Likewise.
339
88ebb0a1
MW
3402012-04-26 Mark Wielaard <mjw@redhat.com>
341
342 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
343 (DWARF2_LINE_VERSION): Likewise.
344 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
345 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
346 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
347 DWARF2_VERSION >= 4.
348 (out_debug_info): Use difference between start and end as data
349 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
350 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
351
ec668d69
DM
3522012-04-27 David S. Miller <davem@davemloft.net>
353
2755f698
DM
354 * doc/c-sparc.text: Document %l34 and %h34.
355
2e52845b
DM
356 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
357
58004e23
DM
358 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
359 v8pluse, v8plusv, v9e, and v9v.
360 (v9a_asr_table): Add 'pause'.
361
698544e1
DM
362 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
363 sparc4, v8pluse, v8plusv, v9e, and v9v.
364 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
365 order to accomodate cbcond which otherwise would require two
366 relocations to be handled in a single instruction..
367
6cda1326
DM
368 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
369 names containing "_".
370 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
371 hwcap masks to v8plusv and v9v.
372
ec668d69
DM
373 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
374 masks.
375 (sparc_md_end): No longer need to translate hwcap_seen values into
376 ELF hwcap bits, they now match exactly.
377 (get_hwcap_name): Use HWCAP_* and handle new values.
378 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
379
2b0bc501
TG
3802012-04-20 Tristan Gingold <gingold@adacore.com>
381
382 * config/tc-ia64.c (obj_elf_vms_common): New function.
383 (md_pseudo_table): Add .vms_common pseudo.
384 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
385 * config/obj-elf.c (obj_elf_section_name): Make it public.
386
0b649256
RS
3872012-04-17 Richard Sandiford <r.sandiford@uk.ibm.com>
388
389 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
390
2615994e
DM
3912012-04-12 David S. Miller <davem@davemloft.net>
392
393 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
394 BFD_RELOC_SPARC_H34.
395 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
396 (tc_gen_reloc): Likewise.
397
b38cadfb
NC
3982012-04-12 Roland McGrath <mcgrathr@google.com>
399
400 * configure.tgt (arm-*-nacl*): Match it.
401 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
402 (LOCAL_LABELS_DOLLAR): Define.
403 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
404 Use nacl format variants.
405
6530b175
NC
4062012-04-12 Jie Zhang <jie@codesourcery.com>
407 Meador Inge <meadori@codesourcery.com>
408
409 * config/tc-arm.c (only_one_reg_in_list): New function.
410 (encode_ldmstm): Ditto.
411 (do_ldmstm): Use a different encoding when pushing or poping
412 a single register.
413 (A_COND_MASK): New macro.
414 (A_PUSH_POP_OP_MASK): Ditto.
415 (A1_OPCODE_PUSH): Ditto.
416 (A2_OPCODE_PUSH): Ditto.
417 (A2_OPCODE_POP): Ditto.
418
45e279f5
MR
4192012-04-06 Maciej W. Rozycki <macro@linux-mips.org>
420
421 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
422 -mno-fix-24k.
423
58797674
RM
4242012-04-06 Roland McGrath <mcgrathr@google.com>
425
426 * configure.in (AC_CHECK_HEADERS): Add locale.h.
427 * config.in: Regenerate.
428 * configure: Regenerate.
429
44350750
NC
4302012-04-05 Nick Clifton <nickc@redhat.com>
431
432 * configure.in (AC_CHECK_FUNCS): Add setlocale.
433 (AM_LC_MESSAGES): Add.
434 * aclocal.m4: Regenerate.
435 * config.in: Regenerate.
436 * configure: Regenerate.
437
e91a22ce
DD
4382012-04-03 DJ Delorie <dj@redhat.com>
439
440 * config/rx-parse.y: Make the .L optional for ADC and SBB.
441
b1c0804b
DD
4422012-04-02 DJ Delorie <dj@redhat.com>
443
444 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
445 transfer size.
446 (IMM): New, call IMM_ with the default 32.
447 (IMMW,IMMB): Likewise, for 16 and 8.
448 (NIMM, MBIMM): Add size parameter.
449 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
450 (MOV.W): Use IMMW instead of IMM.
451
452 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
453 (op_dp20_rm_l): New.
454 (op_dp20_rim_l): New.
455
456 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
457 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
458
ce32bd10
MGD
4592012-03-29 Terry Guo <terry.guo@arm.com>
460
461 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
462 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
463
55a36193
MK
4642012-03-23 Maxim Kuvyrkov <maxim@codesourcery.com>
465
466 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
467 * doc/c-mips.texi: Mention XLP.
468
32b9ff0d
TS
4692012-03-21 Thomas Schwinge <thomas@codesourcery.com>
470
471 [SH] Support the .uaquad and .8byte directives also for non-sh64
472 configurations.
473
474 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
475 BFD_RELOC_64.
476 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
477 description...
478 * doc/c-sh.texi (SH Machine Directives): ... here.
479
7465e07a
NC
4802012-03-20 Nick Clifton <nickc@redhat.com>
481
482 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
483 registers.
484 (do_vmsr): Likewise.
485 (arm_opcode_insns): Do not default to using the FPSCR register in
486 the VMRS and VMSR registers.
487
8059fb19
RM
4882012-03-16 Roland McGrath <mcgrathr@google.com>
489
490 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
491 Define for this case.
492 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
493
69239280
MGD
4942012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
495
496 * config/tc-arm.c (aeabi_set_public_attributes): Correct
497 handling of Tag_DIV_use.
498
27dcf5c0
TS
4992012-03-15 Thomas Schwinge <thomas@codesourcery.com>
500
501 * doc/as.texinfo (Bundle directives): Fix typo.
502
ec82c18e
L
5032012-03-14 Ryan Mansfield <rmansfield@qnx.com>
504
505 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
506
8d3eaee6 5072012-03-13 Roland McGrath <mcgrathr@google.com>
fa94de6b
RM
508
509 * config/tc-arm.c (arm_frag_max_var): New function.
510 * config/tc-arm.h: Declare it.
511 (md_frag_max_var): New macro.
512
513 * config/tc-i386.c (i386_frag_max_var): New function.
514 * config/tc-i386.h: Declare it.
515 (md_frag_max_var): New macro.
516
517 * doc/as.texinfo (Bundle directives): New node.
518 (Pseudo Ops): Add it to the menu.
519 * NEWS: Mention new feature.
520 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
521 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
522 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
523 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
524 New functions.
525 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
526 to md_assembly if not.
527 (read_a_source_file): Call assemble_one in place of md_assemble.
528 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
529 .bundle_lock at end of processing.
530 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
531 New functions.
532 [HANDLE_BUNDLE] (potable): Add their entries.
533 * read.h: Declare new functions.
534
aea77599
AM
5352012-03-10 Edmar Wienskoski <edmar@freescale.com>
536
537 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
538 (ppc_handle_align): Add termination nop opcode for e500mc family.
539 * doc/as.texinfo: Document options -me5500 and -me6500.
540 * doc/c-ppc.texi: Likewise.
541
0a22ae8e
NC
5422012-03-07 Nick Clifton <nickc@redhat.com>
543
544 * config/tc-mn10300.c (other_registers): Add SSP and USP.
545 (md_assemble): Add support for TLS relocs.
546 (mn10300_parse_name): Likewise.
547
805e800d
AM
5482012-02-27 Alan Modra <amodra@gmail.com>
549
550 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
551
b9fcee79
AM
5522012-02-27 Alan Modra <amodra@gmail.com>
553
554 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
555 params. Properly generate NOP pattern. Comment reason for
556 subseg_text_p failure.
557
35a35807
AM
5582012-02-27 Alan Modra <amodra@gmail.com>
559
560 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
561 and sign extend before range tests.
562 (constant_fits_size_p): Similarly.
563 (get_specific): Trim X_add_number to 32 bits.
564 (fix_operand_size): Likewise, and use unsigned test for signed
565 ranges.
566
1f42f8b3
AM
5672012-02-27 Alan Modra <amodra@gmail.com>
568
569 * config/tc-crx.c: Include bfd_stdint.h.
570 (getconstant): Remove irrelevant comment. Don't fail due to
571 sign-extension of int mask.
572 (check_range): Rewrite using unsigned arithmetic throughout.
573
481fe810
WL
5742012-02-25 Walter Lee <walt@tilera.com>
575
576 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
577 non-local before checking sy_value.
578 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
579
6f7be959
WL
5802012-02-25 Walter Lee <walt@tilera.com>
581
582 * tc-tilepro.c (O_tls_le): Define operator.
583 (O_tls_le_lo16): Ditto.
584 (O_tls_le_hi16): Ditto.
585 (O_tls_le_ha16): Ditto.
586 (O_tls_gd_call): Ditto.
587 (O_tls_gd_add): Ditto.
588 (O_tls_ie_load): Ditto.
589 (md_begin): Delete old operators; handle new operators.
590 (emit_tilepro_instruction): Ditto.
591 (md_apply_fix): Ditto.
592 * tc-tilegx.c (O_hw1_got): Delete operator.
593 (O_hw2_got): Ditto.
594 (O_hw3_got): Ditto.
595 (O_hw2_last_got): Ditto.
596 (O_hw1_tls_gd): Ditto.
597 (O_hw2_tls_gd): Ditto.
598 (O_hw3_tls_gd): Ditto.
599 (O_hw2_last_tls_gd): Ditto.
600 (O_hw1_tls_ie): Ditto.
601 (O_hw2_tls_ie): Ditto.
602 (O_hw3_tls_ie): Ditto.
603 (O_hw2_last_tls_ie): Ditto.
604 (O_hw0_tls_le): Define operator.
605 (O_hw0_last_tls_le): Ditto.
606 (O_hw1_last_tls_le): Ditto.
607 (O_tls_gd_call): Ditto.
608 (O_tls_gd_add): Ditto.
609 (O_tls_ie_load): Ditto.
610 (O_tls_add): Ditto.
611 (md_begin): Delete old operators; handle new operators.
612 (emit_tilegx_instruction): Ditto.
613 (md_apply_fix): Ditto.
614 * doc/c-tilegx.texi: Delete old operators; document new operators.
615 * doc/c-tilepro.texi: Ditto.
616
82590249
WL
6172012-02-25 Walter Lee <walt@tilera.com>
618
5414dbef
WL
619 * tc-tilepro.c (apply_special_operator): delete cases for
620 got and tls operators.
621 (md_apply_fix): Ditto.
fb6cedde
WL
622 * tc-tilegx.c (md_begin): Set architecture and machine.
623 (tilegx_target_format): Handle big endian.
624 (OPTION_EB): Define.
625 (OPTION_EL): Define.
626 (md_longopts): Add entries for "EB" and "EL".
627 (md_parse_option): Handle OPTION_EB and OPTION_EL.
628 (md_show_usage): Add -EB and -EL.
629 (md_number_to_chars): New.
5414dbef
WL
630 (apply_special_operator): delete cases for got and tls
631 operators.
632 (md_apply_fix): Ditto.
fb6cedde
WL
633 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
634 ifndef.
635 (md_number_to_chars): Delete.
636 * configure.tgt (tilegx*be): Handle.
637 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
638 * doc/c-tilegx.texi: Ditto.
82590249 639
82c2def5
L
6402012-02-21 H.J. Lu <hongjiu.lu@intel.com>
641
642 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
643 HLEPrefixAny and HLEPrefixRelease.
644
1bf10b0d
NC
6452012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
646
647 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
648
16a87420
IS
6492012-02-21 Iain Sandoe <idsandoe@googlemail.com>
650
651 * write.c (write_object_file): Add md_pre_output_hook.
652 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
653 (obj_mach_o_pre_output_hook): New.
654 * config/obj-macho.h (md_pre_output_hook): Define.
655 (obj_mach_o_pre_output_hook): Declare.
656
cdaa5616
IS
6572012-02-21 Tristan Gingold <gingold@adacore.com>
658
659 * config/tc-i386.h (OBJ_MACH_O): New section.
660 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
661 (TC_FORCE_RELOCATION_SUB_SAME): New
662 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
663 (TC_VALIDATE_FIX_SUB): New.
664 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
665 * symbols.c (colon): obj_frob_colon: New hook.
666 * write.c (write_object_file): md_pre_relax_hook, new
667 hook.
668 * config/obj-macho.c (obj_mach_o_frob_colon): New.
669 (obj_mach_o_frob_label): Record sub-section labels.
670 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
671 (obj_mach_o_set_subsections): New.
672 (obj_mach_o_pre_relax_hook): New.
673 (obj_mach_o_in_different_subsection): New.
674 (obj_mach_o_force_reloc_sub_same): New.
675 (obj_mach_o_force_reloc_sub_local): New.
676 (obj_mach_o_force_reloc): New.
677 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
678 (obj_frob_colon): New Define.
679 (obj_mach_o_frob_label): Renamed.
680 (obj_mach_o_frob_symbol): Renamed.
681 (OBJ_FRAG_TYPE): New.
682 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
683 obj_mach_o_force_reloc_sub_same,
684 obj_mach_o_force_reloc_sub_local): New declarations.
685
854ac8ba
IS
6862012-02-20 Iain Sandoe <idsandoe@googlemail.com>
687
688 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
689 (obj_mach_o_allow_local_subtract): New.
690 * config/obj-macho.h (md_allow_local_subtract): Define.
691 (obj_mach_o_allow_local_subtract): Declare.
692
a5759139
IS
6932012-02-20 Iain Sandoe <idsandoe@googlemail.com>
694
695 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
696 canonical information, try to determine CODE and DEBUG section flags
697 from the mach-o section data.
698
9ad45734
NC
6992012-02-20 Nick Clifton <nickc@redhat.com>
700
701 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
702 local symbols.
703
8e43fc02
IS
7042012-02-12 Iain Sandoe <idsandoe@googlemail.com>
705
706 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
707 any local symbol used as an indirect.
708
fb4914b0
IS
7092012-02-10 Iain Sandoe <idsandoe@googlemail.com>
710
711 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
712 stub size when provided. (obj_mach_o_section): Flag that stub-size
713 has been provided.
714
42164a71
L
7152012-02-08 H.J. Lu <hongjiu.lu@intel.com>
716
717 * config/tc-i386.c (HLE_PREFIX): New.
718 (check_hle): Likewise.
719 (_i386_insn): Add have_hle.
720 (cpu_arch): Add .hle and .rtm.
721 (md_assemble): Call check_hle if i.have_hle isn't zero.
722 (parse_insn): Set i.have_hle to 1 for HLE prefix.
723 (output_jump): Support up to 2 byte opcode.
724
725 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
726
facf03f2
TG
7272012-02-02 Tristan Gingold <gingold@adacore.com>
728
729 * config/obj-macho.c (obj_mach_o_zerofill): Silent
730 uninitialized variable warning.
731
f6616a06
NC
7322012-02-02 Nick Clifton <nickc@redhat.com>
733
734 PR gas/13224
735 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
736 to 'is_clone' to avoid shadowing a gloabl.
737 (obj_elf_section): Likewise.
738
bac03263 7392012-01-31 Paul Brook <paul@codesourcery.com>
f6616a06 740
bac03263
PB
741 * doc/c-tic6x.c: Fix typo.
742
f8819316
NC
7432012-01-26 Alexey Makhalov <makhaloff@gmail.com>
744
745 PR gas/13624
746 * app.c (app_push): Set 'add_newlines' to zero after saving.
747
21abe33a
DD
7482012-01-24 DJ Delorie <dj@redhat.com>
749
750 * config/rl78-parse.y (NOT1): Add.
751
8d63c93e
RM
7522012-01-23 Roland McGrath <mcgrathr@google.com>
753
754 * configure.tgt (i386-*-nacl*): Match it.
755 * config/te-nacl.h: New file.
756 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
757 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
758 Use TE_GNU et al case for TE_NACL too.
759
a501d77e
L
7602012-01-20 H.J. Lu <hongjiu.lu@intel.com>
761
762 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
763 disp_encoding.
764 (md_assemble): Updated.
765 (output_branch): Likewise.
766 (parse_insn): Support .d8 suffix.
767 (build_modrm_byte): Fake zero displacement for .d8 and .d32
768 suffixes.
769
770 * doc/c-i386.texi: Document .d8 suffix.
771
032fbb7a
AM
7722012-01-17 Andrew Burgess <aburgess@broadcom.com>
773
774 * write.c (fix_new_internal): Don't mark used parameter as unused.
775
576477a6
AM
7762012-01-17 Alan Modra <amodra@gmail.com>
777
778 * as.c (parse_args): Update copyright message year.
779
8729a6f6
L
7802012-01-13 H.J. Lu <hongjiu.lu@intel.com>
781
782 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
783
784 * doc/c-i386.texi: Document vmfunc.
785
34dd18bc
IS
7862012-01-13 Tristan Gingold <gingold@adacore.com>
787
788 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
789 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
790 (obj_mach_o_reorder_section_relocs): Declare.
791
687be931
IS
7922012-01-13 Iain Sandoe <idsandoe@googlemail.com>
793
794 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
795 absolute indirect symbols.
796
c3402d20
IS
7972012-01-13 Iain Sandoe <idsandoe@googlemail.com>
798
799 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
800 (obj_mach_o_set_section_vma): New.
801 (obj_mach_o_post_relax_hook): New.
802 * config/obj-macho.h (md_post_relax_hook): Define.
803 (obj_mach_o_post_relax_hook): Declare.
804
50d10658
IS
8052012-01-12 Iain Sandoe <idsandoe@googlemail.com>
806
807 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
808 lazy when the symbol is private_extern.
809 (obj_mach_o_indirect_sym): New type.
810 (obj_mach_o_indirect_symbol): New.
811 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
812 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
813 (obj_macho_frob_label): Likewise. Adjust external and comm
814 symbol tests.
815 (obj_mach_o_set_indirect_symbols): New.
816 (obj_mach_o_frob_file_after_relocs): New.
817 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
818 (obj_mach_o_frob_file_after_relocs): Declare.
819
0a4734dc
TG
8202012-01-12 Tristan Gingold <gingold@adacore.com>
821
822 PR gas/13591
823 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
824
158184ac
TG
8252012-01-10 Tristan Gingold <gingold@adacore.com>
826
827 * struc-symbol.h (struct symbol_flags): New struct, created from...
828 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
829 (struct local_symbol): Replace lsy_marker field by lsy_flags.
830 Adjust comment.
831 (local_symbol_resolved_p): Adjust.
832 (local_symbol_mark_resolved): Likewise.
833 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
834 (local_symbol_make, local_symbol_convert, colon)
835 (symbol_clone_if_forward_ref, verify_symbol_chain)
836 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
837 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
838 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
839 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
840 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
841 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
842 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
843 (symbol_mark_mri_common, symbol_clear_mri_common)
844 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
845 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
846 (symbol_equated_reloc_p, dot_symbol_init)
847 (print_symbol_value_1): Adjust.
848
b22161d6
IS
8492012-01-09 Iain Sandoe <idsandoe@googlemail.com>
850
851 * config/obj-macho.c (obj_mach_o_weak): Remove.
852 (obj_mach_o_common_parse): Set symbol qualifiers.
853 (LAZY, REFE): New macros.
854 (obj_mach_o_symbol_type): New enum.
855 (obj_mach_o_set_symbol_qualifier): New.
856 (obj_mach_o_sym_qual): New.
857 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
858 a dummy function.
859 (obj_mach_o_type_for_symbol): New.
860 (obj_macho_frob_label): New.
861 (obj_macho_frob_symbol): New.
862 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
863 (obj_frob_label, obj_macho_frob_label): Declare.
864 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
865
de64cffd
RS
8662012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
867
868 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
869
462427c4
RS
8702012-01-08 Andrew Pinski <andrew.pinski@caviumnetworks.com>
871 Richard Sandiford <rdsandiford@googlemail.com>
872
873 * config/tc-mips.c (mips_move_labels): Take the list of labels and
874 textness as parameters.
875 (mips_move_text_labels): New function.
876 (append_insn): Use it instead of mips_move_labels.
877 (mips_emit_delays, start_noreorder): Likewise.
878 (mips_align): Take the labels rather than just one label.
879 Move all labels to after the .align.
880 (s_align): Change the last argument to mips_align.
881 (s_cons): Likewise.
882 (s_float_cons): Likewise.
883 (s_gpword): Likewise.
884 (s_gpdword): Likewise.
885
d382c579
TG
8862012-01-06 Tristan Gingold <gingold@adacore.com>
887
888 * config/tc-i386.c: Update copyright year.
889 (lex_got): Also defined for Mach-O.
890 Add a guard for non-ELF configuration.
891 (md_longopts): Also handle -64 for Mach-O.
892 (md_parse_option): Likewise.
893 (i386_target_format): Adjust for x86_64-darwin.
894
8cf6e084
IS
8952012-01-04 Iain Sandoe <idsandoe@googlemail.com>
896
897 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
898 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
899 (obj_mach_o_make_or_get_sect): Likewise.
900 (obj_mach_o_section): Split out the functionality shared with zerofill.
901 (obj_mach_o_zerofill): New.
902 (obj_mach_o_common_parse): Ensure whitespace is skipped.
903 (mach_o_pseudo_table): Add .zerofill.
904
68588f95
IS
9052012-01-03 Iain Sandoe <idsandoe@googlemail.com>
906
907 * config/obj-macho.c (obj_macho_process_stab): New.
908 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
909 (obj_macho_process_stab): Declare.
910
23e1d329 911For older changes see ChangeLog-2011
08d56133
NC
912\f
913Local Variables:
914mode: change-log
915left-margin: 8
916fill-column: 74
917version-control: never
918End:
This page took 0.548268 seconds and 4 git commands to generate.