]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years agoconfig/:
Andreas Schwab [Tue, 20 Dec 2011 17:01:29 +0000 (17:01 +0000)]
config/:
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in
expr call.
libdecnumber/:
* configure: Regenerate.
libiberty/:
* configure: Regenerate.

12 years ago * fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double free in
Corinna Vinschen [Tue, 20 Dec 2011 09:06:58 +0000 (09:06 +0000)]
* fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double free in
fclose.  Enhance comment.

12 years ago2011-12-19 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 19 Dec 2011 22:03:51 +0000 (22:03 +0000)]
2011-12-19  Jeff Johnston  <jjohnstn@redhat.com>

        * NEWS: Update with 1.20.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.20.0.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * Makefile.in: Regenerated.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
        * libm/libm.texinfo: Ditto.
        * libc/sys/linux/shared.ld: Add VERS_1.20

12 years ago * syscalls.cc (rename): Fix typo in comment. Fix condition to handle
Corinna Vinschen [Mon, 19 Dec 2011 17:01:37 +0000 (17:01 +0000)]
* syscalls.cc (rename): Fix typo in comment.  Fix condition to handle
the case oldpath is no .lnk symlink and newpath points to an existing
.lnk symlink or .exe file and no explicit .lnk suffix has been given
in oldpath.  Add a comment to explain.

12 years agoCheck for warning flags without no- prefix
Andreas Schwab [Mon, 19 Dec 2011 13:20:23 +0000 (13:20 +0000)]
Check for warning flags without no- prefix

config/:
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS)
(ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Run the test without the
no- prefix.
libdecnumber/:
* configure: Regenerate.
libiberty/:
* configure: Regenerate.

12 years ago * dcrt0.cc (dll_crt0_0): Check for wincap.wow64_has_secondary_stack
Corinna Vinschen [Mon, 19 Dec 2011 12:50:35 +0000 (12:50 +0000)]
* dcrt0.cc (dll_crt0_0): Check for wincap.wow64_has_secondary_stack
rather than for wincap.is_wow64.  Accommodate name change from
wow64_has_64bit_parent to wow64_needs_stack_adjustment.  Align comment.
(_dll_crt0): Ditto.
* wincap.h (wincaps::wow64_has_secondary_stack): New element.
* wincap.cc: Implement above element throughout.
(wincapc::init): Set wow64_has_secondary_stack to false on non-64 bit
systems.
* wow64.cc (wow64_needs_stack_adjustment): Rename (hopefully the last
time) from wow64_has_64bit_parent.
(wow64_eval_expected_main_stack): Fix comment to reflect real life.
(wow64_test_for_64bit_parent): Fix comment.
* wow64.h (wow64_needs_stack_adjustment): Accommodate new name.

12 years ago2011-12-19 Chung-Lin Tang <cltang@codesourcery.com>
Chung-Lin Tang [Mon, 19 Dec 2011 07:58:02 +0000 (07:58 +0000)]
2011-12-19  Chung-Lin Tang  <cltang@codesourcery.com>

gas/
* config/tc-mips.c (mips_pseudo_table): Add tprelword/tpreldword
entries.
(mips16_percent_op): Add MIPS16 TLS relocation ops.
(md_apply_fix): Add BFD_RELOC_MIPS16_TLS_* switch cases.
(s_tls_rel_directive): Rename from s_dtprel_internal(). Abstract out
directive string and reloc type as function parameters. Update
comments.
(s_dtprelword,s_dtpreldword): Change to use s_tls_rel_directive().
(s_tprelword,s_tpreldword): New functions.

include/
* elf/mips.h (elf_mips_reloc_type): Add R_MIPS16_TLS_* entries.

bfd/
* reloc.c (BFD_RELOC_MIPS16_TLS_GD,BFD_RELOC_MIPS16_TLS_LDM,
BFD_RELOC_MIPS16_TLS_DTPREL_HI16,BFD_RELOC_MIPS16_TLS_DTPREL_LO16,
BFD_RELOC_MIPS16_TLS_GOTTPREL,BFD_RELOC_MIPS16_TLS_TPREL_HI16,
BFD_RELOC_MIPS16_TLS_TPREL_LO16): New relocations for MIPS16 TLS.
* bfd-in2.h (bfd_reloc_code_real): Regenerate.
* libbfd.h (bfd_reloc_code_real_names): Regenerate.
* elf32-mips.c (elf_mips16_howto_table_rel): Add R_MIPS16_TLS_*
entries.
(mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
mappings.
* elfn32-mips.c (elf_mips16_howto_table_rel,
elf_mips16_howto_table_rela): Add R_MIPS16_TLS_* entries.
(mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
mappings.
* elf64-mips.c (mips16_elf64_howto_table_rel,
mips16_elf64_howto_table_rela): Add R_MIPS16_TLS_* entries.
(mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
mappings.
* elfxx-mips.c (TLS_RELOC_P,mips16_reloc_p,
_bfd_mips_elf_check_relocs): Add cases for R_MIPS16_TLS_* relocations.
(tls_gd_reloc_p): Add R_MIPS16_TLS_GD case.
(tls_ldm_reloc_p): Add R_MIPS16_TLS_LDM case.
(tls_gottprel_reloc_p): Add R_MIPS16_TLS_GOTTPREL case.
(mips_elf_calculate_relocation): Add cases for R_MIPS16_TLS_*,
R_MIPS_TLS_DTPREL32/64, and R_MIPS_TLS_TPREL32/64 relocations.

12 years agoclarify entry
Christopher Faylor [Mon, 19 Dec 2011 00:15:24 +0000 (00:15 +0000)]
clarify entry

12 years agolibgloss: bfin: add clear_cache_range support (for gcc)
Michael Frysinger [Sun, 18 Dec 2011 18:41:20 +0000 (18:41 +0000)]
libgloss: bfin: add clear_cache_range support (for gcc)

12 years ago * configure: Regenerate.
Eric Botcazou [Sun, 18 Dec 2011 10:20:52 +0000 (10:20 +0000)]
* configure: Regenerate.
config/
* acx.m4 (Test for GNAT): Update comment and add quotes in final test.

12 years ago* fhandler.cc (fhandler_base::close): Move setting isclosed() from here to
Christopher Faylor [Sun, 18 Dec 2011 04:07:47 +0000 (04:07 +0000)]
* fhandler.cc (fhandler_base::close): Move setting isclosed() from here to
closed().
(fhandler_base_overlapped::close): Correct comment.
(fhandler_base_overlapped::destroy_overlapped): Signal overlapped event before
closing it to potentially wake up a waiting thread.
(fhandler_base_overlapped::wait_overlapped): Expand setting of err when closed
to encompass non-signal event.  Test for a cancel event before making
nonblocking decisions.
* syscalls.cc (close): Set closed flag here so that any concurrently executing
functions will be notified ASAP.

12 years agoClean up whitespace.
Christopher Faylor [Sat, 17 Dec 2011 23:39:47 +0000 (23:39 +0000)]
Clean up whitespace.

12 years ago * dcrt0.cc (_dll_crt0): Fix formatting.
Corinna Vinschen [Sat, 17 Dec 2011 10:24:09 +0000 (10:24 +0000)]
* dcrt0.cc (_dll_crt0): Fix formatting.

12 years ago * wow64.cc (wow64_revert_to_original_stack): Fix comment.
Corinna Vinschen [Sat, 17 Dec 2011 10:05:25 +0000 (10:05 +0000)]
* wow64.cc (wow64_revert_to_original_stack): Fix comment.
* wow64.h (wow64_respawn_process): Declare noreturn.

12 years ago* exceptions.cc (set_signal_mask): Remove useless debugging output.
Christopher Faylor [Sat, 17 Dec 2011 07:01:21 +0000 (07:01 +0000)]
* exceptions.cc (set_signal_mask): Remove useless debugging output.
* fhandler.cc (fhandler_base::write): Ditto.
(fhandler_base_overlapped::close): Cancel any ongoing I/O before closing.
* syscalls.cc (write): Default to always reporting all writes in strace output
via syscall_printf.
* wait.cc (wait4): Fix debugging output.  Use standard syscall leaver output.

12 years agoFix formatting. Fix typo.
Christopher Faylor [Sat, 17 Dec 2011 00:15:31 +0000 (00:15 +0000)]
Fix formatting.  Fix typo.

12 years agoImplement fhandler reference counting.
Christopher Faylor [Sat, 17 Dec 2011 00:03:31 +0000 (00:03 +0000)]
Implement fhandler reference counting.
* cygheap.h
(cygheap_fdmanip::release): Make virtual.
(cygheap_fdnew::~cygheap_fdnew): New destructor increments reference count when
fd has been allocated.
(cygheap_fdget::fh): New (old?) field.
(cygheap_fdget::cygheap_fdget): Increment reference count when we've found an
active fd.  Set fh appropriately.
(cygheap_fdget::~cygheap_fdget): Decrement reference count when appropriate.
Delete fh if reference count goes to zero.
(cygheap_fdget::release): New function.  Do more bookkeping on release.
* dtable.cc (dtable::release): Change from void to boolean return.  Only delete
the fhandler when its reference count is <= 0 (this should be a fairly unusual
case).  Return true if fhandler has been deleted.
(cygwin_attach_handle_to_fd): Increment reference count when fh is assigned.
(dtable::init_std_file_from_handle): Ditto.
* dtable.h (dtable::release): Change return to boolean.
* fhandler.cc (fhandler_base::fhandler_base): Set new isclosed flag to false.
Set _refcnt to zero.
(fhandler_base::close): Simplify paranoid debugging output.  Set new isclosed()
flag.
(fhandler_base_overlapped::wait_overlapped): Use isclosed() flag to avoid
querying the exception handle.
* fhandler.h (fhandler_base::_refcnt): New field.
(fhandler_base::refcnt): New function.
(fhandler_base::isclosed): Implement.
(fhandler_base::fhandler_base): Set isclosed to false.
* syscalls.cc: Remove space after function before parentheses for several
strace printfs.
(dup): Add standard strace "leaver" code.
(dup2): Ditto.
(dup3): Ditto.
(remove): Ditto.
(getpid): Ditto.
(getppid): Ditto.
(lseek64): Fix strace debugging to correctly use %R.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Avoid sending signals to
other processes if we're debugging since it can cause a deadlock with the
calling debugger.
* exceptions.cc (_cygtls::call_signal_handler): Add debugging-only strace
output.

12 years ago * dcrt0.cc (child_info_fork::alloc_stack): Correctly check if the
Corinna Vinschen [Fri, 16 Dec 2011 18:09:43 +0000 (18:09 +0000)]
* dcrt0.cc (child_info_fork::alloc_stack): Correctly check if the
parent stack fits into the child stack.  Align comment.
* wow64.cc (wow64_eval_expected_main_stack): New function to fetch
expected addresses of main thread stack from PE/COFF image header
values.
(wow64_test_for_64bit_parent): Fix comment.  Check current stack
against real expected main thread stack addresses.
(wow64_revert_to_original_stack): Fix and add comments. Check memory
against real expected main thread stack addresses.  Use orignal stack
if reserved area is >= 256K.

12 years ago* gendef (sigdelayed): Remember to pop all of the saved registers.
Christopher Faylor [Fri, 16 Dec 2011 16:32:25 +0000 (16:32 +0000)]
* gendef (sigdelayed): Remember to pop all of the saved registers.
(sigreturn): Add "leave" label.

12 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix unresolved
Christopher Faylor [Fri, 16 Dec 2011 16:29:34 +0000 (16:29 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Fix unresolved
access of wores in successful situations.

12 years ago * Makefile.in (DLL_OFILES): Add wow64.o.
Corinna Vinschen [Fri, 16 Dec 2011 11:58:03 +0000 (11:58 +0000)]
* Makefile.in (DLL_OFILES): Add wow64.o.
* dcrt0.cc (CYGWIN_GUARD): Drop execute permission for stack, it's
not used for stacks by the OS either.
(child_info_fork::alloc_stack_hard_way): Ditto.
(child_info_fork::alloc_stack): Don't alloc_stack_hard_way under WOW64
if forked from a 64 bit parent.  Set child's StackBase to parent's
StackBase.  Add comments to explain why.
(wow64_respawn): Move to wow64.cc.
(wow64_started_from_native64): Move to wow64.cc.
(respawn_wow64_process): Move to wow64.cc.
(dll_crt0_0): Drop wow64_test_stack_marker and move stack test into
wow64_test_for_64bit_parent function.  Don't return early if WOW64
process has been started from native 64 bit process.
(_dll_crt0): Implement moving stack for WOW64 processes started from
native 64 bit process.
* wow64.cc: New file.
(wow64_has_64bit_parent): Rename from wow64_respawn.
(wow64_test_for_64bit_parent): Rename from wow64_started_from_native64.
Change comment.
(wow64_revert_to_original_stack): New function.
(wow64_respawn_process): Rename from respawn_wow64_process for symmetry.
* wow64.h: New file.

12 years agobinutils/
Tristan Gingold [Fri, 16 Dec 2011 10:23:01 +0000 (10:23 +0000)]
binutils/
2011-12-16  Tristan Gingold  <gingold@adacore.com>

* od-macho.c: Include mach-o/codesign.h
(OPT_CODESIGN): Define.
(options): Add an entry for codesign.
(mach_o_help): Likewise.
(dump_header): Fix indentation.
(dump_thread): Do not test result of xmalloc.
(bfd_mach_o_cs_magic, bfd_mach_o_cs_hash_type): New.
(dump_code_signature_superblob): New function.
(swap_code_codedirectory_v1_in): Likewise.
(hexdump): Likewise.
(dump_code_signature_codedirectory): Likewise.
(dump_code_signature_blob, dump_code_signature): Likewise.
(dump_load_command): Dump code signature.
(mach_o_dump): Likewise.

include/mach-o/
2011-12-16  Tristan Gingold  <gingold@adacore.com>

* codesign.h: New file.

12 years ago* exceptions.cc (_cygtls::call_signal_handler): Fix debugging to not go to
Christopher Faylor [Fri, 16 Dec 2011 05:27:15 +0000 (05:27 +0000)]
* exceptions.cc (_cygtls::call_signal_handler): Fix debugging to not go to
console.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Add temporary kludge
to work around problem of make closing a handler while it is being read.
* gendef (sigdelayed): Don't call a function if sig has been cleared.
* sigproc.h (cygwait): Simplify slightly.

12 years ago2011-12-15 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 15 Dec 2011 22:59:14 +0000 (22:59 +0000)]
2011-12-15  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.LIBGLOSS: Add GPL with exception license.

12 years ago2011-12-15 Konrad Eisele <konrad@gaisler.com>
Jeff Johnston [Thu, 15 Dec 2011 22:58:40 +0000 (22:58 +0000)]
2011-12-15  Konrad Eisele <konrad@gaisler.com>

        * configure.in: Add SPARC LEON support.
        * configure: Regenerated.
        * sparc_leon/asm-leon/amba.h, sparc_leon/asm-leon/asmmacro.h,
        sparc_leon/asm-leon/clock.h, sparc_leon/asm-leon/contextswitch.h,
        sparc_leon/asm-leon/elfmacro.h, sparc_leon/asm-leon/head.h,
        sparc_leon/asm-leon/irq.h, sparc_leon/asm-leon/jiffies.h,
        sparc_leon/asm-leon/lambapp.h, sparc_leon/asm-leon/lambapp_devs.h,
        sparc_leon/asm-leon/leon.h, sparc_leon/asm-leon/leon3.h,
        sparc_leon/asm-leon/leonbare_debug.h, sparc_leon/asm-leon/leonbare_kernel.h,
        sparc_leon/asm-leon/leonbare_kernel_queue.h, sparc_leon/asm-leon/leoncompat.h,
        sparc_leon/asm-leon/leondbg.h, sparc_leon/asm-leon/leonstack.h,
        sparc_leon/asm-leon/liblocks.h, sparc_leon/asm-leon/linkage.h,
        sparc_leon/asm-leon/param.h, sparc_leon/asm-leon/queue.h,
        sparc_leon/asm-leon/spinlock.h, sparc_leon/asm-leon/stack.h,
        sparc_leon/asm-leon/time.h, sparc_leon/asm-leon/timer.h,
        sparc_leon/asm-leon/types.h, sparc_leon/asm-leon/winmacros.h:
        New file.
        * sparc_leon/Makefile.in, sparc_leon/_exit.c,
        sparc_leon/amba.c, sparc_leon/amba_dbg.c,
        sparc_leon/amba_driver.c, sparc_leon/amba_scan.c,
        sparc_leon/asm-leon, sparc_leon/bdinit.S,
        sparc_leon/busscan.S, sparc_leon/cacheA.S,
        sparc_leon/catch_interrupt.c, sparc_leon/catch_interrupt_mvt.c,
        sparc_leon/catch_interrupt_pending.c, sparc_leon/catch_interrupt_svt.c,
        sparc_leon/configure.in,
        sparc_leon/console.c, sparc_leon/console_dbg.c,
        sparc_leon/console_init.c, sparc_leon/contextswitch.c,
        sparc_leon/contextswitch_asm.S, sparc_leon/crt0.S,
        sparc_leon/crti.S, sparc_leon/crtn.S,
        sparc_leon/etrap.S, sparc_leon/etrap_fast.S,
        sparc_leon/fpu.S, sparc_leon/gettimeofday.c,
        sparc_leon/initcalls.c, sparc_leon/io.c,
        sparc_leon/irqinstall.S, sparc_leon/irqtrap.S,
        sparc_leon/irqtrap_fast.S, sparc_leon/jiffies.c,
        sparc_leon/kernel.c, sparc_leon/kernel_context.S,
        sparc_leon/kernel_debug.c, sparc_leon/kernel_debug_var.c,
        sparc_leon/kernel_mm.c, sparc_leon/kernel_mutex.c,
        sparc_leon/kernel_queue.c, sparc_leon/kernel_sched.c,
        sparc_leon/kernel_thread.c, sparc_leon/lcpuinit.S,
        sparc_leon/locore.S, sparc_leon/locore_atexit.c,
        sparc_leon/locore_clean.S, sparc_leon/locore_mvt.S,
        sparc_leon/locore_mvt_reset.S, sparc_leon/locore_svt.S,
        sparc_leon/locore_svt_reset.S, sparc_leon/locore_svtdisp.S,
        sparc_leon/locore_var.S, sparc_leon/locore_var_svt.S,
        sparc_leon/mmu_asm.S, sparc_leon/mutex.c,
        sparc_leon/nocache.S, sparc_leon/pnpinit.c,
        sparc_leon/pnpinit_malloc.c, sparc_leon/pnpinit_simple.c,
        sparc_leon/regwin.S, sparc_leon/regwin_patch.c,
        sparc_leon/regwin_slow.S, sparc_leon/regwinflush.S,
        sparc_leon/rtc.c, sparc_leon/rtrap.S,
        sparc_leon/rtrap_fast.S, sparc_leon/stop.S,
        sparc_leon/timer.c, sparc_leon/times.c:
        New file
        * sparc_leon/configure: Regenerate

12 years ago Don't leave Windows 2000 behind.
Corinna Vinschen [Wed, 14 Dec 2011 20:23:27 +0000 (20:23 +0000)]
Don't leave Windows 2000 behind.

* autoload.cc (GetSystemWow64DirectoryW): Define.
(GetVolumePathNamesForVolumeNameW): Define.
* fhandler_process.cc (get_volume_path_names_for_volume_name): New
static function to workaround missing GetVolumePathNamesForVolumeNameW
function in Windows 2000.
(dos_drive_mappings::dos_drive_mappings): Call
get_volume_path_names_for_volume_name instead of
GetVolumePathNamesForVolumeNameW.

12 years agobfd/
Tristan Gingold [Wed, 14 Dec 2011 10:30:09 +0000 (10:30 +0000)]
bfd/
2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o-i386.c (text_section_names_xlat): New table.
(data_section_names_xlat): Likewise.
(import_section_names_xlat): Likewise.
(mach_o_i386_segsec_names_xlat): Likewise.
(bfd_mach_o_tgt_seg_table): Use new tables.
* mach-o-x86-64.c (bfd_mach_o_tgt_seg_table): Set NULL.
* mach-o.c (mach_o_section_name_xlat, mach_o_segment_name_xlat):
Move to mach-o.h as   typedefs.
(text_section_names_xlat): Update for current GCC usage.
(data_section_names_xlat): Likewise.
(dwarf_section_names_xlat): Likewise.
(objc_section_names_xlat): New table.
(segsec_names_xlat): Add objc table.
(bfd_mach_o_normalize_section_name):  Replace with...
(bfd_mach_o_section_data_for_mach_sect): New.
(bfd_mach_o_section_data_for_bfd_name): New.
(bfd_mach_o_section_data_for_bfd_name): Update to use additional data.
(bfd_mach_o_convert_section_name_to_mach_o): Likewise.
(bfd_mach_o_bfd_copy_private_section_data): Implement.
(bfd_mach_o_write_symtab): Write a zero-length string as the first entry
for compatibility with system tools.
(bfd_mach_o_build_commands): Update section alignment info.
(bfd_mach_o_new_section_hook): Use translation table data to define
default section flags, type, attributes and alignment, when available.
(bfd_mach_o_init_section_from_mach_o): Add TODO comment.
(bfd_mach_o_section_type_name): Add 'symbol_stubs'.
(bfd_mach_o_section_attribute_name): Add 'self_modifying_code'.
(bfd_mach_o_get_section_type_from_name): Change "not-found" return
value.
(bfd_mach_o_tgt_seg_table): Set default NULL.
* mach-o.h (bfd_mach_o_segment_command):  Use define for name length.
(bfd_mach_o_backend_data): Move until after contents are defined.
(bfd_mach_o_normalize_section_name): Remove.
(bfd_mach_o_convert_section_name_to_bfd): Declare.
(mach_o_section_name_xlat): Declare.
(mach_o_segment_name_xlat): Declare.
(bfd_mach_o_section_data_for_mach_sect): Declare.
(bfd_mach_o_section_data_for_bfd_name): Declare.

include/
2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o/loader.h (bfd_mach_o_section_type): define
BFD_MACH_O_S_ATTR_NONE to 0.

gas/
2011-12-14  Iain Sandoe  <iains@gcc.gnu.org>

* config/obj-macho.c: Add some more top-level comments.
(collect_16char_name): New.
(obj_mach_o_section): Amend to allow syntax compatible with existing system
tools.  Use section translation data when available.
(obj_mach_o_segT_from_bfd_name): New.
(known_sections): Update.
(obj_mach_o_known_section): Use obj_mach_o_segT_from_bfd_name.
(objc_sections): New.
(obj_mach_o_objc_section): New.
(debug_sections): New.
(obj_mach_o_debug_section): New.
(tgt_sections): New.
(obj_mach_o_opt_tgt_section): New.
(obj_mach_o_base_section): New.
(obj_mach_o_common_parse): Update to create BSS on demand and to handle
lcomm optional alignment param.
(obj_mach_o_comm): Update parameter name.
(obj_mach_o_placeholder): New.
(mach_o_pseudo_table): Update for GCC section directives.
* config/obj-macho.h (_OBJ_MACH_O_H): New.
(USE_ALIGN_PTWO): Define.
(S_SET_ALIGN) Define.

12 years ago2011-12-13 Richard Earnshaw <rearnsha@arm.com>
Jeff Johnston [Tue, 13 Dec 2011 22:45:12 +0000 (22:45 +0000)]
2011-12-13  Richard Earnshaw  <rearnsha@arm.com>
            Thomas Klein  <th.r.klein@web.de>

        * arm/crt0.S: Manually set the target architecture
        when compiling for Thumb1 on EABI targets.
        Avoid v6-only Thumb-1 MOV instruction.

12 years ago2011-12-13 Richard Earnshaw <rearnsha@arm.com>
Jeff Johnston [Tue, 13 Dec 2011 22:40:45 +0000 (22:40 +0000)]
2011-12-13  Richard Earnshaw  <rearnsha@arm.com>
            Thomas Klein  <th.r.klein@web.de>

        * libc/sys/arm/crt0.S: Manually set the target architecture
        when compiling for Thumb1 on EABI targets.
        Don't use SWI on M-profile cores.
        Avoid v6-only Thumb-1 MOV instruction.

12 years agoFactor common code from subdirectory makefiles into Makefile.comm.in
Keith Marshall [Tue, 13 Dec 2011 20:46:53 +0000 (20:46 +0000)]
Factor common code from subdirectory makefiles into Makefile.comm.in

12 years agoPrepare for factoring out common makefile code.
Keith Marshall [Tue, 13 Dec 2011 20:10:42 +0000 (20:10 +0000)]
Prepare for factoring out common makefile code.

12 years agoadd missing change
Christopher Faylor [Tue, 13 Dec 2011 20:08:10 +0000 (20:08 +0000)]
add missing change

12 years ago* dcrt0.cc (init_windows_system_directory): Record system_wow64_directory
Christopher Faylor [Tue, 13 Dec 2011 20:06:31 +0000 (20:06 +0000)]
* dcrt0.cc (init_windows_system_directory): Record system_wow64_directory
information.
* exceptions.cc (_cygtls::inside_kernel): Modernize comment.  Consider
executing a DLL from the Wow64 directory as being "in the kernel".
(_cygtls::call_signal_handler): For now, only deal with main_tls signals if
main_tls is known to be executing in the cygwin DLL.  To more closely emulate
linux, consider the operation to be restartable if not executing in the main
thread.
* globals.cc (windows_system_directory): Remove NO_COPY.
(windows_system_directory_length): Ditto.
(system_wow64_directory): New variable.
(system_wow64_directory_length): Ditto.
* select.cc (cygwin_select): Don't issue a EINTR on non-main threads since that
seems to be what Linux does.  Add missing break to signal case/switch.
(select_stuff::wait): Don't issue a EINTR on non-main threads since that seems
to be what Linux does.  Remove now-unneeded accommodation for
WAIT_IO_COMPLETION.  Add a comment.
* sigproc.h (cygwait): Ditto.  Don't return if signal_received noticed and it's
not the main thread.
* signal.cc (sigprocmask): Add standard syscall debug stuff.
* thread.cc (pthread_sigmask): Ditto.

12 years ago * netdb.cc (open_system_file): Avoid MS-DOS path warning.
Corinna Vinschen [Tue, 13 Dec 2011 17:46:08 +0000 (17:46 +0000)]
* netdb.cc (open_system_file): Avoid MS-DOS path warning.

12 years ago * path.cc (conv_path_list): Fix a condition.
Corinna Vinschen [Tue, 13 Dec 2011 14:53:10 +0000 (14:53 +0000)]
* path.cc (conv_path_list): Fix a condition.
(cygwin_conv_path): Revert WIN_A conversion to current locale codeset.

12 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Call
Corinna Vinschen [Tue, 13 Dec 2011 11:54:28 +0000 (11:54 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Call
file_get_fnoi instead of NtQueryInformationFile.
* path.cc (file_get_fnoi): New helper function to collect a
FILE_NETWORK_OPEN_INFORMATION block.
(symlink_info::check): Call file_get_fnoi rather than
NtQueryInformationFile to collect a FILE_NETWORK_OPEN_INFORMATION block.
* path.h (file_get_fnoi): Declare.

12 years ago * times.cc (hires_ns::resolution): Don't return less than 1.
Corinna Vinschen [Tue, 13 Dec 2011 11:38:12 +0000 (11:38 +0000)]
* times.cc (hires_ns::resolution): Don't return less than 1.

12 years ago* cygthread.h (cygthread::name): Very minor formatting tweak.
Christopher Faylor [Tue, 13 Dec 2011 04:11:48 +0000 (04:11 +0000)]
* cygthread.h (cygthread::name): Very minor formatting tweak.
* exceptions.cc (_cygtls::call_signal_handler): Add paranoid debugging output.
* sigproc.h (cygwait): Call signal handler when signal is detected and loop as
appropriate.
* fhandler.h (fhandler_base_overlapped::wait_return): Remove overlapped_signal.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove restartable
signal accommodations in light of cygwait improvements.
(fhandler_base_overlapped::raw_read): Remove now-obsolete signal loop behavior.
(fhandler_base_overlapped::raw_write): Ditto.
* fhandler_console.cc (fhandler_console::read): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
(fhandler_serial::raw_write): Ditto.
* fhandler_tty.cc (fhandler_pty_slave::read): Ditto.
* ioctl.cc (ioctl): Add standard syscall introducer and leaver debug output.

12 years ago* faq-using.xml: Remove obsolete entry about the standard console window.
Christopher Faylor [Tue, 13 Dec 2011 03:54:59 +0000 (03:54 +0000)]
* faq-using.xml: Remove obsolete entry about the standard console window.
* new-features.sgml: Remove obsolete entry which references cygwin.bat.
* setup-net.sgml: Clarify new shortcut behavior for the "Cygwin Terminal".

12 years ago * fhandler_process.cc (dos_drive_mappings): Partially rewrite to
Corinna Vinschen [Mon, 12 Dec 2011 21:38:08 +0000 (21:38 +0000)]
* fhandler_process.cc (dos_drive_mappings): Partially rewrite to
handle volumes mounted into juntion points correctly.

12 years agoCorrect makefile error; remove unnecessary FLAGS_TO_PASS macro
Keith Marshall [Mon, 12 Dec 2011 20:02:33 +0000 (20:02 +0000)]
Correct makefile error; remove unnecessary FLAGS_TO_PASS macro

12 years ago * fhandler_process.cc (dos_drive_mappings::dos_drive_mappings): Fully
Corinna Vinschen [Mon, 12 Dec 2011 17:27:18 +0000 (17:27 +0000)]
* fhandler_process.cc (dos_drive_mappings::dos_drive_mappings): Fully
resolve symbolic links returned by QueryDosDeviceW.  Explain why.

12 years ago * mount.cc (fs_info::update): Set has_buggy_reopen for Netapps as well.
Corinna Vinschen [Mon, 12 Dec 2011 11:03:01 +0000 (11:03 +0000)]
* mount.cc (fs_info::update): Set has_buggy_reopen for Netapps as well.

12 years ago * libc/time/strftime.c (get_era_info): Fix off-by-one error in month
Corinna Vinschen [Mon, 12 Dec 2011 10:48:29 +0000 (10:48 +0000)]
* libc/time/strftime.c (get_era_info): Fix off-by-one error in month
calculation.

12 years ago * dcrt0.cc (wow64_respawn): New static variable.
Corinna Vinschen [Mon, 12 Dec 2011 10:16:53 +0000 (10:16 +0000)]
* dcrt0.cc (wow64_respawn): New static variable.
(wow64_started_from_native64): New function to check if a WOW64
process got started from a native 64 bit process.
(respawn_wow64_process): New function to respawn process.
(dll_crt0_0): When started from a native parent, check if parent
is a 64 bit process.  If so, return early.
(_dll_crt0): Respawn WOW64 process here if required.
* init.cc (respawn_wow64_process): Remove.
(dll_entry): Rename wow64_test_stack_marker to test_stack_marker.
Drop WOW64 test here.

12 years ago* pipe.cc (fhandler_pipe::create): Use debug_printf to print debugging info
Christopher Faylor [Mon, 12 Dec 2011 01:22:29 +0000 (01:22 +0000)]
* pipe.cc (fhandler_pipe::create): Use debug_printf to print debugging info
since this isn't a "syscall".
(pipe_worker): New function created from _pipe().
(_pipe): Use pipe_worker to create a pipe.  Use standard syscall strace
reporting on exit.
(pipe): Ditto.
(pipe2): Ditto.

12 years ago* select.cc (select_stuff::wait): Very minor formatting fix.
Christopher Faylor [Sun, 11 Dec 2011 01:25:20 +0000 (01:25 +0000)]
* select.cc (select_stuff::wait): Very minor formatting fix.
(peek_windows): Report on HWND handle used in queries.
* select.h: Update copyright.
* sigproc.h (cygwait): Eliminate multi-argument variety since more general
implementation may cause odd problems in select.  Also force to always be
inline.

12 years agoCorrect defective configure checkin
Keith Marshall [Sat, 10 Dec 2011 21:43:09 +0000 (21:43 +0000)]
Correct defective configure checkin

12 years agofix another typo in ChangeLog
Christopher Faylor [Sat, 10 Dec 2011 18:34:00 +0000 (18:34 +0000)]
fix another typo in ChangeLog

12 years ago* sigproc.h (cygwait): Delete duplicate va_start and add matching va_end.
Christopher Faylor [Sat, 10 Dec 2011 18:12:28 +0000 (18:12 +0000)]
* sigproc.h (cygwait): Delete duplicate va_start and add matching va_end.

12 years agoAdd ChangeLog entry for previous change and revert erroneously checked in
Christopher Faylor [Sat, 10 Dec 2011 18:10:22 +0000 (18:10 +0000)]
Add ChangeLog entry for previous change and revert erroneously checked in
changes to dcrt0.cc and init.cc

12 years agoClarify entry
Christopher Faylor [Sat, 10 Dec 2011 17:40:20 +0000 (17:40 +0000)]
Clarify entry

12 years agoBuild system clean-up (phase 1)
Keith Marshall [Sat, 10 Dec 2011 17:24:25 +0000 (17:24 +0000)]
Build system clean-up (phase 1)

12 years ago* exceptions.cc (ctrl_c_handler): YA in a series or reversions. Put back
Christopher Faylor [Sat, 10 Dec 2011 01:33:56 +0000 (01:33 +0000)]
* exceptions.cc (ctrl_c_handler): YA in a series or reversions.  Put back
_my_tls.remove along with a comment.
(sigpacket::process): Remove code which now causes a gdb deadlock.
* sigproc.cc (_cygtls::signal_exit): Signal debugger with signal number
earlier.

12 years ago* dllfixdbg: Work around annoying gdb warning about missing .gnu_debuglink.
Christopher Faylor [Fri, 9 Dec 2011 17:46:12 +0000 (17:46 +0000)]
* dllfixdbg: Work around annoying gdb warning about missing .gnu_debuglink.

12 years agoRename cygWFMO to cygwait throughout and use the magic of polymorphism to "wait
Christopher Faylor [Fri, 9 Dec 2011 16:02:56 +0000 (16:02 +0000)]
Rename cygWFMO to cygwait throughout and use the magic of polymorphism to "wait
for stuff".
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use simplified arg
form of cygwait.
* fhandler_console.cc (fhandler_console::read): Ditto.
* fhandler_audio.cc (fhandler_dev_dsp::Audio_out::waitforspac): Ditto.
(fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
(fhandler_serial::raw_write): Ditto.
* select.cc (cygwin_select): Ditto.
* sigproc.h (cygwait): Rename from cygWFMO.  Define two argument and single
argument forms of this function.
* fhandler_tty.cc (fhandler_pty_slave::open): Use method to query if tty is
open.
(fhandler_pty_slave::read): Send SIGHUP when master is detected as closed.
(fhandler_pty_common::close): Close input_available_event in callers since
master may need to signal it first.
(fhandler_pty_master::close): Lie and set input_available_event when closing,
then close input_available_event.
(fhandler_pty_slave::close): Close input_available_event explicitly here.
* tty.h (tty::is_master_closed): Declare new method.

12 years agoRevert erroneous checkin
Christopher Faylor [Fri, 9 Dec 2011 06:57:21 +0000 (06:57 +0000)]
Revert erroneous checkin

12 years ago* sigproc.cc (signal_exit): Revert reversion of 2011-12-04 change since,
Christopher Faylor [Fri, 9 Dec 2011 06:49:10 +0000 (06:49 +0000)]
* sigproc.cc (signal_exit): Revert reversion of 2011-12-04 change since,
otherwise, you see hangs when the signal pipe is closed.

12 years ago* select.cc (cygwin_select): Fifth time is the charm.
Christopher Faylor [Fri, 9 Dec 2011 03:19:41 +0000 (03:19 +0000)]
* select.cc (cygwin_select): Fifth time is the charm.

12 years agobfd:
Andrew Pinski [Thu, 8 Dec 2011 20:47:27 +0000 (20:47 +0000)]
bfd:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

* archures.c (bfd_mach_mips_octeon2): New macro
* bfd-in2.h: Regenerate.
* cpu-mips.c (I_mipsocteon2): New enum value.
(arch_info_struct): Add bfd_mach_mips_octeon2.
* elfxx-mips.c (_bfd_elf_mips_mach): Support E_MIPS_MACH_OCTEON2.
(mips_set_isa_flags): Add bfd_mach_mips_octeon2.
(mips_mach_extensions): Add bfd_mach_mips_octeon2.

gas:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

        * tc-mips.c (CPU_IS_OCTEON): Add Octeon2.
        (mips_cpu_info_table): Add Octeon2.
        * doc/c-mips.texi: Document octeon2 as an acceptable value for -march=.

gas/testsuite:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

        * gas/mips/mips.exp: Add Octeon2 for an architecture.
        Run octeon2 test.
        * gas/mips/octeon2.d: New file.
        * gas/mips/octeon2.s: New file.

include/opcode:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

        * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEON2.
        (INSN_OCTEON2): New macro.
        (CPU_OCTEON2): New macro.
        (OPCODE_IS_MEMBER): Add Octeon2.

opcodes:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

* mips-dis.c (mips_arch_choices): Add Octeon2.
For "octeon+", just include OcteonP for the insn.
* mips-opc.c (IOCT): Include Octeon2.
(IOCTP): Include Octeon2.
(IOCT2): New macro.
(mips_builtin_opcodes): Add "laa", "laad", "lac", "lacd", "lad",
"ladd", "lai", "laid", "las", "lasd", "law", "lawd".
Move "lbux", "ldx", "lhx", "lwx", and "lwux" up to where the standard
loads are, and add IOCT2 to them.
Add "lbx" and "lhux".
Add "qmac.00", "qmac.01", "qmac.02", "qmac.03", "qmacs.00",
"qmacs.01", "qmacs.01", "qmacs.02" and "qmacs.03".
Add "zcb" and "zcbt".

12 years ago* select.cc (cygwin_select): Make sure that 0 is returned when sel.wait times
Christopher Faylor [Thu, 8 Dec 2011 20:24:33 +0000 (20:24 +0000)]
* select.cc (cygwin_select): Make sure that 0 is returned when sel.wait times
out.

12 years ago* include/sys/wait.h: Add in all c++ functions.
Christopher Faylor [Thu, 8 Dec 2011 18:24:24 +0000 (18:24 +0000)]
* include/sys/wait.h: Add in all c++ functions.

12 years ago* select.cc (select_stuff::wait): Temporarily disallow APCS.
Christopher Faylor [Thu, 8 Dec 2011 07:03:14 +0000 (07:03 +0000)]
* select.cc (select_stuff::wait): Temporarily disallow APCS.

12 years ago* include/sys/wait.h: Ensure that C++ functions are only used when using C++.
Christopher Faylor [Thu, 8 Dec 2011 06:58:10 +0000 (06:58 +0000)]
* include/sys/wait.h: Ensure that C++ functions are only used when using C++.

12 years ago* select.cc (cygwin_select): Make sure that poll is called when appropriate.
Christopher Faylor [Thu, 8 Dec 2011 06:49:56 +0000 (06:49 +0000)]
* select.cc (cygwin_select): Make sure that poll is called when appropriate.

12 years ago* dll_init.cc (dll_dllcrt0): Don't try to initialize dll data if we're
Christopher Faylor [Thu, 8 Dec 2011 06:17:49 +0000 (06:17 +0000)]
* dll_init.cc (dll_dllcrt0): Don't try to initialize dll data if we're
dynamically loaded since fork() doesn't work in that scenario anyway.
(dll_dllcrt0_1): Don't accommodate dynamically loaded dlls.
* exceptions.cc (ctrl_c_handler): Don't lock the process; there's too much risk
of deadlock.
* sigproc.cc (_cygtls::remove_wq): Don't try to remove anything from the waitq
if there is obviously nothing there.
* strace.cc (strace::activate): Allow stracing dynamically loaded cygwin1.dll.

12 years ago* fhandler_termios.cc (tty_min::kill_pgrp): Don't send __SIGSETPGRP since
Christopher Faylor [Thu, 8 Dec 2011 04:09:22 +0000 (04:09 +0000)]
* fhandler_termios.cc (tty_min::kill_pgrp): Don't send __SIGSETPGRP since
presumably we are already initialized.

12 years ago* select.cc (cygwin_select): Add common introducer and leaver debug output.
Christopher Faylor [Wed, 7 Dec 2011 23:14:47 +0000 (23:14 +0000)]
* select.cc (cygwin_select): Add common introducer and leaver debug output.
(select_stuff::poll): Remove unneeded debugging.

12 years ago* exceptions.cc (ctrl_c_handler): Remove _my_tls.remove since it can cause
Christopher Faylor [Wed, 7 Dec 2011 13:54:54 +0000 (13:54 +0000)]
* exceptions.cc (ctrl_c_handler): Remove _my_tls.remove since it can cause
deadlocks during exec and will eventually be handled anyway.

12 years ago * spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOB
Corinna Vinschen [Wed, 7 Dec 2011 10:48:17 +0000 (10:48 +0000)]
* spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOB
to all spawned processes.  Explain why.

12 years ago* fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually wait for
Christopher Faylor [Wed, 7 Dec 2011 03:07:25 +0000 (03:07 +0000)]
* fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually wait for
the handle.

12 years agoinclude/elf/ChangeLog:
Ulrich Weigand [Tue, 6 Dec 2011 14:09:12 +0000 (14:09 +0000)]
include/elf/ChangeLog:

* common.h (NT_S390_LAST_BREAK): Define.
(NT_S390_SYSTEM_CALL): Likewise.

bfd/ChangeLog:

* elf-bfd.h (elfcore_write_s390_last_break): Add prototype.
(elfcore_write_s390_system_call): Likewise.
* elf.c (elfcore_write_s390_last_break): New function.
(elfcore_write_s390_system_call): Likewise.
(elfcore_write_register_note): Call them.
(elfcore_grok_s390_last_break): New function.
(elfcore_grok_s390_system_call): Likewise.
(elfcore_grok_note): Call them.

12 years ago * libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
Corinna Vinschen [Tue, 6 Dec 2011 10:45:05 +0000 (10:45 +0000)]
* libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
* libc/iconv/Makefile.in: Regenerate.

12 years ago* sigproc.cc (close_my_readsig): New function.
Christopher Faylor [Mon, 5 Dec 2011 15:59:06 +0000 (15:59 +0000)]
* sigproc.cc (close_my_readsig): New function.
(_cygtls::signal_exit): Close my_readsig via close_my_readsig(), avoiding
communication with the signal pipe.
(wait_sig): Close my_readsig via close_my_readsig().

12 years ago * mmap.cc (mlock): Replace LOCK_VM_IN_WSL with correct MAP_PROCESS.
Corinna Vinschen [Mon, 5 Dec 2011 15:46:26 +0000 (15:46 +0000)]
* mmap.cc (mlock): Replace LOCK_VM_IN_WSL with correct MAP_PROCESS.
(munlock): Ditto.
* ntdll.h: Rearrange to have all preprocessor definitions at the start
of the file.  Add comments to each definition block.
(MAP_PROCESS): Rename from LOCK_VM_IN_WSL.
(MAP_SYSTEM): Rename from LOCK_VM_IN_RAM.

12 years agocorrect name of function
Christopher Faylor [Sun, 4 Dec 2011 18:40:51 +0000 (18:40 +0000)]
correct name of function

12 years ago* sigproc.cc (cygWFMO): Don't assume that cancellable event is always
Christopher Faylor [Sun, 4 Dec 2011 18:32:00 +0000 (18:32 +0000)]
* sigproc.cc (cygWFMO): Don't assume that cancellable event is always
available.
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::waitforspace): Use cygWFMO
instead of WaitForMultipleObjects.
(fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
(fhandler_serial::raw_write): Ditto.
* fhandler_tty.cc (fhandler_pty_slave::read): Ditto.
* select.cc (cygwin_select): Ditto for degenerate case.

12 years ago* sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.
Christopher Faylor [Sun, 4 Dec 2011 18:15:36 +0000 (18:15 +0000)]
* sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.

12 years ago* exceptions.cc (exception::handle): Drop abbreviation for "exception" since I
Christopher Faylor [Sun, 4 Dec 2011 17:58:24 +0000 (17:58 +0000)]
* exceptions.cc (exception::handle): Drop abbreviation for "exception" since I
never remember what it stands for.
(sig_handle_tty_stop): Remove obsolete call to sig_handle_tty_stop.
(_cygtls::call_signal_handler): Rework to grab signal information from
_main_tls if none is set for _my_tls.  Try harder to keep thread locked.
(reset_signal_arrived): Delete.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use new cygWFMO call
to wait for an event + standard cygwin stuff.  Modify debug output to
acccomodate new function.
* fhandler_console.cc (fhandler_console::read): Replace WaitForMultipleObjects
with cygWFMO.
* fhandler_socket.cc (get_inet_addr): Add comment.
* gendef (_sigdelayed): Remove call to reset_signal_arrived.
* sigproc.cc (_cygtls::signal_exit): Don't close my_readsig here unless we're
in the signal thread.
(create_signal_arrived): Create signal_arrived as auto-reset so that only one
thread is woken when a signal arrives.
* sigproc.h (cygWFMO): New function.
(reset_signal_arrived): Delete declaration.

12 years ago* mmap.cc (mlock): Add standard syscall return value debugging output.
Christopher Faylor [Sat, 3 Dec 2011 23:55:21 +0000 (23:55 +0000)]
* mmap.cc (mlock): Add standard syscall return value debugging output.
(munlock): Ditto.
(posix_madvise): Ditto.
* signal.cc: Remove obsolete sigcatchers stuff throughout.
(sigaction_worker): Add function name parameter and use it to show standard
syscall return value debugging output.  Also add fault protection.
(sigaction): Accommodate extra argument to sigaction_worker.
(siginterrupt): Ditto.
* syscalls.cc (read): Remove obsolete sigcatchers stuff.
(readv): Ditto.

12 years agofix incorrectly named file in old ChangeLog entry
Christopher Faylor [Sat, 3 Dec 2011 23:49:03 +0000 (23:49 +0000)]
fix incorrectly named file in old ChangeLog entry

12 years ago * mmap.cc (mlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE. Drop
Corinna Vinschen [Sat, 3 Dec 2011 23:03:15 +0000 (23:03 +0000)]
* mmap.cc (mlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE.  Drop
outdated comment.  Call NtLockVirtualMemory with LOCK_VM_IN_WSL flag.
(munlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE.  Call
NtUnlockVirtualMemory with LOCK_VM_IN_WSL flag.

12 years agoThroughout, remove extra space after function name from debugging output.
Christopher Faylor [Sat, 3 Dec 2011 21:43:27 +0000 (21:43 +0000)]
Throughout, remove extra space after function name from debugging output.
Throughout, change syscalls to report on return values using new %R format
option.
* smallprint.cc (__small_vsprintf): Add parsing for %R to report on return
values and possible errno from syscalls.
* errno.cc (errmap): Add PRIVILEGE_NOT_HELD.
* fhandler_tty.cc (fhandler_pty_master::setup): When creating a thread use
shorter name to reduce debuggging output.
* select.cc (start_thread_pipe): Ditto.
(start_thread_serial): Ditto.
(start_thread_socket): Ditto.
(start_thread_mailslot): Ditto.
* sigproc.cc (talktome): Ditto.

12 years ago * fhandler.cc (fhandler_base::open): Fix comment a bit more.
Corinna Vinschen [Sat, 3 Dec 2011 20:35:36 +0000 (20:35 +0000)]
* fhandler.cc (fhandler_base::open): Fix comment a bit more.

12 years agosim: export cb_get_string for people to use
Michael Frysinger [Sat, 3 Dec 2011 18:39:43 +0000 (18:39 +0000)]
sim: export cb_get_string for people to use

The common sim code provides a useful "get_string" function which reads
a C string out of the target's memory space.  So rename and export it
for other people to use.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago * fhandler.cc (fhandler_base::open): Fix typos in comment.
Corinna Vinschen [Sat, 3 Dec 2011 14:21:30 +0000 (14:21 +0000)]
* fhandler.cc (fhandler_base::open): Fix typos in comment.

12 years ago * Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.
Corinna Vinschen [Fri, 2 Dec 2011 16:15:26 +0000 (16:15 +0000)]
* Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.
* cygpath.cc: Throughout, use cygwin_conv_path WIN_W rather than WIN_A
conversion.
(get_long_path_name_w32impl): Remove.
(get_long_name): Drop pre-Windows 2000 accommodations.  Just call
GetLongPathNameW here directly.
(get_special_folder): Convert first parameter to WCHAR buffer pointer.
Drop conversion of result from WCHAR * to char *.
(do_sysfolders): Accommodate change to get_special_folder and only
convert result to char * last.  Drop pre-Windows 2000 accommodations
and just call GetProfilesDirectoryW directly.  Replace call to
GetWindowsDirectoryW with call to GetSystemWindowsDirectoryW.
Just call GetShortPathNameW directly.
(do_pathconv): Simplify buffer handling.

12 years ago * path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
Corinna Vinschen [Fri, 2 Dec 2011 16:06:10 +0000 (16:06 +0000)]
* path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
Allow all types of CCP conversions.  Accommodate throughout.
(cygwin_conv_path): Use current ANSI or OEM codepage for WIN_A
conversions, depending on current file API codepage setting.
(cygwin_conv_path_list): Allow all CCP conversion types.
* include/sys/cygwin.h (CCP_CONVTYPE_MASK): Add to cygwin_conv_path_t
enum for convenience.

12 years ago * mkgroup.c: Drop support for NT4 domains.
Corinna Vinschen [Thu, 1 Dec 2011 13:06:13 +0000 (13:06 +0000)]
* mkgroup.c: Drop support for NT4 domains.
* mkpasswd.c: Ditto.
(psx_dir): Remove.
(current_user): Drop support for -m option.  Use $HOME as is since it's
a POSIX path anyway.
(enum_users): Drop support for -m option.
(usage): Mention -m option as ignored.
(main): Drop support for -m option.  Mark ignored options as deprecated.
* utils.sgml (mkpasswd): Remove description of -m option.

12 years ago2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
Chris Sutcliffe [Thu, 1 Dec 2011 00:24:35 +0000 (00:24 +0000)]
2011-11-30  Ozkan Sezer  <sezero@users.sourceforge.net>

        * include/io.h (_wfindfirst, _wfindnext, _wfindfirst32, _wfindnext32,
        _wfindfirsti64, _wfindnexti64, _wfindfirst32i64, _wfindfirst64i32,
        _wfindnext32i64, _wfindnext64i32, _wfindnext64): Update to use intptr_t.

12 years ago2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
Chris Sutcliffe [Thu, 1 Dec 2011 00:13:52 +0000 (00:13 +0000)]
2011-11-30  Earnie Boyd  <earnie@users.sourceforge.net>

        * include/stdio.h (getc, putc, getchar, putchar, fopen64, ftello64): Add
        function definitions to fix warnings when building GCC.

12 years ago2011-11-30 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Chris Sutcliffe [Wed, 30 Nov 2011 23:49:46 +0000 (23:49 +0000)]
2011-11-30  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>

        * tlssup.c (__dyn_tls_init): Reapply patch from 3105314.

        Thank you to Earnie for creating the patch file.

12 years agoopcode/
Andrew Pinski [Tue, 29 Nov 2011 20:28:55 +0000 (20:28 +0000)]
opcode/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * mips-dis.c (mips_arch_choices): Add Octeon+.
        * mips-opc.c (IOCT): Include Octeon+.
        (IOCTP): New macro.
        (mips_builtin_opcodes): Add "saa" and "saad".
bfd/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * archures.c (bfd_mach_mips_octeonp): New macro.
        * bfd-in2.h: Regenerate.
        * bfd/cpu-mips.c (I_mipsocteonp): New enum value.
        (arch_info_struct): Add bfd_mach_mips_octeonp.
        * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
        (mips_mach_extensions): Add bfd_mach_mips_octeonp.
include/opcodes/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEONP.
        (INSN_OCTEONP): New macro.
        (CPU_OCTEONP): New macro.
        (OPCODE_IS_MEMBER): Add Octeon+.
        (M_SAA_AB, M_SAAD_AB, M_SAA_OB, M_SAAD_OB): New enum values.
gas/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * config/tc-mips.c (CPU_IS_OCTEON): New macro function.
        (CPU_HAS_SEQ): Change to use CPU_IS_OCTEON.
        (NO_ISA_COP): Likewise.
        (macro) <ld_st>: Add support when off0 is true.
        Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB.
        (mips_cpu_info_table): Add octeon+.
        * doc/c-mips.texi: Document octeon+ as an acceptable value for -march=.
gas/testsuite/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * gas/mips/mips.exp: Add octeon+ for an architecture.
        Run octeon-saa-saad test.
        (run_dump_test_arch): For Octeon architectures, also try octeon@.
        * gas/mips/octeon-pref.d: Remove -march=octeon from command line.
        * gas/mips/octeon.d: Likewise.
        * gas/mips/octeon-saa-saad.d: New file.
        * gas/mips/octeon-saa-saad.s: New file

12 years ago* sigproc.cc (get_proc_lock): Remove extra NULL check. Return false on
Christopher Faylor [Tue, 29 Nov 2011 17:41:01 +0000 (17:41 +0000)]
* sigproc.cc (get_proc_lock): Remove extra NULL check.  Return false on
failure.

12 years ago* sync.cc: Fix comment.
Christopher Faylor [Tue, 29 Nov 2011 17:26:57 +0000 (17:26 +0000)]
* sync.cc: Fix comment.
* dll_init.cc (dll_list::reserve_space): Use %p rather than %lx to show
reserved space.

12 years ago* sigproc.cc (remove_proc): Don't terminate the currently executing thread.
Christopher Faylor [Tue, 29 Nov 2011 15:34:49 +0000 (15:34 +0000)]
* sigproc.cc (remove_proc): Don't terminate the currently executing thread.

12 years ago[libgloss]
DJ Delorie [Tue, 29 Nov 2011 06:33:49 +0000 (06:33 +0000)]
[libgloss]
* configure.in: Add rl78.
* configure: Regenerate.
* rl78: New directory

[newlib]
* configure.host: Add rl78.
* libc/include/machine/ieeefp.h: Add rl78 support.
* libc/include/machine/setjmp.h: Add rl78 support.
* libc/machine/configure.in: Add rl78.
* libc/machine/rl78: New directory.

12 years agofix older description
Christopher Faylor [Tue, 29 Nov 2011 05:38:12 +0000 (05:38 +0000)]
fix older description

12 years ago * locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
Corinna Vinschen [Mon, 28 Nov 2011 17:58:48 +0000 (17:58 +0000)]
* locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
path and convert that to POSIX.

12 years ago * external.cc (fillout_pinfo): Store program name as POSIX path in
Corinna Vinschen [Mon, 28 Nov 2011 17:53:18 +0000 (17:53 +0000)]
* external.cc (fillout_pinfo): Store program name as POSIX path in
ep.progname_long.

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