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