]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years agoCheck if a symbol is hidden by linker script.
H.J. Lu [Fri, 16 Sep 2011 01:15:19 +0000 (01:15 +0000)]
Check if a symbol is hidden by linker script.

bfd/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12975
* bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer
to struct bfd_elf_version_tree.

* elflink.c (elf_info_failed): Remove verdefs.
(_bfd_elf_export_symbol): Updated.
_bfd_elf_link_assign_sym_version): Likewise.
(bfd_elf_size_dynamic_sections): Remove pointer to struct
bfd_elf_version_tree.  Updated.
(bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden
by linker script.

* linker.c (bfd_hide_sym_by_version): New.

* bfd-in2.h: Regenerated.

include/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12975
* bfdlink.h (bfd_link_info): Add version_info.

ld/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12975
* ldlang.c (lang_elf_version_info): Removed.
(lang_register_vers_node): Replace lang_elf_version_info with
link_info.version_info.
(lang_add_vers_depend): Likewise.
* pe-dll.c (process_def_file_and_drectve): Likewise.
* emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.

* ldlang.h (lang_elf_version_info): Removed.

* plugin.c  (is_visible_from_outside): Check if symbol is hidden
by version script.

* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Remove lang_elf_version_info.

ld/testsuite/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12975
* ld-elf/pr12975.d: New.
* ld-elf/pr12975.s: Likewise.
* ld-elf/pr12975.t: Likewise.

12 years ago * strace.cc (attach_process): Try to turn off DEBUG_ONLY_THIS_PROCESS
Jon TURNEY [Thu, 15 Sep 2011 16:49:51 +0000 (16:49 +0000)]
* strace.cc (attach_process): Try to turn off DEBUG_ONLY_THIS_PROCESS
if Attaching to a process with the trace-children flag set.
(handle_output_debug_string): Apparently we don't need to explicitly
attach for debugging when a child process starts
* Makefile.in (strace.exe): Link with ntdll

12 years ago2011-09-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 8 Sep 2011 16:18:23 +0000 (16:18 +0000)]
2011-09-08  Jeff Johnston  <jjohnstn@redhat.com>

        * testsuite/lib/flags.exp: Add logic to add the
        srcdir include directory to compile flags.

12 years ago * net.cc (cygwin_getsockopt): Drop erroneous double conversion of error
Corinna Vinschen [Fri, 2 Sep 2011 09:52:08 +0000 (09:52 +0000)]
* net.cc (cygwin_getsockopt): Drop erroneous double conversion of error
code returned by SOL_SOCKET/SO_ERROR.  Fix error handling.

12 years ago * lc_msg.h: Regenerate.
Corinna Vinschen [Thu, 1 Sep 2011 19:19:29 +0000 (19:19 +0000)]
* lc_msg.h: Regenerate.

12 years ago * dlfcn.cc (gfpod_helper): Helper function to search DLL using
Corinna Vinschen [Thu, 1 Sep 2011 08:17:07 +0000 (08:17 +0000)]
* dlfcn.cc (gfpod_helper): Helper function to search DLL using
a given DLL name.  Change default search path to allow /usr/bin.
(get_full_path_of_dll): Find DLLs even if the caller used a ".so"
suffix or a "lib" prefix for the DLL.

12 years ago * flock.cc (inode_t::unlock_and_remove_if_unused): Rename from
Corinna Vinschen [Wed, 31 Aug 2011 16:35:19 +0000 (16:35 +0000)]
* flock.cc (inode_t::unlock_and_remove_if_unused): Rename from
unlock_and_remove.

12 years ago * flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_ver
Corinna Vinschen [Mon, 29 Aug 2011 13:50:25 +0000 (13:50 +0000)]
* flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_ver
field.
(class lockf_t): Add lf_ver field.
(lockf_t::lockf_t): Initialize lf_ver to 0.
(class inode_t): Change i_wait to i_cnt.  Change comment to explain
change in usage.
(inode_t:use): Rename from wait.  Make private.
(inode_t::unuse): Rename from unwait.  Make private.
(inode_t::inuse): Rename from waiting.  Make private.
(inode_t::notused): New public method to set use count to 0.
(inode_t::unlock_and_remove): New method to unlock node and to delete
it if it's unused in current process.
(fhandler_base::del_my_locks): Drop global list lock.  Drop variable
no_locks_left.  Simpify unlocking and removing node by just calling
unlock_and_remove.
(fixup_lockf_after_exec): Call notused method for each node.
(inode_t::get): Call use method.  Lock node only if outside of list
lock.
(inode_t::get_all_locks_list): Accommodate additional lf_ver field
when creating lockf_t structure from object name.
(lockf_t::create_lock_obj_attr): Accommodate additional lf_ver field
when creating object name from lockf_t structure.  Handle
STATUS_OBJECT_NAME_COLLISION gracefully in F_POSIX case as well.
Change comment accordingly.  Increment lf_ver field rather than high
byte of lf_wid field.  Simplify comment.
(fhandler_disk_file::lock): Always call unlock_and_remove rather than
just UNLOCK on node.
(lf_setlock): Move ret definition where it's used.  Drop unneeded
tests for obj being not NULL.  Only check for deadlock condition if the
lock we're trying to establish is a POSIX lock.  Revamp object
collecting and wait code to cover all cases.  Don't return with EDEADLK
if blocking process can't be opened for synchronization in F_POSIX case,
rather just wait like in F_FLOCK case.  Change system_printf to
debug_printf in that case.  Only run WaitForMultipleObjects with high
priority.  Close obj and process handles prior to locking node.

12 years agoDon't expose implementation detail for opaque DIRENT structures.
Keith Marshall [Sat, 27 Aug 2011 20:16:47 +0000 (20:16 +0000)]
Don't expose implementation detail for opaque DIRENT structures.

12 years ago * fhandler.cc (fhandler_base::open): Fix typo in comment.
Corinna Vinschen [Sat, 27 Aug 2011 20:01:29 +0000 (20:01 +0000)]
* fhandler.cc (fhandler_base::open): Fix typo in comment.
(fhandler_base::close): Move call to del_my_locks from here...
* fhandler_disk_file.cc (fhandler_disk_file::open): ...to here.
* flock.cc (struct lockfattr_t): New type.
(lockf_t::close_lock_obj): New method, use throughout.
(lockf_t::create_lock_obj_attr): New method.
(lockf_t::create_lock_obj): Use create_lock_obj_attr method.  Handle
STATUS_OBJECT_NAME_COLLISION in F_FLOCK case gracefully.  Add lengthy
comments to explain why and how.
(lockf_t::open_lock_obj): Use create_lock_obj_attr method.
(lockf_t::del_lock_obj): Call NtSetEvent rather than SetEvent for
symmetry.
(fhandler_disk_file::lock): Define n only where it's used.  Call
need_fork_fixup only if call was successful.  Handle EINTR and
ECANCELED return values from lf_setlock.
(lf_setlock): Drop WAIT_UNLOCKED and WAIT_PROC_EXITED.  Don't wait
for event object handle count to become <= 1 in F_LOCK case.
Simplify WFMO return value handling.  Don't handle signal and cancel
events here; just return with appropriate error code instead.
(lf_getblock): Ignore locks for which the handle can't be opened.
Use IsEventSignalled.
* ntdll.h (STATUS_INVALID_INFO_CLASS): Undef if defined elsewhere to
make sure the definition is casted to NTSTATUS.
(STATUS_INVALID_HANDLE): Define and ditto.
(STATUS_OBJECT_NAME_COLLISION): Define.
(NtSetEvent): Declare.

12 years ago * libc/time/mktm_r.c (_mktm_r): Fix previous fix.
Corinna Vinschen [Fri, 26 Aug 2011 07:23:42 +0000 (07:23 +0000)]
* libc/time/mktm_r.c (_mktm_r): Fix previous fix.

13 years ago* cygthread.cc (cygthread::simplestub): Notify that the thread has detached
Christopher Faylor [Thu, 25 Aug 2011 19:37:39 +0000 (19:37 +0000)]
* cygthread.cc (cygthread::simplestub): Notify that the thread has detached
also in freerange thread case.

13 years ago * fhandler.cc (fhandler_base::open): Never open files with
Corinna Vinschen [Thu, 25 Aug 2011 13:35:43 +0000 (13:35 +0000)]
* fhandler.cc (fhandler_base::open): Never open files with
FILE_OVERWITE/FILE_OVERWRITE_IF.  Set file size to 0 explicitely if
regular, existing file has been opened for writing with O_TRUNC flag
set.  Explain why.

13 years ago * thread.cc (pthread::pthread): Drop setting parent_tls. Call
Corinna Vinschen [Wed, 24 Aug 2011 15:18:17 +0000 (15:18 +0000)]
* thread.cc (pthread::pthread): Drop setting parent_tls.  Call
sigprocmask to copy parent thread signal mask into new parent_sigmask
member.
(pthread::thread_init_wrapper): Copy _my_tls.sigmask from new
parent_sigmask member.
* thread.h (class pthread): Drop parent_tls.  Add parent_sigmask.

13 years ago* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tls
Christopher Faylor [Wed, 24 Aug 2011 14:23:38 +0000 (14:23 +0000)]
* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tls
contents if we've asked _main_tls to exit.

13 years ago * libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
Corinna Vinschen [Wed, 24 Aug 2011 13:38:32 +0000 (13:38 +0000)]
* libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.

13 years ago2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 23 Aug 2011 22:59:35 +0000 (22:59 +0000)]
2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.20.

13 years ago2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 23 Aug 2011 22:27:35 +0000 (22:27 +0000)]
2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * tlsmthread.c: Update to reflect changes in tlssup.c.
        * tlssup.c: code clean-up.

13 years ago * poll.cc (poll): Don't return prematurely if invalid fds have been
Corinna Vinschen [Tue, 23 Aug 2011 14:05:04 +0000 (14:05 +0000)]
* poll.cc (poll): Don't return prematurely if invalid fds have been
encountered.  Enforce timeout set to 0 in case of invalid fds.  Take
number of invalid fds into account when returning.

13 years ago * fhandler_socket.cc (fhandler_socket::send_internal): Fix setting
Corinna Vinschen [Tue, 23 Aug 2011 13:07:24 +0000 (13:07 +0000)]
* fhandler_socket.cc (fhandler_socket::send_internal): Fix setting
nosignal flag.  Convert ECONNABORTED on connection-oriented socket
to EPIPE, too.

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 23 Aug 2011 12:03:55 +0000 (12:03 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
* libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 23 Aug 2011 12:01:51 +0000 (12:01 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c,
libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c,
libc/string/strcasecmp.c, libc/string/strncasecmp.c:
Let synopsis reference "#include <strings.h>".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 23 Aug 2011 11:59:56 +0000 (11:59 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG.
* libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE.
* libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and
"iswcntrl".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 23 Aug 2011 05:51:04 +0000 (05:51 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on
__SIZE_MAX__, __SIZEOF_SIZE_T__ and __CHAR_BIT__.

13 years ago * picflag.m4: New file.
Rainer Orth [Mon, 22 Aug 2011 17:51:24 +0000 (17:51 +0000)]
* picflag.m4: New file.

13 years ago2011-08-22 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Mon, 22 Aug 2011 16:49:37 +0000 (16:49 +0000)]
2011-08-22  Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/string/index.c: Include <strings.h> for "index".
* libc/string/rindex.c: Include <strings.h> for "rindex".
* libc/string/strcasecmp.c: Include <strings.h> for "strcasecmp".
Don't include <string.h>.
* libc/string/strncasecmp.c: Include <strings.h> for "strncasecmp".
Don't include <string.h>.
* libc/string/bzero.c: Include <strings.h> for "bzero".
Don't include <string.h>
* libc/misc/ffs.c: Include <strings.h> for "ffs".
Don't include <_ansi.h>.

13 years ago* Makefile.in: Check for header file existence when building dumper.exe too.
Christopher Faylor [Sun, 21 Aug 2011 19:36:52 +0000 (19:36 +0000)]
* Makefile.in: Check for header file existence when building dumper.exe too.

13 years ago* dtable.cc (conv_start_chars): Remove unneeded section attribute.
Christopher Faylor [Sun, 21 Aug 2011 18:45:07 +0000 (18:45 +0000)]
* dtable.cc (conv_start_chars): Remove unneeded section attribute.

13 years ago* include/paths.h (_PATH_MAILDIR): Define.
Yaakov Selkowitz [Sun, 21 Aug 2011 03:22:30 +0000 (03:22 +0000)]
* include/paths.h (_PATH_MAILDIR): Define.
(_PATH_SHELLS): Define.

13 years ago * fhandler_process.cc (format_process_maps): Define page protection
Corinna Vinschen [Sat, 20 Aug 2011 18:55:45 +0000 (18:55 +0000)]
* fhandler_process.cc (format_process_maps): Define page protection
shortcuts RO, X, and WC.  Use in creating access flag string.  Don't
set type flag to 's' for copy-on-write pages, as on Linux.

13 years ago2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Sat, 20 Aug 2011 05:34:22 +0000 (05:34 +0000)]
2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/sys/rtems/crt0.c: Rework RTEMS_STUB macro.
Include <unistd.h>.
Remove C++-style comments.
Remove hppa, a29k.
Add clock_gettime, gettimeofday, sched_yield.

13 years ago2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 20 Aug 2011 05:00:12 +0000 (05:00 +0000)]
2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.19.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 20 Aug 2011 04:12:22 +0000 (04:12 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/float.h: Modify guard to accomodate CLang.

        Thanks to Ruben Van Boxem for the report.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 20 Aug 2011 04:11:28 +0000 (04:11 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * tlssup.c: Remove mingwm10.dll fallback.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 20 Aug 2011 01:38:16 +0000 (01:38 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/sys/types.h (ssize_t): Defined as int as opposed to long.

        Thanks to bvassche for the report.

13 years ago* new-features.sgml (ov-new1.7.10): Document /proc/devices
Yaakov Selkowitz [Fri, 19 Aug 2011 20:06:28 +0000 (20:06 +0000)]
* new-features.sgml (ov-new1.7.10): Document /proc/devices
and /proc/misc.

13 years ago* devices.h (fh_devices): Define DEV_MISC_MAJOR, DEV_MEM_MAJOR,
Yaakov Selkowitz [Fri, 19 Aug 2011 20:05:15 +0000 (20:05 +0000)]
* devices.h (fh_devices): Define DEV_MISC_MAJOR, DEV_MEM_MAJOR,
DEV_SOUND_MAJOR.  Use throughout.
* fhandler_proc.cc (proc_tab): Add /proc/devices and /proc/misc
virtual files.
(format_proc_devices): New function.
(format_proc_misc): New function.

13 years ago* dtable.cc: Mark some const variables as static.
Christopher Faylor [Fri, 19 Aug 2011 18:19:22 +0000 (18:19 +0000)]
* dtable.cc: Mark some const variables as static.
* environ.cc (conv_start_chars): Move to shared cygwin region and initialize at
compile time.
(match_first_char): New generic function for querying conv_start_chars.
(posify_maybe): Rename from posify.
(environ_init): Remove conv_envvars initialization.  Don't check
conv_start_chars, just allow posify_maybe to make the decision.
* fhandler_console.cc (__vt100_conv): Fix formatting.  Mark as const.

13 years ago2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Fri, 19 Aug 2011 17:00:32 +0000 (17:00 +0000)]
2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/stdio/vasiprintf.c: Include "local.h" for "_svfiprintf_r".
* libc/stdio/vasprintf.c Include "local.h" for "_svfprintf_r".
* libc/stdio/vsiprintf.c: Include "local.h" for "_svfiprintf_r".
* libc/stdio/vsniprintf.c: Include "local.h" for "_svfiprintf_r".
* libc/stdio/vsnprintf.c: Include "local.h" for "_svfprintf_r"
* libc/stdio/vsprintf.c: Include "local.h" for "_svfprintf_r"

13 years ago2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Fri, 19 Aug 2011 16:58:20 +0000 (16:58 +0000)]
2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/string/bcmp.c: Include <strings.h> for "bcmp".
* libc/string/bcopy.c: Include <strings.h> for "bcopy".
* libc/string/strcasestr.c: Include <strings.h> for "strncasecmp".
* libc/time/strptime.c: Include <strings.h> for "strncasecmp".

13 years agoInclude the <root>/cpu/ dir in GDB releases
Joel Brobecker [Fri, 19 Aug 2011 15:48:36 +0000 (15:48 +0000)]
Include the <root>/cpu/ dir in GDB releases

This directory contains some files that are used to generate some
of the files included in the GDB release, and thus must be part of
the GDB release also.

ChangeLog:

        * src-release (GDB_SUPPORT_DIRS): Add 'cpu'.

13 years ago * iq2000/sim.ld (.gcc_except_table): Include .gcc_except_table.foo
Nick Clifton [Fri, 19 Aug 2011 14:57:50 +0000 (14:57 +0000)]
* iq2000/sim.ld (.gcc_except_table): Include .gcc_except_table.foo
sections as well.

13 years ago * libc/include/process.h: Remove exec family function declarations.
Corinna Vinschen [Fri, 19 Aug 2011 14:29:34 +0000 (14:29 +0000)]
* libc/include/process.h: Remove exec family function declarations.
Add comment.
* libc/include/sys/unistd.h (execlpe): Declare for Cygwin.

13 years ago * libc/time/mktime.c (validate_structure): Account for tm_mon possibly
Corinna Vinschen [Fri, 19 Aug 2011 14:14:18 +0000 (14:14 +0000)]
* libc/time/mktime.c (validate_structure): Account for tm_mon possibly
being given as negative.
(mktime): Set tm_isdst=0 when !daylight.

13 years ago * fhandler_console.cc (fhandler_console::read): Recognize backspace key
Corinna Vinschen [Fri, 19 Aug 2011 13:10:01 +0000 (13:10 +0000)]
* fhandler_console.cc (fhandler_console::read): Recognize backspace key
using the device independent key code, rather than the device dependent
scan code.

13 years ago * include/winuser.h: Ad missing MAPVK_xxx definitions.
Corinna Vinschen [Fri, 19 Aug 2011 11:58:05 +0000 (11:58 +0000)]
* include/winuser.h: Ad missing MAPVK_xxx definitions.

13 years ago* sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
Yaakov Selkowitz [Fri, 19 Aug 2011 01:41:49 +0000 (01:41 +0000)]
* sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
this is now defined in <sys/stat.h>.

13 years ago* dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration.
Christopher Faylor [Thu, 18 Aug 2011 15:59:16 +0000 (15:59 +0000)]
* dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration.
* init.cc: Reflect change to dll_crt0_0 in declaration.

13 years ago * dtable.cc (dtable::get_debugger_info): Add missing braces.
Corinna Vinschen [Thu, 18 Aug 2011 09:16:50 +0000 (09:16 +0000)]
* dtable.cc (dtable::get_debugger_info): Add missing braces.
(dtable::stdio_init): Fix incorrect negation of not_open(2) condition.

13 years ago2011-08-16 Pierre Humblet <Pierre.Humblet@ieee.org>
Pierre Humblet [Tue, 16 Aug 2011 23:32:18 +0000 (23:32 +0000)]
2011-08-16  Pierre Humblet <Pierre.Humblet@ieee.org>

        * net.cc (gethostby_helper): Remove DEBUGGING code from and
        streamline the second pass.

13 years ago * dlfcn.cc (dlopen): Reimplement RTLD_NODELETE for Windows 2000 using
Corinna Vinschen [Tue, 16 Aug 2011 20:08:34 +0000 (20:08 +0000)]
* dlfcn.cc (dlopen): Reimplement RTLD_NODELETE for Windows 2000 using
internal datastructures.  Explain the code.
* ntdll.h (struct _LDR_DATA_TABLE_ENTRY): Define.
(struct _PEB_LDR_DATA): Define.
(struct _PEB): Change PVOID LoaderData to PPEB_LDR_DATA Ldr.

* fhandler_process.cc (format_process_maps): Call NtQueryVirtualMemory
with valid return length pointer.  Explain why.

13 years ago * new-features.sgml (ov-new1.7.10): Document new RTLD flags.
Corinna Vinschen [Tue, 16 Aug 2011 14:51:06 +0000 (14:51 +0000)]
* new-features.sgml (ov-new1.7.10): Document new RTLD flags.

13 years ago * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Corinna Vinschen [Tue, 16 Aug 2011 14:48:38 +0000 (14:48 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago * autoload.cc (GetModuleHandleExW): Define.
Corinna Vinschen [Tue, 16 Aug 2011 14:44:26 +0000 (14:44 +0000)]
* autoload.cc (GetModuleHandleExW): Define.
* dlfcn.cc: Throughout mark exported symbols as extern "C".
(dlopen): Unignore flags argument.  Define ret to NULL.  Fix typo in
comment.  Support Glibc flags RTLD_NOLOAD and RTLD_NODELETE.
* include/dlfcn.h:  Clean up comments.
(RTLD_NODELETE): Define.
(RTLD_NOLOAD): Define.
(RTLD_DEEPBIND): Define.

13 years ago * pipe.cc (pipe): Just call _pipe with O_BINARY mode. Move code to
Corinna Vinschen [Mon, 15 Aug 2011 16:05:13 +0000 (16:05 +0000)]
* pipe.cc (pipe): Just call _pipe with O_BINARY mode.  Move code to
generate normalized pathnames from here...
(_pipe): ...to here.

13 years ago Merge from gcc:
Yao Qi [Sun, 14 Aug 2011 12:28:16 +0000 (12:28 +0000)]
Merge from gcc:

2011-08-14  Yao Qi  <yao@codesourcery.com>
* configure.ac (tic6x-*-*): Remove gdb from noconfigdirs.
* configure: Regenerate.

13 years ago * miscfuncs.cc (CreatePipeOverlapped): New function.
Corinna Vinschen [Sat, 13 Aug 2011 10:28:15 +0000 (10:28 +0000)]
* miscfuncs.cc (CreatePipeOverlapped): New function.
(ReadPipeOverlapped): Ditto.
(WritePipeOverlapped): Ditto.
* miscfuncs.h: Declare new functions.
* pinfo.cc (commune_process): Call WritePipeOverlapped instead of
WriteFile.  Set timeout to 1 sec.
(_pinfo::commune_request): Call ReadPipeOverlapped instead of ReadFile.
Set timeout to 0.5 secs.
* sigproc.cc (sig_send): Create pipe using CreatePipeOverlapped.

13 years agoAdd R_X86_64_RELATIVE64.
H.J. Lu [Fri, 12 Aug 2011 20:33:34 +0000 (20:33 +0000)]
Add R_X86_64_RELATIVE64.

2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13082
* x86-64.h (R_X86_64_RELATIVE64): New.

13 years ago* miscfuncs.cc (create_pipe): Delete obsolete function.
Christopher Faylor [Fri, 12 Aug 2011 16:55:35 +0000 (16:55 +0000)]
* miscfuncs.cc (create_pipe): Delete obsolete function.
* miscfuncs.h (create_pipe): Delete define.
* pipe.c (fhandler_pipe::create_selectable): Delete obsolete comment.

13 years ago * new-features.sgml (ov-new1.7.10): Document large address awareness
Corinna Vinschen [Fri, 12 Aug 2011 13:51:21 +0000 (13:51 +0000)]
* new-features.sgml (ov-new1.7.10): Document large address awareness
of heap and new way to set the default heap size per executable.
* setup2.sgml (setup-maxmem): Revamp to explain new method of
allocating more heap on a per-executable basis.  Drop outdated stuff.
Keep shortened description of heap_chunk_in_mb as note.

13 years ago * fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete
Corinna Vinschen [Fri, 12 Aug 2011 12:35:37 +0000 (12:35 +0000)]
* fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete
instead.

Also fix previous ChangeLog entry.

13 years ago * fhandler.h (fhandler_proc::opendir): Declare.
Corinna Vinschen [Fri, 12 Aug 2011 12:31:08 +0000 (12:31 +0000)]
* fhandler.h (fhandler_proc::opendir): Declare.
(fhandler_proc::closedir): Declare.
* fhandler_proc.cc (fhandler_proc::opendir): New method.  Fetch list
of active processes here once to avoid potential duplicates.
(fhandler_proc::closedir): New method.

13 years ago * fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Don't allow to
Corinna Vinschen [Thu, 11 Aug 2011 16:43:26 +0000 (16:43 +0000)]
* fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Don't allow to
access process info by using the Windows PID.
* fhandler_process.cc (fhandler_process::fstat): Ditto.
(fhandler_process::fill_filebuf): Ditto.

13 years ago * (winpids::add): Make sure to store always a Windows PID in
Corinna Vinschen [Thu, 11 Aug 2011 07:28:42 +0000 (07:28 +0000)]
* (winpids::add): Make sure to store always a Windows PID in
pidlist, even if pid is a Cygwin PID.
(winpids::enum_processes): Fetch Cygwin processes from listing of
shared cygwin object dir in the native NT namespace.  Only if winpid
is true, fetch Windows processes using an additional call to
NtQuerySystemInformation.

13 years ago * ps.cc (main): Don't overwrite process name, just attach <defunct>
Corinna Vinschen [Wed, 10 Aug 2011 19:52:41 +0000 (19:52 +0000)]
* ps.cc (main): Don't overwrite process name, just attach <defunct>
to it for zombie processes.

13 years ago * fhandler_process.cc (format_process_status): Always print process name
Corinna Vinschen [Wed, 10 Aug 2011 13:13:09 +0000 (13:13 +0000)]
* fhandler_process.cc (format_process_status): Always print process name
even for zombies.
(get_mem_values): Fix loop fetching working set list to avoid out of
memory conditions.  Return all mem values set to 0 for zombies.
* ntdll.h (STATUS_PROCESS_IS_TERMINATING): Define.

13 years ago gas/
Maciej W. Rozycki [Tue, 9 Aug 2011 15:20:03 +0000 (15:20 +0000)]
gas/
* config/tc-mips.c (mips_set_options): Add ase_mcu.
(mips_opts): Initialise ase_mcu to -1.
(ISA_SUPPORTS_MCU_ASE): New macro.
(MIPS_CPU_ASE_MCU): Likewise.
(is_opcode_valid): Handle MCU.
(macro_build, macro): Likewise.
(validate_mips_insn, validate_micromips_insn): Likewise.
(mips_ip): Likewise.
(options): Add OPTION_MCU and OPTION_NO_MCU.
(md_longopts): Add mmcu and mno-mcu.
(md_parse_option): Handle OPTION_MCU and OPTION_NO_MCU.
(mips_after_parse_args): Handle MCU.
(s_mipsset): Likewise.
(md_show_usage): Handle MCU options.

* doc/as.texinfo: Document -mmcu and -mno-mcu options.
* doc/c-mips.texi: Likewise, and document ".set mcu" and
".set nomcu" directives.

gas/testsuite/
* gas/mips/micromips@mcu.d: New test.
* gas/mips/mcu.d: Likewise.
* gas/mips/mcu.s: New test source.
* gas/mips/mips.exp: Run the new tests.

include/opcode/
* mips.h (OP_MASK_3BITPOS, OP_SH_3BITPOS): New macros.
(OP_MASK_OFFSET12, OP_SH_OFFSET12): Redefine.
(INSN_ASE_MASK): Add the MCU bit.
(INSN_MCU): New macro.
(M_ACLR_AB, M_ACLR_OB, M_ASET_AB, M_ASET_OB): New enum values.
(MICROMIPSOP_MASK_3BITPOS, MICROMIPSOP_SH_3BITPOS): New macros.

opcodes/
* mips-dis.c (mips_arch_choices): Enable MCU for "mips32r2"
and "mips64r2".
(print_insn_args, print_insn_micromips): Handle MCU.
* micromips-opc.c (MC): New macro.
(micromips_opcodes): Add "aclr", "aset" and "iret".
* mips-opc.c (MC): New macro.
(mips_builtin_opcodes): Add "aclr", "aset" and "iret".

13 years ago include/opcode/
Maciej W. Rozycki [Tue, 9 Aug 2011 14:25:29 +0000 (14:25 +0000)]
include/opcode/
* mips.h (INSN_WRITE_GPR_S, INSN2_WRITE_GPR_MB): New macros.
(INSN2_READ_GPR_MC, INSN2_READ_GPR_ME): Likewise.
(INSN2_WRITE_GPR_MF, INSN2_READ_GPR_MG): Likewise.
(INSN2_READ_GPR_MJ, INSN2_WRITE_GPR_MJ): Likewise.
(INSN2_READ_GPR_MP, INSN2_WRITE_GPR_MP): Likewise.
(INSN2_READ_GPR_MQ, INSN2_WRITE_GPR_MHI): Likewise.
(INSN2_READ_GPR_MMN): Likewise.
(INSN2_READ_FPR_D): Change the bit used.
(INSN2_MOD_GPR_MD, INSN2_MOD_GPR_MF): Likewise.
(INSN2_MOD_SP, INSN2_READ_GPR_31, INSN2_READ_GP): Likewise.
(INSN2_READ_PC, INSN2_UNCOND_BRANCH): Likewise.
(INSN2_COND_BRANCH): Likewise.
(INSN2_WRITE_GPR_S, INSN2_MOD_GPR_MB): Remove macros.
(INSN2_MOD_GPR_MC, INSN2_MOD_GPR_ME, INSN2_MOD_GPR_MG): Likewise.
(INSN2_MOD_GPR_MJ, INSN2_MOD_GPR_MP, INSN2_MOD_GPR_MQ): Likewise.
(INSN2_MOD_GPR_MHI, INSN2_MOD_GPR_MM): Likewise.
(INSN2_MOD_GPR_MN): Likewise.

gas/
* config/tc-mips.c (gpr_mod_mask): Remove INSN2_MOD_GPR_MB,
INSN2_MOD_GPR_MC, INSN2_MOD_GPR_ME, INSN2_MOD_GPR_MG,
INSN2_MOD_GPR_MHI, INSN2_MOD_GPR_MJ, INSN2_MOD_GPR_MM,
INSN2_MOD_GPR_MN, INSN2_MOD_GPR_MP and INSN2_MOD_GPR_MQ opcode
register use checks.
(gpr_read_mask): Add INSN2_READ_GPR_MC, INSN2_READ_GPR_ME
INSN2_READ_GPR_MG, INSN2_READ_GPR_MJ, INSN2_READ_GPR_MMN,
INSN2_READ_GPR_MP and INSN2_READ_GPR_MQ opcode register use
checks.
(gpr_write_mask): Replace INSN2_WRITE_GPR_S opcode register
use flag with INSN_WRITE_GPR_S.  Add INSN2_WRITE_GPR_MB,
INSN2_WRITE_GPR_MHI, INSN2_WRITE_GPR_MJ and INSN2_WRITE_GPR_MP
opcode register use checks.
(can_swap_branch_p): Enable microMIPS branch swapping.
(append_insn): Likewise.

gas/testsuite/
* gas/mips/micromips.d: Update according to changes to enable
microMIPS branch swapping.
* gas/mips/micromips-trap.d: Likewise.
* gas/mips/micromips@jal-svr4pic.d: Likewise.
* gas/mips/micromips@loc-swap.d: Likewise.
* gas/mips/micromips@loc-swap-dis.d: Likewise.

opcodes/
* micromips-opc.c (MOD_mb, MOD_mc, MOD_md): Remove macros.
(MOD_me, MOD_mf, MOD_mg, MOD_mhi, MOD_mj, MOD_ml): Likewise.
(MOD_mm, MOD_mn, MOD_mp, MOD_mq, MOD_sp): Likewise.
(WR_mb, RD_mc, RD_md, WR_md, RD_me, RD_mf, WR_mf): New macros.
(RD_mg, WR_mhi, RD_mj, WR_mj, RD_ml, RD_mmn): Likewise.
(RD_mp, WR_mp, RD_mq, RD_sp, WR_sp): Likewise.
(WR_s): Update macro.
(micromips_opcodes): Update register use flags of: "addiu",
"addiupc", "addiur1sp", "addiur2", "addius5", "addiusp", "addu",
"and", "andi", "beq", "beqz", "bne", "bnez", "di", "ei", "j",
"jalr", "jalrs", "jr", "jraddiusp", "jrc", "lbu", "lhu", "li",
"lui", "lw", "lwm", "mfhi", "mflo", "move", "movep", "not",
"nor", "or", "ori", "sb", "sh", "sll", "srl", "subu", "sw",
"swm" and "xor" instructions.

13 years ago * heap.cc (eval_initial_heap_size): New function fetching the heap
Corinna Vinschen [Tue, 9 Aug 2011 12:00:27 +0000 (12:00 +0000)]
* heap.cc (eval_initial_heap_size): New function fetching the heap
size from the LoaderFlags field in the PE/COFF header.
(heap_init): Call eval_initial_heap_size rather than
cygwin_shared->heap_chunk_size to fetch the initial heap size.
* shared.cc (shared_info::heap_chunk_size): Remove.
* shared_info.h (class shared_info): Drop heap_chunk member.
(CURR_SHARED_MAGIC): Update.

13 years ago * ntdll.h (STATUS_NOT_FOUND): Define.
Corinna Vinschen [Tue, 9 Aug 2011 09:14:28 +0000 (09:14 +0000)]
* ntdll.h (STATUS_NOT_FOUND): Define.
* ntea.cc (read_ea): Return correct ENOTSUP rather than EOPNOTSUPP.
Handle STATUS_INVALID_DEVICE_REQUEST and STATUS_NOT_FOUND.  Explain
why.  Convert conditional to switch statement.
(write_ea): Return correct ENOTSUP rather than EOPNOTSUPP.  Handle
STATUS_INVALID_DEVICE_REQUEST.  Convert conditional to switch statement.

13 years agoFix name in last entry.
Jeff Johnston [Mon, 8 Aug 2011 18:36:01 +0000 (18:36 +0000)]
Fix name in last entry.

13 years agobfd/
Tristan Gingold [Mon, 8 Aug 2011 10:21:02 +0000 (10:21 +0000)]
bfd/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_version_min_command): New structure.
(bfd_mach_o_load_command): Add version_min.
(mach_o_data_struct): Fix comment.
* mach-o.c (bfd_mach_o_read_version_min): New function.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS,
BFD_MACH_O_LC_VERSION_MIN_MACOSX and
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
(bfd_mach_o_get_name_or_null): New function.
(bfd_mach_o_get_name): Use the above new one.
(bfd_mach_o_load_command_name): Add the above new commands.
(bfd_mach_o_bfd_print_private_bfd_data): Display numerically
unknown commands.  Handle BFD_MACH_O_LC_FUNCTION_STARTS,
BFD_MACH_O_LC_VERSION_MIN_MACOSX and
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.

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

* loader.h (bfd_mach_o_load_command_type): Add
BFD_MACH_O_LC_LOAD_UPWARD_DYLIB, BFD_MACH_O_LC_VERSION_MIN_MACOSX,
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS, BFD_MACH_O_LC_FUNCTION_STARTS,
and BFD_MACH_O_LC_DYLD_ENVIRONMENT.
* external.h (mach_o_version_min_command_external): New structure.

13 years agobfd/
Tristan Gingold [Mon, 8 Aug 2011 08:59:33 +0000 (08:59 +0000)]
bfd/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Move size macros to external.h
Move reloc macros to reloc.h and x86-64.h.
* mach-o-i386.c: Includes mach-o/reloc.h
* mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h
* mach-o.c: Add includes.
(bfd_mach_o_write_header): Use structure from external.h to convert.
(bfd_mach_o_write_thread): Ditto.
(bfd_mach_o_write_relocs): Ditto.
(bfd_mach_o_write_section_32): Ditto.
(bfd_mach_o_write_section_64): Ditto.
(bfd_mach_o_write_segment_32): Ditto.
(bfd_mach_o_write_segment_64): Ditto.
(bfd_mach_o_write_symtab): Ditto.
(bfd_mach_o_write_contents): Ditto.
(bfd_mach_o_read_header): Ditto.
(bfd_mach_o_read_section_32): Ditto.
(bfd_mach_o_read_section_64): Ditto.
(bfd_mach_o_read_symtab_symbol): Ditto.
(bfd_mach_o_read_dylinker): Ditto.
(bfd_mach_o_read_dylib): Ditto.
(bfd_mach_o_read_dysymtab): Ditto.
(bfd_mach_o_read_symtab): Ditto.
(bfd_mach_o_read_linkedit): Ditto.
(bfd_mach_o_read_str): Ditto.
(bfd_mach_o_read_dyld_info): Ditto.
(bfd_mach_o_read_segment): Ditto.
(bfd_mach_o_read_command): Ditto.
(bfd_mach_o_archive_p): Ditto.
(bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter.
(bfd_mach_o_canonicalize_relocs): Adjust to call the above function.
(bfd_mach_o_read_dysymtab_symbol): Rename BUF variable.
(bfd_mach_o_read_uuid): Remove useless cast.  Use a macro instead
of an hard-coded value.

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

* loader.h: Reorder declarations.
* x86-64.h: New file.
* external.h: New file.
* reloc.h: New file.

13 years ago * resource.cc (getrlimit): Just return RLIM_INFINITY in a request for
Corinna Vinschen [Sun, 7 Aug 2011 19:49:08 +0000 (19:49 +0000)]
* resource.cc (getrlimit): Just return RLIM_INFINITY in a request for
RLIMIT_AS.

13 years ago * fhandler_process.cc (format_process_maps): Actually print info about
Corinna Vinschen [Sun, 7 Aug 2011 11:04:32 +0000 (11:04 +0000)]
* fhandler_process.cc (format_process_maps): Actually print info about
the application heap of the printed process, not of the current process.

13 years agoinclude/opcode/
David S. Miller [Fri, 5 Aug 2011 16:52:48 +0000 (16:52 +0000)]
include/opcode/
* sparc.h: Document new format codes '4', '5', and '('.
(OPF_LOW4, RS3): New macros.
opcodes/
* sparc-dis.c (v9a_ast_reg_names): Add "cps".
(X_RS3): New macro.
(print_insn_sparc): Handle '4', '5', and '(' format codes.
Accept %asr numbers below 28.
* sparc-opc.c (sparc_opcodes): Add entries for HPC and VIS3
instructions.
gas/
* config/tc-sparc.c (v9a_asr_table): Add "cps".
(sparc_ip): Handle '4', '5' and '(' format codes.
gas/testsuite
* gas/sparc/hpcvis3.d: New test.
* gas/sparc/hpcvis3.s: New test source.
* gas/sparc/sparc.exp: Run new test.

13 years ago * include/winnt.h (IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE,
Corinna Vinschen [Fri, 5 Aug 2011 07:02:26 +0000 (07:02 +0000)]
* include/winnt.h (IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY,
IMAGE_DLLCHARACTERISTICS_NX_COMPAT): Fix typo in definitions.
(IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY,
IMAGE_DLL_CHARACTERISTICS_NX_COMPAT): Keep broken definitions for
backward compatibility.

13 years ago * faq-using.xml (faq.using.bloda): Add NVIDIA. Change wording slightly.
Corinna Vinschen [Thu, 4 Aug 2011 18:25:41 +0000 (18:25 +0000)]
* faq-using.xml (faq.using.bloda): Add NVIDIA.  Change wording slightly.

13 years ago * net.cc (socketpair): Release sb0 if there's no space left for sb1.
Corinna Vinschen [Thu, 4 Aug 2011 08:22:11 +0000 (08:22 +0000)]
* net.cc (socketpair): Release sb0 if there's no space left for sb1.

13 years ago * mips.h: Document the use of FP_D in MIPS16 mode. Adjust the
Maciej W. Rozycki [Wed, 3 Aug 2011 21:09:46 +0000 (21:09 +0000)]
* mips.h: Document the use of FP_D in MIPS16 mode.  Adjust the
order of flags documented.

13 years ago* new-features.sgml (ov-new1.7.10): Document new POSIX Clock Selection
Yaakov Selkowitz [Wed, 3 Aug 2011 19:18:07 +0000 (19:18 +0000)]
* new-features.sgml (ov-new1.7.10): Document new POSIX Clock Selection
option APIs.

13 years ago* cygwin.din (clock_nanosleep): Export.
Yaakov Selkowitz [Wed, 3 Aug 2011 19:17:02 +0000 (19:17 +0000)]
* cygwin.din (clock_nanosleep): Export.
* posix.sgml (std-notimpl): Move clock_nanosleep from here...
(std-susv4): ... to here.
(std-notes): Note limitations of clock_nanosleep.
* signal.cc (clock_nanosleep): Renamed from nanosleep, adding clock_id
and flags arguments and changing return values throughout.
Improve checks for illegal rqtp values.  Add support for
CLOCK_MONOTONIC and TIMER_ABSTIME.
(nanosleep): Rewrite in terms of clock_nanosleep.
(sleep): Ditto.
(usleep): Ditto.
* thread.cc: Mark clock_nanosleep in list of cancellation points.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago* dll_init.cc: Use fabort in favor of api_fatal and fork_info->abort where
Christopher Faylor [Wed, 3 Aug 2011 17:58:59 +0000 (17:58 +0000)]
* dll_init.cc: Use fabort in favor of api_fatal and fork_info->abort where
appropriate throughout.
(fabort): Define.
(dll_list::topsort): Don't print sorting information.  Fix formatting.
(dll_list::topsort_visit): Fix formatting.
(dll_list::load_after_fork_impl): Perform comment fixups.
* sigproc.cc (child_info_fork::abort): (for now?) Always print cause of fork
failure.
* include/sys/strace.h (strace_vprintf): Remove _STRACE_NOTALL when printing.
We really do want to see this.

13 years ago* cygtls.h (struct _local_storage): Add cw_timer member.
Yaakov Selkowitz [Wed, 3 Aug 2011 16:40:48 +0000 (16:40 +0000)]
* cygtls.h (struct _local_storage): Add cw_timer member.
* cygtls.cc (_cygtls::init_thread): Initialize locals.cw_timer.
(_cygtls::fixup_after_fork): Ditto.
* tlsoffsets.h: Regenerate.
* ntdll.h (enum _TIMER_INFORMATION_CLASS): Define.
(struct _TIMER_BASIC_INFORMATION): Define.
(NtQueryTimer): Declare function.
* thread.h (cancelable_wait): Change timeout argument to
PLARGE_INTEGER and provide NULL default.
(fast_mutex::lock): Adjust accordingly.
(pthread_cond::wait): Change timeout argument to PLARGE_INTEGER
and default to NULL.
* thread.cc (cancelable_wait): Change timeout argument to
PLARGE_INTEGER.  Initialize _cygtls.locals.cw_timer if needed.
Use NT waitable timers for handling timeout.  Return remaining time
to timeout argument if timeout was relative.
(pthread_cond::wait): Change timeout argument to PLARGE_INTEGER.
Adjust to change in cancelable_wait.
(pthread_mutex::lock): Adjust to change in cancelable_wait.
(pthread_spinlock::lock): Ditto.
(pthread::join): Ditto.
(__pthread_cond_dowait): Change waitlength argument to PLARGE_INTEGER.
Adjust to changes in cancelable_wait and pthread_cond::wait.
(pthread_cond_timedwait): Adjust to change in __pthread_cond_dowait.
(pthread_cond_wait): Ditto.
(semaphore::_timedwait): Adjust to change in cancelable_wait.
(semaphore::_wait): Ditto.
* exceptions.cc (handle_sigsuspend): Ditto.
* signal.cc (nanosleep): Ditto.
* wait.cc (wait4): Ditto. Fix copyright dates.
* times.cc (FACTOR, NSPERSEC): Move from here...
* hires.h (FACTOR, NSPERSEC): ...to here.

13 years ago2011-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill [Mon, 1 Aug 2011 17:22:18 +0000 (17:22 +0000)]
2011-08-01  Sebastian Huber <sebastian.huber@embedded-brains.de>

* libc/include/sys/types.h: XML and RTEMS define
_UNIX98_THREAD_MUTEX_ATTRIBUTES and can use the standard
definitions. This avoids redefinition warnings.

13 years ago * syscalls.cc (faccessat): Fix parens in flag expression when calling
Corinna Vinschen [Mon, 1 Aug 2011 17:01:38 +0000 (17:01 +0000)]
* syscalls.cc (faccessat): Fix parens in flag expression when calling
build_fh_name.

* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Fix typo in
comment.
* fhandler_socket.cc (fhandler_socket::bind): Ditto.
* path.cc (symlink_worker): Ditto.

13 years ago* dll_init.cc (dll_list::load_after_fork_impl): Add a hint to an error message.
Christopher Faylor [Mon, 1 Aug 2011 13:11:37 +0000 (13:11 +0000)]
* dll_init.cc (dll_list::load_after_fork_impl): Add a hint to an error message.

13 years ago* sigproc.cc (pending_signals::pending): Define new function.
Christopher Faylor [Mon, 1 Aug 2011 00:02:04 +0000 (00:02 +0000)]
* sigproc.cc (pending_signals::pending): Define new function.
(sig_dispatch_pending): Avoid calling sig_send if there are no pending signals.

13 years ago * fhandler.h (class fhandler_dev_mem): Remove dup method declaration.
Corinna Vinschen [Sun, 31 Jul 2011 12:37:52 +0000 (12:37 +0000)]
* fhandler.h (class fhandler_dev_mem): Remove dup method declaration.
* fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Accommodate the
fact that the entire fhandler gets copied over to the child in
operator =.
* fhandler_floppy.cc (fhandler_dev_floppy::dup): Ditto.
* fhandler_raw.cc (fhandler_dev_raw::dup): Ditto.
* fhandler_serial.cc (fhandler_serial::dup): Ditto.
* fhandler_socket.cc (fhandler_socket::dup): Ditto.
* fhandler_virtual.cc (fhandler_virtual::dup): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::dup): Ditto.  Remove entirely.

13 years agoadd missing entry
Christopher Faylor [Sat, 30 Jul 2011 21:09:20 +0000 (21:09 +0000)]
add missing entry

13 years ago* cygthread.cc (cygthread::async_create): Define new function.
Christopher Faylor [Sat, 30 Jul 2011 20:50:23 +0000 (20:50 +0000)]
* cygthread.cc (cygthread::async_create): Define new function.
* cygthread.h (cygthread::create): Use correct regparm.
(cygthread::standalone): Delete from class and from all constructors.
(cygthread::cygthread): Use three only arguments for detached threads, and
start the thread via QueueUserAPC/async_create.
* dcrt0.cc (dll_crt0_0): Remove handling for wincap.has_buggy_thread_startup.
(dll_crt0_1): Ditto.
* wincap.cc: Ditto throughout.
* wincap.h: Ditto.

13 years ago* fhandler.h (fhandler_base_overlapped::size): Declare/define size() function
Christopher Faylor [Sat, 30 Jul 2011 20:01:27 +0000 (20:01 +0000)]
* fhandler.h (fhandler_base_overlapped::size): Declare/define size() function
for consistency.
(fhandler_termios::size): Ditto.
(fhandler_pty_common::size): Ditto.

13 years ago * fhandler_registry.cc (fhandler_registry::dup): Duplicate value_name.
Corinna Vinschen [Sat, 30 Jul 2011 08:09:44 +0000 (08:09 +0000)]
* fhandler_registry.cc (fhandler_registry::dup): Duplicate value_name.

13 years ago bfd/
Maciej W. Rozycki [Fri, 29 Jul 2011 22:46:29 +0000 (22:46 +0000)]
bfd/
* elfxx-mips.c: Adjust comments throughout.
(mips_elf_relax_delete_bytes): Reshape code.
(_bfd_mips_elf_relax_section): Remove check for
R_MICROMIPS_GPREL16 relocations.  Reshape code.

gas/
* config/tc-mips.c: Adjust comments throughout.
(reglist_lookup): Reshape code.
(jmp_reloc_p, jalr_reloc_p): Reformat.
(got16_reloc_p, hi16_reloc_p, lo16_reloc_p): Handle microMIPS
relocations.
(gpr_mod_mask): Remove unused variable.
(gpr_read_mask, gpr_write_mask): Reshape code.
(fpr_read_mask, fpr_write_mask): Likewise.
(nops_for_vr4130): Ensure non-microMIPS mode.
(can_swap_branch_p): Correct pinfo2 reference.  Reshape code.
(append_insn): Skip Loongson 2F workaround in MIPS16 mode.  Use
the outermost operator of a compound relocation to determines
the relocated field.  Fix formatting.
(md_convert_frag): Reshape code.

include/opcode/
* mips.h: Clarify the description of microMIPS instruction
manipulation macros.
(MICROMIPSOP_MASK_MAJOR, MICROMIPSOP_SH_MAJOR): Remove macros.

13 years ago Throughout change "WinSock" to "Winsock" in comments.
Corinna Vinschen [Fri, 29 Jul 2011 12:47:54 +0000 (12:47 +0000)]
Throughout change "WinSock" to "Winsock" in comments.
* fhandler_socket.cc (fhandler_socket::sendmsg): Add missing call to
get_inet_addr to convert AF_LOCAL to AF_INET sockets.
* net.cc (cygwin_socket): Workaround UDP Winsock problem.  Add comment
to explain why.
* select.cc: Include winsock2.h rather than winsock.h.

13 years ago * include/winsock2.h (SIO_UDP_CONNRESET): Define.
Corinna Vinschen [Fri, 29 Jul 2011 11:45:15 +0000 (11:45 +0000)]
* include/winsock2.h (SIO_UDP_CONNRESET): Define.

13 years ago Merge from gcc:
Ian Lance Taylor [Tue, 26 Jul 2011 18:48:08 +0000 (18:48 +0000)]
Merge from gcc:

2011-07-26  Ian Lance Taylor  <iant@google.com>
* configure.ac: Set have_compiler based on whether gcc directory
exists, rather than on whether gcc is in configdirs.
* configure: Rebuild.

2011-07-20  David Edelsohn  <dje.gcc@gmail.com>
* Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to
link directories.
* Makefile.in: Rebuild.

2011-07-20  Ian Lance Taylor  <iant@google.com>
PR bootstrap/49787
* configure.ac: Move --enable-bootstrap handling earlier in file.
If --enable-bootstrap and either --enable-build-with-cxx or
--enable-build-poststage1-with-cxx, enable C++ automatically.
* configure: Rebuild.

2011-07-19  Ian Lance Taylor  <iant@google.com>
* configure.ac: Add --enable-build-poststage1-with-cxx.  If set,
make C++ a boot_language.  Set and substitute
POSTSTAGE1_CONFIGURE_FLAGS.
* Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): New variable.
(STAGE[+id+]_CONFIGURE_FLAGS): Add $(POSTSTAGE1_CONFIGURE_FLAGS).
* configure, Makefile.in: Rebuild.

2011-07-16  Jason Merrill  <jason@redhat.com>
* Makefile.def (language=c++): Add check-c++0x and
check-target-libmudflap-c++.
* Makefile.tpl (check-target-libmudflap-c++): New.
* Makefile.in: Regenerate.

2011-07-16  Matthias Klose  <doko@ubuntu.com>
* Makefile.tpl (EXTRA_CONFIGARGS_LIBJAVA): Define.
* Makefile.def (target_modules/libjava): Pass
$(EXTRA_CONFIGARGS_LIBJAVA).
* configure.ac: Pass --disable-static in EXTRA_CONFIGARGS_LIBJAVA,
if not configured with --enable-static-libjava.
* Makefile.in: Regenerate.
* configure: Likewise.

2011-06-22  Hans-Peter Nilsson  <hp@axis.com>
PR regression/47836
PR bootstrap/23656
PR other/47733
PR bootstrap/49247
PR c/48825
* configure.ac (target_libraries): Remove target-libiberty.
Remove case-statement setting skipdirs=target-libiberty for
multiple targets.  Remove checking target_configdirs and
removing target-libiberty but keeping target-libgcc if
otherwise empty.
* Makefile.def (target_modules): Don't add libiberty.
(dependencies): Remove all traces of target-libiberty.
* configure, Makefile.in: Regenerate.

13 years ago * fhandler_disk_file.cc (__DIR_mounts::eval_ino): Create path_conv
Corinna Vinschen [Tue, 26 Jul 2011 13:30:41 +0000 (13:30 +0000)]
* fhandler_disk_file.cc (__DIR_mounts::eval_ino): Create path_conv
with PC_KEEP_HANDLE flag.
* path.h (path_conv::operator =): Duplicate UNICODE path as well.
* security.cc (check_file_access): Use path_conv handle if available.
* syscalls.cc (access): Create fhandler with PC_KEEP_HANDLE flag set.
(euidaccess): Ditto.
(faccessat): Ditto.

13 years ago * ntdll.h: Fix typo in comment.
Corinna Vinschen [Tue, 26 Jul 2011 09:54:11 +0000 (09:54 +0000)]
* ntdll.h: Fix typo in comment.
* path.cc: Ditto.

13 years ago* ChangeLog: Fix my name's spelling.
Ralf Corsepius [Tue, 26 Jul 2011 04:42:06 +0000 (04:42 +0000)]
* ChangeLog: Fix my name's spelling.

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