]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
13 years ago * libm/complex/cacos.c: Use temporaries and correct sequencing
Corinna Vinschen [Wed, 13 Jul 2011 07:18:54 +0000 (07:18 +0000)]
* libm/complex/cacos.c: Use temporaries and correct sequencing
error in previous reordering change.

13 years agoinclude/ChangeLog
Catherine Moore [Mon, 11 Jul 2011 15:03:08 +0000 (15:03 +0000)]
include/ChangeLog
2011-07-11  Catherine Moore  <clm@codesourcery.com>

* bfdlink.h (flag_type): New enumeration.
(flag_info_list): New structure.
(flag_info): New structure.

bfd/ChangeLog
2011-07-11  Catherine Moore  <clm@codesourcery.com>

* aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition.
* aout-target.h (MY_bfd_lookup_section_flags): New definition.
* aout-tic30.c (MY_bfd_lookup_section_flags): New definition.
        * bfd-in2.h: Regenerated.
* bfd.c (bfd_lookup_section_flags): New definition.
* binary.c (binary_bfd_lookup_section_flags): New definition.
* bout.c (b_out_bfd_lookup_section_flags): New definition.
* coff-alpha.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
* coff-mips.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
* coff-rs6000.c (rs6000coff_vec): Include
bfd_generic_lookup_section_flags.
(pmac_xcoff_vec): Likewise.
* coffcode.h (coff_bfd_lookup_section_flags): New definition.
* coff64-rs6000.c (rs6000coff64_vec): Include
bfd_generic_lookup_section_flags.
(aix5coff64_vec): Likewise.
* ecoff.c (bfd_debug_section): Initialize flag_info field.
* elf-bfd.h (elf_backend_lookup_section_flags_hook): Declare.
(bfd_elf_lookup_section_flags): Declare.
* elflink.c (bfd_elf_lookup_section_flags): New function.
* elfxx-target.h (bfd_elfNN_bfd_lookup_section_flags): Define.
(elf_backend_lookup_section_flags_hook): Define.
(elf_backend_data): Add elf_backend_lookup_section_flags_hook.
* i386msdos.c (msdos_bfd_lookup_section_flags): New define.
* i386os9k.c (os9k_bfd_lookup_section_flags): New define.
* ieee.c (ieee_bfd_lookup_section_flags): New define.
* ihex.c (ihex_bfd_lookup_section_flags): New define.
* libbfd-in.h (_bfd_nolink_bfd_lookup_section_flags): Declare.
(bfd_generic_lookup_section_flags): Declare.
* libbfd.h: Regenerated.
* mach-o-target.c (bfd_mach_o_bfd_lookup_section_flags): New.
* mmo.c (mmo_bfd_lookup_section_flags): New definition.
* nlm-target.h (nlm_bfd_lookup_section_flags): New definition.
* oasys.c (oasys_bfd_lookup_section_flags): New definition.
* pef.c (bfd_pef_bfd_lookup_section_flags): New definition.
* plugin.c (bfd_plugin_bfd_lookup_section_flags): New definition.
* ppcboot.c (ppcboot_bfd_lookup_section_flags): New definition.
* reloc.c (bfd_generic_lookup_section_flags): New function.
* som.c (som_bfd_lookup_section_flags): New definition.
* srec.c (srec_bfd_lookup_section_flags): New definition.
* targets.c (flag_info): Declare.
(NAME##_bfd_lookup_section_flags): Add to LINK jump table.
(_bfd_lookup_section_flags): New.
* tekhex.c (tekhex_bfd_lookup_section_flags): New definition.
* versados.c (versados_bfd_lookup_section_flags): New definition.
* vms-alpha.c (alpha_vms_bfd_lookup_section_flag): New definition.
* xsym.c (bfd_sym_bfd_lookup_section_flags): New definition.

ld/ChangeLog
2011-07-11  Catherine Moore  <clm@codesourcery.com>

* ld.h (section_flag_list): Add field to struct wildcard_spec.
* ld.texinfo (INPUT_SECTION_FLAGS): Document.
* ldgram.y (flag_info_list, flag_info): Add to union.
(INPUT_SECTION_FLAGS): New token.
(wildcard_spec): Initialize section_flag_list to NULL for
each alternative.
(sect_flag_list, sect_flags): New rules.
(input_section_spec_no_keep): Add alternatives to recognize
sect_flags.
* ldlang.c (walk_wild_consider_section): Initialize
section_flag_info field of the section struct.
(lang_add_section): Check input section flags.
(lang_add_wild): Initialize section_flag_list field of
the statement struct.
* ldlang.h (lang_input_statement_struct): Add section_flag_list field.
(lang_wild_statement_struct): Likewise.
* ldlex.l (INPUT_SECTION_FLAGS): New token.
* mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
* NEWS: Announce INPUT_SECTION_FLAGS enhancement.

ld/testsuite/ChangeLog
2011-07-11 Catherine Moore  <clm@cm00re.com>

* ld-scripts/section-flags-1.s: New.
* ld-scripts/section-flags-1.t: New.
* ld-scripts/section-flags-2.s: New.
* ld-scripts/section-flags-2.t: New.
* ld-scripts/section-flags.exp: New.

13 years ago* fhandler_tty.cc (fhandler_pty_slave::ioctl): Remove erroneous support for
Christopher Faylor [Mon, 11 Jul 2011 00:03:55 +0000 (00:03 +0000)]
* fhandler_tty.cc (fhandler_pty_slave::ioctl): Remove erroneous support for
TIOCLINUX for pty.  Get rid of unneeded EINVAL handling in wake of tty removal.
Remove now-unneeded variable.

13 years ago * include/netdb.h (gethostbyname2): Declare.
Corinna Vinschen [Sun, 10 Jul 2011 13:22:48 +0000 (13:22 +0000)]
* include/netdb.h (gethostbyname2): Declare.

13 years agopthread_sigmask: fix return value to match POSIX
Eric Blake [Sun, 10 Jul 2011 00:01:33 +0000 (00:01 +0000)]
pthread_sigmask: fix return value to match POSIX

* signal.cc (handle_sigprocmask): Return error rather than setting
errno, for pthread_sigmask.
(sigprocmask): Adjust caller.

13 years ago PR ld/12942
Alan Modra [Sat, 9 Jul 2011 06:20:51 +0000 (06:20 +0000)]
PR ld/12942
bfd/
* elflink.c (elf_link_add_object_symbols): Use elf_discarded_section
rather than kept_section to determine whether a symbol is from
a discarded section.
* cofflink.c (coff_link_add_symbols): Make symbols from discarded
sections appear undefined.

* elf-bfd.h (_bfd_elf_section_already_linked): Replace
"asection *" with "struct already_linked *".
* libbfd-in.h (_bfd_nolink_section_already_linked): Likewise.
(_bfd_generic_section_already_linked): Likewise.
(bfd_section_already_linked_table_insert): Likewise.
(struct already_linked): New.
(struct bfd_section_already_linked): Use it.
* elflink.c (_bfd_elf_section_already_linked): Replace.
"asection *" with "struct already_linked *".  Replace the plugin
dummy with the LTO output.
* linker.c (_bfd_generic_section_already_linked): Likewise.
* targets.c (struct already_linked): Add forward declaration.
(bfd_target): Replace "struct bfd_section *" with
"struct already_linked *" in _section_already_linked.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

include/
* bfdlink.h (bfd_link_info): Add loading_lto_outputs.

ld/
* ldlang.c (section_already_linked): Pass "struct already_linked *"
to bfd_section_already_linked.
(lang_process): Set link_info.loading_lto_outputs before
loading LTO outputs.
* plugin.c: Include "libbfd.h".
(add_symbols): Call bfd_section_already_linked with comdat_key.

13 years ago PR target/39150
Rainer Orth [Thu, 7 Jul 2011 09:28:08 +0000 (09:28 +0000)]
PR target/39150
* configure.ac (i[3456789]86-*-solaris2*): Also accept
x86_64-*-solaris2.1[0-9]*.
* configure: Regenerate.

13 years ago * miscfuncs.cc (yield): Drop thread priority only once.
Corinna Vinschen [Thu, 7 Jul 2011 06:21:24 +0000 (06:21 +0000)]
* miscfuncs.cc (yield): Drop thread priority only once.

13 years ago* exceptions.cc (_cygtls::interrupt_now): Back out previous change since it
Christopher Faylor [Wed, 6 Jul 2011 18:44:06 +0000 (18:44 +0000)]
* exceptions.cc (_cygtls::interrupt_now): Back out previous change since it
could theoretically cause a non-CTRL-C-able program if a program has suffered
memory corruption.
(setup_handler): Ditto.

13 years ago * sched.c (sched_yield): Just call SwitchToThread because yield now
Corinna Vinschen [Wed, 6 Jul 2011 18:35:44 +0000 (18:35 +0000)]
* sched.c (sched_yield): Just call SwitchToThread because yield now
potentially switches CPU.

13 years ago* exceptions.cc (_cygtls::interrupt_now): Don't check for spinning here.
Christopher Faylor [Wed, 6 Jul 2011 18:14:22 +0000 (18:14 +0000)]
* exceptions.cc (_cygtls::interrupt_now): Don't check for spinning here.
(setup_handler): Check for spinning here, assuming that it is transitory and
should not affect the retry loop.

13 years ago* exceptions.cc (CALL_HANDLER_RETRY_INNER): Rename to reflect different
Christopher Faylor [Wed, 6 Jul 2011 16:33:30 +0000 (16:33 +0000)]
* exceptions.cc (CALL_HANDLER_RETRY_INNER): Rename to reflect different
functionality.
(CALL_HANDLER_RETRY_OUTER): New define.
(setup_handler): Add outer loop to signal handler to try harder to deliver the
signal.
* miscfuncs.cc (yield): Drop priority and use SleepEx() to force thread
rescheduling rather than relying on SwitchToThread().

13 years ago * sigproc.cc (wait_sig): Fix debug output.
Corinna Vinschen [Wed, 6 Jul 2011 12:39:36 +0000 (12:39 +0000)]
* sigproc.cc (wait_sig): Fix debug output.

13 years agobfd/
Tristan Gingold [Wed, 6 Jul 2011 07:22:20 +0000 (07:22 +0000)]
bfd/
2011-07-06  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Move loader related definitions to
include/mach-o/loader.h.  Include it.

include/mach-o/
2011-07-06  Tristan Gingold  <gingold@adacore.com>

* loader.h: New file.

13 years ago * fhandler_console.cc (fhandler_console::input_tcsetattr): Make
Corinna Vinschen [Tue, 5 Jul 2011 18:01:13 +0000 (18:01 +0000)]
* fhandler_console.cc (fhandler_console::input_tcsetattr): Make
ENABLE_PROCESSED_INPUT flag only depending on value of IGNBRK.
(fhandler_console::tcgetattr): Don't set ISIG depending on
ENABLE_PROCESSED_INPUT, set IGNBRK instead.

13 years ago * security.cc (get_file_sd): Fix comment.
Corinna Vinschen [Tue, 5 Jul 2011 15:42:43 +0000 (15:42 +0000)]
* security.cc (get_file_sd): Fix comment.

13 years ago * fhandler.cc (fhandler_base::open): Never create files with WRITE_DAC
Corinna Vinschen [Tue, 5 Jul 2011 12:02:10 +0000 (12:02 +0000)]
* fhandler.cc (fhandler_base::open): Never create files with WRITE_DAC
access.  Explain why.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Improve debug
output.

13 years ago * fhandler.cc (fhandler_base::open): Don't open file with WRITE_DAC
Corinna Vinschen [Tue, 5 Jul 2011 09:59:34 +0000 (09:59 +0000)]
* fhandler.cc (fhandler_base::open): Don't open file with WRITE_DAC
access on remote filesystem.  Explain why.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for
directories.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets.
* path.cc (symlink_worker): Ditto for symlinks.

13 years ago* environ.cc (tty_is_gone): Wrap warning at 80 characters.
Christopher Faylor [Mon, 4 Jul 2011 18:14:31 +0000 (18:14 +0000)]
* environ.cc (tty_is_gone): Wrap warning at 80 characters.

13 years ago Throughout, open console handles with sharing for reading and writing.
Corinna Vinschen [Mon, 4 Jul 2011 15:25:36 +0000 (15:25 +0000)]
Throughout, open console handles with sharing for reading and writing.
* dcrt0.cc (insert_file): Open file with full sharing allowed.
* hookapi.cc (find_first_notloaded_dll): Ditto.
* spawn.cc (av::fixup): Ditto.

13 years ago * dtable.cc (dtable::init_std_file_from_handle): Change test for console
Corinna Vinschen [Mon, 4 Jul 2011 09:47:10 +0000 (09:47 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Change test for console
device in call to fh->init to avoid conhost crash on W7.

13 years ago * environ.cc (environ_init): Reinstantiate on-the-fly CYGWIN variable
Corinna Vinschen [Mon, 4 Jul 2011 09:39:20 +0000 (09:39 +0000)]
* environ.cc (environ_init): Reinstantiate on-the-fly CYGWIN variable
test and call to parse_options if found.

13 years ago* fhandler.cc (fhandler_base::open_with_arch): Call close_on_exec last to avoid
Christopher Faylor [Mon, 4 Jul 2011 05:08:28 +0000 (05:08 +0000)]
* fhandler.cc (fhandler_base::open_with_arch): Call close_on_exec last to avoid
setting close_on_exec for archetype.
* fhandler_tty.cc (fhandler_pty_master::setup): Protect {from,to}_pty handles.
Use consistent naming in debug output.  Use inheritable handles and...
(fhandler_pty_master::fixup_after_fork): ...avoid duplicating handles here.
(fhandler_pty_slave::open): Don't set close_on_exec flag here.

13 years agoELFOSABI_GNU
Thomas Schwinge [Sun, 3 Jul 2011 13:45:32 +0000 (13:45 +0000)]
ELFOSABI_GNU

bfd/
* elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of
ELFOSABI_LINUX alias.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf64-hppa.c: Likewise.

binutils/
* elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX
alias and ELFOSABI_HURD.  Add GNU alias.
* readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type):
Likewise.
* doc/binutils.texi <elfedit>: Update accordingly.

elfcpp/
* elfcpp.h (ELFOSABI): Add ELFOSABI_GNU with value of ELFOSABI_LINUX,
keep ELFOSABI_LINUX as an alias.  Remove ELFOSABI_HURD.

gas/
* config/obj-elf.c (obj_elf_type): Use ELFOSABI_GNU name instead of
ELFOSABI_LINUX alias.
* config/tc-ia64.c: Likewise.

include/elf/
* common.h (ELFOSABI_GNU): Define, replaces...
(ELFOSABI_LINUX): ... this, kept as an alias.
(ELFOSABI_HURD): Remove.

ld/testsuite/
* ld-ifunc/ifunc.exp: Update for changed output.
* ld-unique/unique.exp: Likewise.

13 years agoELFOSABI_GNU
Thomas Schwinge [Sun, 3 Jul 2011 13:37:08 +0000 (13:37 +0000)]
ELFOSABI_GNU

bfd/
* elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of
ELFOSABI_LINUX alias.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf64-hppa.c: Likewise.

binutils/
* elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX
alias and ELFOSABI_HURD.  Add GNU alias.
* readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type):
Likewise.
* doc/binutils.texi <elfedit>: Update accordingly.

elfcpp/
* elfcpp.h (ELFOSABI): Add ELFOSABI_GNU with value of ELFOSABI_LINUX,
keep ELFOSABI_LINUX as an alias.  Remove ELFOSABI_HURD.

gas/
* config/obj-elf.c (obj_elf_type): Use ELFOSABI_GNU name instead of
ELFOSABI_LINUX alias.
* config/tc-ia64.c: Likewise.

include/elf/
* common.h (ELFOSABI_GNU): Define, replaces...
(ELFOSABI_LINUX): ... this, kept as an alias.
(ELFOSABI_HURD): Remove.

ld/testsuite/
* ld-ifunc/ifunc.exp: Update for changed output.
* ld-unique/unique.exp: Likewise.

13 years ago* dtable.cc (cnew): Fix whitespace.
Christopher Faylor [Fri, 1 Jul 2011 22:04:20 +0000 (22:04 +0000)]
* dtable.cc (cnew): Fix whitespace.

13 years agolibgloss: bfin: implement getpid/fstat/stat/link/unlink syscalls
Michael Frysinger [Fri, 1 Jul 2011 21:47:36 +0000 (21:47 +0000)]
libgloss: bfin: implement getpid/fstat/stat/link/unlink syscalls

The current syscalls.c implements getpid/fstat/stat/link/unlink as mere
stubs.  So replace them with useful calls to do_syscall now that our sim
can support them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agolibgloss: bfin: fix sim lseek() syscall
Michael Frysinger [Fri, 1 Jul 2011 20:55:42 +0000 (20:55 +0000)]
libgloss: bfin: fix sim lseek() syscall

The sim lseek() syscall in the Blackfin libgloss code did not pass down
the "whence" argument making lseek() in general kind of useless.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago[libiberty/filename_cmp] Darwin has case-insensitive filesystems
Joel Brobecker [Fri, 1 Jul 2011 18:24:38 +0000 (18:24 +0000)]
[libiberty/filename_cmp] Darwin has case-insensitive filesystems

include/ChangeLog:

        * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define
        on Darwin, as well as on the systems that use a DOS-like
        filesystem.

libiberty/ChangeLog:

        * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
        HAVE_CASE_INSENSITIVE_FILE_SYSTEM.

13 years ago2011-07-01 Eric B. Weddington <eric.weddington@atmel.com>
Eric Weddington [Fri, 1 Jul 2011 17:14:03 +0000 (17:14 +0000)]
2011-07-01  Eric B. Weddington  <eric.weddington@atmel.com>

* avr.h (AVR_ISA_AVR6): Remove AVR_ISA_SPMX as it was actually
a duplicate of AVR_ISA_SPM.

13 years ago PR binutils/12329
Nick Clifton [Fri, 1 Jul 2011 16:11:27 +0000 (16:11 +0000)]
PR binutils/12329
* avr-dis.c (avr_operand): Fix disassembly of ELPM, LPM and SPM
insns using post-increment addressing.

* avr.h (AVR_ISA_AVR6): Fix typo, adding AVR_ISA_SPMX.

13 years ago * include/sys/param.h (NGROUPS): Redefine as NGROUPS_MAX.
Corinna Vinschen [Fri, 1 Jul 2011 12:45:25 +0000 (12:45 +0000)]
* include/sys/param.h (NGROUPS): Redefine as NGROUPS_MAX.
(MAXHOSTNAMELEN): Redefine with same value as MAX_HOSTNAME_LEN.  Change
comment.
(MAXPATHLEN): Improve comment.
(MAXSYMLINKS): Define and add comment.

13 years ago * fhandler.cc (fhandler_base::open): Move NFS-specific code into the
Corinna Vinschen [Fri, 1 Jul 2011 11:23:43 +0000 (11:23 +0000)]
* fhandler.cc (fhandler_base::open): Move NFS-specific code into the
code block handling FH_FS stuff.

13 years ago * dtable.cc (fh_oom): Remove.
Corinna Vinschen [Thu, 30 Jun 2011 14:04:51 +0000 (14:04 +0000)]
* dtable.cc (fh_oom): Remove.
(fh_calloc): Remove.
(cnew): Redefine to handle NULL returns from cmalloc.
(build_fh_name): Accommodate new definition of cnew.  Remove unneeded
test for fh_oom.
(fh_alloc): Ditto.

13 years ago * fhandler_console.cc (fhandler_console::read): Add comment.
Corinna Vinschen [Thu, 30 Jun 2011 13:55:57 +0000 (13:55 +0000)]
* fhandler_console.cc (fhandler_console::read): Add comment.
(fhandler_console::input_tcsetattr): Don't set ENABLE_PROCESSED_INPUT
if IGNBRK flag is set.

13 years ago * dtable.cc (fh_oom): New static fhandler storage.
Corinna Vinschen [Thu, 30 Jun 2011 09:37:36 +0000 (09:37 +0000)]
* dtable.cc (fh_oom): New static fhandler storage.
(fh_calloc): New static function.  Add a comment to explain why this
is needed.
(cnew): Call fh_calloc as placement argument.
(build_fh_name): Check return code from cnew against address of
fh_oom to test for out of memory condition.
(fh_alloc): Ditto.
(build_fh_pc): Avoid a crash due to useing a NULL fhandler.
* pipe.cc (fhandler_pipe::create): Check if build_fh_dev returned a
valid pointer before using it.

13 years ago2011-06-29 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 29 Jun 2011 15:32:09 +0000 (15:32 +0000)]
2011-06-29  Jeff Johnston  <jjohnstn@redhat.com>

        * arm/Makefile.in: Add $CFLAGS to compile commands for specified .o targets.

13 years ago * fhandler_process.cc (heap_info::fill_if_match): Rename info to
Corinna Vinschen [Tue, 28 Jun 2011 10:21:34 +0000 (10:21 +0000)]
* fhandler_process.cc (heap_info::fill_if_match): Rename info to
note that this heap is a Windows heap.
(format_process_maps): Print info about application heap.

13 years ago * libc/time/mktime.c (mktime): Lock global timezone info while
Corinna Vinschen [Mon, 27 Jun 2011 10:13:11 +0000 (10:13 +0000)]
* libc/time/mktime.c (mktime): Lock global timezone info while
accessing it.

13 years ago * fhandler_console.cc (fhandler_console::read): Don't generate ^@ on
Corinna Vinschen [Fri, 24 Jun 2011 08:25:19 +0000 (08:25 +0000)]
* fhandler_console.cc (fhandler_console::read): Don't generate ^@ on
Ctrl+Alt+Space.

13 years agomerge from gcc
DJ Delorie [Wed, 22 Jun 2011 19:13:31 +0000 (19:13 +0000)]
merge from gcc

13 years ago * dwarf2.h (enum dwarf_location_atom): Add DW_OP_GNU_parameter_ref.
Jakub Jelinek [Wed, 22 Jun 2011 15:03:19 +0000 (15:03 +0000)]
* dwarf2.h (enum dwarf_location_atom): Add DW_OP_GNU_parameter_ref.

* dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
Handle DW_OP_GNU_parameter_ref.

13 years ago * fhandler_tty.cc (fhandler_pty_master::setup): Create pty pipes
Corinna Vinschen [Wed, 22 Jun 2011 07:58:01 +0000 (07:58 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Create pty pipes
non-inheritable.

13 years ago * fhandler_tty.cc (fhandler_pty_master::setup): Fix crash in debug
Corinna Vinschen [Wed, 22 Jun 2011 07:37:49 +0000 (07:37 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Fix crash in debug
output.

13 years agolibgloss: bfin: handle result2/errcode in sim syscalls
Michael Frysinger [Wed, 22 Jun 2011 04:18:45 +0000 (04:18 +0000)]
libgloss: bfin: handle result2/errcode in sim syscalls

The sim passes back results via two values, and the error code via a 3rd.
make sure libgloss extracts all three so that things like errno work as
expected.  This fixes many gdb tests which look for this sort of thing.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agolibgloss: bfin: trim trailing whitespace
Michael Frysinger [Wed, 22 Jun 2011 03:00:44 +0000 (03:00 +0000)]
libgloss: bfin: trim trailing whitespace

13 years ago PR ld/12570
Jakub Jelinek [Mon, 20 Jun 2011 13:18:48 +0000 (13:18 +0000)]
PR ld/12570
include/
* bfdlink.h (struct bfd_link_info): Add no_ld_generated_unwind_info
option.
ld/
* emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
(gld${EMULATION_NAME}_handle_option): Handle
--ld-generated-unwind-info and --no-ld-generated-unwind-info.
* ld.texinfo (--ld-generated-unwind-info,
--no-ld-generated-unwind-info): Document.
bfd/
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Allow no relocations
at all for linker created .eh_frame sections.
(_bfd_elf_discard_section_eh_frame): Handle linker created
.eh_frame sections with no relocations.
* elf64-x86-64.c: Include dwarf2.h.
(elf_x86_64_eh_frame_plt): New variable.
(PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
PLT_FDE_LEN_OFFSET): Define.
(struct elf_x86_64_link_hash_table): Add plt_eh_frame field.
(elf_x86_64_create_dynamic_sections): Create and fill in
.eh_frame section for .plt section.
(elf_x86_64_size_dynamic_sections): Write .plt section size
into .eh_frame FDE covering .plt section.
(elf_x86_64_finish_dynamic_sections): Write .plt section
start into .eh_frame FDE covering .plt section.  Call
_bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
(elf_backend_plt_alignment): Define to 4.
* elf32-i386.c: Include dwarf2.h.
(elf_i386_eh_frame_plt): New variable.
(PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
PLT_FDE_LEN_OFFSET): Define.
(struct elf_i386_link_hash_table): Add plt_eh_frame field.
(elf_i386_create_dynamic_sections): Create and fill in
.eh_frame section for .plt section.
(elf_i386_size_dynamic_sections): Write .plt section size
into .eh_frame FDE covering .plt section.
(elf_i386_finish_dynamic_sections): Write .plt section
start into .eh_frame FDE covering .plt section.  Call
_bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
(elf_backend_plt_alignment): Define to 4.
ld/testsuite/
* ld-x86-64/x86-64.exp: Link some testcases with
--no-ld-generated-unwind-info.
* ld-x86-64/tlsbin.rd: Add --no-ld-generated-unwind-info to ld
comment.
* ld-x86-64/tlsdesc.dd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.
* ld-x86-64/tlsdesc.sd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
* ld-x86-64/tlsbindesc.rd: Likewise.
* ld-x86-64/tlsbindesc.sd: Likewise.
* ld-x86-64/tlsbin.td: Likewise.
* ld-x86-64/tlsdesc.pd: Likewise.
* ld-x86-64/tlsdesc.td: Likewise.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-x86-64/tlsbin.dd: Likewise.
* ld-x86-64/tlsgdesc.rd: Likewise.
* ld-x86-64/tlspic.sd: Likewise.
* ld-x86-64/tlsbindesc.td: Likewise.
* ld-x86-64/tlspic.td: Likewise.
* ld-x86-64/tlsbin.sd: Likewise.
* ld-x86-64/ilp32-4.d: Likewise.
* ld-x86-64/tlsgdesc.dd: Add --no-ld-generated-unwind-info to ld
comment.  Adjust.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlsgd6.dd: Adjust.
* ld-x86-64/tlsgd5.dd: Likewise.
* ld-i386/i386.exp: Link some testcases with
--no-ld-generated-unwind-info.
* ld-i386/tlsbin.rd: Add --no-ld-generated-unwind-info to ld
comment..
* ld-i386/tlsdesc.dd: Likewise.
* ld-i386/tlspic.dd: Likewise.
* ld-i386/tlsdesc.sd: Likewise.
* ld-i386/tlsgdesc.dd: Likewise.
* ld-i386/tlsnopic.sd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-i386/tlsdesc.rd: Likewise.
* ld-i386/tlsbindesc.rd: Likewise.
* ld-i386/tlsbindesc.sd: Likewise.
* ld-i386/tlsbin.td: Likewise.
* ld-i386/tlsdesc.td: Likewise.
* ld-i386/tlsnopic.dd: Likewise.
* ld-i386/tlsbindesc.dd: Likewise.
* ld-i386/tlsbin.dd: Likewise.
* ld-i386/tlsgdesc.rd: Likewise.
* ld-i386/tlspic.sd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlsbindesc.td: Likewise.
* ld-i386/tlspic.td: Likewise.
* ld-i386/tlsbin.sd: Likewise.

13 years agosim: bfin: fix sign extension in dsp insns with MM flag
Michael Frysinger [Sat, 18 Jun 2011 19:42:55 +0000 (19:42 +0000)]
sim: bfin: fix sign extension in dsp insns with MM flag

After testing the hardware with all the different dsp flags, the MM flag
triggers sign extension in all modes.  So drop the limited use of it, and
the local custom helper that was also extending unsigned values.  We also
can see that the flag checks in the mult/mac insns have the same behavior
with sign extending, so add a helper func to keep the logic the same in
both places.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago * path.cc (normalize_win32_path): Skip all slashes after recognizing
Corinna Vinschen [Sat, 18 Jun 2011 08:36:59 +0000 (08:36 +0000)]
* path.cc (normalize_win32_path): Skip all slashes after recognizing
a ".." path component.  Add comment.

13 years agoopcodes: blackfin: fix style
Michael Frysinger [Sat, 18 Jun 2011 06:43:57 +0000 (06:43 +0000)]
opcodes: blackfin: fix style

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago * fhandler.cc (fhandler_base::open): Drop local create_options variable.
Corinna Vinschen [Fri, 17 Jun 2011 11:04:44 +0000 (11:04 +0000)]
* fhandler.cc (fhandler_base::open): Drop local create_options variable.
Use options member instead.
* fhandler.h (class fhandler_base): Change type of access member to
ACCESS_MASK.  Change get_access and set_access methods accordingly.
Add options member.  Add get_options and set_options methods.
(class fhandler_disk_file): Add prw_handle.
(fhandler_disk_file::prw_open): Declare.
(fhandler_disk_file::close): Declare.
(fhandler_disk_file::dup): Declare.
(fhandler_disk_file::fixup_after_fork): Declare.
* fhandler_disk_file.cc (fhandler_disk_file::fhandler_disk_file):
Initialize prw_handle to NULL.
(fhandler_disk_file::close): Close prw_handle.
(fhandler_disk_file::dup): New method.
(fhandler_disk_file::fixup_after_fork): Set prw_handle to NULL since
prw_handle is not inherited.
(fhandler_disk_file::prw_open): New method.  Add long comment to
explain current behaviour.
(fhandler_disk_file::pread): Revert previous change.  Change to use
prw_handle if possible.
(fhandler_disk_file::pwrite): Change to use prw_handle if possible.

13 years ago * dcrt0.cc (dll_crt0_1): Call strace.dll_info after call to pinfo_init.
Corinna Vinschen [Fri, 17 Jun 2011 08:30:27 +0000 (08:30 +0000)]
* dcrt0.cc (dll_crt0_1): Call strace.dll_info after call to pinfo_init.
* strace.cc (strace::hello): Drop printing DLL information here since
application info is not always available at this point.
(strace::dll_info): New method to print DLL info.
* include/sys/strace.h (strace::dll_info): Declare.

13 years ago * dtable.cc (handle_to_fn): Accommodate name change of pty named pipes,
Corinna Vinschen [Fri, 17 Jun 2011 08:27:32 +0000 (08:27 +0000)]
* dtable.cc (handle_to_fn): Accommodate name change of pty named pipes,
otherwise ptys are not recognized.

13 years ago* fhandler_console.cc (fhandler_console::set_unit): Set pc.file_attributes() to
Christopher Faylor [Thu, 16 Jun 2011 23:00:00 +0000 (23:00 +0000)]
* fhandler_console.cc (fhandler_console::set_unit): Set pc.file_attributes() to
reflect existence.
* fhandler.h (fhandler_pty_common::fhandler_pty_common): Ditto.
* pinfo.cc (_pinfo::set_ctty): Output device numbers in hex.

13 years ago* errno.cc (EIO): Lowercase "o" representative string.
Christopher Faylor [Wed, 15 Jun 2011 17:36:10 +0000 (17:36 +0000)]
* errno.cc (EIO): Lowercase "o" representative string.

13 years agoinclude/elf/
Ulrich Weigand [Wed, 15 Jun 2011 16:36:58 +0000 (16:36 +0000)]
include/elf/
* common.h (NT_ARM_VFP): Define.

bfd/
* elf-bfd.h (elfcore_write_arm_vfp): Add prototype.
* elf.c (elfcore_grok_arm_vfp): New function.
(elfcore_grok_note): Call it to handle NT_ARM_VFP notes.
(elfcore_write_arm_vfp): New function.
(elfcore_write_register_note): Call it to handle .reg-arm-vfp.

binutils/
* readelf.c (get_note_type): Handle NT_ARM_VFP.

13 years ago * cygwinenv.sgml (using-cygwinenv): Move envcache, strip_title, title,
Corinna Vinschen [Wed, 15 Jun 2011 11:41:26 +0000 (11:41 +0000)]
* cygwinenv.sgml (using-cygwinenv): Move envcache, strip_title, title,
tty, and upcaseenv options to list of obsolete options.
* effectively.sgml (using-console): Remove section.
* new-features.sgml (ov-new1.7.10): Document removed CYGWIN options.
Document removed tty mode.

13 years ago* cygheap.h (init_cygheap::ctty_on_hold): Remove conditionalized variable.
Christopher Faylor [Tue, 14 Jun 2011 21:48:43 +0000 (21:48 +0000)]
* cygheap.h (init_cygheap::ctty_on_hold): Remove conditionalized variable.
* dcrt0.cc (do_exit): Remove code which handled CYGWIN=tty style ttys.
* devices.in: Remove "/dev/ttym".
* dtable.cc: Rename tty to pty where appropriate throughout.
(dtable::stdio_init): Use new t->is_console rather than using now-deleted hwnd
element in tty structure.
(dtable::init_std_file_from_handle): Remove code which handled CYGWIN=tty style
ttys.
(fh_alloc): Ditto.
* fhandler.h: Rename tty to pty where appropriate.
(fhandler_pty_common): Delete output_done_event, ioctl_request_event,
ioctl_done_event.
(fhandler_pty_master::setup): Delete argument.
(fhandler_tty_master): Delete.
(fhandler_union): Delete __tty_master.
* fhandler_console.cc (use_tty): Delete.
(fhandler_console::get_tty_stuff): Set is_console to true rather than calling
sethwnd.
(fhandler_console::send_winch_maybe): Remove CYGWIN=tty considerations.
(fhandler_console::input_tcsetattr): Ditto.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Use new t->is_console
rather than using now-deleted hwnd element in tty structure.
* fhandler_tty.cc: Rename tty to pty where appropriate throughout.
(tty_master): Delete.
(process_input): Ditto.
(process_output): Ditto.
(process_ioctl): Ditto.
(fhandler_tty_master::*): Ditto.
(fhandler_pty_master::process_slave_output): Remove CYGWIN=tty considerations.
(fhandler_pty_slave::open): Ditto for *_done_event.
(fhandler_pty_slave::write): Ditto.
(fhandler_pty_slave::ioctl): Ditto.
(fhandler_pty_slave::fch_open_handles): Ditto.
(fhandler_pty_slave::fch_set_sd): Ditto.
(fhandler_pty_slave::fch_close_handles): Ditto.
(fhandler_pty_common::close): Ditto.
(fhandler_pty_master::setup): Ditto.  Remove now-unneeded ispty parameter.
(fhandler_pty_master::open): Reflect argument removal for tty::allocate.
* select.cc: Rename tty to pty where appropriate throughout.
* sigproc.cc (proc_subproc): Remove CYGWIN=tty considerations.
* tty.cc (ttyslot): Accommodate CYGWIN=tty removal.
(tty_list::init_session): Ditto.
(tty_list::attach): Ditto.
(tty::create_master): Delete.
(tty_list::terminate): Ditto.
(tty_list::allocate): Delete "with_console" parameter.  Remove CYGWIN=tty
considerations.
(tty::init): Set is_console = false.  Use 'false' for was_opened since it is a
boolean.
* tty.h (*_{DONE,REQUEST}_EVENT): Delete.
(tty_min::is_console): Declare new field which replaces hwnd.
(tty_min::gethwnd): Delete.
(tty_min::sethwnd): Ditto.
(tty_list::allocate): Delete parameter.
(tty_list::terminate): Delete declaration.
* include/sys/cygwin.h (PID_USETTY): Redefine to PID_UNUSED1 and change comment
to reflect its availability.

13 years ago* mingw: Force use of bash.
Christopher Faylor [Tue, 14 Jun 2011 15:04:04 +0000 (15:04 +0000)]
* mingw: Force use of bash.

13 years ago * libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
Corinna Vinschen [Tue, 14 Jun 2011 14:31:59 +0000 (14:31 +0000)]
* libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
to siprintf.
* libc/time/strftime.c: Define snprintf to sniprintf in multibyte case.
* libc/time/tzset_r.c: Define sscanf to siscanf.

13 years agolibgloss:
Joseph Myers [Tue, 14 Jun 2011 13:40:48 +0000 (13:40 +0000)]
libgloss:
* configure.in: Don't handle strongarm, ep9312 and xscale target
names.
* configure: Regenerate.
* libnosys/configure.in: Don't handle strongarm and thumb target
names.
* libnosys/configure: Regenerate.

newlib:
* configure.host: Don't handle ep9312, strongarm, xscale and thumb
target names.
* libc/machine/configure.in: Don't handle xscale target names.
* libc/machine/configure: Regenerate.

13 years ago * libc/time/tzset_r.c (tzset_r): Correct behavior for changing from
Corinna Vinschen [Tue, 14 Jun 2011 07:50:40 +0000 (07:50 +0000)]
* libc/time/tzset_r.c (tzset_r):  Correct behavior for changing from
non-GMT to GMT, when un-setting TZ.  Set _timezone and _daylight even
if no DST is given in TZ.

13 years agoprintf: set errno for read-only stream
Eric Blake [Tue, 14 Jun 2011 03:56:05 +0000 (03:56 +0000)]
printf: set errno for read-only stream

* libc/stdio/wsetup.c (__swsetup_r): Set errno on failure.
* libc/stdio/fvwrite.c (__sfvwrite_r): Simplify.
* libc/stdio/wbuf.c (__swbuf_r): Likewise.
* libc/stdio/local.h (cantwrite): Adjust comment.

13 years ago* fhandler_tty_slave.cc (fhandler_tty_slave::fhandler_tty_slave): Revert
Christopher Faylor [Mon, 13 Jun 2011 23:49:00 +0000 (23:49 +0000)]
* fhandler_tty_slave.cc (fhandler_tty_slave::fhandler_tty_slave): Revert
previous change since unit 0 is perfectly valid.

13 years agomerge from gcc
DJ Delorie [Mon, 13 Jun 2011 23:01:42 +0000 (23:01 +0000)]
merge from gcc

13 years ago * configure.ac (tilepro-*-*) New case.
Nick Clifton [Mon, 13 Jun 2011 15:24:43 +0000 (15:24 +0000)]
* configure.ac (tilepro-*-*) New case.
(tilegx-*-*): Likewise.
* configure: Regenerate.

13 years ago * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo.
Nick Clifton [Mon, 13 Jun 2011 15:18:54 +0000 (15:18 +0000)]
* Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo.
    (ALL_MACHINE_CFILES): Add cpu-tilegx.c and cpu-tilepro.c.
    (BFD32_BACKENDS): Add elf32-tilegx.lo, elf32-tilepro.lo,
    and elfxx-tilegx.lo.
    (BFD32_BACKENDS_CFILES): Add elf32-tilegx.c elf32-tilepro.c, and
    elfxx-tilegx.c.
    (BFD64_BACKENDS): Add elf64-tilegx.lo.
    (BFD64_BACKENDS_CFILES): Add elf64-tilegx.c.
    * Makefile.in: Regenerate.
    * arctures.c (bfd_architecture): Define bfd_arch_tilepro,
    bfd_arch_tilegx, bfd_mach_tilepro, bfd_mach_tilegx.
    (bfd_arch_info): Add bfd_tilegx_arch, bfd_tilepro_arch.
    (bfd_archures_list): Add bfd_tilegx_arch, bfd_tilepro_arch.
    bfd-in2.h: Regenerate.
    * config.bfd: Handle tilegx-*-* and tilepro-*-*.
    * configure.in: Handle bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
    and bfd_elf64_tilegx_vec.
    * configure: Regenerate.
    * elf-bfd.h (enum elf_target_id): Define TILEGX_ELF_DATA and
    TILEPRO_ELF_DATA.
    * libbfd.h: Regenerate.
    * reloc.c: Add BFD_RELOC_TILEPRO_{COPY, GLOB_DAT, JMP_SLOT,
    RELATIVE, BROFF_X1, JOFFLONG_X1, JOFFLONG_X1_PLT, IMM8_X0,
    IMM8_Y0, IMM8_X1, IMM8_Y1, DEST_IMM8_X1, MT_IMM15_X1, MF_IMM15_X1,
    IMM16_X0, IMM16_X1, IMM16_X0_LO, IMM16_X1_LO, IMM16_X0_HI,
    IMM16_X1_HI, IMM16_X0_HA, IMM16_X1_HA, IMM16_X0_PCREL,
    IMM16_X1_PCREL, IMM16_X0_LO_PCREL, IMM16_X1_LO_PCREL,
    IMM16_X0_HI_PCREL, IMM16_X1_HI_PCREL, IMM16_X0_HA_PCREL,
    IMM16_X1_HA_PCREL, IMM16_X0_GOT, IMM16_X1_GOT, IMM16_X0_GOT_LO,
    IMM16_X1_GOT_LO, IMM16_X0_GOT_HI, IMM16_X1_GOT_HI,
    IMM16_X0_GOT_HA, IMM16_X1_GOT_HA, MMSTART_X0, MMEND_X0,
    MMSTART_X1, MMEND_X1, SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1,
    IMM16_X0_TLS_GD, IMM16_X1_TLS_GD, IMM16_X0_TLS_GD_LO,
    IMM16_X1_TLS_GD_LO, IMM16_X0_TLS_GD_HI, IMM16_X1_TLS_GD_HI,
    IMM16_X0_TLS_GD_HA, IMM16_X1_TLS_GD_HA, IMM16_X0_TLS_IE,
    IMM16_X1_TLS_IE, IMM16_X0_TLS_IE_LO, IMM16_X1_TLS_IE_LO,
    IMM16_X0_TLS_IE_HI, IMM16_X1_TLS_IE_HI, IMM16_X0_TLS_IE_HA,
    IMM16_X1_TLS_IE_HA, TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
    Add BFD_RELOC_TILEGX_{HW0, HW1, HW2, HW3, HW0_LAST, HW1_LAST,
    HW2_LAST, COPY, GLOB_DAT, JMP_SLOT, RELATIVE, BROFF_X1,
    JUMPOFF_X1, JUMPOFF_X1_PLT, IMM8_X0, IMM8_Y0, IMM8_X1, IMM8_Y1,
    DEST_IMM8_X1, MT_IMM14_X1, MF_IMM14_X1, MMSTART_X0, MMEND_X0,
    SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1, IMM16_X0_HW0,
    IMM16_X1_HW0, IMM16_X0_HW1, IMM16_X1_HW1, IMM16_X0_HW2,
    IMM16_X1_HW2, IMM16_X0_HW3, IMM16_X1_HW3, IMM16_X0_HW0_LAST,
    IMM16_X1_HW0_LAST, IMM16_X0_HW1_LAST, IMM16_X1_HW1_LAST,
    IMM16_X0_HW2_LAST, IMM16_X1_HW2_LAST, IMM16_X0_HW0_PCREL,
    IMM16_X1_HW0_PCREL, IMM16_X0_HW1_PCREL, IMM16_X1_HW1_PCREL,
    IMM16_X0_HW2_PCREL, IMM16_X1_HW2_PCREL, IMM16_X0_HW3_PCREL,
    IMM16_X1_HW3_PCREL, IMM16_X0_HW0_LAST_PCREL,
    IMM16_X1_HW0_LAST_PCREL, IMM16_X0_HW1_LAST_PCREL,
    IMM16_X1_HW1_LAST_PCREL, IMM16_X0_HW2_LAST_PCREL,
    IMM16_X1_HW2_LAST_PCREL, IMM16_X0_HW0_GOT, IMM16_X1_HW0_GOT,
    IMM16_X0_HW1_GOT, IMM16_X1_HW1_GOT, IMM16_X0_HW2_GOT,
    IMM16_X1_HW2_GOT, IMM16_X0_HW3_GOT, IMM16_X1_HW3_GOT,
    IMM16_X0_HW0_LAST_GOT, IMM16_X1_HW0_LAST_GOT,
    IMM16_X0_HW1_LAST_GOT, IMM16_X1_HW1_LAST_GOT,
    IMM16_X0_HW2_LAST_GOT, IMM16_X1_HW2_LAST_GOT, IMM16_X0_HW0_TLS_GD,
    IMM16_X1_HW0_TLS_GD, IMM16_X0_HW1_TLS_GD, IMM16_X1_HW1_TLS_GD,
    IMM16_X0_HW2_TLS_GD, IMM16_X1_HW2_TLS_GD, IMM16_X0_HW3_TLS_GD,
    IMM16_X1_HW3_TLS_GD, IMM16_X0_HW0_LAST_TLS_GD,
    IMM16_X1_HW0_LAST_TLS_GD, IMM16_X0_HW1_LAST_TLS_GD,
    IMM16_X1_HW1_LAST_TLS_GD, IMM16_X0_HW2_LAST_TLS_GD,
    IMM16_X1_HW2_LAST_TLS_GD, IMM16_X0_HW0_TLS_IE,
    IMM16_X1_HW0_TLS_IE, IMM16_X0_HW1_TLS_IE, IMM16_X1_HW1_TLS_IE,
    IMM16_X0_HW2_TLS_IE, IMM16_X1_HW2_TLS_IE, IMM16_X0_HW3_TLS_IE,
    IMM16_X1_HW3_TLS_IE, IMM16_X0_HW0_LAST_TLS_IE,
    IMM16_X1_HW0_LAST_TLS_IE, IMM16_X0_HW1_LAST_TLS_IE,
    IMM16_X1_HW1_LAST_TLS_IE, IMM16_X0_HW2_LAST_TLS_IE,
    IMM16_X1_HW2_LAST_TLS_IE, TLS_DTPMOD64, TLS_DTPOFF64, TLS_TPOFF64,
    TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
    * targets.c (bfd_elf32_tilegx_vec): Declare.
    (bfd_elf32_tilepro_vec): Declare.
    (bfd_elf64_tilegx_vec): Declare.
    (bfd_target_vector): Add bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
    and bfd_elf64_tilegx_vec.
    * cpu-tilegx.c: New file.
    * cpu-tilepro.c: New file.
    * elf32-tilepro.h: New file.
    * elf32-tilepro.c: New file.
    * elf32-tilegx.c: New file.
    * elf32-tilegx.h: New file.
    * elf64-tilegx.c: New file.
    * elf64-tilegx.h: New file.
    * elfxx-tilegx.c: New file.
    * elfxx-tilegx.h: New file.

* Makefile.am (TARGET_CPU_CFILES): Add config/tc-tilegx.c and
config/tc-tilepro.c.
(TARGET_CPU_HFILES): Add config/tc-tilegx.h and
config/tc-tilepro.h.
* Makefile.in: Regenerate.
* configure.tgt (tilepro-*-*): New.
(tilegx-*-*): Likewise.
* config/tc-tilegx.c: New file.
* config/tc-tilegx.h: Likewise.
* config/tc-tilepro.h: Likewise.
* config/tc-tilepro.c: Likewise.
* doc/Makefile.am (CPU_DOCS): Add c-tilegx.texi and
c-tilepro.texi.
* doc/Makefile.in: Regenerate.
* doc/all.texi (TILEGX): Define.
(TILEPRO): Define.
* doc/as.texinfo: Add Tile-Gx and TILEPro documentation.  Include
c-tilegx.texi and c-tilepro.texi.
* doc/c-tilegx.texi: New.
* doc/c-tilepro.texi: New.

        * gas/tilepro/t_constants.s: New file.
* gas/tilepro/t_constants.d: Likewise.
* gas/tilepro/t_insns.s: Likewise.
* gas/tilepro/tilepro.exp: Likewise.
* gas/tilepro/t_insns.d: Likewise.
* gas/tilegx/tilegx.exp: Likewise.
* gas/tilegx/t_insns.d: Likewise.
* gas/tilegx/t_insns.s: Likewise.

* dis-asm.h (print_insn_tilegx): Declare.
(print_insn_tilepro): Likewise.

* tilegx.h: New file.
* tilepro.h: New file.

* common.h: Add EM_TILEGX.
* tilegx.h: New file.
* tilepro.h: New file.

* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
eelf32tilepro.c.
(ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
(eelf32tilegx.c): New target.
(eelf32tilepro.c): Likewise.
(eelf64tilegx.c): Likewise.
* Makefile.in: Regenerate.
* configure.tgt: Handle tilegx-*-* and tilepro-*-*.
* emulparams/elf32tilegx.sh: New file.
* emulparams/elf64tilegx.sh: New file.
* emulparams/elf32tilepro.sh: New file.

* ld-elf/eh5.d: Don't run on tile*.
* ld-srec/srec.exp: xfail on tile*.
* ld-tilegx/external.s: New file.
* ld-tilegx/reloc.d: New file.
* ld-tilegx/reloc.s: New file.
* ld-tilegx/tilegx.exp: New file.
* ld-tilepro/external.s: New file.
* ld-tilepro/reloc.d: New file.
* ld-tilepro/reloc.s: New file.
* ld-tilepro/tilepro.exp: New file.

* Makefile.am (TARGET_LIBOPCODES_CFILES): Add tilegx-dis.c,
tilegx-opc.c, tilepro-dis.c, and tilepro-opc.c.
* Makefile.in: Regenerate.
* configure.in: Handle bfd_tilegx_arch and bfd_tilepro_arch.
* configure: Regenerate.
* disassemble.c (disassembler): Add ARCH_tilegx and ARCH_tilepro.
* po/POTFILES.in: Regenerate.
* tilegx-dis.c: New file.
* tilegx-opc.c: New file.
* tilepro-dis.c: New file.
* tilepro-opc.c: New file.

13 years agoRename FH_BAD to FH_NADA throughout.
Christopher Faylor [Sun, 12 Jun 2011 20:15:26 +0000 (20:15 +0000)]
Rename FH_BAD to FH_NADA throughout.
* devices.h (FH_ERROR): New value.
(iscons_dev): Extend to detect all the console device types.
* devices.in: Set aside storage for FH_ERROR.
* dtable.cc (dtable::init_std_file_from_handle): Use iscons_dev to detect when
device is a console.
(fh_alloc): Pass device to console constructor.
(build_fh_pc): Short circuit when we detect that the constructor saw an error.
* fhandler.h (fhandler_console::fhandler_console): Accept fh_devices parameter.
(get_tty_stuff): Change to void.
* fhandler_console (fhandler_console::set_unit): Set device to FH_ERROR on
attempt to access anything other than the current console.
(fhandler_console::get_tty_stuff): Change to void return.
(fhandler_console::open): Return EPERM on FH_ERROR device type.
(fhandler_console::fhandler_console): Set the device type appropriately before
calling get_tty_stuff and rely on that function to reset it if necessary.

13 years ago2011-06-09 Yaakov Selkowitz <yselkowitz@...>
Jeff Johnston [Fri, 10 Jun 2011 18:30:38 +0000 (18:30 +0000)]
2011-06-09  Yaakov Selkowitz  <yselkowitz@...>

        * libc/include/string.h (strdupa): New macro function.
        (strndupa): New macro function.

13 years ago* environ.cc (create_upcaseenv): Delete.
Christopher Faylor [Fri, 10 Jun 2011 15:06:13 +0000 (15:06 +0000)]
* environ.cc (create_upcaseenv): Delete.
(ucenv): Don't honor create_upcaseenv.
(environ_init): Remove early retrieval of CYGWIN environment variable.  Change
comment to reflect new behavior.

13 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
Christopher Faylor [Thu, 9 Jun 2011 21:20:27 +0000 (21:20 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
(child_info::old_title): Delete.
(child_info::~child_info_spawn): Remove recording of old_title.
* dcrt0.cc (title_buf): Delete.
(child_info_spawn::handle_spawn): Remove recording of old_title.
(dll_crt0_1): Get rid of all title handling.
(do_exit): Ditto.
* environ.cc (known): Delete strip_title and title.
* fhandler_console.cc (fhandler_console::write): Remove recording of old_title.
* globals.cc (exit_states): Remove ES_TITLE.
(display_title): Delete.
(strip_title_path): Delete.
(old_title): Delete.
* spawn.cc (spawn_guts): Remove old_title accommodation.

13 years ago* environ.cc (envcache): Delete.
Christopher Faylor [Thu, 9 Jun 2011 19:08:22 +0000 (19:08 +0000)]
* environ.cc (envcache): Delete.
(known): Remove envcache.
(getwinenv): Don't honor envcache setting.

13 years ago* environ.c: Move code earlier to allow:
Christopher Faylor [Thu, 9 Jun 2011 17:50:41 +0000 (17:50 +0000)]
* environ.c: Move code earlier to allow:
(_addenv): Call parse_options() when CYGWIN environment variable is being
changed.
(parse_options): Change parameter to 'const'.

13 years ago2011-06-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 9 Jun 2011 08:53:05 +0000 (08:53 +0000)]
2011-06-09  Tristan Gingold  <gingold@adacore.com>

* ia64.h (Elf64_External_VMS_ORIG_DYN_Note): New struct.

13 years ago* environ.cc (tty_is_gone): Add missing space to message.
Christopher Faylor [Wed, 8 Jun 2011 19:51:15 +0000 (19:51 +0000)]
* environ.cc (tty_is_gone): Add missing space to message.

13 years ago* environ.cc (settings::set_process_state): Delete.
Christopher Faylor [Wed, 8 Jun 2011 19:27:48 +0000 (19:27 +0000)]
* environ.cc (settings::set_process_state): Delete.
(tty_is_gone): New function.
(known): Change "tty" to call tty_is_gone().  Remove unneeded '&' from
beginning of function address.
(parse_options): Remove set_process_state handling.
* shared_info.h (CURR_USER_MAGIC): Reset.
(user_info::warned_notty): New member.

13 years ago* fhandler_console.cc (fhandler_console::open_shared_console): Semi-revert to
Christopher Faylor [Tue, 7 Jun 2011 20:55:10 +0000 (20:55 +0000)]
* fhandler_console.cc (fhandler_console::open_shared_console): Semi-revert to
using fixed location for console stuff.
* shared.cc (offsets): Ditto.  Comment.
* shared_info (shared_locations): Re-add SH_SHARED_CONSOLE.

13 years agoSync from upstream:
Nick Clifton [Mon, 6 Jun 2011 10:36:06 +0000 (10:36 +0000)]
Sync from upstream:
2011-06-03  Nick Clifton  <nickc@redhat.com>
    Ben Elliston  <bje@gnu.org>

* config.sub (v850e1, v850es, v850e2, v850e2v3): New.

2011-05-30  Chris Metcalf  <cmetcalf@tilera.com>
    Ben Elliston  <bje@gnu.org>

* config.guess (tile*:Linux:*:*): Use vendor "unknown", not
"tilera", for consistency with other architectures.
* config.sub (tile*-*, tilegx-*): Use a more general pattern for
"tile" to allow matching tilepro, tilegx32 and other variants.

13 years agowhitespace elimination
Christopher Faylor [Mon, 6 Jun 2011 05:02:13 +0000 (05:02 +0000)]
whitespace elimination

13 years ago* fhandler_disk_file.cc (fhandler_disk_file::pread): Reset windows file
Christopher Faylor [Mon, 6 Jun 2011 00:25:44 +0000 (00:25 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::pread): Reset windows file
position pointer back to previous location after successful read.

13 years ago* fhandler_console.cc (fhandler_console::open_shared_console): Don't zero
Christopher Faylor [Sun, 5 Jun 2011 02:10:31 +0000 (02:10 +0000)]
* fhandler_console.cc (fhandler_console::open_shared_console): Don't zero
handle to open_shared since it is supposed to be an input.
(enum_windows): Set handle input to open_shared to NULL since it does not
represent any previously opened shared region.
* shared.cc (open_shared): Tweak debugging output.

13 years ago* ntdll.h (FILE_PIPE_*): Define constants.
Christopher Faylor [Sat, 4 Jun 2011 01:06:17 +0000 (01:06 +0000)]
* ntdll.h (FILE_PIPE_*): Define constants.
* select.cc (pipe_data_available): Detect closing state.

13 years ago* pinfo.cc (_pinfo::set_ctty): Don't reset myself->{pgid,sid} if terminal has
Christopher Faylor [Sat, 4 Jun 2011 00:29:19 +0000 (00:29 +0000)]
* pinfo.cc (_pinfo::set_ctty): Don't reset myself->{pgid,sid} if terminal has
no pgid or sid settings.

13 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Only raise SIGPIPE
Christopher Faylor [Sat, 4 Jun 2011 00:12:29 +0000 (00:12 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Only raise SIGPIPE
when writing.
* fhandler.h: Include "tty.h".
(fhandler_termios::_tc): Rename from tc.
(fhandler_termios::tc): New method.
(fhandler_termios::tcinit): Remove an argument.
(fhandler_termios::get_ttyp): Use method to retrieve value.
(fhandler_console::console_state): Move here.
(fhandler_console::dev_state): Delete.
(fhandler_console::shared_console_info): Define.
(fhandler_console::open_shared_console): Move this function under
fhandler_console umbrella.
(fhandler_console::tc): Define.  Return static value.
(fhandler_console::focus_aware): Accommodate deletion of dev_state.
(fhandler_console): Add tty_list::get_cttyp as a friend.
* fhandler_console.cc (dev_state): Redefine as a pointer within
shared_console_info and change dev-> to dev.  throughout.
(fhandler_console::shared_console_info): Move into fhandler_console.
(fhandler_console::open_shared_console): Move into fhandler_console change
argument to simple bool.
(enum_windows): Accommodate changes to console_state and open_shared_console.
(console_unit::console_unit): Ditto.
(fhandler_console::get_tty_stuff): Accommodate change to dev_state.
(tty_list::get_cttyp): Accommodate change to
handler_console::shared_console_info.
(fhandler_console::read): Accommodate change from tc to tc ().
(fhandler_console::set_input_state): Ditto.
(fhandler_console::open): Accommodate tcinit argument change and change from tc
to tc().
(fhandler_console::input_tcsetattr): Accomodate change from tc to tc().
(fhandler_console::input_tcsetattr): Ditto.
(fhandler_console::write_normal): Ditto.
(fhandler_console::init): Ditto.
(fhandler_console::igncr_enabled): Ditto.
* fhandler_termios.cc (fhandler_termios::tcinit): Remove first argument.
Expect tc() to have been set up first.  Use tc() rather than tc.
(fhandler_termios::tcsetpgrp): Accomodate change from tc to tc().
(fhandler_termios::tcgetpgrp): Ditto.
(fhandler_termios::bg_check): Ditto.
(fhandler_termios::line_edit: Ditto.
(fhandler_tty_master::set_winsize): Ditto.
(fhandler_tty_slave::open): Ditto.
(fhandler_tty_slave::init): Ditto.
(fhandler_pty_master::write): Ditto.
(fhandler_pty_master::setup): Ditto.  Accommodate change in arguments to
tcinit.
(fhandler_tty_slave::fch_open_handles): Set _tc directly.
(tty_min::is_orphaned_process_group): Don't assume that parent pid exists.
* pinfo.cc (_pinfo::set_ctty): Reset myself->{pgid,sid} here if we were started
by a non-Cygwin process but the tty exists.
* shared_info.h (console_state): Delete from here.
* tty.h: Make multiple inclusion safe.

13 years agoFix spelling mistakes.
Nick Clifton [Thu, 2 Jun 2011 13:43:23 +0000 (13:43 +0000)]
Fix spelling mistakes.

13 years ago* exceptions.cc (ctrl_c_handler): Simplify test for no parent tty.
Christopher Faylor [Wed, 1 Jun 2011 01:47:51 +0000 (01:47 +0000)]
* exceptions.cc (ctrl_c_handler): Simplify test for no parent tty.
* fhandler_console.cc (fhandler_console::get_tty_stuff): Return NULL if ctty is
not tty/console.  Improve test for slave tty/pty device.

13 years ago* external.cc (fillout_pinfo): Don't truncate ctty if it's < 0.
Christopher Faylor [Wed, 1 Jun 2011 01:20:28 +0000 (01:20 +0000)]
* external.cc (fillout_pinfo): Don't truncate ctty if it's < 0.
* select.cc (pipe_data_available): Avoid printing debug info by default or
suffer very large strace files.

13 years ago* select.cc (pipe_data_available): New function - uses NtQueryInformationFile
Christopher Faylor [Wed, 1 Jun 2011 00:57:49 +0000 (00:57 +0000)]
* select.cc (pipe_data_available): New function - uses NtQueryInformationFile
to return information about pipes.
(peek_pipe): Rewrite to use pipe_data_available for both read and write tests.

13 years agoCorrect checking for short option matches in getopt_long_only().
Keith Marshall [Tue, 31 May 2011 20:24:51 +0000 (20:24 +0000)]
Correct checking for short option matches in getopt_long_only().

13 years ago2011-05-31 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 31 May 2011 14:12:55 +0000 (14:12 +0000)]
2011-05-31  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (arm_cpus): Add Cortex-R5.
(arm_extensions): Allow idiv on ARMv7-R.
* doc/c-arm.text: Update idiv extension restrictions.

gas/testsuite/
* gas/arm/arm-idiv-bad.d: New test.
* gas/arm/arm-idiv-bad.s: New test.
* gas/arm/arm-idiv-bad.l: New test.
* gas/arm/arm-idiv.d: New test.
* gas/arm/arm-idiv.s: New test.

include/
* opcode/arm.h (ARM_ARCH_V7R_IDIV): Define.

13 years ago2011-05-31 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 31 May 2011 14:07:57 +0000 (14:07 +0000)]
2011-05-31  Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion
for known functions.
(elf32_arm_swap_symbol_in): Only set ST_BRANCH_TO_ARM for function
symbols.

include/elf/
* arm.h (arm_st_branch_type): Add ST_BRANCH_UNKNOWN.

ld/testsuite/
* ld-arm/cortex-a8-far.d: Adjust expected output.
* ld-arm/arm-call1.s: Give function symbol correct type.
* ld-arm/arm-call2.s: Ditto.
* ld-arm/farcall-group4.s: Ditto.
* ld-arm/arm-elf.exp (cortex-a8-far): Define far symbols with correct
type via assembly file.
* ld-arm/cortex-a8-far-3.s: New file.
* ld-arm/abs-call-1.s: Add Thumb tests

13 years ago* dtable.cc (dtable::select_write): Add missing argument to debug_printf.
Christopher Faylor [Tue, 31 May 2011 00:26:37 +0000 (00:26 +0000)]
* dtable.cc (dtable::select_write): Add missing argument to debug_printf.
* fhandler.cc (fhandler_base_overlapped::setup_overlapped): Explicitly set
io_pending to false.
(fhandler_base_overlapped::has_ongoing_io): Call GetOverlappedResult to force
completion of I/O.
(fhandler_base_overlapped::wait_overlapped): Rewrite to correctly deal with
nonblocking reads and to make more race proof.
(fhandler_base_overlapped::raw_write): Deal with new enum values.
(fhandler_base_overlapped::raw_read): Ditto.  Don't deal with ongoing I/O here
since it makes no sense in the read context.
* fhandler.h (enum wait_return): Add overlapped_unknown,
overlapped_nonblocking_no_data.
* pipe.cc (pipe): Add debugging output.

13 years ago* dll_init.cc (dll_list::append): Eliminate increment of unused tot variable.
Christopher Faylor [Mon, 30 May 2011 17:16:24 +0000 (17:16 +0000)]
* dll_init.cc (dll_list::append): Eliminate increment of unused tot variable.
* dll_init.h (dll_list::tot): Delete.
(dll_list::populate_all_deps): Delete undefined function.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Move EPIPE handling
under error condition.

13 years ago* dll_init.cc (reserve_upto): Remove.
Christopher Faylor [Mon, 30 May 2011 16:09:29 +0000 (16:09 +0000)]
* dll_init.cc (reserve_upto): Remove.
(release_upto): Ditto.
(dll_list::reserve_space): New function to reserve space needed by DLL_LOAD
dlls early in the fork process.
(dll_list::load_after_fork): Rewrite to use recursion to track reservations it
makes while trying to make dlls land where they belong.
(dll_list::load_after_fork_impl): New function used by load_after_fork.
(dll_list::alloc): Initialize image base field.
* dll_init.h (dll_list::prefered_base): New field.
(dll_list::reserve_space): Declare new function.
(dll_list::load_after_fork): Declare new function.
* fork.cc (frok::child): call dll_list::reserve_space early, so we can retry if
it fails.

13 years ago* fhandler_termios.cc (fhandler_termios::bg_check): Do not return EIO when a
Christopher Faylor [Mon, 30 May 2011 06:58:00 +0000 (06:58 +0000)]
* fhandler_termios.cc (fhandler_termios::bg_check): Do not return EIO when a
process group has no leader as this is allowed and does not imply an orphaned
process group.  Add a test for orphaned process groups.
(tty_min::is_orphaned_process_group): Define new function.
* tty.h (tty_min::is_orphaned_process_group): Define new function.

13 years ago* dll_init.cc (dll_list::find_by_modname): New function to search the dll list
Christopher Faylor [Mon, 30 May 2011 06:52:12 +0000 (06:52 +0000)]
* dll_init.cc (dll_list::find_by_modname): New function to search the dll list
for a module name only (no path).
(dll_list::alloc): Initialize newly-added members of struct dll.
(dll_list::append): New function to factor out the append operation
(used by dll_list::topsort).
(dll_list::populate_deps): New function to identify dll dependencies.
(dll_list::topsort): New function to sort the dll list topologically by
dependencies.
(dll_list::topsort_visit): New helper function for the above.
* dll_init.h (dll::ndeps): New class member.
(dll::deps): Ditto.
(dll::modname): Ditto.
(dll_list::find_by_modname): New function related to topsort.
(dll_list::populate_all_deps): Ditto.
(dll_list::populate_deps): Ditto.
(dll_list::topsort): Ditto.
(dll_list::topsort_visit): Ditto.
(dll_list::append): Ditto.
(pefile): New struct allowing simple introspection of dll images.
* fork.cc (fork): Topologically sort the dll list before forking
* child_info.h (CURR_CHILD_INFO_MAGIC): Refresh.
(child_info::refresh_cygheap): New function.
* spawn.cc (spawn_guts): Call refresh_cygheap before creating a new process to
ensure that cygheap_max is up-to-date.
* fork.cc (frok::parent): Ditto.

13 years ago* cygheap.cc (cygheap_dummy): Rename from cygheap_at_start.
Christopher Faylor [Mon, 30 May 2011 06:24:53 +0000 (06:24 +0000)]
* cygheap.cc (cygheap_dummy): Rename from cygheap_at_start.
(cygheap): Accommodate name change to cygheap_dummy.
(cygheap_init): Ditto.
(cygheap_fixup_in_child): Simplify slightly.
* fork.cc (fork): Add an advisory comment.

13 years ago* fhandler.cc (fhandler_overlapped::wait_overlapped): Make sure that I/O is
Christopher Faylor [Sun, 29 May 2011 15:30:27 +0000 (15:30 +0000)]
* fhandler.cc (fhandler_overlapped::wait_overlapped): Make sure that I/O is
cancelled on signal.

13 years ago* ps.cc (ttynam): Accommodate new console numbering.
Christopher Faylor [Sun, 29 May 2011 15:20:10 +0000 (15:20 +0000)]
* ps.cc (ttynam): Accommodate new console numbering.
(main): Ditto.

13 years ago* dll_init.cc (dll_list::alloc): Initialize dll::image_size.
Christopher Faylor [Sat, 28 May 2011 20:55:34 +0000 (20:55 +0000)]
* dll_init.cc (dll_list::alloc): Initialize dll::image_size.
(reserve_at): Don't reserve space needed by the target dll if the latter
overlaps the free region to be blocked.
(dll_list::load_after_fork): Use new version of reserve_at.
* dll_init.h (dll::image_size): New member.
(pefile): New struct.

This page took 0.073364 seconds and 5 git commands to generate.