OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
13 years ago[Ada] fix warning when printing empty array
brobecke [Wed, 3 Nov 2010 23:20:11 +0000 (23:20 +0000)]
[Ada] fix warning when printing empty array

This patch should fix the following regression:

     (gdb) print my_table
    -$1 = ()
    -(gdb) PASS: gdb.ada/null_array.exp: print my_table
    +$1 = (warning: unable to get bounds of array, assuming null array
    +)
    +(gdb) FAIL: gdb.ada/null_array.exp: print my_table

The problem was introduced by a change in val_print_array_elements
which removed a check for the case where the array's high bound
is smaller than the array's low bound (empty array).

This change restores the check and forces the len to zero in that case.
Looking at the patch that caused the regression, I suspect that we may
have other parts that might have been broken (non-zero array low bound?).

gdb/ChangeLog:

        * valprint.c (val_print_array_elements): Put back handling of
        empty arrays.

13 years agodaily update
amodra [Wed, 3 Nov 2010 23:00:06 +0000 (23:00 +0000)]
daily update

13 years ago PR ld/12001
nickc [Wed, 3 Nov 2010 17:18:18 +0000 (17:18 +0000)]
    PR ld/12001
        * ldlang.c (ldlang_def_chain_list): New variable.  Contains a list
        of symbols defined via the --defsym command line option and
        currently waiting assignment.
        (insert_defined): Add a defined symbol to the symbol table.
        (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
        (lang_place_defineds): Walk ldlang_def_chain_list defining the
        symbols.
        (lang_process): Call lang_place_defineds.
        (lang_add_assignment): If the assignment has come from a --defsym
        command line option then call lang_add_def.

        * ld-script/default-script2.d: Fix expected address for text
        section.

        PR gold/12001
        * script.h (class Symbol_assignment: name): New member.  Returns
        the name of the symbol.
        * scrfipt.cc (Script_options::is_pending_assignment): New member.
        Returns true if the given symbol name is on the list of
        assignments wating to be processed.
        * archive.cc (should_incldue_member): If the symbol is undefined,
        check to see if it is on the list of symbols pending assignment.

13 years ago * cpu/xstormy16.cpu (alignfix-mem-far): New macro. Like
nickc [Wed, 3 Nov 2010 17:02:32 +0000 (17:02 +0000)]
* cpu/xstormy16.cpu (alignfix-mem-far): New macro.  Like
    alignfix-mem, but works with 32-bit addresses.
    (set-alignfix-mem-far): New macro.  Like set-alignfix-mem but
    works with 32-bit addresses.
    (movfgrgri, movfgrgripostinc, movfgrgripredec, movfgrgrii,
    movfgrgriipostinc, movfgrgriipredec): Use alignfix-mem-far.
    (movfgrigr, movfgripostincgr, movfgripredecgr): Use
    set-alignfix-mem-far.
    (movfgrgriipostinc, movfgriipostincgr): Propagate addition to
    source register into base register.
    (movfgrgriipredec, movfgriipredecgr): Propagate subtraction from
    source register into base register.

    * xstormy16-sem.cxx: Regenerate.

        * testutils.inc (pass): Update parameter layout for write syscall.
        (fail): Likewise.
        * movgrgrii.cgs: Fix endianness typo in assertion.
        * movgrgriipostinc.cgs: Likewise.
        * movgrgriipredec.cgs: Likewise.
        * movgrgripostinc.cgs: Likewise.
        * movgrgripredec.cgs: Likewise.
        * movgrigr.cgs: Likewise.
        * movgriipostincgr.cgs: Likewise.
        * movgripostincgr.cgs: Likewise.
        * movgripredecgr.cgs: Likewise.
        * rrcgrgr.cgs: Rotate only inserts carry flag once.
        * rrcgrimm4.cgs: Likewise.
        * movfgrgriipostinc.cgs: New test.  Checks MOVF load with post increment.
        * movfgrgriipredec.cgs: New test.  Checks MOVF load with pre decrement.
        * movfgriipostincgr.cgs: New test.  Checks MOVF store with post increment.
        * movfgriipostincgr.cgs: New test.  Checks MOVF store with pre decrement.

13 years agoSync from gcc/
davek [Wed, 3 Nov 2010 14:27:05 +0000 (14:27 +0000)]
Sync from gcc/

PR lto/46273
* configure.ac: Remove libelf tests.  Build lto-plugin on ELF always
and on other supported platforms whenever LTO is enabled.
* configure: Rebuild.

13 years agogdb:
kwerner [Wed, 3 Nov 2010 14:21:52 +0000 (14:21 +0000)]
gdb:
* dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
DIE and set the length of the type.
* gdbtypes.h (get_array_bounds): Move here from valprint.h.
* gdbtypes.c (get_array_bounds): Move here from valprint.c and
return 0 if the corresponding bounds of the type are undefined.
* valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
* valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
(val_print_array_elements): Use get_array_bounds to compute the number
of array elements instead of dividing the length of the array by the
length of the element types.
* valarith.c (vector_binop): Likewise.
* valops.c (value_cast): Likewise.
* c-valprint.c (c_val_print): Likewise.
* c-typeprint.c (c_type_print_varspec_suffix): Likewise.

gdb/testsuite:
* gdb.base/gnu_vector.exp: Adjust expect messages.

13 years agoProperly fold _GLOBAL_OFFSET_TABLE_ in Intel syntax.
hjl [Wed, 3 Nov 2010 14:18:40 +0000 (14:18 +0000)]
Properly fold _GLOBAL_OFFSET_TABLE_ in Intel syntax.

gas/

2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/12186
* config/tc-i386-intel.c (i386_intel_fold): Properly fold
_GLOBAL_OFFSET_TABLE_.

gas/testsuite/

2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/12186
* gas/i386/gotpc.s: Add more _GLOBAL_OFFSET_TABLE_ test.
* gas/i386/gotpc.d: Updated.

13 years ago * script-sections.cc (Script_sections::find_memory_region): Check
ian [Wed, 3 Nov 2010 14:07:49 +0000 (14:07 +0000)]
* script-sections.cc (Script_sections::find_memory_region): Check
for a NULL output section pointer.

13 years agogdb:
kwerner [Wed, 3 Nov 2010 14:06:25 +0000 (14:06 +0000)]
gdb:
* valarith.c (value_pos, value_neg, value_complement): Handle
vector types.
* valops.c (value_one): Likewise.

gdb/testsuite:
* gdb.base/gnu_vector.exp: Add unary operator tests.

13 years agogdb:
kwerner [Wed, 3 Nov 2010 13:49:36 +0000 (13:49 +0000)]
gdb:
* value.h (value_non_lval): Declare.
* value.c (value_non_lval): New function.
* eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
non-lvalue.

gdb/testsuite:
* gdb.base/exprs.exp: Add tests for pre-/post- in-/decrement operators.

13 years ago * Makefile.am (eelf64hppa.c): Correct dependencies.
amodra [Wed, 3 Nov 2010 03:22:00 +0000 (03:22 +0000)]
* Makefile.am (eelf64hppa.c): Correct dependencies.
* Makefile.in: Regenerate.

13 years agoDon't display bits only used for BFD in abfd->flags.
hjl [Wed, 3 Nov 2010 02:31:01 +0000 (02:31 +0000)]
Don't display bits only used for BFD in abfd->flags.

bfd/

2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>

* bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
* bfd-in2.h: Regenerated.

binutils/

2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>

* objdump.c (dump_bfd_header): Don't display
BFD_FLAGS_FOR_BFD_USE_MASK bits in abfd->flags.

13 years ago*** empty log message ***
gdbadmin [Wed, 3 Nov 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Tue, 2 Nov 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago New python module gdb.printing, and new commands info pretty-printer,
devans [Tue, 2 Nov 2010 22:44:09 +0000 (22:44 +0000)]
New python module gdb.printing, and new commands info pretty-printer,
enable pretty-printer, disable pretty-printer.
* NEWS: Mention them.
* data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
gdb/command/__init__.py, gdb/command/pretty_printers.py.
* python/lib/gdb/__init__.py: Install pretty-printer commands.
* python/lib/gdb/printing.py: New file.
* python/lib/gdb/command/__init__.py: New file.
* python/lib/gdb/command/pretty_printers.py: New file.

doc/
* gdb.texinfo (Pretty Printing): Expand into three sections,
introduction, example, and commands.
(Python API): Delete section Disabling Pretty-Printers, merge into
Selecting Pretty-Printers.
(Writing a Pretty-Printer): New section.  Move the pretty-printer
example here, and reformat to match python coding style.  Add a second
example using the gdb.printing module.
(Python modules): Add gdb.printing.

testsuite/
* gdb.python/py-pp-maint.c: New file.
* gdb.python/py-pp-maint.exp: New file.
* gdb.python/py-pp-maint.py: New file.

13 years agogdb
tromey [Tue, 2 Nov 2010 18:55:51 +0000 (18:55 +0000)]
gdb
* NEWS: Mention Guile removal.
* defs.h (enum language) <language_scm>: Remove.
* Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
scm-valprint.c.
(HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
(COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
* scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
Remove.
gdb/testsuite
* gdb.base/default.exp: Remove "scheme" from language list.

13 years ago* include/paths.h (_PATH_VARTMP): Define.
yselkowitz [Tue, 2 Nov 2010 17:38:36 +0000 (17:38 +0000)]
* include/paths.h (_PATH_VARTMP): Define.

13 years ago * top.c: #include "python/python.h".
devans [Tue, 2 Nov 2010 16:48:34 +0000 (16:48 +0000)]
* top.c: #include "python/python.h".
(gdb_init): Add a comment regarding initialize_all_files.
Call finish_python_initialization at the end.
* python/python.h (finish_python_initialization): Declare.
* python/python.c (finish_python_initialization): New function.
(_initialize_python): Move python-implemented initialization there
and call it.
(GdbMethods): Use #ifdef HAVE_PYTHON for consistency.

13 years agomerge from gcc
dj [Tue, 2 Nov 2010 15:20:40 +0000 (15:20 +0000)]
merge from gcc

13 years agobfd:
jsm28 [Tue, 2 Nov 2010 14:36:32 +0000 (14:36 +0000)]
bfd:
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for
Tag_ABI_compatibility, treat odd tags as strings and even ones as
integers.
(elf32_tic6x_obj_attrs_order, elf32_tic6x_tag_to_array_alignment,
elf32_tic6x_array_alignment_to_tag): New.
(elf32_tic6x_merge_attributes): Handle more attributes.  Set type
for merged attributes.
(elf_backend_obj_attrs_order): Define.

binutils:
* readelf.c (display_tic6x_attribute): Handle more attributes.

gas:
* config/tc-tic6x.c (OPTION_MPID, OPTION_MPIC, OPTION_MNO_PIC):
New enum values.
(md_longopts): Add options mpid, mpic and mno-pic.
(tic6x_pid_type, tic6x_pid, tic6x_pic, tic6x_pid_type_table,
tic6x_pid_types, tic6x_use_pid): New.
(md_parse_option): Handle new options.
(md_show_usage): Output help text for new options.
(tic6x_set_attributes): Set PID and PIC attributes.
* doc/as.texinfo: Document -mpid=, -mpic and -mno-pic.
* doc/c-tic6x.texi (TIC6X Options): Likewise.

gas/testsuite:
* gas/tic6x/attr-array-directive-1.d,
gas/tic6x/attr-array-directive-1.s,
gas/tic6x/attr-array-directive-2.d,
gas/tic6x/attr-array-directive-2.s,
gas/tic6x/attr-array-directive-3.d,
gas/tic6x/attr-array-directive-3.s,
gas/tic6x/attr-array-directive-4.d,
gas/tic6x/attr-array-directive-4.s,
gas/tic6x/attr-conformance-directive-1.d,
gas/tic6x/attr-conformance-directive-1.s,
gas/tic6x/attr-conformance-directive-2.d,
gas/tic6x/attr-conformance-directive-2.s,
gas/tic6x/attr-pic-directive-1.d,
gas/tic6x/attr-pic-directive-1.s,
gas/tic6x/attr-pic-directive-2.d,
gas/tic6x/attr-pic-directive-2.s,
gas/tic6x/attr-pic-opts-mno-pic.d, gas/tic6x/attr-pic-opts-mpic.d,
gas/tic6x/attr-pid-directive-1.d,
gas/tic6x/attr-pid-directive-1.s,
gas/tic6x/attr-pid-directive-2.d,
gas/tic6x/attr-pid-directive-2.s,
gas/tic6x/attr-pid-opts-mpid-far.d,
gas/tic6x/attr-pid-opts-mpid-near.d,
gas/tic6x/attr-pid-opts-mpid-no.d,
gas/tic6x/attr-stack-directive-1.d,
gas/tic6x/attr-stack-directive-1.s,
gas/tic6x/attr-stack-directive-2.d,
gas/tic6x/attr-stack-directive-2.s,
gas/tic6x/attr-wchar-directive-1.d,
gas/tic6x/attr-wchar-directive-1.s,
gas/tic6x/attr-wchar-directive-2.d,
gas/tic6x/attr-wchar-directive-2.s: New tests.

include/elf:
* tic6x-attrs.h (Tag_ABI_wchar_t, Tag_ABI_stack_align_needed,
Tag_ABI_stack_align_preserved, Tag_ABI_PID, Tag_ABI_PIC,
Tag_ABI_array_object_alignment,
Tag_ABI_array_object_align_expected, Tag_ABI_conformance): Define.

ld/testsuite:
* ld-tic6x/attr-array-16-16.d, ld-tic6x/attr-array-16-4.d,
ld-tic6x/attr-array-16-416.d, ld-tic6x/attr-array-16-48.d,
ld-tic6x/attr-array-16-8.d, ld-tic6x/attr-array-16-816.d,
ld-tic6x/attr-array-16.s, ld-tic6x/attr-array-4-16.d,
ld-tic6x/attr-array-4-4.d, ld-tic6x/attr-array-4-416.d,
ld-tic6x/attr-array-4-48.d, ld-tic6x/attr-array-4-8.d,
ld-tic6x/attr-array-4-816.d, ld-tic6x/attr-array-4.s,
ld-tic6x/attr-array-416-16.d, ld-tic6x/attr-array-416-4.d,
ld-tic6x/attr-array-416-416.d, ld-tic6x/attr-array-416-48.d,
ld-tic6x/attr-array-416-8.d, ld-tic6x/attr-array-416-816.d,
ld-tic6x/attr-array-416.s, ld-tic6x/attr-array-48-16.d,
ld-tic6x/attr-array-48-4.d, ld-tic6x/attr-array-48-416.d,
ld-tic6x/attr-array-48-48.d, ld-tic6x/attr-array-48-8.d,
ld-tic6x/attr-array-48-816.d, ld-tic6x/attr-array-48.s,
ld-tic6x/attr-array-8-16.d, ld-tic6x/attr-array-8-4.d,
ld-tic6x/attr-array-8-416.d, ld-tic6x/attr-array-8-48.d,
ld-tic6x/attr-array-8-8.d, ld-tic6x/attr-array-8-816.d,
ld-tic6x/attr-array-8.s, ld-tic6x/attr-array-816-16.d,
ld-tic6x/attr-array-816-4.d, ld-tic6x/attr-array-816-416.d,
ld-tic6x/attr-array-816-48.d, ld-tic6x/attr-array-816-8.d,
ld-tic6x/attr-array-816-816.d, ld-tic6x/attr-array-816.s,
ld-tic6x/attr-conformance-10-10.d,
ld-tic6x/attr-conformance-10-11.d,
ld-tic6x/attr-conformance-10-none.d,
ld-tic6x/attr-conformance-10.s, ld-tic6x/attr-conformance-11-10.d,
ld-tic6x/attr-conformance-11-11.d,
ld-tic6x/attr-conformance-11-none.d,
ld-tic6x/attr-conformance-11.s,
ld-tic6x/attr-conformance-none-10.d,
ld-tic6x/attr-conformance-none-11.d,
ld-tic6x/attr-conformance-none-none.d,
ld-tic6x/attr-conformance-none.s, ld-tic6x/attr-pic-0.s,
ld-tic6x/attr-pic-00.d, ld-tic6x/attr-pic-01.d,
ld-tic6x/attr-pic-1.s, ld-tic6x/attr-pic-10.d,
ld-tic6x/attr-pic-11.d, ld-tic6x/attr-pid-0.s,
ld-tic6x/attr-pid-00.d, ld-tic6x/attr-pid-01.d,
ld-tic6x/attr-pid-02.d, ld-tic6x/attr-pid-1.s,
ld-tic6x/attr-pid-10.d, ld-tic6x/attr-pid-11.d,
ld-tic6x/attr-pid-12.d, ld-tic6x/attr-pid-2.s,
ld-tic6x/attr-pid-20.d, ld-tic6x/attr-pid-21.d,
ld-tic6x/attr-pid-22.d, ld-tic6x/attr-stack-16-16.d,
ld-tic6x/attr-stack-16-8.d, ld-tic6x/attr-stack-16-816.d,
ld-tic6x/attr-stack-16.s, ld-tic6x/attr-stack-8-16.d,
ld-tic6x/attr-stack-8-8.d, ld-tic6x/attr-stack-8-816.d,
ld-tic6x/attr-stack-8.s, ld-tic6x/attr-stack-816-16.d,
ld-tic6x/attr-stack-816-8.d, ld-tic6x/attr-stack-816-816.d,
ld-tic6x/attr-stack-816.s, ld-tic6x/attr-wchar-0.s,
ld-tic6x/attr-wchar-00.d, ld-tic6x/attr-wchar-01.d,
ld-tic6x/attr-wchar-02.d, ld-tic6x/attr-wchar-1.s,
ld-tic6x/attr-wchar-10.d, ld-tic6x/attr-wchar-11.d,
ld-tic6x/attr-wchar-12.d, ld-tic6x/attr-wchar-2.s,
ld-tic6x/attr-wchar-20.d, ld-tic6x/attr-wchar-21.d,
ld-tic6x/attr-wchar-22.d: New tests.

13 years agoInclude compressed DWARF debug sections in ELF linker scripts.
hjl [Tue, 2 Nov 2010 13:47:42 +0000 (13:47 +0000)]
Include compressed DWARF debug sections in ELF linker scripts.

binutils/testsuite/

2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/libdw2.out: Also accept MIPS_DWARF.

ld/

2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>

* scripttempl/armbpabi.sc: Include compressed DWARF debug
sections.
* scripttempl/avr.sc: Likewise.
* scripttempl/elf32cr16.sc: Likewise.
* scripttempl/elf32crx.sc: Likewise.
* scripttempl/elf32msp430.sc: Likewise.
* scripttempl/elf32msp430_3.sc: Likewise.
* scripttempl/elf32sh-symbian.sc: Likewise.
* scripttempl/elf64hppa.sc: Likewise.
* scripttempl/elf_chaos.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfi370.sc: Likewise.
* scripttempl/elfm68hc11.sc: Likewise.
* scripttempl/elfm68hc12.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
* scripttempl/ip2k.sc: Likewise.
* scripttempl/iq2000.sc: Likewise.
* scripttempl/mep.sc: Likewise.
* scripttempl/mmo.sc: Likewise.
* scripttempl/v850.sc: Likewise.
* scripttempl/xstormy16.sc: Likewise.

ld/testsuite/

2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/compress1a.d: Also check MIPS_DWARF.
* ld-elf/compress1b.d: Likewise.
* ld-elf/compress1c.d: Likewise.

13 years agogdb/
jkratoch [Tue, 2 Nov 2010 01:37:30 +0000 (01:37 +0000)]
gdb/
Revert:
2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Pedro Alves  <pedro@codesourcery.com>
* gdbthread.h (currently_stepping): New declaration.
* infrun.c (currently_stepping): Remove the forward declaration.
(currently_stepping): Make it global.
* linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
variables tp and step, initialized them.  Pass STEP to to_resume.
Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
* remote.c (currently_stepping_callback): New.
(remote_vcont_resume)
<ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
New variable tp.  Call currently_stepping_callback and step such
thread.

gdb/testsuite/
Revert:
2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
* gdb.threads/sigstep-threads.exp: New file.
* gdb.threads/sigstep-threads.c: New file.

13 years ago PR binutils/12110
amodra [Tue, 2 Nov 2010 00:22:10 +0000 (00:22 +0000)]
PR binutils/12110
* configure.ac: Error when source path contains spaces.
* configure: Regenerate.

13 years ago*** empty log message ***
gdbadmin [Tue, 2 Nov 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Mon, 1 Nov 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago * config/tc-mips.c (macro)[M_LD_OB, M_SD_OB]: Use the offset
macro [Mon, 1 Nov 2010 09:53:55 +0000 (09:53 +0000)]
* config/tc-mips.c (macro)[M_LD_OB, M_SD_OB]: Use the offset
reloc supplied.
(mips_ip)['o']: Initialise offset_reloc.

13 years ago2010-10-31 Hui Zhu <teawater@gmail.com>
teawater [Mon, 1 Nov 2010 07:00:09 +0000 (07:00 +0000)]
2010-10-31  Hui Zhu  <teawater@gmail.com>

* tracepoint.c (tfile_xfer_partial): Change lma to vma.

13 years ago*** empty log message ***
gdbadmin [Mon, 1 Nov 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sun, 31 Oct 2010 23:00:06 +0000 (23:00 +0000)]
daily update

13 years ago* regtool.c (cmd_set): Write correct number of bytes for REG_MULTI_SZ case.
cgf [Sun, 31 Oct 2010 01:41:19 +0000 (01:41 +0000)]
* regtool.c (cmd_set): Write correct number of bytes for REG_MULTI_SZ case.

13 years ago*** empty log message ***
gdbadmin [Sun, 31 Oct 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sat, 30 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago* localtime.cc (is_upper): Rename to isupper and include ctype.h to pull in
cgf [Sat, 30 Oct 2010 19:22:42 +0000 (19:22 +0000)]
* localtime.cc (is_upper): Rename to isupper and include ctype.h to pull in
standard macro.
(lcl_is_set): Define as an enum.
(tzsetwall): Assign lcl_is_set to correct enum values.
(tzset): Ditto.  Copy as much of TZ as will fit to TZ buffer.

13 years ago2010-10-30 Kai Tietz <kai.tietz@onevision.com>
ktietz [Sat, 30 Oct 2010 17:14:02 +0000 (17:14 +0000)]
2010-10-30  Kai Tietz  <kai.tietz@onevision.com>

        * dlltool.c (scan_drectve_symbols): Allow quoted strings for -export
        directives.

13 years ago * gdb.texinfo (Python): Fix long line.
devans [Sat, 30 Oct 2010 04:39:47 +0000 (04:39 +0000)]
* gdb.texinfo (Python): Fix long line.

13 years agomerge from gcc
dj [Sat, 30 Oct 2010 00:01:14 +0000 (00:01 +0000)]
merge from gcc

13 years ago*** empty log message ***
gdbadmin [Sat, 30 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Fri, 29 Oct 2010 23:00:04 +0000 (23:00 +0000)]
daily update

13 years ago * elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.
macro [Fri, 29 Oct 2010 21:28:30 +0000 (21:28 +0000)]
* elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.

13 years ago2010-10-29 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 29 Oct 2010 20:49:19 +0000 (20:49 +0000)]
2010-10-29  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_outout_section::fix_exidx_coverage): Adjust call to
Output_section::add_relaxed_input_section.
* output.cc (Output_section::add_relaxed_input_section): Add new
arguments LAYOUT and NAME.  Set section order index.
(Output_section::convert_input_sections_in_list_to_relaxed_sections):
Copy section order index.
* output.h (Output_section::add_relaxed_input_section): Add new
arguments LAYOUT and NAME.

13 years agoUse uLong on compressed_size when using zlib.
hjl [Fri, 29 Oct 2010 19:56:00 +0000 (19:56 +0000)]
Use uLong on compressed_size when using zlib.

2010-10-29  Pawel Sikora  <pluto@pld-linux.org>

PR binutils/12075
* compress.c (bfd_compress_section_contents): Use uLong on
compressed_size.

13 years agobfd:
jsm28 [Fri, 29 Oct 2010 16:47:51 +0000 (16:47 +0000)]
bfd:
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
Tag_ABI_compatibility not Tag_compatibility.
(elf32_tic6x_merge_attributes): Update compatibility attribute
name in comment.  Return FALSE if merging common attributes fails.

binutils:
* readelf.c (display_tic6x_attribute): Use Tag_ABI_compatibility
not hardcoded 32.  Display name of this attribute.

gas:
* doc/c-tic6x.texi (TIC6X Directives): Mention
Tag_ABI_compatibility.

gas/testsuite:
* gas/tic6x/attr-compatibility-directive-1.d,
gas/tic6x/attr-compatibility-directive-1.s,
gas/tic6x/attr-compatibility-directive-2.d,
gas/tic6x/attr-compatibility-directive-2.s: New tests.

include/elf:
* tic6x-attrs.h (Tag_ABI_compatibility): Define.

ld/testsuite:
* ld-tic6x/attr-compatibility-gnu-gnu.d,
ld-tic6x/attr-compatibility-gnu-other.d,
ld-tic6x/attr-compatibility-gnu.s,
ld-tic6x/attr-compatibility-other-gnu.d,
ld-tic6x/attr-compatibility-other-other.d,
ld-tic6x/attr-compatibility-other.s: New tests.

13 years agoOnly run ld-elf/compress1c.d for Linux targets.
hjl [Fri, 29 Oct 2010 16:16:57 +0000 (16:16 +0000)]
Only run ld-elf/compress1c.d for Linux targets.

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/compress1c.d: Only run for Linux targets.

13 years ago * testsuite/Makefile.am: Move gcctestdir/ld rule to
ian [Fri, 29 Oct 2010 15:45:39 +0000 (15:45 +0000)]
* testsuite/Makefile.am: Move gcctestdir/ld rule to
        NATIVE_OR_CROSS_LINKER.
* testsuite/Makefile.in: Regenerate.

13 years ago PR bintils/6962
nickc [Fri, 29 Oct 2010 13:20:03 +0000 (13:20 +0000)]
    PR bintils/6962
        * coffcode.h (handle_COMDAT): Only check the base type when
        looking for a section symbol.

13 years agoAdd compressed debug section support to binutils and ld.
hjl [Fri, 29 Oct 2010 12:10:19 +0000 (12:10 +0000)]
Add compressed debug section support to binutils and ld.

bfd/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
    Cary Coutant  <ccoutant@google.com>

* archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
and BFD_DECOMPRESS.

* bfd.c (BFD_COMPRESS): New.
(BFD_DECOMPRESS): Likewise.
(BFD_FLAGS_SAVED): Likewise.
(bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.

* compress.c (bfd_uncompress_section_contents): Removed.
(get_uncompressed_size): New.
(decompress_contents): Likewise.
(bfd_compress_section_contents): Likewise.
(bfd_get_full_section_contents): Likewise.
(bfd_is_section_compressed): Likewise.
(bfd_init_section_decompress_status): Likewise.
(bfd_init_section_compress_status): Likewise.

* dwarf2.c (dwarf_debug_sections): New.
(dwarf_debug_section_enum): Likewise.
(read_section): Remove section_name and compressed_section_name.
Add dwarf_debug_section_enum.  Try compressed debug section.
(read_indirect_string): Updated.
(read_abbrevs): Likewise.
(decode_line_info): Likewise.
(read_debug_ranges): Likewise.
(find_line): Updated.

* ecoff.c (bfd_debug_section): Add compress_status and
compressed_size.

* elf.c (_bfd_elf_make_section_from_shdr): Call
bfd_is_section_compressed to check if a DWARF debug section is
compressed.  Call bfd_init_section_compress_status or
bfd_init_section_decompress_status if needed.

* elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
with bfd_get_full_section_contents.
* merge.c (_bfd_add_merge_section): Likewise.
* reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
* simple.c (bfd_simple_get_relocated_section_contents): Likewise.

* elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
BFD_DECOMPRESS.
(TARGET_LITTLE_SYM): Likewise.

* libbfd-in.h (dwarf_debug_section): New.
(dwarf_debug_sections): Likewise.

* libbfd.c (_bfd_generic_get_section_contents): Issue an error
when getting contents on compressed/decompressed section.

* section.c (COMPRESS_SECTION_NONE): New.
(COMPRESS_SECTION_DONE): Likewise.
(DECOMPRESS_SECTION_SIZED): Likewise.
(BFD_FAKE_SECTION): Add compress_status and compressed_size.
(bfd_malloc_and_get_section): Replace bfd_get_section_contents
with bfd_get_full_section_contents.

* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.

binutils/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

* addr2line.c (process_file): Set BFD_DECOMPRESS.

* objcopy.c (do_debug_sections): New.
(OPTION_COMPRESS_DEBUG_SECTIONS): New.
(OPTION_DECOMPRESS_DEBUG_SECTIONS): Likewise.
(copy_options): Add OPTION_COMPRESS_DEBUG_SECTIONS and
OPTION_DECOMPRESS_DEBUG_SECTIONS.
(copy_usage): Add --compress-debug-sections and
--decompress-debug-sections.
(copy_file): Set BFD_COMPRESS or BFD_DECOMPRESS.
(copy_section): Replace bfd_get_section_contents with
bfd_get_full_section_contents.
(copy_main): Handle OPTION_COMPRESS_DEBUG_SECTIONS and
OPTION_DECOMPRESS_DEBUG_SECTIONS.  Check do_debug_sections to
rename DWARF debug sections.

* objdump.c (load_specific_debug_section): Replace
bfd_get_section_contents with bfd_get_full_section_contents.
Remove bfd_uncompress_section_contents.
(dump_section): Replace bfd_get_section_contents with
bfd_get_full_section_contents.
(display_file): Set BFD_DECOMPRESS if needed.

* readelf.c (uncompress_section_contents): Set buffer to NULL
to indiate decompression failure.
(load_specific_debug_section): Always call
uncompress_section_contents.

* doc/binutils.texi: Document --compress-debug-sections and
--decompress-debug-sections.

binutils/testsuite/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/compress.exp: New.
* binutils-all/dw2-1.S: Likewise.
* binutils-all/dw2-2.S: Likewise.
* binutils-all/libdw2-compressed.out: Likewise.
* binutils-all/libdw2.out: Likewise.

gas/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

* write.c (compress_debug): Optimize section flags check.

gas/testsuite/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

* elf/dwarf2-1.s: Replace .zdebug_abbrev section with
.debug_abbrev section.
* elf/dwarf2-2.3: Likewise.

* elf/dwarf2-1.d: Pass --compress-debug-sections to assembler.
Updated.
* elf/dwarf2-2.d: Likewise.

* gas/i386/i386.exp: Remove xfail on dw2-compress-2 and
x86-64-dw2-compress-2.

ld/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

* ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
bfd_openr returns.
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.

* scripttempl/elf.sc: Include compressed DWARF debug sections.

ld/testsuite/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/compress.exp: New.
* ld-elf/compress1.s: Likewise.
* ld-elf/compress1a.d: Likewise.
* ld-elf/compress1b.d: Likewise.
* ld-elf/compress1c.d: Likewise.

13 years ago PR binutils/12058
nickc [Fri, 29 Oct 2010 08:47:01 +0000 (08:47 +0000)]
    PR binutils/12058
        * ar.c (usage): Revert previous change.  Describe how 's' can be
        used as a command letter.
        * doc/binutils.texi (ar cmdline): Describe how 's' can be used as
        a command letter.

13 years ago * gprof.texi (Deprecated Options): Move introduction out of the table.
amodra [Fri, 29 Oct 2010 01:53:18 +0000 (01:53 +0000)]
* gprof.texi (Deprecated Options): Move introduction out of the table.

13 years agobfd:
jsm28 [Fri, 29 Oct 2010 00:15:46 +0000 (00:15 +0000)]
bfd:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch
of DSBT attributes.

binutils:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* readelf.c (display_tic6x_attribute): Handle Tag_ABI_DSBT.

gas:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* config/tc-tic6x.c (OPTION_MDSBT, OPTION_MNO_DSBT): New enum
values.
(md_longopts): Add mdsbt and mno-dsbt.
(tic6x_dsbt): New static variable.
(md_parse_option): Handle OPTION_MDSBT and OPTION_MNO_DSBT.
(md_show_usage): Output help text for -mdsbt and -mno-dsbt.
(TAG): Add comma at the end.
(tic6x_set_attributes): Set Tag_ABI_DSBT.
* doc/as.texinfo: Document -mdsbt and -mno-dsbt.
* doc/c-tic6x.texi (TIC6X Options): Likewise.
(TIC6X Directives): Mention Tag_ABI_DSBT.

gas/testsuite:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* gas/tic6x/attr-dsbt-directive-1.d,
gas/tic6x/attr-dsbt-directive-1.s,
gas/tic6x/attr-dsbt-directive-2.d,
gas/tic6x/attr-dsbt-directive-2.s,
gas/tic6x/attr-dsbt-opts-mdsbt.d,
gas/tic6x/attr-dsbt-opts-mno-dsbt.d: New tests.

include/elf:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* tic6x-attrs.h (Tag_ABI_DSBT): New.

ld/testsuite:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* ld-tic6x/attr-dsbt-0.s, ld-tic6x/attr-dsbt-00.d,
ld-tic6x/attr-dsbt-01.d, ld-tic6x/attr-dsbt-1.s,
ld-tic6x/attr-dsbt-10.d, ld-tic6x/attr-dsbt-11.d: New tests.

13 years ago*** empty log message ***
gdbadmin [Fri, 29 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Thu, 28 Oct 2010 23:00:04 +0000 (23:00 +0000)]
daily update

13 years ago PR binutils/12058
nickc [Thu, 28 Oct 2010 14:11:29 +0000 (14:11 +0000)]
    PR binutils/12058
        * ar.c (usage): Remove spurious 's' from list of accepted command
        letters.

13 years ago * mips-opc.c (mips_builtin_opcodes): Fix formatting of "ld".
macro [Thu, 28 Oct 2010 13:49:51 +0000 (13:49 +0000)]
* mips-opc.c (mips_builtin_opcodes): Fix formatting of "ld".

13 years ago * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
amodra [Thu, 28 Oct 2010 12:06:27 +0000 (12:06 +0000)]
* ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.

13 years agoAdd directory section for info document.
amodra [Thu, 28 Oct 2010 11:40:25 +0000 (11:40 +0000)]
Add directory section for info document.

13 years agold/testsuite/
tschwinge [Thu, 28 Oct 2010 09:10:06 +0000 (09:10 +0000)]
ld/testsuite/

* ld-scripts/script.exp: Sort all filename globs.

gas/testsuite/

* gas/iq2000/load-hazards.exp: Sort all filename globs.
* gas/iq2000/yield.exp: Likewise.
* gas/mt/errors.exp: Likewise.

13 years ago * ld-elfvers/vers.exp: Enable test for powerpc64.
amodra [Thu, 28 Oct 2010 09:08:34 +0000 (09:08 +0000)]
* ld-elfvers/vers.exp: Enable test for powerpc64.
* ld-elfweak/elfweak.exp: Likewise
* ld-shared/shared.exp: Likewise.  Xfail non-pic dso tests for ppc64.
* ld-elfvers/vers1.dsym, * ld-elfvers/vers1.sym,
* ld-elfvers/vers2.dsym, * ld-elfvers/vers3.dsym,
* ld-elfvers/vers4.sym, * ld-elfvers/vers4a.dsym,
* ld-elfvers/vers4a.sym, * ld-elfvers/vers6.dsym,
* ld-elfvers/vers6.sym, * ld-elfvers/vers7a.dsym,
* ld-elfvers/vers7a.sym, * ld-elfvers/vers9.dsym,
* ld-elfvers/vers9.sym, * ld-elfvers/vers15.dsym,
* ld-elfvers/vers15.sym, * ld-elfvers/vers16.dsym,
* ld-elfvers/vers16a.dsym, * ld-elfvers/vers17.dsym,
* ld-elfvers/vers18.dsym, * ld-elfvers/vers18.sym,
* ld-elfvers/vers19.dsym, * ld-elfvers/vers20.dsym,
* ld-elfvers/vers21.dsym, * ld-elfvers/vers21.sym,
* ld-elfvers/vers22.dsym, * ld-elfvers/vers22a.dsym,
* ld-elfvers/vers22a.sym, * ld-elfvers/vers22b.dsym,
* ld-elfvers/vers23.dsym, * ld-elfvers/vers23a.dsym,
* ld-elfvers/vers23a.sym, * ld-elfvers/vers23b.dsym,
* ld-elfvers/vers25a.dsym, * ld-elfvers/vers26a.dsym,
* ld-elfvers/vers27a.dsym, * ld-elfvers/vers27d.dsym,
* ld-elfvers/vers27d.sym, * ld-elfvers/vers27d4.dsym,
* ld-elfvers/vers28b.dsym, * ld-elfvers/vers28c.dsym,
* ld-elfvers/vers29.dsym, * ld-elfvers/vers30.dsym,
* ld-elfvers/vers31.dsym, * ld-elfvers/vers32a.dsym,
* ld-elfvers/vers32b.dsym, * ld-elfvers/vers32c.dsym,
* ld-elfweak/dso.dsym, * ld-elfweak/dsodata.dsym,
* ld-elfweak/dsow.dsym, * ld-elfweak/dsowdata.dsym,
* ld-elfweak/strong.sym, * ld-elfweak/strongcomm.sym,
* ld-elfweak/strongdata.sym, * ld-elfweak/weak.dsym,
* ld-elfweak/weakdata.dsym: Relax whitespace matching, tighten
non-whitespace matching.  Match powerpc64 functions in .opd section.
* ld-shared/elf-offset.ld: Place powerpc64 .toc sections.

13 years ago * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
amodra [Thu, 28 Oct 2010 08:38:45 +0000 (08:38 +0000)]
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
--no-undefined-version, don't report dot sym versions added by ld.

13 years ago * ld-plugin/plugin.exp (libs): Remove $LIBS.
amodra [Thu, 28 Oct 2010 08:16:33 +0000 (08:16 +0000)]
* ld-plugin/plugin.exp (libs): Remove $LIBS.

13 years ago2010-10-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Thu, 28 Oct 2010 07:37:43 +0000 (07:37 +0000)]
2010-10-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c (md_begin): Only add to hash table if cpu and
mode mask fit.

2010-10-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-opc.txt: cfxr, cfdr and cfer z900 -> g5.

13 years ago * ldlang.h (ldlang_add_undef): Add cmdline param.
amodra [Thu, 28 Oct 2010 06:45:32 +0000 (06:45 +0000)]
* ldlang.h (ldlang_add_undef): Add cmdline param.
* ldlang.c (undef_from_cmdline): New var.
(ldlang_add_undef): Add cmdline param.  Set undef_from_cmdline.
(lang_end): Really require -e or -u from command line on
relocatable --gc-sections.
* ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
* ldgram.y (extern_name_list_body): Likewise.
* lexsup.c (parse_args): Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.

13 years ago * ld-elf/sec-to-seg.exp (B_test_same_seg): Clear for i960,
amodra [Thu, 28 Oct 2010 06:27:55 +0000 (06:27 +0000)]
* ld-elf/sec-to-seg.exp (B_test_same_seg): Clear for i960,
microblaze, moxie, and mt.

13 years ago * ld-elf/flags1.s: Use arm compatible .type syntax.
amodra [Thu, 28 Oct 2010 06:21:48 +0000 (06:21 +0000)]
* ld-elf/flags1.s: Use arm compatible .type syntax.
* ld-elf/flags1.d: Remove arm and xscale xfails, add i960, ip2k,
moxie, mt.

13 years ago * gas/elf/elf.exp (groupautob): Don't run on xtensa.
amodra [Thu, 28 Oct 2010 06:12:16 +0000 (06:12 +0000)]
* gas/elf/elf.exp (groupautob): Don't run on xtensa.
* gas/elf/groupautoa.d: Change test name.
* gas/elf/groupautob.d: Change test name.

13 years ago * readelf.c (is_32bit_abs_reloc): Support i960 and microblaze.
amodra [Thu, 28 Oct 2010 06:00:13 +0000 (06:00 +0000)]
* readelf.c (is_32bit_abs_reloc): Support i960 and microblaze.
(is_32bit_pcrel_reloc): Support microblaze.

13 years ago * config/tc-d30v.c (d30v_cons_align): Don't align .eh_frame.
amodra [Thu, 28 Oct 2010 05:34:55 +0000 (05:34 +0000)]
* config/tc-d30v.c (d30v_cons_align): Don't align .eh_frame.

13 years ago2010-10-28 Hui Zhu <teawater@gmail.com>
teawater [Thu, 28 Oct 2010 03:38:34 +0000 (03:38 +0000)]
2010-10-28  Hui Zhu  <teawater@gmail.com>

* tracepoint.c (trace_save): Change utp->actions to
utp->step_actions.

13 years ago*** empty log message ***
gdbadmin [Thu, 28 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Wed, 27 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago2010-10-27 Maurice Baijens <maurice.baijens@ellips.nl>
jjohnstn [Wed, 27 Oct 2010 19:06:09 +0000 (19:06 +0000)]
2010-10-27  Maurice Baijens  <maurice.baijens@ellips.nl>

        * libc/stdlib/strtol.c: Make sure signed characters are not
        sign-extended when converted to int and passed to ctype macros.
        * libc/stdlib/strtoul.c: Ditto.
        * libc/stdlib/strtoll_r.c: Ditto.
        * libc/stdlib/strtoull_r.c: Ditto.

13 years ago2010-10-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Wed, 27 Oct 2010 15:02:51 +0000 (15:02 +0000)]
2010-10-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* ld-s390/tlsbin.dd: bc 0,0 -> nop 0 and bcr 0,%r0 -> nopr %r0.

13 years ago2010-10-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Wed, 27 Oct 2010 15:01:31 +0000 (15:01 +0000)]
2010-10-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/all/gas.exp: Don't run byte test on s390.

13 years ago* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 233.
cgf [Wed, 27 Oct 2010 14:22:26 +0000 (14:22 +0000)]
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 233.

13 years ago*** empty log message ***
gdbadmin [Wed, 27 Oct 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Tue, 26 Oct 2010 23:00:04 +0000 (23:00 +0000)]
daily update

13 years ago * gas/i386/x86-64-relax-1.s: Use .balign. not .align.
amodra [Tue, 26 Oct 2010 22:38:56 +0000 (22:38 +0000)]
* gas/i386/x86-64-relax-1.s: Use .balign. not .align.
* gas/i386/x86-64-relax-1.d: Remove label match, match pe output.

13 years ago * gas/i386/relax-1.s: Use .p2align, not .align.
amodra [Tue, 26 Oct 2010 22:18:38 +0000 (22:18 +0000)]
* gas/i386/relax-1.s: Use .p2align, not .align.
* gas/i386/relax-2.s: Likewise.
* gas/i386/relax-1.d: Remove label match.
* gas/i386/relax-2.d: Likewise.  Correct test name.

13 years agomerge from gcc
dj [Tue, 26 Oct 2010 19:18:21 +0000 (19:18 +0000)]
merge from gcc

13 years agofix typo in _FILE_OFFSET_BITS comment
brobecke [Tue, 26 Oct 2010 18:08:03 +0000 (18:08 +0000)]
fix typo in _FILE_OFFSET_BITS comment

This fixes a typo that MichaelS noticed in a patch I submitted and
forgot to fix.

gdb/ChangeLog:

* (_FILE_OFFSET_BITS): Fix typo in comment.

13 years agoFix build failures with python support on sparc-solaris
brobecke [Tue, 26 Oct 2010 18:06:33 +0000 (18:06 +0000)]
Fix build failures with python support on sparc-solaris

There were two types of errors, mostly compiler warnings:

  1. _FILE_OFFSET_BITS being redefined in pyconfig.h;
     This is a problem we're familiar with, having seen similar
     issues on GNU/Linux systems. I used a similar solution.

  2. GCC 4.5 complains that calls to PyEval_InitThreads and
     PyEval_ReleaseLock have no effect.  This is because our Python
     is built without thread support, leading us to use the dummy
     #define in python-internal.h which just gets replaced by `0'.
     Since this function returns void (checked versions 2.4 and 2.7),
     I simply removed the 0.

gdb/ChangeLog:

        python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
        (PyEval_InitThreads): Remove duplicate. Define as nothing.
        (PyEval_ReleaseLock): Define as nothing.

13 years agoreplace strcmp by FILENAME_CMP for filename comparison
brobecke [Tue, 26 Oct 2010 17:59:47 +0000 (17:59 +0000)]
replace strcmp by FILENAME_CMP for filename comparison

gdb/ChangeLog:

        * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
        by call to FILENAME_CMP.

13 years ago * i386/relax-1.d: Generalize regexes a bit.
davek [Tue, 26 Oct 2010 17:36:05 +0000 (17:36 +0000)]
* i386/relax-1.d: Generalize regexes a bit.
* i386/relax-2.d: Likewise.

13 years agoavoid assignment inside if condition (dictionary.c)
brobecke [Tue, 26 Oct 2010 14:50:13 +0000 (14:50 +0000)]
avoid assignment inside if condition (dictionary.c)

This change gets rid of an ARI warning which was recently introduced
by one of our changes.

gdb/ChangeLog:

        * dictionary.c (dict_hash): Move assignment out of if condition.

13 years ago * po/ja.po: Updated Japanese transaltion.
nickc [Tue, 26 Oct 2010 10:56:53 +0000 (10:56 +0000)]
    * po/ja.po: Updated Japanese transaltion.

13 years ago * config/obj-coff.c (coff_format_ops): Fix typo.
amodra [Tue, 26 Oct 2010 03:44:39 +0000 (03:44 +0000)]
* config/obj-coff.c (coff_format_ops): Fix typo.

13 years ago*** empty log message ***
gdbadmin [Tue, 26 Oct 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Mon, 25 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agogas/
rsandifo [Mon, 25 Oct 2010 21:15:14 +0000 (21:15 +0000)]
gas/
* config/tc-mips.c (macro2): Delete.

13 years ago2010-10-25 Chao-ying Fu <fu@mips.com>
chaoyingfu [Mon, 25 Oct 2010 18:11:41 +0000 (18:11 +0000)]
2010-10-25  Chao-ying Fu  <fu@mips.com>

* gas/mips/mips32-dsp.d, gas/mips/mips32-dsp.s: Add madd, maddu, msub,
msubu, mult, multu.

13 years ago2010-10-25 Chao-ying Fu <fu@mips.com>
chaoyingfu [Mon, 25 Oct 2010 18:09:10 +0000 (18:09 +0000)]
2010-10-25  Chao-ying Fu  <fu@mips.com>

* mips-opc.c (madd, maddu, msub, msubu, mult, multu): Change D33 to D32.

13 years ago bfd/
drow [Mon, 25 Oct 2010 15:54:13 +0000 (15:54 +0000)]
bfd/
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Always call
_bfd_clear_contents.  Pass it the input section.
* libbfd-in.h (_bfd_clear_contents): Add input_section argument.
* libbfd.h: Regenerate.
* reloc.c (_bfd_clear_contents): Take input_section argument.
Use non-zero for .debug_ranges.
(bfd_generic_get_relocated_section_conten): Update _bfd_clear_contents
call.

* elf32-arm.c (elf32_arm_relocate_section): Use
RELOC_AGAINST_DISCARDED_SECTION.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-bfin.c (bfin_relocate_section): Likewise.
(bfinfdpic_relocate_section): Likewise.
* elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
* elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-crx.c (elf32_crx_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
* elf32-lm32.c (lm32_elf_relocate_section): Likewise.
* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-mep.c (mep_elf_relocate_section): Likewise.
* elf32-moxie.c (moxie_elf_relocate_section): Likewise.
* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
* elf32-mt.c (mt_elf_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-rx.c (rx_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
(elf64_alpha_relocate_section): Likewise.
* elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.

ld/testsuite/
* ld-discard/zero-range.d, ld-discard/zero-range.s: New files.

13 years ago bfd/
nathan [Mon, 25 Oct 2010 15:33:52 +0000 (15:33 +0000)]
bfd/
* elf32-tic6x.c: Add attribution.

gas/
* config/tc-tic6x.c: Add attribution.

opcodes/
* tic6x-dis.c: Add attribution.

13 years ago * obj.h (struct format_ops): Add adjust_symtab.
amodra [Mon, 25 Oct 2010 12:38:41 +0000 (12:38 +0000)]
* obj.h (struct format_ops): Add adjust_symtab.
* config/obj-multi.h (obj_adjust_symtab): Define.
* config/obj-aout.c (aout_format_ops): Init new field.
* config/obj-coff.c (coff_format_ops): Likewise.
* config/obj-ecoff.c (ecoff_format_ops): Likewise.
* config/obj-elf.c (elf_format_ops): Likewise.

13 years agoAdd a new testcase for PR gas/12049.
hjl [Mon, 25 Oct 2010 09:17:11 +0000 (09:17 +0000)]
Add a new testcase for PR gas/12049.

2010-10-25  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/12049
* gas/i386/i386.exp: Run relax-1 and relax-2 for all 32bit
targets.  Run x86-64-relax-1.

* gas/i386/x86-64-relax-1.d: New.
* gas/i386/x86-64-relax-1.s: Likewise.

13 years ago * elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
amodra [Mon, 25 Oct 2010 08:23:24 +0000 (08:23 +0000)]
* elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
var warning at -O3.

13 years ago * elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
amodra [Mon, 25 Oct 2010 08:22:46 +0000 (08:22 +0000)]
* elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
var warning at -O3.

13 years ago * opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
amodra [Mon, 25 Oct 2010 07:02:19 +0000 (07:02 +0000)]
* opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
* libbfd-in.h (bfd_alloc, bfd_zalloc): Don't declare here.
* libbfd.h: Regenerate
* bfd-in2.h: Regenerate.

13 years ago * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
amodra [Mon, 25 Oct 2010 06:22:50 +0000 (06:22 +0000)]
* plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
Formatting.

13 years ago * opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
amodra [Mon, 25 Oct 2010 06:14:29 +0000 (06:14 +0000)]
* opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
(bfd_reserved_id_counter, bfd_use_reserved_id): New vars.
(_bfd_new_bfd): Use negative id when bfd_use_reserved_id.
(bfd_create): Doc fix.
* bfd-in2.h: Regenerate.

13 years ago PR gas/12049
amodra [Mon, 25 Oct 2010 03:03:18 +0000 (03:03 +0000)]
PR gas/12049
* write.c (relax_frag): Don't allow forward branches to temporarily
becomde backward branches.