OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
13 years agodaily update
amodra [Fri, 1 Oct 2010 00:00:04 +0000 (00:00 +0000)]
daily update

13 years agobuild: info-gcc, dvi-gcc etc work from unbuilt configured tree.
rwild [Thu, 30 Sep 2010 21:55:13 +0000 (21:55 +0000)]
build: info-gcc, dvi-gcc etc work from unbuilt configured tree.

/:
Sync from GCC:

PR bootstrap/45796
* Makefile.def (info-gcc, dvi-gcc, pdf-gcc, html-gcc):
Depend on all-build-libiberty.
* Makefile.in: Regenerate.

13 years ago * symfile.h (struct sym_fns) <next>: Remove.
tromey [Thu, 30 Sep 2010 19:14:29 +0000 (19:14 +0000)]
* symfile.h (struct sym_fns) <next>: Remove.
(add_symtab_fns): Update.
* symfile.c (sym_fns_ptr): New typedef.
(symtab_fns): Now a VEC.
(add_symtab_fns): Update.  Change argument type.
(find_sym_fns): Update.  Change return type.
(get_symfile_segment_data): Update.
* objfiles.h (struct objfile) <sf>: Now const.
* somread.c (som_sym_fns): Now const.  Update.
* xcoffread.c (xcoff_sym_fns): Now const.  Update.
* mipsread.c (ecoff_sym_fns): Now const.  Update.
* machoread.c (macho_sym_fns): Now const.  Update.
* elfread.c (elf_sym_fns): Now const.  Update.
(elf_sym_fns_gdb_index): Likewise.
* dbxread.c (aout_sym_fns): Now const.  Update.
* coffread.c (coff_sym_fns): Now const.  Update.

13 years agogdb
tromey [Thu, 30 Sep 2010 18:58:06 +0000 (18:58 +0000)]
gdb
* value.c (value_primitive_field): Take 'offset' into account for
packed field.
gdb/testsuite
* gdb.base/anon.exp: New file.
* gdb.base/anon.c: New file.

13 years agogdb
tromey [Thu, 30 Sep 2010 17:51:34 +0000 (17:51 +0000)]
gdb
* completer.c (count_struct_fields): Handle anonymous structs and
unions.
(add_struct_fields): Likewise.
gdb/testsuite
* gdb.base/completion.exp: Test completion through anonymous
union.
* gdb.base/break1.c (struct some_struct): Add anonymous union.

13 years ago * s390-mkopc.c (main): Exit with error 1 if sscanf fails
muller [Thu, 30 Sep 2010 16:02:34 +0000 (16:02 +0000)]
* s390-mkopc.c (main): Exit with error 1 if sscanf fails
to parse all 6 parameters.

13 years ago * fhandler.cc: Drop including nfs.h.
corinna [Thu, 30 Sep 2010 13:52:31 +0000 (13:52 +0000)]
* fhandler.cc: Drop including nfs.h.
* fhandler_disk_file.cc: Ditto.
(fhandler_base::fstat_by_nfs_ea): Use fattr3 from path_conv member,
unless called from fstat.
* path.cc: Drop including nfs.h.
(symlink_info::check): Rearrange definition of file info buffers.
Fetch fattr3 info for files on NFS and store in conv_hdl for later
use in fhandler_base::fstat_by_nfs_ea.  Use fattr3 file type to
recognize symlink on NFS and try to fetch symlink target only for
actual symlinks.
* path.h: Include nfs.h.
(class path_conv_handle): Change file info storage to union of
FILE_NETWORK_OPEN_INFORMATION and fattr3 structures.
(path_conv_handle::fnoi): Align to aforementioned change.
(path_conv_handle::nfsattr): New method.
(path_conv::nfsattr): New method.

13 years ago * s390-mkopc.c (main): Change description array size to 80.
muller [Thu, 30 Sep 2010 11:32:15 +0000 (11:32 +0000)]
* s390-mkopc.c (main): Change description array size to 80.
Add maximum length of 79 to description parsing.

13 years ago * path.cc (symlink_info::check): Remove erroneous assumption about
corinna [Thu, 30 Sep 2010 10:42:34 +0000 (10:42 +0000)]
* path.cc (symlink_info::check): Remove erroneous assumption about
required permissions when reading NFS symlinks.

13 years agogdb/
jkratoch [Thu, 30 Sep 2010 10:28:59 +0000 (10:28 +0000)]
gdb/
Fix printing parameters of inlined functions.
* ada-lang.c (is_known_support_routine)
(ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
for find_frame_funname.
* python/py-frame.c (frapy_name): Likewise.
* stack.c (find_frame_funname): New parameter funcp.  Update the
function comment.  Fill it in.
(print_frame): New variable func.  Initialize it by
find_frame_funname.  Print arguments only if FUNC is not NULL.  Use
FUNC as the parameter of print_args_stub.
* stack.h (find_frame_funname): New parameter funcp.  Remove the
function declaration comment.

gdb/testsuite/
Fix printing parameters of inlined functions.
* gdb.dwarf2/dw2-inline-param.exp: New file.
* gdb.dwarf2/dw2-inline-param-main.c: New file.
* gdb.dwarf2/dw2-inline-param.S: New file.

13 years agogdb/
jkratoch [Thu, 30 Sep 2010 10:24:39 +0000 (10:24 +0000)]
gdb/
PR corefiles/12071.
* inferior.c (have_live_inferiors): New variables old_chain, inf and
tp.  Iterate INFERIOR_LIST and call target_has_execution.

gdb/testsuite/
PR corefiles/12071.
* gdb.base/corefile.exp (quit with a process, no question: load core)
(quit with a core file): New tests.

13 years ago2010-09-30 Doug Kwan <dougkwan@google.com>
dougkwan [Thu, 30 Sep 2010 08:12:39 +0000 (08:12 +0000)]
2010-09-30  Doug Kwan  <dougkwan@google.com>

* gold/testsuite/arm_branch_out_of_range.sh: Fix broken tests.

13 years ago * mem.c (rx_mem_ptr): When invalidating the decode cache, account
kevinb [Thu, 30 Sep 2010 00:03:23 +0000 (00:03 +0000)]
* mem.c (rx_mem_ptr): When invalidating the decode cache, account
for the fact that the instruction decoder never uses swapped
addresses.

13 years ago*** empty log message ***
gdbadmin [Thu, 30 Sep 2010 00:01:03 +0000 (00:01 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Thu, 30 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years agogdb/
jkratoch [Wed, 29 Sep 2010 22:32:48 +0000 (22:32 +0000)]
gdb/
Fix GDB crash on inferior calls with self-referencing classes.
* gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
member fields.

gdb/testsuite/
Fix GDB crash on inferior calls with self-referencing classes.
* gdb.dwarf2/dw2-cp-infcall-ref-static.exp: New file.
* gdb.dwarf2/dw2-cp-infcall-ref-static-main.c: New file.
* gdb.dwarf2/dw2-cp-infcall-ref-static.S: New file.

13 years ago Workaround for gcc/45682.
devans [Wed, 29 Sep 2010 16:41:20 +0000 (16:41 +0000)]
Workaround for gcc/45682.
* dwarf2read.c (partial_die_info): New fields fixup_called,
linkage_name.
(guess_partial_die_structure_name): Renamed from guess_structure_name.
Move definition next to use.  Use linkage_name to determine if class
is in a namespace.  All callers updated.
(fixup_partial_die): Return early if already called.
Set fixup_called when done.
(guess_full_die_structure_name): New function.
(determine_prefix): Call it for class/struct/union dies if c++ and
.debug_types section is present and parent is DW_TAG_compile_unit.

13 years ago * rx.c (decode_opcode: RXO_int): Only break out of the emulation
nickc [Wed, 29 Sep 2010 15:47:45 +0000 (15:47 +0000)]
    * rx.c (decode_opcode: RXO_int): Only break out of the emulation
        loop if rx_syscall() does not return a RX_STEPPED result.

13 years ago* fhandler_tty.cc (fhandler_tty_slave::init): Revert to using tc->setpgid since
cgf [Wed, 29 Sep 2010 15:08:48 +0000 (15:08 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Revert to using tc->setpgid since
previous change broke some use cases.

13 years agoinclude/
bernds [Wed, 29 Sep 2010 10:14:00 +0000 (10:14 +0000)]
include/
* opcode/tic6x-control-registers.h (tscl): Now read_write.

gas/testsuite/
* gas/tic6x/insns-bad-1.s: Remove test for readonly tscl.
* gas/tic6x/insns-bad-1.l: Likewise.
* gas/tic6x/insns-c674x.d: Add test for writeable tscl.
* gas/tic6x/insns-c674x.s: Likewise.

13 years ago * gas/all/fwdexp.d, * gas/all/fwdexp.s: New test.
amodra [Wed, 29 Sep 2010 06:49:32 +0000 (06:49 +0000)]
* gas/all/fwdexp.d, * gas/all/fwdexp.s: New test.
* gas/all/gas.exp: Run it.

13 years ago * expr.c (expr): Correct returned segment value.
amodra [Wed, 29 Sep 2010 06:48:30 +0000 (06:48 +0000)]
* expr.c (expr): Correct returned segment value.

13 years ago * ld-h8300/h8300.exp: Use is_elf_format.
amodra [Wed, 29 Sep 2010 06:20:06 +0000 (06:20 +0000)]
* ld-h8300/h8300.exp: Use is_elf_format.

13 years ago * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
amodra [Wed, 29 Sep 2010 06:17:11 +0000 (06:17 +0000)]
* ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
section for orphans handled here.

13 years ago * lib/ld-lib.exp (is_elf_format): Merge with binutils and gas versions.
amodra [Wed, 29 Sep 2010 06:06:00 +0000 (06:06 +0000)]
* lib/ld-lib.exp (is_elf_format): Merge with binutils and gas versions.
(is_aout_format): Update target list.
(is_pecoff_format): Remove unnecessary line continuation.

13 years ago * lib/gas-defs.exp (is_elf_format): Merge with binutils and ld versions.
amodra [Wed, 29 Sep 2010 06:05:16 +0000 (06:05 +0000)]
* lib/gas-defs.exp (is_elf_format): Merge with binutils and ld versions.
(is_aout_format): Copy from ld testsuite.
(is_pecoff_format): Merge with ld version.

13 years ago * lib/utils-lib.exp (is_elf_format): Merge with gas and ld versions.
amodra [Wed, 29 Sep 2010 06:04:40 +0000 (06:04 +0000)]
* lib/utils-lib.exp (is_elf_format): Merge with gas and ld versions.

13 years ago* fhandler_tty.cc (fhandler_tty_slave::init): Add debugging. Use tcsetpgrp to
cgf [Wed, 29 Sep 2010 03:57:24 +0000 (03:57 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Add debugging.  Use tcsetpgrp to
potentially set pgid since it is smarter about deciding if a process is in the
background.
* include/sys/cygwin.h (PID_ORPHANED): Actually delete as planned.
(PID_NOTCYGWIN): Correctly define.

13 years ago*** empty log message ***
gdbadmin [Wed, 29 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Wed, 29 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years agoAdd a sparc simulator with the sparc bareboard target.
brobecke [Tue, 28 Sep 2010 21:46:09 +0000 (21:46 +0000)]
Add a sparc simulator with the sparc bareboard target.

gdb/ChangeLog:

        * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
        (sparc-*-rtems*): Delete, now redundant with the sparc-*-* case.

13 years ago[doco] document support for Ravenscar profile
brobecke [Tue, 28 Sep 2010 21:40:22 +0000 (21:40 +0000)]
[doco] document support for Ravenscar profile

This announces the support for debugging Ada programs using
the Ravenscar Profile, as well as documents the new commands
introduced as part of this effort.

gdb/ChangeLog:

        * NEWS: Announce Ravenscar Profile support.

gdb/doc/ChangeLog:

        * gdb.texinfo (Ravenscar Profile): New node.

13 years agoAdd support for GNAT Ravenscar run-time library.
brobecke [Tue, 28 Sep 2010 21:39:31 +0000 (21:39 +0000)]
Add support for GNAT Ravenscar run-time library.

gdb/ChangeLog (Jerome Guitton, Joel Brobecker):

* ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
New files.
* configure.tgt (sparc-*-*): Add ravenscar-thread.o and
ravenscar-sparc-thread.o to gdb_target_obs.

13 years ago[Ada] Add ada-tasks.c:iterate_over_live_ada_tasks
brobecke [Tue, 28 Sep 2010 21:39:03 +0000 (21:39 +0000)]
[Ada] Add ada-tasks.c:iterate_over_live_ada_tasks

This new function is needed by the ravenscar-thread layer.

gdb/ChangeLog:

        * ada-tasks.c (iterate_over_live_ada_tasks): New function.
        * ada-lang.h (iterate_over_live_ada_tasks): Declare.

13 years ago2010-09-28 Sriraman Tallam <tmsriram@google.com>
tmsriram [Tue, 28 Sep 2010 17:14:15 +0000 (17:14 +0000)]
2010-09-28  Sriraman Tallam  <tmsriram@google.com>

* target.h (Target::can_icf_inline_merge_sections): New virtual
function.
* x86_64.cc (Target__x86_64::can_icf_inline_merge_sections): New
virtual function.
* i386.cc (Target_i386::can_icf_inline_merge_sections): New
virtual function.
* icf.cc (get_section_contents): Inline merge sections only when
target allows it.

13 years ago * net.cc (getdomainname): Drop special case for NT4.
corinna [Tue, 28 Sep 2010 16:18:56 +0000 (16:18 +0000)]
* net.cc (getdomainname): Drop special case for NT4.

13 years ago Revert accidental previous login.
corinna [Tue, 28 Sep 2010 14:49:31 +0000 (14:49 +0000)]
Revert accidental previous login.

13 years ago * Makefile.in (DLL_IMPORTS): Remove libadvapi32.a.
corinna [Tue, 28 Sep 2010 14:40:16 +0000 (14:40 +0000)]
* Makefile.in (DLL_IMPORTS): Remove libadvapi32.a.
* autoload.cc: Add all advapi32 entry points.
* mount.cc (mount_info::init): Read user fstab only if we have a
username.
* passwd.cc (pwdgrp::read_passwd): Only use username if we have one.
* shared.cc (user_info::initialize): Set cb last so as not to override
planned behaviour in pwdgrp::read_passwd.
* uinfo.cc (cygheap_user::init): Fetch Windows username from environment
variable $USERNAME.  Don't set name in cygheap if variable is empty.
(internal_getlogin): If we still have no username, try GetUserNameW.

13 years ago * fhandler_tty.cc (fhandler_pty_master::setup): Always create master
corinna [Tue, 28 Sep 2010 10:13:19 +0000 (10:13 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Always create master
thread.

13 years ago * syscalls.cc (gethostid): Use correct path to ProductId registry value.
corinna [Tue, 28 Sep 2010 07:54:52 +0000 (07:54 +0000)]
* syscalls.cc (gethostid): Use correct path to ProductId registry value.

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

13 years agodaily update
amodra [Tue, 28 Sep 2010 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
muller [Mon, 27 Sep 2010 22:05:40 +0000 (22:05 +0000)]
* amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
(amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
skip_main_prologue method.

13 years agomerge from gcc
dj [Mon, 27 Sep 2010 21:01:11 +0000 (21:01 +0000)]
merge from gcc

13 years agoFix unportable shell quoting.
rwild [Mon, 27 Sep 2010 20:22:45 +0000 (20:22 +0000)]
Fix unportable shell quoting.

/:
Sync from GCC:

PR bootstrap/44621
* configure.ac: Fix unportable shell quoting.
* configure: Regenerate.

config/:
* po.m4 (AM_PO_SUBDIRS): Fix unportable shell quoting.

bfd/:
* configure: Regenerate.

gas/:
* configure: Regenerate.

gold/:
* configure: Regenerate.

intl/:
* configure: Regenerate.

ld/:
* configure: Regenerate.

opcodes/:
* configure: Regenerate.

binutils/:
* configure: Regenerate.

gprof/:
* configure: Regenerate.

13 years ago * dwarf2read.c (dwarf2_read_index): Only allow version 3.
tromey [Mon, 27 Sep 2010 18:42:35 +0000 (18:42 +0000)]
* dwarf2read.c (dwarf2_read_index): Only allow version 3.
(write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
Only emit a given psymbol once.
(struct signatured_type_index_data) <psyms_seen>: New field.
(write_one_signatured_type): Update.
(cleanup_htab): New function.
(write_psymtabs_to_index): Update.  Create psyms_seen hash.  Bump
version to 3.
(save_gdb_index_command): Update index documentation.

13 years ago * bcache.c (expand_hash_table): Use hash_function, not hash.
tromey [Mon, 27 Sep 2010 17:41:35 +0000 (17:41 +0000)]
* bcache.c (expand_hash_table): Use hash_function, not hash.

13 years ago * gdb_wchar.h: Change minimum libiconv to 0x108.
tromey [Mon, 27 Sep 2010 17:28:47 +0000 (17:28 +0000)]
* gdb_wchar.h: Change minimum libiconv to 0x108.

13 years ago * pathnames.sgml (mount-table): Fix pathnames-mount-ex example. Change
corinna [Mon, 27 Sep 2010 16:46:34 +0000 (16:46 +0000)]
* pathnames.sgml (mount-table): Fix pathnames-mount-ex example.  Change
an expression.

13 years ago * new-features.sgml (ov-new1.7.8): Document dropped NT4 pre-SP4 support.
corinna [Mon, 27 Sep 2010 16:37:57 +0000 (16:37 +0000)]
* new-features.sgml (ov-new1.7.8): Document dropped NT4 pre-SP4 support.
* faq-what.xml (faq.what.supported): Change accordingly.
* ntsec.sgml (ntsec-mapping): Add 2008 R2.

13 years ago * mount.cc (fs_info::update): Remove erroneous NtClose on random handle
corinna [Mon, 27 Sep 2010 16:10:12 +0000 (16:10 +0000)]
* mount.cc (fs_info::update): Remove erroneous NtClose on random handle
value.

13 years agogas/
bernds [Mon, 27 Sep 2010 15:52:39 +0000 (15:52 +0000)]
gas/
* config/tc-tic6x.c (tic6x_fix_adjustable): New function.
* config/tc-tic6x.h (tic6x_fix_adjustable): Declare.
(tc_fix_adjustable): New macro.

gas/testsuite/
* gas/tic6x/got-reloc.s: New test.
* gas/tic6x/got-reloc.d: New test.

13 years ago2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 27 Sep 2010 13:36:45 +0000 (13:36 +0000)]
2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-mkopc.c (enum s390_opcde_cpu_val): Add S390_OPCODE_Z196.
(main): Recognize the new CPU string.
* s390-opc.c: Add new instruction formats and masks.
* s390-opc.txt: Add new z196 instructions.

2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* opcode/s390.h: Add S390_OPCODE_Z196 to enum s390_opcode_cpu_val.

2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c: (md_parse_option): New option -march=z196.
* doc/c-s390.texi: Document new option.

2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/s390.exp: Run the zarch-z196 test.
* gas/s390/zarch-z196.d: Add new instructions.
* gas/s390/zarch-z196.s: Likewise.
* gas/s390/zarch-z9-109.d: Likewise.
* gas/s390/zarch-z9-109.s: Likewise.

13 years ago2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 27 Sep 2010 13:32:58 +0000 (13:32 +0000)]
2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-dis.c (print_insn_s390): Pick instruction with most
specific mask.
* s390-opc.c: Add unused bits to the insn mask.
* s390-opc.txt: Reorder some instructions to prefer more recent
versions.

2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/esa-g5.d: Adjust serveral instructions.
* gas/s390/esa-reloc.d: Likewise.
* gas/s390/esa-z990.d: Likewise.
* gas/s390/zarch-reloc.d: Likewise.
* gas/s390/zarch-z10.d: Likewise.
* gas/s390/zarch-z9-ec.d: Likewise.
* gas/s390/zarch-z900.d: Likewise.

2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* ld-s390/tlsbin.dd: bcr 0,%r7 -> nopr %r7.
* ld-s390/tlsbin_64.dd: Likewise.
* ld-s390/tlspic.dd: Likewise.
* ld-s390/tlspic_64.dd: Likewise.

13 years ago2010-09-27 Tejas Belagod <tejas.belagod@arm.com>
mgretton [Mon, 27 Sep 2010 09:47:04 +0000 (09:47 +0000)]
2010-09-27  Tejas Belagod  <tejas.belagod@arm.com>

* gas/config/tc-arm.c (do_neon_ldr_str): Deprecate ARM-mode PC-relative
VSTR, issue an error in THUMB mode.
* opcodes/arm_dis.c (print_insn_coprocessor): Apply off-by-alignment
correction to unaligned PCs while printing comment.
* gas/testsuite/gas/arm/vldr.s: New test for pc-relative VLDR disassembly comment.
* gas/testsuite/gas/arm/vldr.d: Likewise.
* gas/testsuite/gas/arm/vstr-bad.s: New test for PC-relative VSTR.
* gas/testsuite/gas/arm/vstr-thumb-bad.l: Likewise.
* gas/testsuite/gas/arm/vstr-thumb-bad.d: Likewise.
* gas/testsuite/gas/arm/vstr-arm-bad.l: Likewise.
* gas/testsuite/gas/arm/vstr-arm-bad.d: Likewise.

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

13 years agodaily update
amodra [Mon, 27 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago * uinfo.cc (cygheap_user::init): Call GetUserNameW and convert to
corinna [Sun, 26 Sep 2010 15:45:08 +0000 (15:45 +0000)]
* uinfo.cc (cygheap_user::init): Call GetUserNameW and convert to
multibyte here so as not to rely on the current ANSI page.

13 years ago* dcrt0.cc (__main): Force signal synchronization.
cgf [Sun, 26 Sep 2010 14:57:11 +0000 (14:57 +0000)]
* dcrt0.cc (__main): Force signal synchronization.

13 years ago*** empty log message ***
gdbadmin [Sun, 26 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sun, 26 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago * fhandler_socket.cc (fhandler_socket::bind): Drop has_exclusiveaddruse
corinna [Sat, 25 Sep 2010 20:06:20 +0000 (20:06 +0000)]
* fhandler_socket.cc (fhandler_socket::bind): Drop has_exclusiveaddruse
condition.  Fix comment about availability.  Move remaining comment to
the right spot.  Drop has_ip_helper_lib condition.
* net.cc (cygwin_setsockopt): Drop has_disabled_user_tos_setting
condition.  Fix comment.
(get_2k_ifs): Fix comment.
(get_nt_ifs): Remove.
(getifaddrs): Drop call to get_nt_ifs.
(get_ifconf): Ditto.
* wincap.cc: Throughout, drop has_ip_helper_lib,
has_disabled_user_tos_setting, and has_exclusiveaddruse settings from
wincaps.
(wincap_unknown): Remove.
(wincap_nt4): Remove.
(wincap_minimal): New macro, set to wincap_nt4sp4 for now.
(wincapc::init): Drop test for pre-SP4 NT4.  Just imply at least NT SP4.
Replace references to wincap_unknown with references to wincap_minimal.
* wincap.h (struct wincaps): Drop has_ip_helper_lib,
has_disabled_user_tos_setting, and has_exclusiveaddruse flags and
methods.

13 years ago * autoload.cc: Throughout. order entry points alphabetically by DLL
corinna [Sat, 25 Sep 2010 19:57:33 +0000 (19:57 +0000)]
* autoload.cc: Throughout. order entry points alphabetically by DLL
and function name.  Make functions which are available on all supported
systems non-optional.  Fix return value on entry points imported from
secur32.dll.  Add comment.
(std_dll_init): Call fesetenv unconditionally.

13 years ago*** empty log message ***
gdbadmin [Sat, 25 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sat, 25 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago* autoload.cc (std_dll_init): Move dll_path closer to its use. Use dll_path in
cgf [Fri, 24 Sep 2010 19:53:16 +0000 (19:53 +0000)]
* autoload.cc (std_dll_init): Move dll_path closer to its use.  Use dll_path in
fatal error.  Set ret values under lock control.
* lib/minires.c (res_nsend): Fix compilation errors owing to pointer
signedness.

13 years agogdb/
jkratoch [Fri, 24 Sep 2010 18:35:20 +0000 (18:35 +0000)]
gdb/
Fix lost siginfo_t for inferior calls.
* infrun.c
(struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
(save_inferior_thread_state): New variables regcache, gdbarch and
siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
using REGCACHE.
(restore_inferior_thread_state): New variables regcache and gdbarch.
Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
REGCACHE.  Free also SIGINFO_DATA.

gdb/testsuite/
Fix lost siginfo_t for inferior calls.
* gdb.base/siginfo-infcall.exp: New file.
* gdb.base/siginfo-infcall.c: New file.

13 years ago * fhandler.cc (fhandler_base::open): Handle query_write_dac flag.
corinna [Fri, 24 Sep 2010 16:22:51 +0000 (16:22 +0000)]
* fhandler.cc (fhandler_base::open): Handle query_write_dac flag.
* fhandler.h (enum query_state): Add query_write_dac flag.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Open file
with query_write_dac instead of query_write_control.

13 years ago * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
tromey [Fri, 24 Sep 2010 16:11:44 +0000 (16:11 +0000)]
* dwarf2read.c (dw2_expand_symtabs_matching): Add missing
MAYBE_SWAPs.
(dw2_map_symbol_names): Likewise.

13 years agoFix find_oload_champ_namespace_loop memory leak.
swagiaal [Fri, 24 Sep 2010 14:47:52 +0000 (14:47 +0000)]
Fix find_oload_champ_namespace_loop memory leak.

2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>

* valops.c (find_oload_champ_namespace_loop): replace incorrect
discard_cleanups do_cleanups.

13 years ago PR gdb/11842
palves [Fri, 24 Sep 2010 13:44:00 +0000 (13:44 +0000)]
PR gdb/11842

gdb/
* amd64-linux-nat.c (compat_siginfo_from_siginfo)
(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
si_code is < 0.  Check for si_code == SI_TIMER before checking for
si_code < 0.

gdb/gdbserver/
* linux-x86-low.c (compat_siginfo_from_siginfo)
(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
si_code is < 0.  Check for si_code == SI_TIMER before checking for
si_code < 0.

13 years ago gdb/
palves [Fri, 24 Sep 2010 13:41:42 +0000 (13:41 +0000)]
gdb/
* amd64-linux-nat.c (compat_siginfo_from_siginfo)
(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
si_code is < 0.  Check for si_code == SI_TIMER before checking for
si_code < 0.

gdb/gdbserver/
* linux-x86-low.c (compat_siginfo_from_siginfo)
(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
si_code is < 0.  Check for si_code == SI_TIMER before checking for
si_code < 0.

13 years ago * errno.cc (errmap): Map ERROR_BAD_NET_RESP to ENOSYS.
corinna [Fri, 24 Sep 2010 12:41:32 +0000 (12:41 +0000)]
* errno.cc (errmap): Map ERROR_BAD_NET_RESP to ENOSYS.
* fhandler_disk_file.cc (fhandler_disk_file::facl): Handle ENOSYS and
point to  the explanation.
* ntdll.h (STATUS_NOT_IMPLEMENTED): Define.
* path.cc (symlink_info::check): Handle the inability of NT4 to use
FileNetworkOpenInformation on share root dirs in either direction.
* path.h (slash_unc_prefix_p): Remove unused declaration.
* security.cc (get_info_from_sd): Handle ENOSYS from get_file_sd.
Explain when this happens.

13 years ago2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
tschwinge [Fri, 24 Sep 2010 12:14:23 +0000 (12:14 +0000)]
2010-09-24  Thomas Schwinge  <thomas@codesourcery.com>

* elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c,
elf32-m68k.c, elf32-microblaze.c, elf32-ppc.c, elf32-score.c,
elf32-score7.c, elf32-sh.c, elf32-vax.c, elf32-xtensa.c, elf64-alpha.c,
elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-sparc.c, elfcode.h,
elflink.c, elfxx-ia64.c, elfxx-mips.c: Use STN_UNDEF when referring to
the zero symbol index.

13 years ago2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
tschwinge [Fri, 24 Sep 2010 11:59:18 +0000 (11:59 +0000)]
2010-09-24  Thomas Schwinge  <thomas@codesourcery.com>

* elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index
to STN_UNDEF, not SHN_UNDEF.

13 years ago * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
palves [Fri, 24 Sep 2010 11:15:51 +0000 (11:15 +0000)]
* objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.

13 years agoRemove GOTOFF in ld-i386/nogot1.s.
hjl [Fri, 24 Sep 2010 06:09:31 +0000 (06:09 +0000)]
Remove GOTOFF in ld-i386/nogot1.s.

2010-09-23  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11812
* ld-i386/nogot1.s: Don't use GOTOFF.

13 years ago * rx.c (decode_opcode): Add cycle information for RXO_smovu.
kevinb [Fri, 24 Sep 2010 05:18:23 +0000 (05:18 +0000)]
* rx.c (decode_opcode): Add cycle information for RXO_smovu.

13 years agoFix typo in ChangeLog entry.
kevinb [Fri, 24 Sep 2010 04:45:08 +0000 (04:45 +0000)]
Fix typo in ChangeLog entry.

13 years ago * scripttempl/armcoff.sc: Revert 2010-09-22 change.
davek [Fri, 24 Sep 2010 04:41:11 +0000 (04:41 +0000)]
* scripttempl/armcoff.sc: Revert 2010-09-22 change.

13 years ago*** empty log message ***
gdbadmin [Fri, 24 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Fri, 24 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago * cpu.h (reset_decoder): Declare.
kevinb [Thu, 23 Sep 2010 23:42:53 +0000 (23:42 +0000)]
* cpu.h (reset_decoder): Declare.
* load.c (rx_load): Call `reset_decoder'.
* rx.c (reset_decoder): New function.

13 years ago * rx.c (decode_opcode): Declare `rx' as unsigned.
kevinb [Thu, 23 Sep 2010 23:26:42 +0000 (23:26 +0000)]
* rx.c (decode_opcode): Declare `rx' as unsigned.

13 years ago * fpu.c, gdb-if.c, load.c, misc.c, syscalls.c (config.h): Include.
kevinb [Thu, 23 Sep 2010 23:05:27 +0000 (23:05 +0000)]
* fpu.c, gdb-if.c, load.c, misc.c, syscalls.c (config.h): Include.

13 years ago* autoload.cc (std_dll_init): Use correct format type when displaying dll name
cgf [Thu, 23 Sep 2010 20:18:15 +0000 (20:18 +0000)]
* autoload.cc (std_dll_init): Use correct format type when displaying dll name
in error output.

13 years agobfd/
bernds [Thu, 23 Sep 2010 16:16:37 +0000 (16:16 +0000)]
bfd/
* elf32-tic6x.c (elf32_tic6x_fake_sections): New function.
(elf_backend_fake_sections): Define.

ld/testsuite/
* ld-tic6x/pcrel-reloc-local-r-rel-rela.d: New test.

13 years ago * bfd/bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
mgretton [Thu, 23 Sep 2010 15:52:17 +0000 (15:52 +0000)]
* bfd/bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
* gas/config/tc-arm.c (arm_ext_virt): New variable.
(arm_reg_type): Add REG_TYPE_RNB for banked registers.
(reg_entry): Allow registers to be larger than a byte.
(reg_alias): Fix type warning.
(parse_operands): Parse banked registers when appropriate.
(do_mrs): Add support for Virtualization Extensions.
(do_hvc): New function.
(do_t_mrs): Add support for Virtualization Extensions.
(do_t_msr): Likewise.
(do_t_hvc): New function.
(SPLRBANK): New define.
(reg_names): Add banked registers.
(insns): Add support for Virtualization Extensions.
(md_apply_fixup): Likewise.
(arm_cpus): -mcpu=cortex-a15 implies the Virtualization Extensions.
(arm_extensions): Add 'virt' extension.
(aeabi_set_public_attributes): Add support for Virtualization
Extensions.
* gas/doc/c-arm.texi: Document 'virt' extension.
* gas/testsuite/gas/arm/armv7-a+virt.d: New test.
* gas/testsuite/gas/arm/armv7-a+virt.s: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Virtualization Extensions.
* gas/testsuite/gas/arm/attr-march-armv7-a+sec+virt.d: New test.
* gas/testsuite/gas/arm/attr-march-armv7-a+virt.d: Likewise.
* include/opcode/arm.h (ARM_EXT_VIRT): New define.
(ARM_ARCH_V7A_IDIV_MP_SEC): Rename...
(ARM_ARCH_V7A_IDIV_MP_SEC_VIRT): ...to this and include Virtualization
Extensions.
* opcodes/arm-dis.c (arm_opcodes): Add Virtualiztion Extensions support.
(thumb32_opcodes): Likewise.
(banked_regname): New function.
(print_insn_arm): Add Virtualization Extensions support.
(print_insn_thumb32): Likewise.

13 years ago * gas/config/tc-arm.c (arm_ext_adiv): New variable.
mgretton [Thu, 23 Sep 2010 15:37:43 +0000 (15:37 +0000)]
* gas/config/tc-arm.c (arm_ext_adiv): New variable.
(do_div): New function.
(insns): Accept UDIV and SDIV in ARM state.
(arm_cpus): The cortex-a15 option has all current v7-A extensions.
(arm_extensions): Add 'idiv' extension.
(aeabi_set_public_attributes): Update Tag_DIV_use values for the
Integer Divide extension.
* gas/doc/c-arm.texi: Document the idiv extension.
* gas/testsuite/gas/arm/armv7-a+idiv.d: New test.
* gas/testsuite/gas/arm/armv7-a+idiv.s: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Integer divide extension.
* gas/testsuite/gas/arm/attr-march-armv7-a+idiv.d: New test.
* include/opcode/arm.h (ARM_AEXT_ADIV): New define.
(ARM_ARCH_V7A_IDIV_MP_SEC): Likewise.
* opcodes/arm-dis.c (arm_opcodes): Support disassembly of UDIV and SDIV in
ARM state.

13 years ago * config/tc-arm.c (arm_ext_v6m): New variable.
mgretton [Thu, 23 Sep 2010 15:31:32 +0000 (15:31 +0000)]
* config/tc-arm.c (arm_ext_v6m): New variable.
(arm_ext_m): Add support for OS extension.
(arm_ext_os): New variable.
(do_t_swi): In v6-M ensure we have the OS extension.
(arm_cpus): The cortex-m1 and cortex-m0 options have the OS
extension by default.
(arm_archs): Add armv6s-m.
(arm_extensions): Add 'os' extension.
(cpu_arch_ver): Add support for v6S-M.
* gas/doc/c-arm.texi: Document the OS Extension, and v6-m and v6s-m
architecture options.
* gas/testsuite/gas/arm/archv6s-m-bad.d: New test.
* gas/testsuite/gas/arm/archv6s-m-bad.l: Likewise.
* gas/testsuite/gas/arm/archv6s-m.d: Likewise.
* gas/testsuite/gas/arm/archv6s-m.s: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6-m+os.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6s-m.d: Likewise.
* include/opcode/arm.h (ARM_EXT_OS): New define.
(ARM_AEXT_V6SM): Likewise.
(ARM_ARCH_V6SM): Likewise.

13 years ago * gas/config/tc-arm.c (arm_ext_v6z): Remove.
mgretton [Thu, 23 Sep 2010 15:26:20 +0000 (15:26 +0000)]
* gas/config/tc-arm.c (arm_ext_v6z): Remove.
(arm_ext_sec): New variable.
(do_t_smc): In Thumb state SMC requires v7-A.
(insns): Make SMC depend on Security Extensions.
(arm_cpus): All -mcpu=cortex-a* options have the Security Extensions.
(arm_extensions): Add 'sec' extension.
(cpu_arch_ver): Reorder.
(aeabi_set_public_attributes): Emit Tag_Virtualization_use as
appropriate.
* gas/doc/c-arm.texi: Document Security Extensions.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Security Extensions..
* gas/testsuite/gas/arm/attr-march-armv6k+sec.d: New test.
* gas/testsuite/gas/arm/attr-march-armv6z.d: Update for Security Extensions.
* gas/testsuite/gas/arm/attr-march-armv6zk.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6zkt2.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6zt2.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv7-a+sec.d: New test.
* gas/testsuite/gas/arm/attr-mcpu.d: Update for Security Extensions.
* gas/testsuite/gas/arm/thumb32.d: Likewise.
* gas/testsuite/gas/arm/thumb32.s: Likewise.
* include/opcode/arm.h (ARM_EXT_V6Z): Remove.
(ARM_EXT_SEC): New define.
(ARM_AEXT_V6Z): Use Security Extensions.
(ARM_AEXT_V6ZK): Likeiwse.
(ARM_AEXT_V6ZT2): Likewise.
(ARM_AEXT_V6ZKT2): Likewise.
(ARM_AEXT_V7_ARM): Base v7 does not have Security Extensions.
(ARM_ARCH_V7A_SEC): New define.
(ARM_ARCH_V7A_MP): Rename...
(ARM_ARCH_V7A_MP_SEC): ...to this and add Security Extensions.
* ld/testsuite/ld-arm/attr-merge-6.attr: Update for Security Extensions.
* ld/testsuite/ld-arm/attr-merge-7.attr: Likewise.
* opcodes/arm-dis.c (arm_opcodes): SMC implies Security Extensions.
(thumb32_opcodes): Likewise.

13 years ago * gas/config/tc-arm.c (arm_ext_mp): Add.
mgretton [Thu, 23 Sep 2010 15:18:17 +0000 (15:18 +0000)]
* gas/config/tc-arm.c (arm_ext_mp): Add.
(do_pld): Update comment.
(insns): Add support for pldw.
(arm_cpus): Update cortex-a5, cortex-a9, and cortex-a15 to support
MP extension.
(arm_extensions): Add 'mp' extension.
(aeabi_set_public_attributes): Emit correct build attribute when
MP extension is enabled.
* gas/doc/c-arm.texi: Update for MP extensions.
* gas/testsuite/gas/arm/arch7a-mp.d: Add.
* gas/testsuite/gas/arm/arch7ar-mp.s: Likewise.
* gas/testsuite/gas/arm/arch7r-mp.d: Likewise.
* gas/testsuite/gas/arm/armv2-mp-bad.d: Likewise.
* gas/testsuite/gas/arm/armv2-mp-bad.l: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for MP extension.
* gas/testsuite/gas/arm/attr-march-armv7-a+mp.d: Add.
* gas/testsuite/gas/arm/attr-march-armv7-r+mp.d: Likewise.
* include/opcode/arm.h (ARM_EXT_MP): Add.
(ARM_ARCH_V7A_MP): Likewise.
* opcodes/arm-dis.c (arm_opcodes): Add support for pldw.
(thumb32_opcodes): Likewise.

13 years ago * gas/config/tc-arm.c (md_pseduo_table): Add .arch_extension directive.
mgretton [Thu, 23 Sep 2010 15:11:56 +0000 (15:11 +0000)]
* gas/config/tc-arm.c (md_pseduo_table): Add .arch_extension directive.
(arm_option_extension_value_table): Add.
(arm_extensions): Change type.
(arm_option_cpu_table): Rename...
(arm_option_fpu_table): ...to this.
(arm_fpus): Change type.
(arm_parse_extension): Enforce alphabetical order.  Allow
extensions to be removed.
(arm_parse_arch): Allow extensions to be specified with -march.
(s_arm_arch_extension): Add.
(s_arm_fpu): Update for type changes.
* gas/doc/c-arm.texi: Document changes to infrastructure.

13 years ago * ld-elf/elf.exp: Don't run --gc-sections tls var test on v850.
amodra [Thu, 23 Sep 2010 12:24:41 +0000 (12:24 +0000)]
* ld-elf/elf.exp: Don't run --gc-sections tls var test on v850.
* ld-elf/group2.d: xfail xstormy.
* ld-elf/group4.d: Likewise.
* ld-elf/group5.d: Likewise.
* ld-elf/group6.d: Likewise.
* ld-elf/init-fini-arrays.d: xfail cr16 and crx.
* ld-elf/orphan2.d: xfail xstormy.
* ld-elf/sec64k.exp: Don't run on targets using generic linker.
Allow a larger range for ld -r expected bar_1 section.  Don't run
final link test on a number of targets.  Select avr6 for avr targets.
* ld-elfcomm/elfcomm.exp: Don't attempt on hpux.

13 years ago * gas/all/gas.exp: Update "forward" and "redef3" xfails.
amodra [Thu, 23 Sep 2010 12:15:52 +0000 (12:15 +0000)]
* gas/all/gas.exp: Update "forward" and "redef3" xfails.
* gas/m68k/all.exp: Don't xfail pcrel on uclinux.
* gas/sh/arch/arch.exp: Don't pass dashes to send_log.

13 years ago * config/tc-mn10300.c (tc_gen_reloc): Replace absolute symbols
amodra [Thu, 23 Sep 2010 12:11:30 +0000 (12:11 +0000)]
* config/tc-mn10300.c (tc_gen_reloc): Replace absolute symbols
with the absolute section symbol.

13 years ago * binutils-all/ar.exp: Don't run unique_symbol on msp or hpux.
amodra [Thu, 23 Sep 2010 12:04:37 +0000 (12:04 +0000)]
* binutils-all/ar.exp: Don't run unique_symbol on msp or hpux.
* binutils-all/copy-2.d: Update not-target list.
* binutils-all/note-1.d: Don't run on h8300.
* binutils-all/objcopy.exp: Don't run strip-10 on msp or hpux.
(objcopy_test): Remove h8300-rtems from xfails.

13 years ago * ld-d10v/reloc-007.d: Don't error.
amodra [Thu, 23 Sep 2010 11:55:47 +0000 (11:55 +0000)]
* ld-d10v/reloc-007.d: Don't error.
* ld-d10v/reloc-008.d: Likewise.
* ld-d10v/reloc-015.d: Likewise.
* ld-d10v/reloc-016.d: Likewise.
* ld-d10v/reloc-012.ld: Use a sane offset.

13 years ago * cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.
amodra [Thu, 23 Sep 2010 11:55:00 +0000 (11:55 +0000)]
* cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.

13 years agold/
amodra [Thu, 23 Sep 2010 11:40:05 +0000 (11:40 +0000)]
ld/
* ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
to output section on a final link.
bfd/
* elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
difference between input and output section.