1 2016-02-19 Nick Clifton <nickc@redhat.com>
4 * read.c (read_a_source_file): Check for assemble_one returning
5 with input_line_pointer set to NULL.
7 016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
9 * listing.c (rebuffer_line): Change return type to void.
11 * symbols.c (decode_local_label_name): Make type a const char *.
12 * listing.c (print_source): Make type of p const char *.
13 (print_line): Make type of string const char *.
14 (buffer_line): Return const char *.
15 (title): Make type const char *.
17 (listing_listing): Make type of p const char *.
18 * messages.c (as_internal_value_out_of_range): Make type of prefix
20 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
21 and string const char *.
22 * read.c (_bfd_rel): Make type of name const char *.
23 * app.c (out_string): Change type to const char *.
24 (struct app_save::out_string): Likewise.
26 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
27 Nick Clifton <nickc@redhat.com>
29 * read.c (finish_bundle): Avoid recording a negative alignment.
30 (do_align): Use unsigned values for n, len and max. Only create
31 a frag if the alignment requirement is greater than the minimum
32 byte alignment. Avoid recording a negative alignment.
33 (s_align): Use unsigned values where appropriate.
34 (bss_alloc): Use an unsigned value for the alignment.
35 (sizeof_sleb128): Add a comment noting that we encode one octet
36 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
37 (emit_leb129_expr): Abort if the emitted encoding was longer than
39 * read.h (output_leb128): Update prototype.
40 (sizeof_leb128): Update prototype.
41 (bss_alloc): Update prototype.
42 * write.c (record_alignment): Use an unsigned value for the
43 alignment. Do not record alignments less than the minimum
45 * write.h (record_alignment): Update prototype.
47 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
49 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
50 .init.literal/.fini.literal section name.
51 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
53 * testsuite/gas/xtensa/init-fini-literals.d: New file:
54 init-fini-literals test result patterns.
55 * testsuite/gas/xtensa/init-fini-literals.s: New file:
56 init-fini-literals test.
58 2016-02-17 Nick Clifton <nickc@redhat.com>
60 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
61 devices.csv file as of March 2016.
63 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
65 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
67 (tc_arc_regname_to_dw2regnum): Likewise.
68 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
69 (tc_cfi_frame_initial_instructions): Likewise.
70 (tc_regname_to_dw2regnum): Likewise.
72 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
74 * doc/internals.texi (S_IS_EXTERN): Remove.
76 2016-02-16 Nick Clifton <nickc@redhat.com>
78 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
81 2016-02-16 Renlin Li <renlin.li@arm.com>
84 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
85 * testsuite/gas/aarch64/movw_label.d: New.
86 * testsuite/gas/aarch64/movw_label.s: New.
88 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
91 * config/rx-parse.y (MOV): Opcode generation for index
92 register addressing mode.
93 * testsuite/gas/rx/rx.exp: Updated for new testcase.
94 * testsuite/gas/rx/pr19665.s: New file.
95 * testsuite/gas/rx/pr19665.s: New file.
96 * testsuite/gas/rx/mov.d: Update expected output.
98 2016-02-15 Nick Clifton <nickc@redhat.com>
100 * doc/as.texinfo (.section): Document that numeric values can now
101 be used for the flags and type fields of the ELF target's .section
102 directive. Add notes about the restrictions on setting flags and
104 * config/obj-elf.c (obj_elf_change_section): Allow known sections
105 to be given processor specific section types. Allow processor and
106 application specific flags of a section to be set after
108 (obj_elf_parse_section_letters): Handle parsing numeric values.
109 (obj_elf_section_type): Handle parsing numeric values.
110 (obj_elf_section): Allow numeric type values.
111 * config/obj-elf.h (obj_elf_change_section): Update prototype.
112 * testsuite/gas/elf/section10.d: New test.
113 * testsuite/gas/elf/section10.s: Source file for new test.
114 * testsuite/gas/elf/elf.exp: Run the new test.
115 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
116 the description of the flags produced by readelf.
117 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
118 * NEWS: Mention the new feature.
120 2016-02-11 Nick Clifton <nickc@redhat.com>
123 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
124 until it is actually used.
125 (cfi_set_sections): Set cfi_sections_set to true.
126 (dot_cfi_startproc): Likewise.
127 (dot_cfi_endproc): Likewise.
128 (dot_cfi_fde_data): Likewise.
129 (cfi_finish): Likewise.
130 (dot_cfi_sections): Do not set cfi_sections_set.
131 * doc/as.texinfo (.cfi_sections): Note that targets can provide
132 their own cfi section name. Also note that the directive can be
133 reissued provided that CFI generation has not started.
134 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
135 .cfi_endproc directives so that the redefinition of .cfi_sections
136 will trigger the generation of the error message.
137 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
138 number of error message.
140 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
141 Janek van Oirschot <jvanoirs@synopsys.com>
143 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
144 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
146 (arc_flags, arc_relax_type): New structure.
147 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
148 (RELAX_TABLE_ENTRY_MAX): New define.
149 (relaxation_state, md_relax_table, arc_relaxable_insns)
150 (arc_num_relaxable_ins): New variable.
151 (rlx_operand_type, arc_rlx_types): New enums.
152 (arc_relaxable_ins): New structure.
153 (OPTION_RELAX): New option.
154 (arc_insn): New relax member.
156 (relax_insn_p): New function.
157 (apply_fixups): Likewise.
158 (relaxable_operand): Likewise.
159 (may_relax_expr): Likewise.
160 (relaxable_flag): Likewise.
161 (arc_pcrel_adjust): Likewise.
162 (md_estimate_size_before_relax): Implement.
163 (md_convert_frag): Likewise.
164 (md_parse_option): Handle new mrelax option.
165 (md_show_usage): Likewise.
166 (assemble_insn): Set relax member.
167 (emit_insn0): New function.
168 (emit_insn1): Likewise.
169 (emit_insn): Handle relaxation case.
170 * NEWS: Mention the new relaxation option.
171 * doc/c-arc.texi (ARC Options): Document new mrelax option.
172 * doc/as.texinfo (Target ARC Options): Likewise.
173 * testsuite/gas/arc/relax-avoid1.d: New file.
174 * testsuite/gas/arc/relax-avoid1.s: Likewise.
175 * testsuite/gas/arc/relax-avoid2.d: Likewise.
176 * testsuite/gas/arc/relax-avoid2.s: Likewise.
177 * testsuite/gas/arc/relax-avoid3.d: Likewise.
178 * testsuite/gas/arc/relax-avoid3.s: Likewise.
179 * testsuite/gas/arc/relax-b.d: Likewise.
180 * testsuite/gas/arc/relax-b.s: Likewise.
182 2016-02-08 Nick Clifton <nickc@redhat.com>
184 * config/tc-ia64.c (dot_prologue): Fix formatting.
186 2016-02-04 Nick Clifton <nickc@redhat.com>
188 * config/obj-elf.c (obj_elf_change_section): Remove support for
190 * config/tc-arm.c (arm_elf_section_letter): Delete.
191 * config/tc-arm.h (md_elf_section_letter): Delete.
192 * doc/c-arm.texi (ARM Section Attribute): Delete section.
193 * testsuite/gas/arm/section-execute-only.d: Delete.
194 * testsuite/gas/arm/section-execute-only.s: Delete.
196 2016-02-04 Nick Clifton <nickc@redhat.com>
199 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
200 to handle encoding of RRUX instruction.
201 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
203 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
205 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
207 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
208 substitutions for BFD_RELOC_* as unsigned.
209 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
210 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
211 * testsuite/gas/xtensa/loc.s: New file: loc test.
213 2016-02-03 Kevin Buettner <kevinb@redhat.com>
215 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
217 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
220 * NEWS: Mention new command line option -mrelax-relocations and
221 new configure option --enable-x86-relax-relocations for x86
223 * config.in: Regenerated.
224 * configure.ac: Add --enable-x86-relax-relocations.
225 (ac_default_x86_relax_relocations): New. Default to 1 except
226 for x86 Solaris targets older than Solaris 12.
227 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
228 * configure: Likewise.
229 * config/tc-i386.c (generate_relax_relocations): New.
230 (OPTION_MRELAX_RELOCATIONS): Likewise.
231 (output_disp): Don't generate relax relocations if
232 generate_relax_relocations is 0.
233 (md_longopts): Add -mrelax-relocations.
234 (md_show_usage): Likewise.
235 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
236 * doc/c-i386.texi: Document -mrelax-relocations=.
237 * testsuite/gas/i386/got-no-relax.d: New file.
238 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
239 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
240 * testsuite/gas/i386/localpic.d: Likewise.
241 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
242 * testsuite/gas/i386/reloc32.d: Likewise.
243 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
244 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
245 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
246 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
247 * testsuite/gas/i386/i386.exp: Run got-no-relax and
248 x86-64-gotpcrel-no-relax.
250 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
252 * NEWS: Mention new command line option -mfence-as-lock-add=yes
255 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
257 * NEWS: Remove duplicated marker for 2.26.
259 2016-02-02 Renlin Li <renlin.li@arm.com>
261 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
263 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
265 * testsuite/gas/ip2k/allinsn.d: New file.
266 * testsuite/gas/ip2k/allinsn.s: New file.
267 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
269 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
271 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
272 some load instructions.
273 * testsuite/gas/epiphany/allinsn.d: Likewise.
274 * testsuite/gas/epiphany/regression.d: Likewise.
276 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
278 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
279 suffixes from instruction mnemonics in expected output.
280 * testsuite/gas/epiphany/allinsn.d: Likewise.
281 * testsuite/gas/epiphany/regression.d: Likewise.
282 * testsuite/gas/epiphany/sample.d: Likewise.
284 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
286 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
288 * testsuite/gas/epiphany/allinsn.d: Likewise.
289 * testsuite/gas/epiphany/sample.d: Likewise.
291 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
293 * testsuite/gas/epiphany/sample.d: Update expected output.
295 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
297 * config/tc-arc.c (md_apply_fix): Allow addendum.
298 (arc_reloc_op): Allow complex expressions for tpoff.
299 (md_apply_fix): Handle resolved TLS local symbol.
301 * testsuite/gas/arc/tls-relocs1.d: New file.
302 * testsuite/gas/arc/tls-relocs1.s: Likewise.
304 2016-02-01 Loria <Loria@phantasia.org>
307 * config/tc-arm.c (encode_arm_immediate): Recode to improve
308 efficiency and avoid an LLVM loop optimization bug.
310 2016-02-01 Nick Clifton <nickc@redhat.com>
312 * config/tc-microblaze.c (parse_imm): Fix compile time warning
313 message extending a negative 32-bit value into a larger signed
314 value on a 32-bit host.
316 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
319 * configure.ac (compressed_debug_sections): Replace == with =.
320 * configure: Regenerated.
322 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
323 H.J. Lu <hongjiu.lu@intel.com>
325 * config/tc-i386.c (avoid_fence): New.
326 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
328 (OPTION_FENCE_AS_LOCK_ADD): New.
329 (md_longopts): Add -mfence-as-lock-add.
330 (md_parse_option): Handle -mfence-as-lock-add.
331 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
332 * doc/c-i386.texi (-mfence-as-lock-add): Document.
333 * testsuite/gas/i386/i386.exp: Run new tests.
334 * testsuite/gas/i386/fence-as-lock-add.s: New.
335 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
336 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
337 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
338 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
340 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
342 * configure.ac (compressed_debug_sections): Remove trailing `]'.
343 * configure: Regenerated.
345 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
347 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
348 (OPTION_MOMIT_LOCK_PREFIX): This.
349 (md_longopts): Updated.
350 (md_parse_option): Likewise.
352 2016-01-25 Catherine Moore <clm@codesourcery.com>
354 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
355 if abicalls are in effect.
356 * testsuite/gas/mips/sdata-gp.s: New test.
357 * testsuite/gas/mips/sdata-gp.d: New expected output
358 * testsuite/gas/mips/mips.exp: Run new test.
360 2016-01-25 Renlin Li <renlin.li@arm.com>
362 * testsuite/gas/arm/thumb2_it_search.d: New.
363 * testsuite/gas/arm/thumb2_it_search.s: New.
365 2016-01-21 Nick Clifton <nickc@redhat.com>
368 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
369 with arm-netbsdelf target.
370 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
372 2016-01-20 Nick Clifton <nickc@redhat.com>
375 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
376 * testsuite/gas/arm/blx-bl-convert.d
377 * testsuite/gas/arm/plt-1.d: Likewise.
378 * testsuite/gas/arm/reloc-bad.d: Likewise.
379 * testsuite/gas/arm/thumb-w-good.d: Likewise.
380 * testsuite/gas/arm/thumb2_pool.d: Likewise.
381 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
382 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
385 * doc/as.texinfo (Errors): Correct documentation describing the
386 interaction of .file and .line with warning and error messages.
389 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
390 * testsuite/gas/arm/archv8m-main.d: Likewise.
391 * testsuite/gas/arm/archv8m-base.d: Likewise.
393 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
395 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
396 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
397 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
399 2016-01-20 Mickael Guene <mickael.guene@st.com>
400 Terry Guo <terry.guo@arm.com>
402 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
403 SHF_ARM_NOREAD section flag.
404 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
406 (arm_elf_section_letter) : Declare it.
407 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
408 SHF_ARM_NOREAD section flag.
409 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
411 * testsuite/gas/arm/section-execute-only.s: New test case.
412 * testsuite/gas/arm/section-execute-only.d: Expected output.
414 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
416 * config/tc-mips.c (micromips_insn_length): Remove the mention
417 of 48-bit microMIPS instructions.
419 2016-01-18 Alan Modra <amodra@gmail.com>
421 * configure: Regenerate.
423 2016-01-17 Alan Modra <amodra@gmail.com>
425 * configure: Regenerate.
427 2016-01-17 Alan Modra <amodra@gmail.com>
429 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
431 2016-01-14 Nick Clifton <nickc@redhat.com>
433 * testsuite/gas/rl78/sp-relative-movw.s: New test.
434 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
435 * testsuite/gas/rl78/rl78.exp: Run the new test.
437 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
439 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
440 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
442 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
444 * config/tc-nios2.c (output_movia): Preset `code' to 0.
446 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
448 * config/tc-h8300.c (get_operand): Remove spurious condition in
449 test for closing parenthesis.
451 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
453 * config/tc-arm.c (arm_ext_v8_2): New.
455 * testsuite/gas/arm/armv8_2-a.d: New.
456 * testsuite/gas/arm/armv8_2-a.s: New.
458 2016-01-12 Alan Modra <amodra@gmail.com>
460 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
462 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
464 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
465 xvcmpnesp, xvcmpnesp.>: Delete tests.
466 * testsuite/gas/ppc/power9.s: Likewise.
467 * testsuite/gas/ppc/vsx3.d: Likewise.
468 * testsuite/gas/ppc/vsx3.s: Likewise.
470 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
473 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
474 * testsuite/gas/m68k/p13050-1.s: New file.
475 * testsuite/gas/m68k/p13050-2.d: New file.
476 * testsuite/gas/m68k/p13050-2.s: New file.
478 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
480 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
481 * testsuite/gas/arc/add.d: Likewise.
482 * testsuite/gas/arc/and.d: Likewise.
483 * testsuite/gas/arc/asl.d: Likewise.
484 * testsuite/gas/arc/asr.d: Likewise.
485 * testsuite/gas/arc/bic.d: Likewise.
486 * testsuite/gas/arc/extb.d: Likewise.
487 * testsuite/gas/arc/extw.d: Likewise.
488 * testsuite/gas/arc/j.d: Likewise.
489 * testsuite/gas/arc/jl.d: Likewise.
490 * testsuite/gas/arc/ld2.d: Likewise.
491 * testsuite/gas/arc/lsr.d: Likewise.
492 * testsuite/gas/arc/mov.d: Likewise.
493 * testsuite/gas/arc/or.d: Likewise.
494 * testsuite/gas/arc/pcl-relocs.d: Likewise.
495 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
496 * testsuite/gas/arc/pic-relocs.d: Likewise.
497 * testsuite/gas/arc/plt-relocs.d: Likewise.
498 * testsuite/gas/arc/rlc.d: Likewise.
499 * testsuite/gas/arc/ror.d: Likewise.
500 * testsuite/gas/arc/rrc.d: Likewise.
501 * testsuite/gas/arc/sbc.d: Likewise.
502 * testsuite/gas/arc/sda-relocs.d: Likewise.
503 * testsuite/gas/arc/sda-relocs2.d: Likewise.
504 * testsuite/gas/arc/sexb.d: Likewise.
505 * testsuite/gas/arc/sexw.d: Likewise.
506 * testsuite/gas/arc/st.d: Likewise.
507 * testsuite/gas/arc/sub.d: Likewise.
508 * testsuite/gas/arc/tls-relocs.d: Likewise.
509 * testsuite/gas/arc/xor.d: Likewise.
511 2016-01-01 Alan Modra <amodra@gmail.com>
513 Update year range in copyright notice of all files.
515 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
517 Copyright (C) 2016 Free Software Foundation, Inc.
519 Copying and distribution of this file, with or without modification,
520 are permitted in any medium without royalty provided the copyright
521 notice and this notice are preserved.
527 version-control: never