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