Allow the .cfi_sections directive to be reissued provided that CFI generation has...
[external/binutils.git] / gas / ChangeLog
1 2016-02-11  Nick Clifton  <nickc@redhat.com>
2
3         PR gas/19614
4         * dw2gencfi.c (cfi_sections_set): Delay setting this variable
5         until it is actually used.
6         (cfi_set_sections): Set cfi_sections_set to true.
7         (dot_cfi_startproc): Likewise.
8         (dot_cfi_endproc): Likewise.
9         (dot_cfi_fde_data): Likewise.
10         (cfi_finish): Likewise.
11         (dot_cfi_sections): Do not set cfi_sections_set.
12         * doc/as.texinfo (.cfi_sections): Note that targets can provide
13         their own cfi section name.  Also note that the directive can be
14         reissued provided that CFI generation has not started.
15         * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
16         .cfi_endproc directives so that the redefinition of .cfi_sections
17         will trigger the generation of the error message.
18         * testsuite/gas/mips/compact-eh-err2.l: Update expected line
19         number of error message.
20
21 2016-02-10  Claudiu Zissulescu  <claziss@synopsys.com>
22             Janek van Oirschot <jvanoirs@synopsys.com>
23
24         * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
25         (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
26         Define.
27         (arc_flags, arc_relax_type): New structure.
28         * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
29         (RELAX_TABLE_ENTRY_MAX): New define.
30         (relaxation_state, md_relax_table, arc_relaxable_insns)
31         (arc_num_relaxable_ins): New variable.
32         (rlx_operand_type, arc_rlx_types): New enums.
33         (arc_relaxable_ins): New structure.
34         (OPTION_RELAX): New option.
35         (arc_insn): New relax member.
36         (arc_flags): Remove.
37         (relax_insn_p): New function.
38         (apply_fixups): Likewise.
39         (relaxable_operand): Likewise.
40         (may_relax_expr): Likewise.
41         (relaxable_flag): Likewise.
42         (arc_pcrel_adjust): Likewise.
43         (md_estimate_size_before_relax): Implement.
44         (md_convert_frag): Likewise.
45         (md_parse_option): Handle new mrelax option.
46         (md_show_usage): Likewise.
47         (assemble_insn): Set relax member.
48         (emit_insn0): New function.
49         (emit_insn1): Likewise.
50         (emit_insn): Handle relaxation case.
51         * NEWS: Mention the new relaxation option.
52         * doc/c-arc.texi (ARC Options): Document new mrelax option.
53         * doc/as.texinfo (Target ARC Options): Likewise.
54         * testsuite/gas/arc/relax-avoid1.d: New file.
55         * testsuite/gas/arc/relax-avoid1.s: Likewise.
56         * testsuite/gas/arc/relax-avoid2.d: Likewise.
57         * testsuite/gas/arc/relax-avoid2.s: Likewise.
58         * testsuite/gas/arc/relax-avoid3.d: Likewise.
59         * testsuite/gas/arc/relax-avoid3.s: Likewise.
60         * testsuite/gas/arc/relax-b.d: Likewise.
61         * testsuite/gas/arc/relax-b.s: Likewise.
62
63 2016-02-08  Nick Clifton  <nickc@redhat.com>
64
65         * config/tc-ia64.c (dot_prologue): Fix formatting.
66
67 2016-02-04  Nick Clifton  <nickc@redhat.com>
68
69         * config/obj-elf.c (obj_elf_change_section): Remove support for
70         ARM NOREAD sections.
71         * config/tc-arm.c (arm_elf_section_letter): Delete.
72         * config/tc-arm.h (md_elf_section_letter): Delete.
73         * doc/c-arm.texi (ARM Section Attribute): Delete section.
74         * testsuite/gas/arm/section-execute-only.d: Delete.
75         * testsuite/gas/arm/section-execute-only.s: Delete.
76
77 2016-02-04  Nick Clifton  <nickc@redhat.com>
78
79         PR target/19561
80         * config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
81         to handle encoding of RRUX instruction.
82         * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
83         shift instructions.
84         * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
85
86 2016-02-03  Max Filippov  <jcmvbkbc@gmail.com>
87
88         * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
89         substitutions for BFD_RELOC_* as unsigned.
90         * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
91         * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
92         * testsuite/gas/xtensa/loc.s: New file: loc test.
93
94 2016-02-03  Kevin Buettner  <kevinb@redhat.com>
95
96         * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
97
98 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
99
100         PR gas/19520
101         * NEWS: Mention new command line option -mrelax-relocations and
102         new configure option --enable-x86-relax-relocations for x86
103         target.
104         * config.in: Regenerated.
105         * configure.ac: Add --enable-x86-relax-relocations.
106         (ac_default_x86_relax_relocations): New.  Default to 1 except
107         for x86 Solaris targets older than Solaris 12.
108         (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
109         * configure: Likewise.
110         * config/tc-i386.c (generate_relax_relocations): New.
111         (OPTION_MRELAX_RELOCATIONS): Likewise.
112         (output_disp): Don't generate relax relocations if
113         generate_relax_relocations is 0.
114         (md_longopts): Add -mrelax-relocations.
115         (md_show_usage): Likewise.
116         (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
117         * doc/c-i386.texi: Document -mrelax-relocations=.
118         * testsuite/gas/i386/got-no-relax.d: New file.
119         * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
120         * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
121         * testsuite/gas/i386/localpic.d: Likewise.
122         * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
123         * testsuite/gas/i386/reloc32.d: Likewise.
124         * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
125         * testsuite/gas/i386/x86-64-localpic.d: Likewise.
126         * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
127         * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
128         * testsuite/gas/i386/i386.exp: Run got-no-relax and
129         x86-64-gotpcrel-no-relax.
130
131 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
132
133         * NEWS: Mention new command line option -mfence-as-lock-add=yes
134         for x86 target.
135
136 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
137
138         * NEWS: Remove duplicated marker for 2.26.
139
140 2016-02-02  Renlin Li  <renlin.li@arm.com>
141
142         * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
143
144 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
145
146         * testsuite/gas/ip2k/allinsn.d: New file.
147         * testsuite/gas/ip2k/allinsn.s: New file.
148         * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
149
150 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
151
152         * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
153         some load instructions.
154         * testsuite/gas/epiphany/allinsn.d: Likewise.
155         * testsuite/gas/epiphany/regression.d: Likewise.
156
157 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
158
159         * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
160         suffixes from instruction mnemonics in expected output.
161         * testsuite/gas/epiphany/allinsn.d: Likewise.
162         * testsuite/gas/epiphany/regression.d: Likewise.
163         * testsuite/gas/epiphany/sample.d: Likewise.
164
165 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
166
167         * testsuite/gas/epiphany/addr-syntax.d: Update expected register
168         names.
169         * testsuite/gas/epiphany/allinsn.d: Likewise.
170         * testsuite/gas/epiphany/sample.d: Likewise.
171
172 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
173
174         * testsuite/gas/epiphany/sample.d: Update expected output.
175
176 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
177
178         * config/tc-arc.c (md_apply_fix): Allow addendum.
179         (arc_reloc_op): Allow complex expressions for tpoff.
180         (md_apply_fix): Handle resolved TLS local symbol.
181
182         * testsuite/gas/arc/tls-relocs1.d: New file.
183         * testsuite/gas/arc/tls-relocs1.s: Likewise.
184
185 2016-02-01  Loria  <Loria@phantasia.org>
186
187         PR target/19311
188         * config/tc-arm.c (encode_arm_immediate): Recode to improve
189         efficiency and avoid an LLVM loop optimization bug.
190
191 2016-02-01  Nick Clifton  <nickc@redhat.com>
192
193         * config/tc-microblaze.c (parse_imm): Fix compile time warning
194         message extending a negative 32-bit value into a larger signed
195         value on a 32-bit host.
196
197 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
198
199         PR gas/19532
200         * configure.ac (compressed_debug_sections): Replace == with =.
201         * configure: Regenerated.
202
203 2016-01-29  Andrew Senkevich  <andrew.senkevich@intel.com>
204             H.J. Lu  <hongjiu.lu@intel.com>
205
206         * config/tc-i386.c (avoid_fence): New.
207         (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
208         is true.
209         (OPTION_FENCE_AS_LOCK_ADD): New.
210         (md_longopts): Add -mfence-as-lock-add.
211         (md_parse_option): Handle -mfence-as-lock-add.
212         (md_show_usage): Add -mfence-as-lock-add=[no|yes].
213         * doc/c-i386.texi (-mfence-as-lock-add): Document.
214         * testsuite/gas/i386/i386.exp: Run new tests.
215         * testsuite/gas/i386/fence-as-lock-add.s: New.
216         * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
217         * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
218         * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
219         * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
220
221 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
222
223         * configure.ac (compressed_debug_sections): Remove trailing `]'.
224         * configure: Regenerated.
225
226 2016-01-25  H.J. Lu  <hongjiu.lu@intel.com>
227
228         * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
229         (OPTION_MOMIT_LOCK_PREFIX): This.
230         (md_longopts): Updated.
231         (md_parse_option): Likewise.
232
233 2016-01-25  Catherine Moore  <clm@codesourcery.com>
234
235         * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
236         if abicalls are in effect.
237         * testsuite/gas/mips/sdata-gp.s: New test.
238         * testsuite/gas/mips/sdata-gp.d: New expected output
239         * testsuite/gas/mips/mips.exp: Run new test.
240
241 2016-01-25  Renlin Li  <renlin.li@arm.com>
242
243         * testsuite/gas/arm/thumb2_it_search.d: New.
244         * testsuite/gas/arm/thumb2_it_search.s: New.
245
246 2016-01-21  Nick Clifton  <nickc@redhat.com>
247
248         PR gas/19454
249         * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
250         with arm-netbsdelf target.
251         * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
252
253 2016-01-20  Nick Clifton  <nickc@redhat.com>
254
255         PR 19456
256         * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
257         * testsuite/gas/arm/blx-bl-convert.d
258         * testsuite/gas/arm/plt-1.d: Likewise.
259         * testsuite/gas/arm/reloc-bad.d: Likewise.
260         * testsuite/gas/arm/thumb-w-good.d: Likewise.
261         * testsuite/gas/arm/thumb2_pool.d: Likewise.
262         * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
263         * testsuite/gas/arm/tls_vxworks.d: Update expected output.
264
265         PR 19499
266         * doc/as.texinfo (Errors): Correct documentation describing the
267         interaction of .file and .line with warning and error messages.
268
269         PR 19458
270         * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
271         * testsuite/gas/arm/archv8m-main.d: Likewise.
272         * testsuite/gas/arm/archv8m-base.d: Likewise.
273
274 2016-01-20  Matthew Wahab  <matthew.wahab@arm.com>
275
276         * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
277         * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
278         * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
279
280 2016-01-20  Mickael Guene  <mickael.guene@st.com>
281             Terry Guo  <terry.guo@arm.com>
282
283         * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
284         SHF_ARM_NOREAD section flag.
285         * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
286         handle letter 'y'.
287         (arm_elf_section_letter) : Declare it.
288         * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
289         SHF_ARM_NOREAD section flag.
290         * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
291
292         * testsuite/gas/arm/section-execute-only.s: New test case.
293         * testsuite/gas/arm/section-execute-only.d: Expected output.
294
295 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
296
297         * config/tc-mips.c (micromips_insn_length): Remove the mention
298         of 48-bit microMIPS instructions.
299
300 2016-01-18  Alan Modra  <amodra@gmail.com>
301
302         * configure: Regenerate.
303
304 2016-01-17  Alan Modra  <amodra@gmail.com>
305
306         * configure: Regenerate.
307
308 2016-01-17  Alan Modra  <amodra@gmail.com>
309
310         * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
311
312 2016-01-14  Nick Clifton  <nickc@redhat.com>
313
314         * testsuite/gas/rl78/sp-relative-movw.s: New test.
315         * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
316         * testsuite/gas/rl78/rl78.exp: Run the new test.
317
318 2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>
319
320         * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
321         * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
322
323 2016-01-13  Maciej W. Rozycki  <macro@imgtec.com>
324
325         * config/tc-nios2.c (output_movia): Preset `code' to 0.
326
327 2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
328
329         * config/tc-h8300.c (get_operand): Remove spurious condition in
330         test for closing parenthesis.
331
332 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
333
334         * config/tc-arm.c (arm_ext_v8_2): New.
335         (insns): Add "esb".
336         * testsuite/gas/arm/armv8_2-a.d: New.
337         * testsuite/gas/arm/armv8_2-a.s: New.
338
339 2016-01-12  Alan Modra  <amodra@gmail.com>
340
341         * testsuite/gas/ppc/vsx3.d: Accept nop padding.
342
343 2016-01-11  Peter Bergner <bergner@vnet.ibm.com>
344
345         * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
346         xvcmpnesp, xvcmpnesp.>: Delete tests.
347         * testsuite/gas/ppc/power9.s: Likewise.
348         * testsuite/gas/ppc/vsx3.d: Likewise.
349         * testsuite/gas/ppc/vsx3.s: Likewise.
350
351 2016-01-08  Andreas Schwab  <schwab@linux-m68k.org>
352
353         PR gas/13050
354         * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
355         * testsuite/gas/m68k/p13050-1.s: New file.
356         * testsuite/gas/m68k/p13050-2.d: New file.
357         * testsuite/gas/m68k/p13050-2.s: New file.
358
359 2016-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
360
361         * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
362         * testsuite/gas/arc/add.d: Likewise.
363         * testsuite/gas/arc/and.d: Likewise.
364         * testsuite/gas/arc/asl.d: Likewise.
365         * testsuite/gas/arc/asr.d: Likewise.
366         * testsuite/gas/arc/bic.d: Likewise.
367         * testsuite/gas/arc/extb.d: Likewise.
368         * testsuite/gas/arc/extw.d: Likewise.
369         * testsuite/gas/arc/j.d: Likewise.
370         * testsuite/gas/arc/jl.d: Likewise.
371         * testsuite/gas/arc/ld2.d: Likewise.
372         * testsuite/gas/arc/lsr.d: Likewise.
373         * testsuite/gas/arc/mov.d: Likewise.
374         * testsuite/gas/arc/or.d: Likewise.
375         * testsuite/gas/arc/pcl-relocs.d: Likewise.
376         * testsuite/gas/arc/pcrel-relocs.d: Likewise.
377         * testsuite/gas/arc/pic-relocs.d: Likewise.
378         * testsuite/gas/arc/plt-relocs.d: Likewise.
379         * testsuite/gas/arc/rlc.d: Likewise.
380         * testsuite/gas/arc/ror.d: Likewise.
381         * testsuite/gas/arc/rrc.d: Likewise.
382         * testsuite/gas/arc/sbc.d: Likewise.
383         * testsuite/gas/arc/sda-relocs.d: Likewise.
384         * testsuite/gas/arc/sda-relocs2.d: Likewise.
385         * testsuite/gas/arc/sexb.d: Likewise.
386         * testsuite/gas/arc/sexw.d: Likewise.
387         * testsuite/gas/arc/st.d: Likewise.
388         * testsuite/gas/arc/sub.d: Likewise.
389         * testsuite/gas/arc/tls-relocs.d: Likewise.
390         * testsuite/gas/arc/xor.d: Likewise.
391
392 2016-01-01  Alan Modra  <amodra@gmail.com>
393
394         Update year range in copyright notice of all files.
395
396 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
397 \f
398 Copyright (C) 2016 Free Software Foundation, Inc.
399
400 Copying and distribution of this file, with or without modification,
401 are permitted in any medium without royalty provided the copyright
402 notice and this notice are preserved.
403
404 Local Variables:
405 mode: change-log
406 left-margin: 8
407 fill-column: 74
408 version-control: never
409 End: