OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
16 years agomerge from gcc
DJ Delorie [Sat, 19 Jan 2008 01:18:42 +0000 (01:18 +0000)]
merge from gcc

16 years agoFrom Craig Silverstein: Optionally print command line for easier
Ian Lance Taylor [Fri, 18 Jan 2008 23:41:31 +0000 (23:41 +0000)]
From Craig Silverstein: Optionally print command line for easier
debugging.

16 years agoFrom Craig Silverstein: Handle quoted strings differently in version
Ian Lance Taylor [Fri, 18 Jan 2008 23:35:09 +0000 (23:35 +0000)]
From Craig Silverstein: Handle quoted strings differently in version
scripts, and handle extern "C++" in the middle of a block.

16 years agoDon't include options.h in fileread.h. Remove General_options
Ian Lance Taylor [Fri, 18 Jan 2008 23:26:48 +0000 (23:26 +0000)]
Don't include options.h in fileread.h.  Remove General_options
reference from Output_file class.

16 years agodaily update
Alan Modra [Fri, 18 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
Bob Wilson [Fri, 18 Jan 2008 22:49:38 +0000 (22:49 +0000)]
* scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
changes from elf.sc.

16 years ago * config/tc-xtensa.c (xtensa_leb128): New function.
Bob Wilson [Fri, 18 Jan 2008 19:13:48 +0000 (19:13 +0000)]
* config/tc-xtensa.c (xtensa_leb128): New function.
(md_pseudo_table): Use it for sleb128 and uleb128.
(is_leb128_expr): New internal flag.
(xtensa_symbol_new_hook): Check new flag.

16 years agobinutils/
H.J. Lu [Thu, 17 Jan 2008 23:48:20 +0000 (23:48 +0000)]
binutils/

2008-01-17  H.J. Lu  <hjl.tools@gmail.com>

* MAINTAINERS: Update my email address.

gdb/

2008-01-17  H.J. Lu  <hjl.tools@gmail.com>

* MAINTAINERS: Update my email address.

16 years agodaily update
Alan Modra [Thu, 17 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Wed, 16 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago* common.h (AT_SUN_AUXFLAGS): Define.
Mark Kettenis [Wed, 16 Jan 2008 22:01:42 +0000 (22:01 +0000)]
* common.h (AT_SUN_AUXFLAGS): Define.

16 years ago/gas:
Eric B. Weddington [Wed, 16 Jan 2008 17:59:07 +0000 (17:59 +0000)]
/gas:
2008-01-03  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (mcu_types): Change opcode set for avr3,
at90usb82, at90usb162.
* doc/c-avr.texi: Change architecture grouping for at90usb82,
at90usb162.
These changes support the new avr35 architecture group in gcc.

/include:
2008-01-03  Eric B. Weddington  <eric.weddington@atmel.com>

* opcode/avr.h (AVR_ISA_USB162): Add new opcode set.
(AVR_ISA_AVR3): Likewise.

16 years agoupdate copyright
Alan Modra [Wed, 16 Jan 2008 01:29:42 +0000 (01:29 +0000)]
update copyright

16 years ago * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
Alan Modra [Wed, 16 Jan 2008 01:28:21 +0000 (01:28 +0000)]
* ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.

16 years ago * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
Alan Modra [Wed, 16 Jan 2008 00:31:18 +0000 (00:31 +0000)]
* ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
(lang_afile_asection_pair_statement_type): Delete.
(lang_statement_union_type): Delete afile_asection_pair_statement.
* ldlang.c (lang_insert_orphan): Delete case handling the above.
(map_input_to_output_sections, print_statement): Likewise.

16 years agogas/testsuite/
H.J. Lu [Wed, 16 Jan 2008 00:05:56 +0000 (00:05 +0000)]
gas/testsuite/

2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/prescott.s: Add tests for movddup in Intel syntax.
* gas/i386/x86-64-prescott.s: Likewise.

* gas/i386/prescott.d: Updated.
* gas/i386/x86-64-prescott.d: Likewise.

opcodes/

2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Use Qword on movddup.
* i386-tbl.h: Regenerated.

16 years agoFrom Andrew Chatham and Craig Silverstein: Add support for version
Ian Lance Taylor [Tue, 15 Jan 2008 23:41:28 +0000 (23:41 +0000)]
From Andrew Chatham and Craig Silverstein: Add support for version
scripts.

16 years ago * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
Kaz Kojima [Tue, 15 Jan 2008 23:05:46 +0000 (23:05 +0000)]
* emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
with __data_start.
* emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.

16 years agodaily update
Alan Modra [Tue, 15 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agogas/
H.J. Lu [Tue, 15 Jan 2008 18:50:44 +0000 (18:50 +0000)]
gas/

2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Also zap movzx and movsx
suffix for AT&T syntax.

gas/testsuite/

2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.s: Add more tests for movsx and movzx.
* gas/i386/x86_64.s: Likewise.

* gas/i386/inval.s: Remove tests for movsxw and movzxw.

* gas/i386/x86-64-inval.s: Remove tests for movsxb, movsxw,
movsxl, movzxb and movzxw.

* gas/i386/i386.d: Updated.
* gas/i386/inval.l: Likewise.
* gas/i386/x86_64.d: Likewise.
* gas/i386/x86-64-inval.l: Likewise.

opcodes/

2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Put back 16bit movsx/movzx for AT&T syntax.
* i386-tbl.h: Regenerated.

16 years ago2008-01-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 15 Jan 2008 17:20:50 +0000 (17:20 +0000)]
2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (Mx): New.
(PREFIX_0FC3): Likewise.
(PREFIX_0FC7_REG_6): Updated.
(dis386_twobyte): Use PREFIX_0FC3.
(prefix_table): Add PREFIX_0FC3.  Use Mq on movntq and movntsd.
Use Mx on movntps, movntpd, movntdq and movntdqa.  Use Md on
movntss.

16 years agobfd/
Alan Modra [Tue, 15 Jan 2008 07:25:49 +0000 (07:25 +0000)]
bfd/
PR 5604
* elf-bfd.h (struct elf_backend_data): Add gc_keep.  Remove param
names from others.
(_bfd_elf_gc_keep): Declare.
* elfxx-target.h (elf_backend_gc_keep): Define.
(elfNN_bed): Init new field.
* elflink.c (_bfd_elf_gc_keep): New function.
(bfd_elf_gc_sections): Call gc_keep.
* elf64-ppc.c (elf_backend_gc_keep): Define.
(struct _ppc64_elf_section_data): Move .opd related fields to
a struct so they don't occupy the same storage.  Adjust accesses
throughout file.
(ppc64_elf_gc_keep): New function, split out from..
(ppc64_elf_gc_mark_hook): ..here.  Don't call _bfd_elf_gc_mark
to mark .opd section, just set gc_mark.
(ppc64_elf_edit_opd): Remove no_opd_opt parm.  Don't set opd->adjust
unless we are changing .opd.  Test non-NULL opd->adjust at all
accesses throughout file.
* elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
ld/
PR 5604
* ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
syms to _bfd_elf_gc_keep.
* emultempl/ppc64elf.em (ppc_before_allocation): Don't call
ppc64_elf_edit_opd if no_opd_opt.

16 years agogas/
H.J. Lu [Tue, 15 Jan 2008 01:37:56 +0000 (01:37 +0000)]
gas/

2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_reg_size): New.
(match_mem_size): Likewise.
(operand_size_match): Likewise.
(operand_type_match): Also clear all size fields.
(match_template): Skip Intel syntax when in AT&T syntax.
Call operand_size_match to check operand size.
(i386_att_operand): Set the mem field to 1 for memory
operand.
(i386_intel_operand): Likewise.

gas/testsuite/

2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.s: Add tests for movsx, movzx and movnti.
* gas/i386/inval.s: Likewise.
* gas/i386/x86_64.s: Likewise.
* gas/i386/x86-64-inval.s: Likewise.

* gas/i386/i386.d: Updated.
* gas/i386/inval.l: Likewise.
* gas/i386/x86_64.d: Likewise.
* gas/i386/x86-64-inval.l: Likewise.

opcodes/

2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Add IntelSyntax.
(operand_types): Add Mem.

* i386-opc.h (IntelSyntax): New.
* i386-opc.h (Mem): New.
(Byte): Updated.
(Opcode_Modifier_Max): Updated.
(i386_opcode_modifier): Add intelsyntax.
(i386_operand_type): Add mem.

* i386-opc.tbl: Remove Reg16 from movnti.  Add sizes to more
instructions.

* i386-reg.tbl: Add size for accumulator.

* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

16 years ago * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
Alan Modra [Tue, 15 Jan 2008 00:54:22 +0000 (00:54 +0000)]
* bfd-in.h (BFD_HOST_LONG_LONG): Delete.
* bfd-in2.h: Regenerate.

16 years agodaily update
Alan Modra [Mon, 14 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * ld-gc/gc.exp (test_gc): Let missing C compiler make tests
Hans-Peter Nilsson [Mon, 14 Jan 2008 19:52:43 +0000 (19:52 +0000)]
* ld-gc/gc.exp (test_gc): Let missing C compiler make tests
"untested" instead of "failed".

16 years ago (DEBUG_INFO_UNAVAILABLE): Value stored in num_debug_info_entries
Nick Clifton [Mon, 14 Jan 2008 14:53:47 +0000 (14:53 +0000)]
    (DEBUG_INFO_UNAVAILABLE): Value stored in num_debug_info_entries
        when the .debug_info section could not be loaded/parsed.
        (process_debug_info): Display the length of the compilation unit
        in hex, so that it corresponds with the offsets that will follow.
        Tell the user if the length was 32-bit or 64-bit.
        If a DIE abbreviation could not be found, tell the user the offset
        of the DIE.
        (free_debug_memory): Do not attempt to free any entries in the
        debug_information array if num_debug_info_entries is set to
        DEBUG_INFO_UNAVAILABLE.

16 years ago * dwarf.c (process_debug_info): Include the CU offset and corrupt
Nick Clifton [Mon, 14 Jan 2008 12:26:57 +0000 (12:26 +0000)]
    * dwarf.c (process_debug_info): Include the CU offset and corrupt
        version value when reporting unrecognised DWARF version numbers.
        (load_debug_info): Remember a failed attempt to load and parse the
        .debug_info section and do not repeat such attempts.
        (display_debug_lines): Check the return value from load_debug_info
        and return whilst displaying a warning message if the load failed.
        (display_debug_loc): Likewise.
        (display_debug_ranges): Likewise.

16 years ago2008-01-13 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 14 Jan 2008 05:15:06 +0000 (05:15 +0000)]
2008-01-13  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h (Byte): Fix a typo.

16 years agodaily update
Alan Modra [Sun, 13 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 12 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agogas/testsuite/
H.J. Lu [Sat, 12 Jan 2008 16:05:42 +0000 (16:05 +0000)]
gas/testsuite/

2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/5534
* gas/i386/i386.s: Add tests for fnstsw and fstsw.
* gas/i386/inval.s: Likewise.
* gas/i386/x86_64.s: Likewise.

* gas/i386/intel.s: Use word instead of dword on ss.

* gas/i386/x86-64-inval.s: Add tests for fnstsw, fstsw, in
and out.

* gas/i386/prefix.s: Remove invalid fstsw.

* gas/i386/inval.l: Updated.
* gas/i386/intelbad.l: Likewise.
* gas/i386/i386.d: Likewise.
* gas/i386/x86_64.d: Likewise.
* gas/i386/x86-64-inval.l: Likewise.
* gas/i386/prefix.d: Updated.

gas/

2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/5534
* config/tc-i386.c (_i386_insn): Update comment.
(operand_type_match): Also clear unspecified.
(operand_type_register_match): Likewise.
(parse_operands): Initialize unspecified.
(i386_intel_operand): Likewise.
(match_template): Check memory and accumulator operand size.
(i386_att_operand): Clear unspecified on register operand.
(intel_e11): Likewise.
(intel_e09): Set operand size and clean unspecified for
"XXX PTR".

opcodes/

2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/5534
* i386-gen.c (operand_type_init): Add Dword to
OPERAND_TYPE_ACC32.  Add Qword to OPERAND_TYPE_ACC64.
(opcode_modifiers): Remove CheckSize, Byte, Word, Dword,
Qword and Xmmword.
(operand_types): Add Byte, Word, Dword, Fword, Qword, Tbyte,
Xmmword, Unspecified and Anysize.
(set_bitfield): Make Mmword an alias of Qword.  Make Oword
an alias of Xmmword.

* i386-opc.h (CheckSize): Removed.
(Byte): Updated.
(Word): Likewise.
(Dword): Likewise.
(Qword): Likewise.
(Xmmword): Likewise.
(FWait): Updated.
(OTMax): Likewise.
(i386_opcode_modifier): Remove checksize, byte, word, dword,
qword and xmmword.
(Fword): New.
(TBYTE): Likewise.
(Unspecified): Likewise.
(Anysize): Likewise.
(i386_operand_type): Add byte, word, dword, fword, qword,
tbyte xmmword, unspecified and anysize.

* i386-opc.tbl: Updated to use Byte, Word, Dword, Fword, Qword,
Tbyte, Xmmword, Unspecified and Anysize.

* i386-reg.tbl: Add size for accumulator.

* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

16 years agodaily update
Alan Modra [Fri, 11 Jan 2008 23:00:10 +0000 (23:00 +0000)]
daily update

16 years ago* read.c (s_space): Declare `repeat' as offsetT.
Andreas Schwab [Fri, 11 Jan 2008 16:18:43 +0000 (16:18 +0000)]
* read.c (s_space): Declare `repeat' as offsetT.

16 years agold:
Tristan Gingold [Fri, 11 Jan 2008 09:11:18 +0000 (09:11 +0000)]
ld:
2008-01-11  Tristan Gingold  <gingold@adacore.com>
    Eric Botcazou  <ebotcazou@adacore.com>

* ldlang.c (lang_end): Warns if the entry point is not found when
--gc-sections.
Emit an error if no root is specified when --gc-sections -r.
* ld.texinfo (Options): Document that --gc-sections is compatible
with -r and -q.
* ldmain.c (main): Do not error out if -r and --gc-sections.
* scripttempl/elf.sc: Emit ENTRY command only if relocating.

ld/testsuite:
2008-01-11  Tristan Gingold  <gingold@adacore.com>

* lib/ld-lib.exp (check_gc_sections_available): Now available on
VxWorks.
* ld-gc: New directory for testing --gc-sections.
* ld-gc/gc.c: New file.
* ld-gc/gc.exp: New file.
* ld-gc/noent.s: New file.
* ld-gc/noent.d: New file.

16 years ago2008-01-11 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 11 Jan 2008 09:07:04 +0000 (09:07 +0000)]
2008-01-11  Tristan Gingold  <gingold@adacore.com>
    Eric Botcazou  <ebotcazou@adacore.com>

* elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
relocatable.
* elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
* elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
* elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
* elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
* elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
* elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
* elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
* elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
* elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
* elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
* elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
* elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
* elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
* elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
* elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
or executable output with relocations.

16 years agodaily update
Alan Modra [Thu, 10 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 10 Jan 2008 21:59:46 +0000 (21:59 +0000)]
2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Check processor support
first.

16 years ago2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 10 Jan 2008 20:53:27 +0000 (20:53 +0000)]
2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Continue if processor
doesn't match.

16 years agogas/testsuite/
H.J. Lu [Thu, 10 Jan 2008 14:52:35 +0000 (14:52 +0000)]
gas/testsuite/

2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/nops.s: Add more tests with opcodes from 0x0f19
to 0x0f1f.
* gas/i386/x86-64-nops.s: Likewise.

* gas/i386/nops.d: Updated.
* gas/i386/x86-64-nops.d: Likewise.

opcodes/

2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (REG_0F0E): Renamed to REG_0F0D.
(REG_0F18): Updated.
(reg_table): Updated.
(dis386_twobyte): Updated.  Use "nopQ" on 0x19 to 0x1e.
(twobyte_has_modrm): Set 1 for 0x19 to 0x1e.

16 years ago PR ld/5533
Nick Clifton [Thu, 10 Jan 2008 14:28:49 +0000 (14:28 +0000)]
    PR ld/5533
        * ldlang.c (lang_end): Issue a warning for a missing start symbol
        of a shared library if the symbol was specified on the command
        line.

16 years ago* readelf.c (is_64bit_abs_reloc): Handle R_S390_64.
Andreas Schwab [Thu, 10 Jan 2008 13:09:36 +0000 (13:09 +0000)]
* readelf.c (is_64bit_abs_reloc): Handle R_S390_64.

16 years ago * ld.texinfo (--gc-sections): Describe linker behaviour.
Alan Modra [Thu, 10 Jan 2008 01:12:56 +0000 (01:12 +0000)]
* ld.texinfo (--gc-sections): Describe linker behaviour.

16 years agodaily update
Alan Modra [Wed, 9 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago* config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
Alexandre Oliva [Wed, 9 Jan 2008 22:36:06 +0000 (22:36 +0000)]
* config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
unwind personality function address.

16 years agoSupport assignments and expressions in linker scripts.
Ian Lance Taylor [Wed, 9 Jan 2008 19:57:45 +0000 (19:57 +0000)]
Support assignments and expressions in linker scripts.

16 years agoRemove Andrew's e-mail address.
Ian Lance Taylor [Wed, 9 Jan 2008 19:40:24 +0000 (19:40 +0000)]
Remove Andrew's e-mail address.

16 years agogas/
Bob Wilson [Wed, 9 Jan 2008 17:30:59 +0000 (17:30 +0000)]
gas/
* dwarf2dbg.c (out_sleb128): Delete.
(size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
(out_fixed_inc_line_addr): Delete.
(relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
(dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
(process_entries): Remove calls to out_fixed_inc_line_addr.  When
DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
* read.h (emit_expr_fix): New prototype.
* read.c (emit_expr): Move code to emit_expr_fix and use it here.
(emit_expr_fix): New.
testsuite/
* gas/lns/lns.exp: Run new lns-big-delta test for targets that set
DWARF2_USE_FIXED_ADVANCE_PC.
* gas/lns/lns-big-delta.s: New.
* gas/lns/lns-big-delta.d: New.

16 years ago2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 9 Jan 2008 16:55:14 +0000 (16:55 +0000)]
2008-01-09  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Check register size
only when size of operands can be encoded the canonical way.

16 years agoPR gas/5552
Nick Clifton [Wed, 9 Jan 2008 12:29:08 +0000 (12:29 +0000)]
PR gas/5552
  * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field to FALSE for all relocs.

16 years agoPR binutils/55326
Nick Clifton [Wed, 9 Jan 2008 10:40:32 +0000 (10:40 +0000)]
PR binutils/55326
   * bucomm.c (list_supported_architectures): Free architecture list after use.
   * windres.c (set_endianess): Likewise.
   * windmc.c (set_endianess): Likewise.

16 years agobfd/
Richard Sandiford [Wed, 9 Jan 2008 09:36:11 +0000 (09:36 +0000)]
bfd/
PR ld/5526
* elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
fields.  Rename u.cie.u.merged to u.cie.u.merged_with.
(eh_frame_sec_info): Add a cies field.
(eh_frame_hdr_info): Add a merge_cies field.
* elf-eh-frame.c (cie): Add a reloc_index member to the personality
union.
(_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
of hdr_info->cies.
(_bfd_elf_parse_eh_frame): Remove tmp_cie.  Ccreate an array of
cie structures in all cases and use it instead of extended_cies.
If merging, store the cie array in sec_info->cies and point each
CIE's eh_fde_cie at the associated element.  Do not try to
calculate the value of the personality routine here; record the
offset of the relocation instead.  Do not merge CIEs here.
(_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
(_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
(_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
(find_merged_cie): New function.
(_bfd_elf_gc_mark_fdes): Use it.  Free sec_info->cies.

ld/testsuite/
PR ld/5526
* ld-elf/eh6.s, ld-elf/eh6.d: New test.

16 years ago2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 9 Jan 2008 01:24:07 +0000 (01:24 +0000)]
2008-01-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (set_bitfield): Use fail () on error.

16 years agodaily update
Alan Modra [Tue, 8 Jan 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 8 Jan 2008 21:24:16 +0000 (21:24 +0000)]
2008-01-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (lineno): New.
(filename): Likewise.
(set_bitfield): Report filename and line numer on error.
(process_i386_opcodes): Set filename and update lineno.
(process_i386_registers): Likewise.

16 years ago2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 8 Jan 2008 19:51:24 +0000 (19:51 +0000)]
2008-01-08  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (i386_operand): Renamed to ...
(i386_att_operand): This.
(parse_operands): Updated.

16 years ago * futex.m4: New file.
Jakub Jelinek [Tue, 8 Jan 2008 17:29:24 +0000 (17:29 +0000)]
* futex.m4: New file.

16 years agobinutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post characters
Kai Tietz [Tue, 8 Jan 2008 09:10:47 +0000 (09:10 +0000)]
binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post characters
for name tokens. PR/5529.

16 years ago PR gas/5322
Nick Clifton [Tue, 8 Jan 2008 08:37:13 +0000 (08:37 +0000)]
  PR gas/5322
* lib/gas-defs.exp (gas_host_run): Add fourth argument to regsub command.

16 years ago * config.sub, config.guess: Update from upstream sources.
Ben Elliston [Mon, 7 Jan 2008 23:25:47 +0000 (23:25 +0000)]
* config.sub, config.guess: Update from upstream sources.

16 years ago * prdbg.c (print_vma): Print as long long, if host supports it.
Greg McGary [Mon, 7 Jan 2008 23:17:48 +0000 (23:17 +0000)]
    * prdbg.c (print_vma): Print as long long, if host supports it.

16 years agodaily update
Alan Modra [Mon, 7 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoPR binutils/5535
Nick Clifton [Mon, 7 Jan 2008 17:53:03 +0000 (17:53 +0000)]
PR binutils/5535
   * vms.c (vms_close_and_cleanup): Check for the presence of a
   vms_private_data_struct before examining any of its fields.

16 years agobfd/
H.J. Lu [Mon, 7 Jan 2008 16:45:35 +0000 (16:45 +0000)]
bfd/

2008-01-07  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/5522
* elflink.c (elf_link_input_bfd): Don't write out a section if
its output section is marked with SEC_NEVER_LOAD.

ld/testsuite/

2008-01-07  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/5522
* ld-elf/noload-3.d: New file.
* ld-elf/noload-3.s: Likewise.
* ld-elf/noload-3.t: Likewise.

16 years agoReport linker script errors with line numbers. Ignore OUTPUT_FORMAT
Ian Lance Taylor [Mon, 7 Jan 2008 05:19:02 +0000 (05:19 +0000)]
Report linker script errors with line numbers.  Ignore OUTPUT_FORMAT
with three arguments, and ignore OUTPUT_ARCH.

16 years agodaily update
Alan Modra [Sun, 6 Jan 2008 23:00:04 +0000 (23:00 +0000)]
daily update

16 years agoAdd support for -e and for ENTRY in linker scripts.
Ian Lance Taylor [Sun, 6 Jan 2008 00:47:10 +0000 (00:47 +0000)]
Add support for -e and for ENTRY in linker scripts.

16 years agodaily update
Alan Modra [Sat, 5 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agogas/
H.J. Lu [Sat, 5 Jan 2008 17:07:25 +0000 (17:07 +0000)]
gas/

2008-01-05  H.J. Lu  <hongjiu.lu@intel.com>

* doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.

* config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
only.
(md_assemble): Remove Intel mode workaround.
(match_template): Check support for old gcc, AT&T mnemonic
and Intel Syntax.
(md_parse_option): Don't set intel_mnemonic to 0 for
OPTION_MOLD_GCC.

gas/testsuite/

2008-01-05  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/intel.s: Add tests for fadd, faddp, fdiv, fdivp,
fdivr, fdivrp, fmul, fmulp, fsub, fsubp, fsubr and fsubrp.

* gas/i386/intel.d: Updated.
* gas/i386/intel.e: Likewise.

opcodes/

2008-01-05  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Rename IntelMnemonic to
ATTSyntax.

* i386-opc.h (IntelMnemonic): Renamed to ..
(ATTSyntax): This
(Opcode_Modifier_Max): Updated.
(i386_opcode_modifier): Remove intelmnemonic. Add attsyntax
and intelsyntax.

* i386-opc.tbl: Remove IntelMnemonic and update with ATTSyntax
on fsub, fubp, fsubr, fsubrp, div, fdivp, fdivr and fdivrp.
* i386-tbl.h: Regenerated.

16 years agodaily update
Alan Modra [Fri, 4 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 4 Jan 2008 18:19:12 +0000 (18:19 +0000)]
2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.h: Update copyright to 2008.

16 years ago2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 4 Jan 2008 18:10:08 +0000 (18:10 +0000)]
2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c: Update copyright to 2008.
* i386-opc.h: Likewise.
* i386-opc.tbl: Likewise.

* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

16 years agogas/testsuite/
H.J. Lu [Fri, 4 Jan 2008 18:03:02 +0000 (18:03 +0000)]
gas/testsuite/

2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/rexw.d: New.
* gas/i386/rexw.s: Likewise.

* gas/i386/x86-64-sse4_1-intel.d: Updated.
* gas/i386/x86-64-sse4_1.d: Likewise.

opcodes/

2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Add NoRex64 to extractps, movmskpd, movmskps,
pextrb, pextrw, pinsrb, pinsrw and pmovmskb.
* i386-tbl.h: Regenerated.

16 years ago* config/tc-ppc.c (parse_cpu): Preserve the settings of the
Nick Clifton [Fri, 4 Jan 2008 14:53:50 +0000 (14:53 +0000)]
* config/tc-ppc.c (parse_cpu): Preserve the settings of the
  PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.

* gas/ppc/altivec_and_spe.s: New test - checks that ISA extension
  command line options (-maltivec, -mspe) can be specified before
  CPU selection command line options.
* gas/ppc/altivec_and_spe.d: Expected disassembly.
* gas/ppc/ppc.exp: Run the new test

16 years ago * dwarf.c (read_and_display_attr_value): Prefix values that are
Nick Clifton [Fri, 4 Jan 2008 09:53:41 +0000 (09:53 +0000)]
    * dwarf.c (read_and_display_attr_value): Prefix values that are
        displayed in hexadecimal with 0x.
        For the DW_AT_import attribute display the abbreviation number and
        tag of the imported DIE.
        (process_debug_info): Warn about lengths that reserved by the
        DWARF3 specification.
        Provide more information when corrupted DIEs are detected.
        Warn if DIE corruption makes the sibling level negative.

16 years agoAdd -h/-soname option.
Ian Lance Taylor [Fri, 4 Jan 2008 05:35:24 +0000 (05:35 +0000)]
Add -h/-soname option.

16 years agoDon't create the postprocessing buffer if it already exists.
Ian Lance Taylor [Fri, 4 Jan 2008 05:04:56 +0000 (05:04 +0000)]
Don't create the postprocessing buffer if it already exists.

16 years ago2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 4 Jan 2008 01:27:01 +0000 (01:27 +0000)]
2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
of SYSV386_COMPAT.

16 years agogas/
H.J. Lu [Fri, 4 Jan 2008 01:05:45 +0000 (01:05 +0000)]
gas/

2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>

* gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
(cpu_flags_not): Likewise.
(cpu_flags_match): Updated to check 64bit and arch.
(set_code_flag): Remove cpu_arch_flags_not.
(set_16bit_gcc_code_flag): Likewise.
(set_cpu_arch): Likewise.
(md_begin): Likewise.
(parse_insn): Call cpu_flags_match to check 64bit and arch.
(match_template): Likewise.

gas/testsuite/

2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/arch-9.d: New file.
* gas/i386/arch-9.s: Likewise.

* gas/i386/i386.exp: Run arch-9.

opcodes/

2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (cpu_flag_init): Remove CpuSSE4_1_Or_5 and
CpuSSE4_2_Or_ABM.
(cpu_flags): Likewise.

* i386-opc.h (CpuSSE4_1_Or_5): Removed.
(CpuSSE4_2_Or_ABM): Likewise.
(CpuLM): Updated.
(i386_cpu_flags): Remove cpusse4_1_or_5 and cpusse4_2_or_abm.

* i386-opc.tbl: Replace CpuSSE4_1_Or_5, CpuSSE4_2_Or_ABM and
Cpu686|CpuPadLock with CpuSSE4_1|CpuSSE5, CpuABM|CpuSSE4_2
and CpuPadLock, respectively.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

16 years agodaily update
Alan Modra [Thu, 3 Jan 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * config/tc-i386.c (process_drex): Initialize modrm_reg and
Jakub Jelinek [Thu, 3 Jan 2008 20:19:29 +0000 (20:19 +0000)]
* config/tc-i386.c (process_drex): Initialize modrm_reg and
modrm_regmem to 0 instead of None.

16 years agogas/
H.J. Lu [Thu, 3 Jan 2008 20:09:38 +0000 (20:09 +0000)]
gas/

2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Use the xmmword field
instead of no_xsuf.

opcodes/

2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Remove No_xSuf.

* i386-opc.h (No_xSuf): Removed.
(CheckSize): Updated.

* i386-tbl.h: Regenerated.

16 years agogas/testsuite/
H.J. Lu [Thu, 3 Jan 2008 05:29:53 +0000 (05:29 +0000)]
gas/testsuite/

2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/arch-5.d: New file.
* gas/i386/arch-5.s: Likewise.
* gas/i386/arch-6.d: Likewise.
* gas/i386/arch-6.s: Likewise.
* gas/i386/arch-7.d: Likewise.
* gas/i386/arch-7.s: Likewise.
* gas/i386/arch-8.d: Likewise.
* gas/i386/arch-8.s: Likewise.

* gas/i386/i386.exp: Run arch-5, arch-6, arch-7 and arch-8.

opcodes/

2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (cpu_flag_init): Add CpuSSE4_2_Or_ABM to
CPU_AMDFAM10_FLAGS, CPU_SSE4_2_FLAGS, CpuABM and
CPU_SSE5_FLAGS.
(cpu_flags): Add CpuSSE4_2_Or_ABM.

* i386-opc.h (CpuSSE4_2_Or_ABM): New.
(CpuLM): Updated.
(i386_cpu_flags): Add cpusse4_2_or_abm.

* i386-opc.tbl: Use CpuSSE4_2_Or_ABM instead of
CpuABM|CpuSSE4_2 on popcnt.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

16 years agoAdd a missing ','.
H.J. Lu [Thu, 3 Jan 2008 05:27:55 +0000 (05:27 +0000)]
Add a missing ','.

16 years agogas/testsuite/
H.J. Lu [Thu, 3 Jan 2008 03:28:35 +0000 (03:28 +0000)]
gas/testsuite/

2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.s: Add tests for movq.
* gas/i386/x86_64.s: Likewise.

* gas/i386/i386.d Updated.
* gas/i386/x86_64.d: Likewise.

opcodes/

2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h: Update comments.

16 years agoFix a typo.
H.J. Lu [Thu, 3 Jan 2008 00:02:26 +0000 (00:02 +0000)]
Fix a typo.

16 years ago2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 2 Jan 2008 23:55:45 +0000 (23:55 +0000)]
2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (process_suffix): Fix a typo.

16 years agoAdd cast to avoid signed/unsigned warning.
Ian Lance Taylor [Wed, 2 Jan 2008 23:55:37 +0000 (23:55 +0000)]
Add cast to avoid signed/unsigned warning.

16 years ago2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 2 Jan 2008 23:54:47 +0000 (23:54 +0000)]
2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Use Qword instead of QWord.
* i386-opc.h: Likewise.
* i386-opc.tbl: Likewise.

16 years agoReduce the number of system calls. Use readv instead of pread. Do
Ian Lance Taylor [Wed, 2 Jan 2008 23:48:49 +0000 (23:48 +0000)]
Reduce the number of system calls.  Use readv instead of pread.  Do
better handling of cached views.

16 years agodaily update
Alan Modra [Wed, 2 Jan 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agogas/
H.J. Lu [Wed, 2 Jan 2008 21:43:34 +0000 (21:43 +0000)]
gas/

2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/5534
* config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
Check memory size in Intel mode.
(process_suffix): Handle XMMWORD_MNEM_SUFFIX.
(intel_e09): Likewise.

* config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.

gas/testsuite/

2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/5534
* gas/i386/intel.s: Use QWORD on movq instead of DWORD.

* gas/i386/inval.s: Add tests for movq.
* gas/i386/x86-64-inval.s: Likewise.

* gas/i386/inval.l: Updated.
* gas/i386/x86-64-inval.l: Likewise.

opcodes/

2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/5534
* i386-gen.c (opcode_modifiers): Add No_xSuf, CheckSize,
Byte, Word, Dword, QWord and Xmmword.

* i386-opc.h (No_xSuf): New.
(CheckSize): Likewise.
(Byte): Likewise.
(Word): Likewise.
(Dword): Likewise.
(QWord): Likewise.
(Xmmword): Likewise.
(FWait): Updated.
(i386_opcode_modifier): Add No_xSuf, CheckSize, Byte, Word,
Dword, QWord and Xmmword.

* i386-opc.tbl: Add CheckSize|QWord to movq if IgnoreSize is
used.
* i386-tbl.h: Regenerated.

16 years agoMove 2007 ChangeLog entries to ChangeLog-2007.
H.J. Lu [Wed, 2 Jan 2008 21:41:02 +0000 (21:41 +0000)]
Move 2007 ChangeLog entries to ChangeLog-2007.

16 years ago * gas/mips/jalr.s: New test.
Catherine Moore [Wed, 2 Jan 2008 20:59:47 +0000 (20:59 +0000)]
* gas/mips/jalr.s: New test.
    * gas/mips/jalr.l: New test output.
    * gas/mips/mips.exp: Run new test.

16 years ago* m88k-dis.c (instructions): Fix fcvt.* instructions.
Mark Kettenis [Wed, 2 Jan 2008 00:37:44 +0000 (00:37 +0000)]
* m88k-dis.c (instructions): Fix fcvt.* instructions.
From Miod Vallat.

16 years agodaily update
Alan Modra [Tue, 1 Jan 2008 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago Updated copyright notices for most files.
Daniel Jacobowitz [Tue, 1 Jan 2008 22:53:22 +0000 (22:53 +0000)]
Updated copyright notices for most files.

16 years agodaily update
Alan Modra [Mon, 31 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-12-31 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 31 Dec 2007 19:23:07 +0000 (19:23 +0000)]
2007-12-31  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/5530
* elfxx-ia64.c (elfNN_ia64_relocate_section): Call
_bfd_elf_find_segment_containing_section with output_bfd,
instead of input_bfd.

16 years agoFix a typo in ChangeLog.
H.J. Lu [Mon, 31 Dec 2007 16:17:43 +0000 (16:17 +0000)]
Fix a typo in ChangeLog.