]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years ago * hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.
Corinna Vinschen [Fri, 9 Mar 2012 12:42:14 +0000 (12:42 +0000)]
* hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.

12 years ago * hookapi.cc (rvadelta): Add parameter to return maximum available
Corinna Vinschen [Fri, 9 Mar 2012 12:37:37 +0000 (12:37 +0000)]
* hookapi.cc (rvadelta): Add parameter to return maximum available
size from start of import RVA table to end of section.
(find_first_notloaded_dll): Take big executables into account.  Use
offset and size computation as in hook_or_detect_cygwin, just simpler.
(hook_or_detect_cygwin): Return NULL rather than false througout.
Change computation of required mapping size to take non-gcc compilers
into account.  Explain the differences and what we do against them.
Don't alloca buf if fn is NULL.  Never use buf if fn is NULL.

Fix name and address in previous ChangeLog entry.

12 years ago * net.cc (call_gaa): New thread function to call GetAdaptersAddresses.
Corinna Vinschen [Thu, 8 Mar 2012 16:02:44 +0000 (16:02 +0000)]
* net.cc (call_gaa): New thread function to call GetAdaptersAddresses.
(get_adapters_addresses): Call call_gaa.  If necessary, call it as
child thread.  Explain why that's necessary.

12 years ago * path.cc (readlink): Avoid calling strlen() twice.
Corinna Vinschen [Thu, 8 Mar 2012 14:56:18 +0000 (14:56 +0000)]
* path.cc (readlink): Avoid calling strlen() twice.

12 years ago2012-03-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 8 Mar 2012 14:14:52 +0000 (14:14 +0000)]
2012-03-08  Tristan Gingold  <gingold@adacore.com>

* lbr.h (struct vms_lhd): Add comments.

12 years ago * Throughout, replace usage of w32api's min with MIN from sys/param.h.
Corinna Vinschen [Thu, 8 Mar 2012 09:36:11 +0000 (09:36 +0000)]
* Throughout, replace usage of w32api's min with MIN from sys/param.h.

12 years agomerge from gcc
DJ Delorie [Thu, 8 Mar 2012 00:01:18 +0000 (00:01 +0000)]
merge from gcc

12 years ago * mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
Nick Clifton [Wed, 7 Mar 2012 17:51:56 +0000 (17:51 +0000)]
* mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF and R_MN10300_TLS_TPOFF.

* elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
field.
(elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
(elf_mn10300_tdata): Define.
(elf_mn10300_local_got_tls_type): Define.
(elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
(mn10300_reloc_map): Likewise.
(elf_mn10300_tls_transition): New function.
(dtpoff, tpoff, mn10300_do_tls_transition): New functions.
(mn10300_elf_check_relocs): Add TLS support.
(mn10300_elf_final_link_relocate): Likewise.
(mn10300_elf_relocate_section): Likewise.
(mn10300_elf_relax_section): Likewise.
(elf32_mn10300_link_hash_newfunc): Initialise new field.
(_bfd_mn10300_copy_indirect_symbol): New function.
(elf32_mn10300_link_hash_table_create): Initialise new fields.
(_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_reloc_type_class): Allocate an
elf_mn10300_obj_tdata structure.
(elf_backend_copy_indirect_symbol): Define.
* reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
(BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
alongside other MN10300 relocations.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

* config/tc-mn10300.c (other_registers): Add SSP and USP.
(md_assemble): Add support for TLS relocs.
(mn10300_parse_name): Likewise.

* readelf.c (is_16bit_abs_reloc): Add detection of R_MN10300_16.

12 years ago* pinfo.cc (_pinfo::dup_proc_pipe): Reorganize to provide more information for
Christopher Faylor [Wed, 7 Mar 2012 17:09:37 +0000 (17:09 +0000)]
* pinfo.cc (_pinfo::dup_proc_pipe): Reorganize to provide more information for
failing condition.
(pinfo::wait): Pass name of function to dup_proc_pipe.  Eliminate error check
for dup_proc_pipe since it never actually returned an error.
* pinfo.h (_pinfo::dup_proc_pipe): Add an argument.
* spawn.cc (child_info_spawn::worker): Pass name of function to dup_proc_pipe.

12 years ago * glob.cc (MAXPATHLEN): Reinstantiate with a value of 8192.
Corinna Vinschen [Wed, 7 Mar 2012 10:12:28 +0000 (10:12 +0000)]
* glob.cc (MAXPATHLEN): Reinstantiate with a value of 8192.

12 years ago * pinfo.cc (_pinfo::dup_proc_pipe): Fix order of arguments in debug
Corinna Vinschen [Mon, 5 Mar 2012 12:12:10 +0000 (12:12 +0000)]
* pinfo.cc (_pinfo::dup_proc_pipe): Fix order of arguments in debug
output.

12 years ago * init.cc (dll_entry): Move wincap.init call back from here...
Corinna Vinschen [Mon, 5 Mar 2012 12:09:22 +0000 (12:09 +0000)]
* init.cc (dll_entry): Move wincap.init call back from here...
* dcrt0.cc (dll_crt0_0): ...to here.

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:57:17 +0000 (11:57 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
* configure: Regenerate.

12 years ago * cygheap.h (enum fcwd_version_t): Move here from path.cc.
Corinna Vinschen [Mon, 5 Mar 2012 11:50:25 +0000 (11:50 +0000)]
* cygheap.h (enum fcwd_version_t): Move here from path.cc.
(class fcwd_access_t): Ditto.  Only declare methods.
(class cwdstuff): Move fast_cwd_ptr and fast_cwd_version from shared
DLL section here.
* path.cc: Keep fcwd_access_t method definitions.
(fcwd_access_t::fast_cwd_version): New method.
(find_fast_cwd_pointer): Change comment.  Mention test on W8CP.
(cwdstuff::init): Initialize fast_cwd_ptr and fast_cwd_version.

12 years ago * dll_init.cc (dll_list::operator[]): Extend comment a bit more to
Corinna Vinschen [Mon, 5 Mar 2012 10:27:44 +0000 (10:27 +0000)]
* dll_init.cc (dll_list::operator[]): Extend comment a bit more to
explain previous patch.

12 years ago * dll_init.cc (dll_list::alloc): Compare linked DLLs by basename only.
Corinna Vinschen [Sun, 4 Mar 2012 16:47:45 +0000 (16:47 +0000)]
* dll_init.cc (dll_list::alloc): Compare linked DLLs by basename only.
Explain why.  Add code to check if a DLL with the same basename but
different path is the same DLL.  Bail out if not.
(in_load_after_fork): New static NO_COPY bool to allow to differ
between linked and loaded DLL at fork.
(dll_list::load_after_fork): Set in_load_after_fork accordingly.
(dll_dllcrt0_1): Don't treat DLL as linked if in_load_after_fork is set.
Drop test for in_forkee.

12 years ago * dll_init.cc: Revert pathname changes from 2012-02-08.
Corinna Vinschen [Sun, 4 Mar 2012 13:50:12 +0000 (13:50 +0000)]
* dll_init.cc: Revert pathname changes from 2012-02-08.
(dll_list::operator[]): Add long comment to explain the misery.
(dll_list::alloc): Skip long pathname prefix potentially returned by
GetModuleFileNameW.
* dll_init.h (dll_list::find_by_modname): Add back declaration.

12 years ago * winver.rc: Bump copyright date.
Corinna Vinschen [Sun, 4 Mar 2012 13:19:21 +0000 (13:19 +0000)]
* winver.rc: Bump copyright date.

12 years ago* fhandler_console.cc (fhandler_console::dup): Only set ctty when we haven't
Christopher Faylor [Sat, 3 Mar 2012 21:35:30 +0000 (21:35 +0000)]
* fhandler_console.cc (fhandler_console::dup): Only set ctty when we haven't
specifically called setsid.
* fhandler_tty.cc (fhandler_pty_slave::dup): Ditto.  Also add comment
documenting research into rxvt problem.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Don't check specifically
for myself->ctty == -1.  Test for > 0 as that is the correct test.
(fhandler_termios::sigflush): Ditto.

12 years ago * flock.cc (allow_others_to_sync): Reorder conditional expression to
Corinna Vinschen [Fri, 2 Mar 2012 17:20:11 +0000 (17:20 +0000)]
* flock.cc (allow_others_to_sync): Reorder conditional expression to
check for DACL presence first, since otherwise dacl pointer value is
undefined.  Add comment.

12 years ago * flock.cc (allow_others_to_sync): Use RtlGetDaclSecurityDescriptor
Corinna Vinschen [Fri, 2 Mar 2012 17:07:17 +0000 (17:07 +0000)]
* flock.cc (allow_others_to_sync): Use RtlGetDaclSecurityDescriptor
rather than accessing the SECURITY_DESCRIPTOR structure directly.
Take no DACL and NULL DACL into account.

12 years ago2012-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 2 Mar 2012 16:02:04 +0000 (16:02 +0000)]
2012-03-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/posix/readdir_r.c: Fix return code when end of
        directory is reached.

12 years ago * configure.in: Accept "arm*" target spec instead of just "arm".
Nick Clifton [Fri, 2 Mar 2012 13:20:08 +0000 (13:20 +0000)]
* configure.in: Accept "arm*" target spec instead of just "arm".
* configure: Regenerated.
* libnosys/configure.in: Likewise.
(libc_symbol_prefix): Renamed to libc_cv_symbol_prefix.
* libnosys/configure: Regenerated (using autoconf v2.68).

12 years agoFix typo in ChangeLog entry
Corinna Vinschen [Fri, 2 Mar 2012 12:01:27 +0000 (12:01 +0000)]
Fix typo in ChangeLog entry

12 years ago * fhandler_console.cc (fhandler_console::input_tcsetattr): Revert
Corinna Vinschen [Fri, 2 Mar 2012 11:56:06 +0000 (11:56 +0000)]
* fhandler_console.cc (fhandler_console::input_tcsetattr): Revert
prevois patch.
(fhandler_console::open_setup): Install Ctrl-C handler here, if this
console is the controlling tty and the process hasn't been started by
a Cygwin process.

12 years ago * fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
Corinna Vinschen [Fri, 2 Mar 2012 10:17:16 +0000 (10:17 +0000)]
* fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
state of the Ctrl-C handler depending on the setting of
ENABLE_PROCESSED_INPUT.

12 years ago* faq-programming.xml (faq.programming.make-execvp): Remove obsolete
Yaakov Selkowitz [Thu, 1 Mar 2012 07:35:02 +0000 (07:35 +0000)]
* faq-programming.xml (faq.programming.make-execvp): Remove obsolete
information about Tcl/Tk.
(faq.programming.dll-relocatable): Ditto.
* faq-using.xml (faq.using.tcl-tk): Rewrite to reflect switch to
X11 Tcl/Tk.

12 years agotcgetsid: fix return type
Eric Blake [Tue, 28 Feb 2012 14:03:03 +0000 (14:03 +0000)]
tcgetsid: fix return type

* include/sys/termios.h (tcgetsid): Fix return type.
* termios.cc (tcgetsid): Likewise.
* fhandler_termios.cc (fhandler_termios::tcgetsid): Likewise.
* fhandler.h (fhandler_base): Likewise.
* fhandler.cc (fhandler_base::tcgetsid): Likewise.

12 years ago * cygtls.cc (well_known_dlls): Add shlwapi.dll.
Corinna Vinschen [Tue, 28 Feb 2012 09:44:14 +0000 (09:44 +0000)]
* cygtls.cc (well_known_dlls): Add shlwapi.dll.

12 years ago* faq-using.xml (faq.using.bloda): Fix missing closing parenthesis.
Yaakov Selkowitz [Mon, 27 Feb 2012 19:45:26 +0000 (19:45 +0000)]
* faq-using.xml (faq.using.bloda): Fix missing closing parenthesis.

12 years ago * cygtls.cc (dll_cmp): New comparison function for bsearch.
Corinna Vinschen [Mon, 27 Feb 2012 11:55:27 +0000 (11:55 +0000)]
* cygtls.cc (dll_cmp): New comparison function for bsearch.
(well_known_dlls): New array containing well-known DLLs.
(_cygtls::call2): Add code for BLODA detection.
* net.cc (fdsock): Ditto.

12 years agogas/
Alan Modra [Mon, 27 Feb 2012 06:37:38 +0000 (06:37 +0000)]
gas/
* config/tc-crx.c: Include bfd_stdint.h.
(getconstant): Remove irrelevant comment.  Don't fail due to
sign-extension of int mask.
(check_range): Rewrite using unsigned arithmetic throughout.
opcodes/
* crx-dis.c (print_arg): Mask constant to 32 bits.
* crx-opc.c (cst4_map): Use int array.
include/opcode/
* crx.h (cst4_map): Update declaration.

12 years agoDrop "potentially" from latest ChangeLog entry.
Corinna Vinschen [Sun, 26 Feb 2012 15:49:31 +0000 (15:49 +0000)]
Drop "potentially" from latest ChangeLog entry.

12 years ago * environ.cc (enum settings): Add setbool. Rename justset to setdword
Corinna Vinschen [Sun, 26 Feb 2012 15:47:43 +0000 (15:47 +0000)]
* environ.cc (enum settings): Add setbool.  Rename justset to setdword
to avoid future problems.
(struct parse_thing): Change all justset to setbool for bool variables.
(parse_options): Add a case for setbool setting for bool variables
since justset (now setdword) always writes a DWORD value, thus
potentially overwriting adjacent memory locations.
* external.cc (cygwin_internal): Drop extern declaration.

12 years ago * environ.cc (dos_file_warning): Drop declaration.
Corinna Vinschen [Sun, 26 Feb 2012 14:01:32 +0000 (14:01 +0000)]
* environ.cc (dos_file_warning): Drop declaration.
(ignore_case_with_glob): Ditto.
(allow_winsymlinks): Ditto.
(reset_com): Move definition to globals.cc.
(struct parse_thing): Add "detect_bloda" option.
* fhandler_serial.cc (fhandler_serial::open): Drop (incorrect)
declaration of reset_com.
* globals.cc (ignore_case_with_glob): Move definition into C++-only
block.
(dos_file_warning): Define.
(allow_winsymlinks): Define.
(reset_com): Define.
(detect_bloda): Define.
* path.cc (dos_file_warning): Drop definition here.
(allow_winsymlinks): Drop definition here.

12 years ago * flock.cc (LOCK_DIR_NAME_FMT): Define.
Corinna Vinschen [Sun, 26 Feb 2012 12:34:17 +0000 (12:34 +0000)]
* flock.cc (LOCK_DIR_NAME_FMT): Define.
(LOCK_DIR_NAME_LEN): Define.
(LOCK_DIR_NAME_DEV_OFF): Define.
(LOCK_DIR_NAME_INO_OFF): Define.
(LOCK_OBJ_NAME_FMT): Define.  Add comment.
(class lockf_t): Use bitsize-explicit types.  Declare from_obj_name,
(class inode_t): Make use, unuse and inuse methods public.  Add a
lock argument to get method declaration.
(inode_t::get): Add lock argument.  Only lock node if lock arg is true.
(inode_t::inode_t): Use LOCK_DIR_NAME_FMT as format string.
(lockf_t::from_obj_name): New method to generate lockf_t content from
lock event object basename.
(inode_t::get_all_locks_list): Just call from_obj_name here and copy
result into final lockf_t.
(create_lock_obj_attr): Use LOCK_OBJ_NAME_FMT as format string.
(create_lock_in_parent): New thread function to create lockf_t
structure in parent process.
(delete_lock_in_parent): New thread function to reap stale BSD locks in
parent process.
(lockf_t::create_lock_obj): Try to duplicate lock object handle into
parent process and call create_lock_in_parent as parent remote thread.
(lockf_t::del_lock_obj): Call delete_lock_in_parent as parent remote
thread.
(fhandler_disk_file::lock): Add lock arg to inode_t::get call.

12 years agoImprove TLS support on TILE-Gx/TILEPro:
Walter Lee [Sat, 25 Feb 2012 22:24:21 +0000 (22:24 +0000)]
Improve TLS support on TILE-Gx/TILEPro:
- Add support for TLS LE references.
- Support linker optimization of TLS references.
- Delete relocations of GOT/tp relative offsets beyond 32-bits.

This brings binutils in line with the support expected in gcc 4.7, for
TILE-Gx/TILEPro.

bfd/
* reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
* elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
relocations.
(tilepro_reloc_map): Ditto.
(tilepro_info_to_howto_rela): Ditto.
(reloc_to_create_func): Ditto.
(tilepro_tls_translate_to_le): New.
(tilepro_tls_translate_to_ie): New.
(tilepro_elf_tls_transition): New.
(tilepro_elf_check_relocs): Handle new tls relocations.
(tilepro_elf_gc_sweep_hook): Ditto.
(allocate_dynrelocs): Ditto.
(tilepro_elf_relocate_section): Ditto.
(tilepro_replace_insn): New.
(insn_mask_X1): New.
(insn_mask_X0_no_dest_no_srca): New
(insn_mask_X1_no_dest_no_srca): New
(insn_mask_Y0_no_dest_no_srca): New
(insn_mask_Y1_no_dest_no_srca): New
(srca_mask_X0): New
(srca_mask_X1): New
(insn_tls_le_move_X1): New
(insn_tls_le_move_zero_X0X1): New
(insn_tls_ie_lw_X1): New
(insn_tls_ie_add_X0X1): New
(insn_tls_ie_add_Y0Y1): New
(insn_tls_gd_add_X0X1): New
(insn_tls_gd_add_Y0Y1): New
* elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
relocations.
(tilegx_reloc_map): Ditto.
(tilegx_info_to_howto_rela): Ditto.
(reloc_to_create_func): Ditto.
(tilegx_elf_link_hash_table): New field disable_le_transition.
(tilegx_tls_translate_to_le): New.
(tilegx_tls_translate_to_ie): New.
(tilegx_elf_tls_transition): New.
(tilegx_elf_check_relocs): Handle new tls relocations.
(tilegx_elf_gc_sweep_hook): Ditto.
(allocate_dynrelocs): Ditto.
(tilegx_elf_relocate_section): Ditto.
(tilegx_copy_bits): New.
(tilegx_replace_insn): New.
(insn_mask_X1): New.
(insn_mask_X0_no_dest_no_srca): New.
(insn_mask_X1_no_dest_no_srca): New.
(insn_mask_Y0_no_dest_no_srca): New.
(insn_mask_Y1_no_dest_no_srca): New.
(insn_mask_X0_no_operand): New.
(insn_mask_X1_no_operand): New.
(insn_mask_Y0_no_operand): New.
(insn_mask_Y1_no_operand): New.
(insn_tls_ie_ld_X1): New.
(insn_tls_ie_ld4s_X1): New.
(insn_tls_ie_add_X0X1): New.
(insn_tls_ie_add_Y0Y1): New.
(insn_tls_ie_addx_X0X1): New.
(insn_tls_ie_addx_Y0Y1): New.
(insn_tls_gd_add_X0X1): New.
(insn_tls_gd_add_Y0Y1): New.
(insn_move_X0X1): New.
(insn_move_Y0Y1): New.
(insn_add_X0X1): New.
(insn_add_Y0Y1): New.
(insn_addx_X0X1): New.
(insn_addx_Y0Y1): New.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.

gas/
* tc-tilepro.c (O_tls_le): Define operator.
(O_tls_le_lo16): Ditto.
(O_tls_le_hi16): Ditto.
(O_tls_le_ha16): Ditto.
(O_tls_gd_call): Ditto.
(O_tls_gd_add): Ditto.
(O_tls_ie_load): Ditto.
(md_begin): Delete old operators; handle new operators.
(emit_tilepro_instruction): Ditto.
(md_apply_fix): Ditto.
* tc-tilegx.c (O_hw1_got): Delete operator.
(O_hw2_got): Ditto.
(O_hw3_got): Ditto.
(O_hw2_last_got): Ditto.
(O_hw1_tls_gd): Ditto.
(O_hw2_tls_gd): Ditto.
(O_hw3_tls_gd): Ditto.
(O_hw2_last_tls_gd): Ditto.
(O_hw1_tls_ie): Ditto.
(O_hw2_tls_ie): Ditto.
(O_hw3_tls_ie): Ditto.
(O_hw2_last_tls_ie): Ditto.
(O_hw0_tls_le): Define operator.
(O_hw0_last_tls_le): Ditto.
(O_hw1_last_tls_le): Ditto.
(O_tls_gd_call): Ditto.
(O_tls_gd_add): Ditto.
(O_tls_ie_load): Ditto.
(O_tls_add): Ditto.
(md_begin): Delete old operators; handle new operators.
(emit_tilegx_instruction): Ditto.
(md_apply_fix): Ditto.
* doc/c-tilegx.texi: Delete old operators; document new operators.
* doc/c-tilepro.texi: Ditto.

include/elf/
* tilegx.h (R_TILEGX_IMM16_X0_HW1_GOT): Delete.
(R_TILEGX_IMM16_X1_HW1_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW2_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW2_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW3_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW3_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW1_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW1_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW2_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW2_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW3_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW3_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW1_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW1_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW2_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW2_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW3_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW3_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW0_TLS_LE): New relocation.
(R_TILEGX_IMM16_X1_HW0_TLS_LE): Ditto.
(R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE): Ditto.
(R_TILEGX_TLS_GD_CALL): Ditto.
(R_TILEGX_IMM8_X0_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_X1_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_Y0_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_Y1_TLS_GD_ADD): Ditto.
(R_TILEGX_TLS_IE_LOAD): Ditto.
(R_TILEGX_IMM8_X0_TLS_ADD): Ditto.
(R_TILEGX_IMM8_X1_TLS_ADD): Ditto.
(R_TILEGX_IMM8_Y0_TLS_ADD): Ditto.
(R_TILEGX_IMM8_Y1_TLS_ADD): Ditto.
* tilepro.h (R_TILEPRO_TLS_GD_CALL): New relocation.
(R_TILEPRO_IMM8_X0_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_X1_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_Y0_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_Y1_TLS_GD_ADD): Ditto.
(R_TILEPRO_TLS_IE_LOAD): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_LO): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_LO): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_HI): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_HI): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_HA): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_HA): Ditto.

include/opcode/
* tilegx.h (tilegx_mnemonic): Add TILEGX_OPC_LD4S_TLS,
TILEGX_OPC_LD_TLS.
* tilepro.h (tilepro_mnemonic): Add TILEPRO_OPC_LW_TLS,
TILEPRO_OPC_LW_TLS_SN.

opcodes/
* tilegx-opc.c: Handle TILEGX_OPC_LD4S_TLS and TILEGX_OPC_LD_TLS.
* tilepro-opc.c: Handle TILEPRO_OPC_LW_TLS and
TILEPRO_OPC_LW_TLS_SN.

12 years ago* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 12.
Christopher Faylor [Sat, 25 Feb 2012 17:32:38 +0000 (17:32 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 12.

12 years ago * new-features.sgml (ov-new1.7.11): Add two more changes to the list.
Corinna Vinschen [Sat, 25 Feb 2012 10:51:32 +0000 (10:51 +0000)]
* new-features.sgml (ov-new1.7.11): Add two more changes to the list.

12 years ago*** empty log message ***
Corinna Vinschen [Sat, 25 Feb 2012 10:48:35 +0000 (10:48 +0000)]
*** empty log message ***

12 years ago* pldd.c: Fix typo in license header.
Yaakov Selkowitz [Fri, 24 Feb 2012 21:53:28 +0000 (21:53 +0000)]
* pldd.c: Fix typo in license header.

12 years ago* pldd.c: Fix formatting.
Yaakov Selkowitz [Fri, 24 Feb 2012 10:38:20 +0000 (10:38 +0000)]
* pldd.c: Fix formatting.

12 years agoDocument pldd.
Yaakov Selkowitz [Fri, 24 Feb 2012 10:21:34 +0000 (10:21 +0000)]
Document pldd.

12 years ago* new-features.sgml (ov-new1.7.11): Document pldd.
Yaakov Selkowitz [Fri, 24 Feb 2012 10:20:00 +0000 (10:20 +0000)]
* new-features.sgml (ov-new1.7.11): Document pldd.

12 years ago* Makefile.in (CYGWIN_BINS): Add pldd.
Yaakov Selkowitz [Fri, 24 Feb 2012 10:19:01 +0000 (10:19 +0000)]
* Makefile.in (CYGWIN_BINS): Add pldd.
(pldd.exe): Add -lpsapi to ALL_LDFLAGS.
* pldd.c: New file.
* utils.sgml (pldd): New section.

12 years agodeal with endian-ness in mach-o non-scattered relocs.
Iain D Sandoe [Thu, 23 Feb 2012 16:29:56 +0000 (16:29 +0000)]
deal with endian-ness in mach-o non-scattered relocs.

BFD:

* mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
(bfd_mach_o_canonicalize_one_reloc):  Swap non-scattered reloc
bit-fields when target and host differ in endian-ness.  When
PAIRs are non-scattered find the 'symbol' from the preceding
reloc.  Add FIXME re. reloc symbols on section boundaries.
(bfd_mach_o_swap_out_non_scattered_reloc): New.
(bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.

include/mach-o:

* external.h: Add comments about relocations fields.  Add macros
for non-scattered relocations.  Move scattered relocation macros to here.
* reloc.h: Remove macros related to external representation of reloc fields.

12 years ago * configure.host: Accept "arm*" host spec instead of just "arm".
Corinna Vinschen [Thu, 23 Feb 2012 09:30:19 +0000 (09:30 +0000)]
* configure.host: Accept "arm*" host spec instead of just "arm".

12 years agoDocument scandirat.
Yaakov Selkowitz [Wed, 22 Feb 2012 02:07:07 +0000 (02:07 +0000)]
Document scandirat.

12 years ago* new-features.sgml (ov-new1.7.11): New section. Document scandirat.
Yaakov Selkowitz [Wed, 22 Feb 2012 02:06:15 +0000 (02:06 +0000)]
* new-features.sgml (ov-new1.7.11): New section. Document scandirat.

12 years ago * cygwin.din (scandirat): Export.
Yaakov Selkowitz [Wed, 22 Feb 2012 01:58:24 +0000 (01:58 +0000)]
* cygwin.din (scandirat): Export.
* posix.sgml (std-gnu): Add scandirat.
* syscalls.cc (scandirat): New function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* include/sys/dirent.h (scandirat): Declare.

12 years ago2012-02-21 Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:40:27 +0000 (22:40 +0000)]
2012-02-21  Joern Rennecke  <joern.rennecke@embecosm.com>

        * COPYING.NEWLIB: Add Adapteva notice.
        * COPYING.LIBGLOSS: Add Adapteva notice.

12 years ago2012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:37:47 +0000 (22:37 +0000)]
2012-02-21  Jeremy Bennett  <jeremy.bennett@embecosm.com>
            Alan Lehotsky  <apl@alum.mit.edu>
            Joern Rennecke  <joern.rennecke@embecosm.com>

        * configure.in: Add Epiphany support.
        * configure: Regenerate.
        * epiphany: New directory.
        * libgloss/README: Add Epiphany entry.

12 years ago2012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:34:31 +0000 (22:34 +0000)]
2012-02-21  Jeremy Bennett  <jeremy.bennett@embecosm.com>
            Alan Lehotsky  <apl@alum.mit.edu>
            Joern Rennecke  <joern.rennecke@embecosm.com>

        * configure.host: Add Epiphany support.
        * libc/include/machine/ieeefp.h: Likewise.
        * libc/include/machine/setjmp.h: Likewise.
        * libc/machine/configure.in, libc/sys/configure.in: Likewise.
        * libc/machine/configure, libc/sys/configure: Regenerate.
        * libc/machine/epiphany, libc/sys/epiphany: New directories.
        * NEWS: Mention addition of Epiphany.

12 years ago * shared.cc (shared_info::init_obcaseinsensitive): Check actual state
Corinna Vinschen [Tue, 21 Feb 2012 17:03:51 +0000 (17:03 +0000)]
* shared.cc (shared_info::init_obcaseinsensitive): Check actual state
of case sensitivity on post-Windows 2000 systems.
* wincap.h (wincaps::kernel_is_always_casesensitive): New element.
* wincap.cc: Implement above element throughout.

12 years ago * faq-using.xml (faq.using.bloda): Add AVAST and Citrix Metaframe
Corinna Vinschen [Tue, 21 Feb 2012 16:26:36 +0000 (16:26 +0000)]
* faq-using.xml (faq.using.bloda): Add AVAST and Citrix Metaframe
Presentation Server.

12 years ago * flock.cc (inode_t::del_my_locks): Drop useless counter lc. Close
Corinna Vinschen [Mon, 20 Feb 2012 14:08:37 +0000 (14:08 +0000)]
* flock.cc (inode_t::del_my_locks): Drop useless counter lc.  Close
lock object handle explicitely in case of called during fork.  Add
comment to explain why.
* fork.cc (frok::child): Drop declaration of fixup_lockf_after_fork.

12 years ago * timer.cc (getitimer): Don't create another local ret variable in
Corinna Vinschen [Fri, 17 Feb 2012 17:34:01 +0000 (17:34 +0000)]
* timer.cc (getitimer): Don't create another local ret variable in
timer_gettime calling branch.  Simplify conditional since timer_gettime
always returns 0 or -1 anyway.

12 years ago * ntdll.h (struct _PEB): Add EnvironmentUpdateCount member.
Corinna Vinschen [Fri, 17 Feb 2012 14:26:18 +0000 (14:26 +0000)]
* ntdll.h (struct _PEB): Add EnvironmentUpdateCount member.
* spawn.cc (child_info_spawn::worker): Speed up job recognition.  Expand
comment to explain every little detail and so we never forget.
* wincap.h (wincaps::has_program_compatibility_assitant): New element.
* wincap.cc: Implement above element throughout.

12 years ago * mount.cc (get_disk_type): Drop unneeded toupper call. Convert case
Corinna Vinschen [Fri, 17 Feb 2012 14:17:12 +0000 (14:17 +0000)]
* mount.cc (get_disk_type): Drop unneeded toupper call.  Convert case
constants to wide chars.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 16 Feb 2012 11:12:00 +0000 (11:12 +0000)]
*** empty log message ***

12 years ago * autoload.cc (NetUseGetInfo): Define.
Corinna Vinschen [Thu, 16 Feb 2012 11:02:05 +0000 (11:02 +0000)]
* autoload.cc (NetUseGetInfo): Define.
* fhandler_disk_file.cc (fhandler_cygdrive::opendir): Rename flptst
to drive.  Call new get_disk_type function rather than is_floppy and
check SMB drives with the NetUseGetInfo function.  Explain why.
* mount.cc (get_disk_type): New function to evaluate disk type from
native NT device name.
(is_floppy): Remove.
* mount.h (enum disk_type): Define.
(get_disk_type): Declare.
* path.h (is_floppy): Drop declaration.

12 years ago * miscfuncs.cc: Revert change from 2012-02-13 which used the
Corinna Vinschen [Wed, 15 Feb 2012 21:34:06 +0000 (21:34 +0000)]
* miscfuncs.cc: Revert change from 2012-02-13 which used the
Windows-provided stack rather than an own stack created in
CygwinCreateThread.
(struct thread_wrapper_arg): Rename commitsize to stacklimit.
(CygwinCreateThread): Rename commitsize to real_stacklimit.

12 years ago* configure.host: Fix typo: xdir_dir -> xdr_dir.
Christopher Faylor [Wed, 15 Feb 2012 18:32:05 +0000 (18:32 +0000)]
* configure.host: Fix typo: xdir_dir -> xdr_dir.

12 years ago * dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf for
Corinna Vinschen [Wed, 15 Feb 2012 16:11:36 +0000 (16:11 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf for
name.
(handle_to_fn): Ditto for device.  Fix size in QueryDosDeviceW call.

12 years ago* smallprint.cc (tmpbuf): Declare new class holding a static buffer, protected
Christopher Faylor [Wed, 15 Feb 2012 15:33:56 +0000 (15:33 +0000)]
* smallprint.cc (tmpbuf): Declare new class holding a static buffer, protected
by a lock.
(__small_vsprintf): Use tmpbuf to hold large buffer.
(__small_vswprintf): Ditto.

12 years ago * flock.cc (lf_setlock): Add timeout variable and set before calling
Corinna Vinschen [Wed, 15 Feb 2012 14:43:07 +0000 (14:43 +0000)]
* flock.cc (lf_setlock): Add timeout variable and set before calling
WFMO.  Drop debug output if process is not available.  Set timeout to
0 instead.  Document timeout 0 in WFMO comment.
(lf_getblock): Drop invalid F_POSIX lock type shortcut.  Only return
overlap if event is not signalled.  Fix comment.

12 years ago.
Christopher Faylor [Tue, 14 Feb 2012 20:04:59 +0000 (20:04 +0000)]
.

12 years ago* pinfo.cc (_pinfo::set_ctty): Revert 2012-02-07 change to skip function if tty
Christopher Faylor [Tue, 14 Feb 2012 19:08:20 +0000 (19:08 +0000)]
* pinfo.cc (_pinfo::set_ctty): Revert 2012-02-07 change to skip function if tty
in question == our ctty.
* syscalls.cc (setsid): Avoid two function calls.
* dtable.cc (dtable::dup_worker): Remove debugging.
* init.cc (search_for): Calculate for every new process rather than using
shared value.
(threadfunc_ix): Fill in for ever new process rather than sing shared value.

12 years ago * fhandler_disk_file.cc (fhandler_cygdrive::fstat): Don't bother to
Corinna Vinschen [Tue, 14 Feb 2012 15:22:13 +0000 (15:22 +0000)]
* fhandler_disk_file.cc (fhandler_cygdrive::fstat): Don't bother to
set st_nlink correctly, just set it to 1 to avoid potential network
timeouts.

12 years ago * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
Corinna Vinschen [Tue, 14 Feb 2012 14:12:11 +0000 (14:12 +0000)]
* transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
Always use cygwin_internal to fetch installation key.

12 years ago * flock.cc (lf_setlock): Don't close waited lock object handle before
Corinna Vinschen [Tue, 14 Feb 2012 13:55:45 +0000 (13:55 +0000)]
* flock.cc (lf_setlock): Don't close waited lock object handle before
we own the node lock.  Fix comment.

12 years ago * cygheap.cc (init_cygheap::init_installation_root): Convert function
Corinna Vinschen [Tue, 14 Feb 2012 11:27:43 +0000 (11:27 +0000)]
* cygheap.cc (init_cygheap::init_installation_root): Convert function
init_installation_root into a cygheap method.
* cygheap.h (struct init_cygheap): Move installation_root,
installation_key, and installation_key_buf from shared
.cygwin_dll_common DLL section to cygheap.  Declare new method
init_installation_root.
* dtable.cc (handle_to_fn): Accommodate the move of installation strings
to the cygheap.
* external.cc (cygwin_internal): Ditto.
* fhandler_console.cc (fhandler_console::open_shared_console): Ditto.
* fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Ditto.
* fhandler_tty.cc: Ditto, throughout.
* mount.cc (mount_info::init): Ditto.
* pipe.cc (fhandler_pipe::create): Ditto.
* shared.cc: Ditto, throughout.
(installation_root): Remove.
(installation_key): Move to cygheap.
(installation_key_buf): Ditto.
(installation_root_inited): Remove.
(SPIN_WAIT): Remove.
(init_installation_root): Move to cygheap.
(memory_init): Call cygheap->init_installation_root right after
cygheap->user.init.  Drop call of init_installation_root function.
* shared_info.h (init_installation_root): Drop declaration.
(installation_root): Ditto.
(installation_key): Ditto.
* uinfo.cc (pwdgrp::load): Accommodate the move of installation strings
to the cygheap.

12 years ago * thread.cc: Drop including unused headers.
Corinna Vinschen [Tue, 14 Feb 2012 09:45:21 +0000 (09:45 +0000)]
* thread.cc: Drop including unused headers.

12 years ago * miscfuncs.cc (struct thread_wrapper_arg): Convert char * to PBYTE.
Corinna Vinschen [Mon, 13 Feb 2012 15:23:03 +0000 (15:23 +0000)]
* miscfuncs.cc (struct thread_wrapper_arg): Convert char * to PBYTE.
Change related casts throughout.
(thread_wrapper): Only do the thread change if the application provided
the stack.  Otherwise, just use the Windows-provided stack.  Set up
POSIX guardpage here, if necessary.  Move related comment from
CygwinCreateThread here.
(CygwinCreateThread): Never allocate and set up own stack here.  Just
compute stack size to reserve and use value in CreateThread call if
stack hasn't been provided by the application.

12 years ago * Makefile.in (clean): Remove non-existant regexp dir.
Corinna Vinschen [Mon, 13 Feb 2012 13:12:37 +0000 (13:12 +0000)]
* Makefile.in (clean): Remove non-existant regexp dir.

* collate.h: New header.
(__collate_range_cmp): Declare.
(__collate_load_error): Define.
* glob.cc: Pull in latest version from FreeBSD.  Simplify and reduce
Cygwin-specific changes.
* regex/regcomp.c: Include collate.h on Cygwin as well.
(__collate_range_cmp): Move from here...
* nlsfuncs.cc (__collate_range_cmp): ...to here.

* miscfuncs.cc (thread_wrapper): Fix typo in comment.
(CygwinCreateThread): Take dead zone of Windows stack into account.
Change the way how the stack is commited and how to handle guardpages.
Explain how and why.
* thread.h (PTHREAD_DEFAULT_STACKSIZE): Change definition.  Explain why.

12 years ago* include/pthread.h: Include time.h as required by POSIX.
Yaakov Selkowitz [Mon, 13 Feb 2012 01:46:46 +0000 (01:46 +0000)]
* include/pthread.h: Include time.h as required by POSIX.

12 years ago* exception.h (stackdump): Declare.
Christopher Faylor [Sun, 12 Feb 2012 22:43:33 +0000 (22:43 +0000)]
* exception.h (stackdump): Declare.
* exceptions.cc (stackdump): Rework to perform all operations needed for a
stackdump and to avoid recursion.
(exception::handle): Use simplified stackdump interface.
* sigproc.cc (signal::exit): Ditto.  Delete now, uneeded declaration.

12 years ago * miscfuncs.cc (DEFAULT_STACKSIZE): Remove.
Corinna Vinschen [Sat, 11 Feb 2012 17:37:02 +0000 (17:37 +0000)]
* miscfuncs.cc (DEFAULT_STACKSIZE): Remove.
(CygwinCreateThread): Simplify code by assuming that now stack-related
input values are undefined.  Set stack protection to PAGE_READWRITE,
as is default on Windows.  Add lengthy comment to explain POSIX
guardpage.
* thread.cc (pthread_attr::pthread_attr): Initialize stacksize as
PTHREAD_DEFAULT_STACKSIZE.  Initialize guardsize as
PTHREAD_DEFAULT_GUARDSIZE.
* thread.h (PTHREAD_DEFAULT_STACKSIZE): Define.  Add comment to explain.
(PTHREAD_DEFAULT_GUARDSIZE): Define.

12 years ago * miscfuncs.cc (DEFAULT_STACKSIZE): Set to 1 Megs. Drop comment about
Corinna Vinschen [Fri, 10 Feb 2012 20:56:22 +0000 (20:56 +0000)]
* miscfuncs.cc (DEFAULT_STACKSIZE): Set to 1 Megs.  Drop comment about
RLIMIT_STACK.

* registry.cc (get_registry_hive_path): Expect the user hive path to
be never longer than MAX_PATH.  Don't prepend native NT path prefix
here.  Add comment.
(load_registry_hive): Prepend native NT path prefix here.  Additionally
try to load user's classes hive.
* uinfo.cc (cygheap_user::env_userprofile): Reduce size of
userprofile_env_buf to MAX_PATH.  Add comment.

12 years ago* syscalls.cc (setsid): On second thought, in the spirit of keeping things
Christopher Faylor [Fri, 10 Feb 2012 16:43:36 +0000 (16:43 +0000)]
* syscalls.cc (setsid): On second thought, in the spirit of keeping things
kludgy, set ctty to -2 here as a special flag, and...
(open): ...only eschew setting O_NOCTTY when that case is detected.

12 years ago* syscalls.cc (open): Semi-revert (?) to allowing open of a tty to become
Christopher Faylor [Fri, 10 Feb 2012 16:33:53 +0000 (16:33 +0000)]
* syscalls.cc (open): Semi-revert (?) to allowing open of a tty to become
controlling tty if there is no controlling tty.

12 years ago* libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.
Eric Blake [Thu, 9 Feb 2012 19:58:33 +0000 (19:58 +0000)]
* libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.

12 years ago* exceptions.cc (setup_handler): Reduce system_printf to sigproc_printf since
Christopher Faylor [Thu, 9 Feb 2012 16:05:23 +0000 (16:05 +0000)]
* exceptions.cc (setup_handler): Reduce system_printf to sigproc_printf since
it is for a transient situation which will undoubtedly be handled.

12 years ago * fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::write): Set
Corinna Vinschen [Thu, 9 Feb 2012 15:23:17 +0000 (15:23 +0000)]
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::write): Set
bytes_to_write to 0 in case it fits into the buffer, otherwise suffer
early EOF in caller.

12 years ago * dll_init.h (struct dll): Re-add modname.
Corinna Vinschen [Thu, 9 Feb 2012 14:41:21 +0000 (14:41 +0000)]
* dll_init.h (struct dll): Re-add modname.
* dll_init.cc: Throughout, use modname where it was used before.
(dll_list::operator[]): Use modname.  Move comment from dll_list::alloc
here and remove hint about GetModuleBaseNameW.
(dll_list::alloc): Store full path in name, pointer to basename in
modname.  Search dll using modname.

12 years ago * libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a
Corinna Vinschen [Thu, 9 Feb 2012 13:05:15 +0000 (13:05 +0000)]
* libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a
definition of time_h.

12 years agoAdd missing file from previous checkin
Corinna Vinschen [Thu, 9 Feb 2012 12:57:34 +0000 (12:57 +0000)]
Add missing file from previous checkin

12 years ago * libc/machine/arm/strcmp.S: New File.
Corinna Vinschen [Thu, 9 Feb 2012 10:42:14 +0000 (10:42 +0000)]
* libc/machine/arm/strcmp.S: New File.
* libc/machine/arm/strcmp.c: Deleted.
* libc/machine/arm/Makefile.am: Replaces strcmp.c with strcmp.S
* libc/machine/arm/Makefile.in: Regenerated.
* testsuite/newlib.string/strcmp-1.c: New file.

12 years ago * passwd.cc: Add -v option to print version information as well, since
Corinna Vinschen [Thu, 9 Feb 2012 10:11:26 +0000 (10:11 +0000)]
* passwd.cc: Add -v option to print version information as well, since
it's used in older csih.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 9 Feb 2012 09:04:10 +0000 (09:04 +0000)]
*** empty log message ***

12 years ago* dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handles
Christopher Faylor [Thu, 9 Feb 2012 01:20:55 +0000 (01:20 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handles
with O_RDWR permissions.

12 years ago * thread.cc (__pthread_cond_wait_init): New static function replacing
Corinna Vinschen [Wed, 8 Feb 2012 19:58:37 +0000 (19:58 +0000)]
* thread.cc (__pthread_cond_wait_init): New static function replacing
__pthread_cond_dowait.  Only check and potentially initialize cond and
mutex, drop call to (*cond)->wait.
(pthread_cond_timedwait): Replace call to __pthread_cond_dowait with
separate calls to __pthread_cond_wait_init and (*cond)->wait to be
able to initialize cond before accessing its clock_id member.
(pthread_cond_wait): Ditto (more or less).

12 years ago* include/sys/wait.h: Remove C++ inline functions for `union wait'. For C++
Christopher Faylor [Wed, 8 Feb 2012 19:51:13 +0000 (19:51 +0000)]
* include/sys/wait.h: Remove C++ inline functions for `union wait'.  For C++
use `void *' as __wait_status_ptr_t instead.  This is less type safe but fixes
compile error on `wait(NULL)'.  Remove extra `;'.

12 years ago * sigproc.cc (child_info_fork::abort): Call TerminateProcess rather
Corinna Vinschen [Wed, 8 Feb 2012 19:43:14 +0000 (19:43 +0000)]
* sigproc.cc (child_info_fork::abort): Call TerminateProcess rather
than ExitProcess.

12 years agoImplement Intel Transactional Synchronization Extensions
H.J. Lu [Wed, 8 Feb 2012 18:20:39 +0000 (18:20 +0000)]
Implement Intel Transactional Synchronization Extensions

gas/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (HLE_PREFIX): New.
(check_hle): Likewise.
(_i386_insn): Add have_hle.
(cpu_arch): Add .hle and .rtm.
(md_assemble): Call check_hle if i.have_hle isn't zero.
(parse_insn): Set i.have_hle to 1 for HLE prefix.
(output_jump): Support up to 2 byte opcode.

* doc/c-i386.texi: Document hle/.hle and rtm/.rtm.

gas/testsuite/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/hle-intel.d: New.
* gas/i386/hle.d: Likewise.
* gas/i386/hle.s: Likewise.
* gas/i386/hlebad.l: Likewise.
* gas/i386/hlebad.s: Likewise.
* gas/i386/rtm-intel.d: Likewise.
* gas/i386/rtm.d: Likewise.
* gas/i386/rtm.s: Likewise.
* gas/i386/x86-64-hle-intel.d: Likewise.
* gas/i386/x86-64-hle.d: Likewise.
* gas/i386/x86-64-hle.s: Likewise.
* gas/i386/x86-64-hlebad.l: Likewise.
* gas/i386/x86-64-hlebad.s: Likewise.
* gas/i386/x86-64-rtm-intel.d: Likewise.
* gas/i386/x86-64-rtm.d: Likewise.
* gas/i386/x86-64-rtm.s: Likewise.

* gas/i386/i386.exp: Run hle, hle-intel, hlebad x86-64-hle, rtm,
rtm-intel, x86-64-hle-intel, x86-64-hlebad, x86-64-rtm and
x86-64-rtm-intel.

include/opcode/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386.h (XACQUIRE_PREFIX_OPCODE): New.
(XRELEASE_PREFIX_OPCODE): Likewise.

opcodes/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (HLE_Fixup1): New.
(HLE_Fixup2): Likewise.
(HLE_Fixup3): Likewise.
(Ebh1): Likewise.
(Evh1): Likewise.
(Ebh2): Likewise.
(Evh2): Likewise.
(Ebh3): Likewise.
(Evh3): Likewise.
(MOD_C6_REG_7): Likewise.
(MOD_C7_REG_7): Likewise.
(RM_C6_REG_7): Likewise.
(RM_C7_REG_7): Likewise.
(XACQUIRE_PREFIX): Likewise.
(XRELEASE_PREFIX): Likewise.
(dis386): Use Ebh1/Evh1 on add, adc, and, btc, btr, bts,
cmpxchg, dec, inc, neg, not, or, sbb, sub, xor and xadd. Use
Ebh2/Evh2 on xchg.  Use Ebh3/Evh3 on mov.
(reg_table): Use Ebh1/Evh1 on add, adc, and, dec, inc, neg,
not, or, sbb, sub and xor.  Use Ebh3/Evh3 on mov.  Use
MOD_C6_REG_7 and MOD_C7_REG_7.
(mod_table): Add MOD_C6_REG_7 and MOD_C7_REG_7.
(rm_table): Add RM_C6_REG_7 and RM_C7_REG_7.  Add xend and
xtest.
(prefix_name): Handle XACQUIRE_PREFIX and XRELEASE_PREFIX.
(CMPXCHG8B_Fixup): Handle HLE prefix on cmpxchg8b.

* i386-gen.c (cpu_flag_init): Add CPU_HLE_FLAGS and
CPU_RTM_FLAGS.
(cpu_flags): Add CpuHLE and CpuRTM.
(opcode_modifiers): Add HLEPrefixOk.

* i386-opc.h (CpuHLE): New.
(CpuRTM): Likewise.
(HLEPrefixOk): Likewise.
(i386_cpu_flags): Add cpuhle and cpurtm.
(i386_opcode_modifier): Add hleprefixok.

* i386-opc.tbl: Add HLEPrefixOk=3 to mov.  Add HLEPrefixOk to
add, adc, and, btc, btr, bts, cmpxchg, dec, inc, neg, not, or,
sbb, sub, xor and xadd.  Add HLEPrefixOk=2 to xchg with memory
operand.  Add xacquire, xrelease, xabort, xbegin, xend and
xtest.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

12 years ago * uinfo.cc (cygheap_user::env_userprofile): Simplify since network
Corinna Vinschen [Wed, 8 Feb 2012 17:51:34 +0000 (17:51 +0000)]
* uinfo.cc (cygheap_user::env_userprofile): Simplify since network
drives are not supported here.

12 years ago * uinfo.cc (cygheap_user::env_userprofile): Convert native
Corinna Vinschen [Wed, 8 Feb 2012 17:45:43 +0000 (17:45 +0000)]
* uinfo.cc (cygheap_user::env_userprofile): Convert native
userprofile path returned from get_registry_hive_path to Win32 path.

12 years ago * dll_init.cc: Throughout, drop usage of modname in favor of name.
Corinna Vinschen [Wed, 8 Feb 2012 17:35:02 +0000 (17:35 +0000)]
* dll_init.cc: Throughout, drop usage of modname in favor of name.
(dll_list::find_by_modname): Remove.
(dll_list::alloc): Only store module basename in name.  Add comment to
explain why.  Simplify address check.  Fix formatting in comment.
* dll_init.h (struct dll): Drop modname and find_by_modname.

12 years ago * dll_init.cc (dll_list::alloc): Add DLL name to fabort output. Fix
Corinna Vinschen [Wed, 8 Feb 2012 14:41:51 +0000 (14:41 +0000)]
* dll_init.cc (dll_list::alloc): Add DLL name to fabort output.  Fix
fabort string in case of bss start.

12 years ago * include/sys/sysmacros.h: Include sys/types.h.
Corinna Vinschen [Wed, 8 Feb 2012 14:08:58 +0000 (14:08 +0000)]
* include/sys/sysmacros.h: Include sys/types.h.

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