Don't write the zlib header if not used
[external/binutils.git] / gas / ChangeLog
1 2015-03-24  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR gas/18087
4         * write.c (compress_debug): Don't write the zlib header if
5         compression didn't make the section smaller.
6
7 2015-03-24  Terry Guo  <terry.guo@arm.com>
8
9         * config/tc-arm.c (no_cpu_selected): Use new macro to compare
10         features.
11         (parse_psr): Likewise.
12         (do_t_mrs): Likewise.
13         (do_t_msr): Likewise.
14         (static const arm_feature_set arm_ext_*): Defined with new macros.
15         (static const arm_feature_set arm_cext_*): Likewise.
16         (static const arm_feature_set fpu_fpa_ext_*): Likewise.
17         (static const arm_feature_set fpu_vfp_ext_*): Likewise.
18         (deprecated_coproc_regs): Likewise.
19         (UL_BARRIER): Likewise.
20         (barrier_opt_names): Likewise.
21         (arm_cpus): Likewise.
22         (arm_extensions): Likewise.
23
24 2015-03-20  H.J. Lu  <hongjiu.lu@intel.com>
25
26         * config/tc-i386.c (i386_align_code): Limit multi-byte nop
27         instructions to 10 bytes.
28
29 2015-03-19  Nick Clifton  <nickc@redhat.com>
30
31         * config/tc-rl78.c (enum options): Add G13 and G14.
32         (md_longopts): Add -mg13 and -mg14.
33         (md_parse_option): Handle -mg13 and -mg14.
34         (md_show_usage): List -mg13 and -mg14.
35         * doc/c-rl78.texi: Add description of -mg13 and -mg14 options.
36
37 2015-03-18  Jon Turney  <jon.turney@dronecode.org.uk>
38             Nick Clifton  <nickc@redhat.com>
39
40         PR binutils/18087
41         * doc/as.texinfo: Note that when gas compresses debug sections the
42         compression is only performed if it makes the section smaller.
43         * write.c (compress_debug): Do not compress a debug section if
44         doing so would make it larger.
45
46 2015-03-17  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
47
48         * config/tc-i386.c (cpu_arch): Add PROCESSOR_ZNVER flags.
49         (i386_align_code): Add PROCESSOR_ZNVER cases.
50         * config/tc-i386.h (processor_type): Add PROCESSOR_ZNVER.
51         * doc/c-i386.texi: Add znver1 and clzero.
52
53 2015-03-16  Nick Clifton  <nickc@redhat.com>
54
55         * dwarf2dbg.c (out_header): Remove spurious #if 1.
56
57 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
58
59         * config/tc-aarch64.c (warn_unpredictable_ldst): Don't warn on reg
60         number 31.
61
62 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
63
64         * config/tc-aarch64.h (SUB_SEGMENT_ALIGN): Define to be zero.
65
66 2015-03-12  Andrew Bennett  <andrew.bennett@imgtec.com>
67
68         * config/tc-mips.c (mips_cpu_info_table): Add i6400 entry.
69         * doc/c-mips.texi: Document i6400 -march option.
70
71 2015-03-12  Nick Clifton  <nickc@redhat.com>
72
73         PR gas/17444
74         * config/tc-arm.h (MD_APPLY_SYM_VALUE): Pass the current segment
75         to arm_apply_sym_value.  Update prototype.
76         * config/tc-arm.c (arm_apply_sym_value): Add segment argument.
77         Do not apply the value if the symbol is in a different segment to
78         the current segment.
79
80 2015-03-11  Alan Modra  <amodra@gmail.com>
81
82         * config/tc-ppc.c (md_assemble): Don't abort on 8 byte insn fixups.
83         (md_apply_fix): Report an error on data-only fixups used with insns.
84
85 2015-03-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
86
87         * config/tc-s390.c (md_gather_operands): Check for valid
88         length field operands.
89
90 2015-03-10  Michael Perkins  <perkinsmg75@yahoo.co.uk>
91
92         * config/tc-arm.c (parse_operands): Fix bug setting writeback
93         values for '^' on OP_REGLSTs.
94         (do_push_pop): Add new writeback constraint.
95
96 2015-03-10  Renlin Li  <renlin.li@arm.com>
97
98         * config/tc-arm.c (mapping_state): Remove first MAP_DATA emitting code.
99         (mapping_state_2): Emit first MAP_DATA symbol here.
100
101 2015-03-10  Matthew Wahab  <matthew.wahab@arm.com>
102
103         * config/tc-aarch64.c (mapping_state): Set minimum alignment for
104         code sections.
105
106 2015-03-10  Nick Clifton  <nickc@redhat.com>
107
108         PR gas/17852
109         * config/tc-arm.c (md_begin): Ensure that selected_cpu is
110         initialised when CPU_DEFAULT is defined.
111
112 2015-03-05  Nick Clifton  <nickc@redhat.com>
113
114         * config/tc-v850.c (md_parse_option): Fix code to set or clear
115         EF_RH850_DATA_ALIGN8 bit in ELF header, based upon the use of the
116         -m8byte-align and -m4byte-align command line options.
117
118 2015-03-04  Richard Sandiford  <richard.sandiford@arm.com>
119
120         PR gas/17843
121         * config/tc-aarch64.c (process_movw_reloc_info): Allow
122         R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
123         for MOVK.
124
125 2015-02-28  Alan Modra  <amodra@gmail.com>
126
127         * write.c (SUB_SEGMENT_ALIGN): Don't pad non-code sections at
128         end to their alignment.
129
130 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
131
132         * config/tc-aarch64.c (reloc_table_entry): Generate
133         BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21.
134         (md_apply_fix, aarch64_force_relocation): Handle
135         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
136
137 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
138
139         * config/tc-aarch64.c (reloc_table_entry): Generate
140         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
141         (md_apply_fix, aarch64_force_relocation): Handle
142         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
143
144 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
145
146         * config/tc-aarch64.c (reloc_table_entry): Generate
147         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
148         (md_apply_fix, aarch64_force_relocation): Handle
149         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
150
151 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
152
153         * config/tc-aarch64.c (reloc_table_entry): Add ld_literal_type.
154         (reloc_table): Likewise.
155         (parse_address_main): Use ld_literal_type.
156
157 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
158
159         * config/tc-aarch64.c (reloc_table_entry): Add adr_type.
160         (reloc_table): Likewise.
161         (parse_address_main): Use adr_type.
162
163 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
164
165         * config/tc-aarch64.c (aarch64_arch_any, aarch64_arch_node): Remove.
166
167 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
168
169         * config/tc-avr.c: Add elf32-avr.h include.
170         (struct avr_property_record_link): New structure.
171         (avr_output_property_section_header): New function.
172         (avr_record_size): New function.
173         (avr_output_property_record): New function.
174         (avr_create_property_section): New function.
175         (avr_handle_align): New function.
176         (exclude_section_from_property_tables): New function.
177         (create_record_for_frag): New function.
178         (append_records_for_section): New function.
179         (avr_create_and_fill_property_section): New function.
180         (avr_post_relax_hook): New function.
181         * config/tc-avr.h (md_post_relax_hook): Define.
182         (avr_post_relax_hook): Declare.
183         (HANDLE_ALIGN): Define.
184         (avr_handle_align): Declare.
185         (strut avr_frag_data): New structure.
186         (TC_FRAG_TYPE): Define.
187
188 2015-02-25  Matthew Wahab  <matthew.wahab@arm.com>
189
190         * doc/c-arm.texi (-mcpu=): Add cortex-a53, cortex-a57 and
191         cortex-a72.
192
193 2015-02-24  Nick Clifton  <nickc@redhat.com>
194
195         * config/tc-v850.c (soft_float): New variable.
196         (v850_data_8): New variable.
197         (md_show_usage): Add -msoft-float/-mhard-float.
198         (md_parse_option): Likewise.
199         (md_begin): Set the default value of soft_float.
200         (v850_md_end): New function.  Creates a note section.
201         * config/tc-v850.h (md_end): Define.
202         * doc/c-v850.texi: Document -msoft-float/-mhard-float.
203
204 2015-02-23  Yoshinori Sato  <ysato@users.sourceforge.jp>
205
206         * config/tc-h8300.c (line_separater_chars): Add a version for
207         h8300-linux that includes a separator.
208         (default_mach): New variable.
209         (md_main): Use it.
210         (md_longopts): Add '--march' option.
211         (md_parse_option): Parse the new option.
212         * config/tc-h8300.h (TARGET_FORMAT): Add elf32-h8300-linux.
213         * configure.tgt: Add h8300-*-linux
214         * doc/c-h8300.texi: Document --march.
215
216 2015-02-23  Nick Clifton  <nickc@redhat.com>
217
218         PR 17940
219         * dwarf2dbg.c (out_header): When generating dwarf sections use
220         real symbols not temps for the start and end symbols.
221         * config/tc-msp430.h (TC_FORCE_RELOCATION_SUB_SAME): Also prevent
222         adjustments to relocations in debug sections.
223         (TC_LINKRELAX_FIXUP): Likewise.
224
225 2015-02-19  Alan Modra  <amodra@gmail.com>
226
227         * doc/as.texinfo (Local Symbol Names): Don't use ':' in pxref.
228         * doc/c-i386.texi: Reorder i386-Bugs after i386-Arch.
229
230 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
231
232         * config/tc-aarch64.c (aarch64_cpus): Fix code formatting.
233
234 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
235
236         * config/tc-arm.c: Add support for Cortex-A72.
237
238 2015-02-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
239
240         * config/tc-arm.c (warn_deprecated_sp): Use as_tsktsk instead
241         of as_warn for deprecation messages.
242         (encode_arm_addr_mode_2): Likewise.
243         (check_obsolete): Likewise.
244         (do_rd_rm_rn): Likewise.
245         (do_co_reg): Likewise.
246         (do_setend): Likewise.
247         (do_t_mov_cmp): Likewise.
248         (do_neon_ldr_str): Likewise.
249         (opcode_lookup): Likewise.
250         (if_fsm_post_encode): Likewise.
251         (md_assemble): Likewise.
252
253 2015-02-06  Jan Beulich  <jbeulich@suse.com>
254
255         * dw2gencfi.c (select_cie_for_fde): Also bail on CFI_label.
256         (cfi_change_reg_numbers): Also do nothing for CFI_label.
257         (cfi_pseudo_table): Also handle .cfi_label when not supporting
258         CFI directives.
259
260 2015-02-05  Alan Modra  <amodra@gmail.com>
261
262         * config/tc-msp430.c (md_assemble): Correct size passed to
263         extract_cmd.  Remove index check.
264
265 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
266
267         * config/tc-aarch64.c (aarch64_cpus): Add support for Cortex-A72.
268         * doc/c-aarch64.texi (-mcpu=): Add "cortex-a72".
269
270 2015-02-04  Nick Clifton  <nickc@redhat.com>
271
272         * config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
273         these instructions.
274
275 2015-02-03  Renlin Li  <renlin.li@arm.com>
276
277         * doc/c-aarch64.texi (.arch): Document the directive.
278         (.arch_extension): Likewise.
279
280 2015-02-03  Nick Clifton  <nickc@redhat.com>
281
282         * config/tc-rl78.h (TC_PARSE_CONS_EXPRESSION): Define.
283
284 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
285
286         * Makefile.am: Add FT32 files.
287         * config/tc-ft32.c: New file.
288         * config/tc-ft32.h: New file.
289         * configure.tgt: Add FT32 support.
290         * Makefile.in: Regenerate.
291         * po/POTFILES.in: Regenerate.
292
293 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
294
295         * config/tc-nds32.c (do_pseudo_la_internal): Limit the second argument
296         of instruction la to a symbol.
297
298 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
299
300         * config/tc-nds32.c (nds32_parse_name): Ignore when the input is
301         section name.
302
303 2015-01-19  Alan Modra  <amodra@gmail.com>
304
305         * read.c (s_reloc): Match BFD_RELOC_NONE, BFD_RELOC{8,16,32,64}.
306         * write.c (get_frag_for_reloc): Allow match just past end of frag.
307
308 2015-01-16  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
309
310         * config/tc-s390.c (struct pd_reg): Remove.
311         (pre_defined_registers): Remove.
312         (REG_NAME_CNT): Remove.
313         (reg_name_search): Calculate the register number instead of doing
314         a lookup.
315         (register_name, tc_s390_regname_to_dw2regnum): Adopt to the new
316         reg_name_search signature.
317         (s390_parse_cpu): Support the new arch string z13.
318         (s390_insert_operand): Support for vector registers with the extra
319         field for the fifth bit of each vector register operand.
320         (md_gather_operand): Adjust to the new handling of optional
321         parameters.
322
323         * doc/as.texinfo: Document the z13 cpu string.
324
325 2015-01-13  Matthew Wahab  <matthew.wahab@arm.com>
326
327         * config/tc-arm.c (parse_ifimm_zero): Accept #0x0 as a synonym for
328         #0, restoring previous behaviour.
329
330 2015-01-12  Jan Beulich  <jbeulich@suse.com>
331
332         * gas/dw2gencfi.c (cfi_add_label, dot_cfi_label): New.
333         (cfi_pseudo_table): Add "cfi_label".
334         (output_cfi_insn): Handle CFI_label.
335         (select_cie_for_fde): Als terminate CIE when encountering
336         CFI_label.
337         * dw2gencfi.h (cfi_add_label): Declare.
338         (struct cfi_insn_data): New member "sym_name".
339         (CFI_label): New.
340         * read.c (read_symbol_name): Drop "static".
341         * read.h (read_symbol_name): Declare.
342
343 2015-01-12  Jan Beulich  <jbeulich@suse.com>
344
345         * gas/config/tc-arm.c (do_neon_shl_imm): Check immediate range.
346         (do_neon_qshl_imm): Likewise.
347
348 2015-01-12  Alan Modra  <amodra@gmail.com>
349
350         * read.c (s_altmacro, s_reloc): Make definition static.
351
352 2015-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
353
354         * config/tc-avr.c (md_apply_fix): Update the contents of VALP for
355         diff fixups.
356
357 2015-01-09  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
358
359         * config/tc-arm.c (arm_cpus): Add support for APM X-Gene 1 and
360         X-Gene 2.
361         * doc/c-arm.texi (ARM Options): Mention xgene1 and xgene2.
362
363 2015-01-07  Jan Beulich <jbeulich@suse.com>
364
365         * config/tc-arm.c (struct arm_option_extension_value_table):
366         Split field "value" into fields "merge_value" and "clear_value".
367         (arm_extensions): Adjust initializer accordingly.
368
369 2015-01-01  Alan Modra  <amodra@gmail.com>
370
371         * as.c (parse_args): Just print current year.
372
373 2015-01-01  Alan Modra  <amodra@gmail.com>
374
375         Update year range in copyright notice of all files.
376
377 For older changes see ChangeLog-2014
378 \f
379 Copyright (C) 2015 Free Software Foundation, Inc.
380
381 Copying and distribution of this file, with or without modification,
382 are permitted in any medium without royalty provided the copyright
383 notice and this notice are preserved.
384
385 Local Variables:
386 mode: change-log
387 left-margin: 8
388 fill-column: 74
389 version-control: never
390 End: