9b7759ae75* libc/include/stdlib.h (strtof, strtoll, strtoull, strtold): Also prototype if C++11 or later.
Corinna Vinschen
2013-04-11 10:23:05 +0000
602cec7f1e2013-04-10 Bin Cheng <bin.cheng@arm.com> * acconfig.h (_FSEEK_OPTIMIZATION): Undef * newlib.hin (_FSEEK_OPTIMIZATION): Undef * configure.in (--disable-newlib-fseek-optimization): New option. * configure: Regenerated. * libc/stdio/fflush.c (__sflush_r): Use _FSEEK_OPTIMIZATION to control fseek optimization. * libc/stdio/fseeko.c (_fseeko_r): Ditto. * libc/stdio/makebuf.c (__smakebuf_r): Ditto. * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
Jeff Johnston
2013-04-10 18:47:46 +0000
b49dae4a44fix YA typo
Christopher Faylor
2013-04-09 01:23:41 +0000
9d2155089e* cygtls.h (_cygtls::reset_signal_arrived): Actually reset the signal_arrived event. (_cygtls::handle_SIGCONT): Declare ew function. * cygwait.cc (is_cw_sig_handle): Delete. (is_cw_sig_cont): New convenience define. (cygwait): Clear signal if is_cw_sig_cont and we got a SIGCONT. * cygwait.h (cw_wait_mask): Add cw_sig_cont. * exceptions.cc (sig_handle_tty_stop): Tighten "incyg" region. Use cw_sig_cont param for cygwait. Don't zero signal here outside of lock. (sigpacket::setup_handler): Don't check for in_forkee since we will now never get here in that state. (_cygtls::handle_SIGCONT): Define new function. (sigpacket::process): Call handle_SIGCONT early to deal with SIGCONT. Nuke continue_now handling. Allow SIGKILL to kill a suspended process. Delete a couple of now-unneeded labels. (_cygtls::call_signal_handler): Reorganize setting of incyg within lock. * sigproc.cc (pending_signals): Simplify. (pending_signals::clear): New method. (_cygtls::remove_wq): Reorganize to always close wq.thread_ev if it exists to avoid handle leaks. (sig_clear): Simplify by just calling sigq.clear(). (sig_dispatch_pending): Always call sigq.pending even in signal thread to force another loop in wait_sig. (sig_send): Remove a "goto out" just before out: label. (pending_signals::add): Simplify. (pending_signals::del): Delete. (pending_signals::next): Delete. (wait_sig): Define variable q to be the start of the signal queue. Just iterate through sigq queue, deleting processed or zeroed signals. Only set clearwait when the current signal is SIGCHLD. * sigproc.h: Add a comment about an unused enum.
Christopher Faylor
2013-04-09 01:01:19 +0000
037ad80a52fix typo
Christopher Faylor
2013-04-08 17:55:57 +0000
2617a91597* fhandler_socket.cc (get_inet_addr): Handle abstract AF_LOCAL socket. (fhandler_socket::recv_internal): Create abstract socket name for AF_LOCAL datagram sockets. Explain why we do that.
Corinna Vinschen
2013-04-08 17:34:34 +0000
d57416f03d* libc/stdio/vfieeefp.h (ldieee): Fix typo.
Matthew Gretton-Dann
2013-04-08 09:34:35 +0000
f653639a22* cygheap.cc (init_cygheap::find_tls): Add a comment. * dcrt0.cc (parent_sigmask): Delete. (dll_crt0_1): Use spawn_info->moreinfo->sigmask rather than saved parent signal mask. * thread.cc (pthread::thread_init_wrapper): Add comment stressing the importance of maintaining ordering of statements.
Christopher Faylor
2013-04-07 23:53:00 +0000
4537e80a3aIncrease the accuracy of sparc instruction aliases.
David S. Miller
2013-04-06 22:22:03 +0000
7810aa7cdb* fhandler_proc.cc (format_proc_loadavg): Raise too small buffer size to avoid overwriting unrelated cygheap memory.
Corinna Vinschen
2013-04-03 19:54:58 +0000
84681ea689merge from gcc
DJ Delorie
2013-04-03 18:21:40 +0000
8c1d3f336b* elf32-v850.c (v850_elf_is_target_special_symbol): New function. (bfd_elf32_bfd_is_target_special_symbol): Define.
Nick Clifton
2013-04-03 14:42:10 +0000
d1bef83800* path.cc (class suffix_scan): Add member namelen. (suffix_scan::name_len): New method. (suffix_scan::has): Store namelen since we have it already anyway. Add a bit of explanation and a FIXME to comment. (suffix_scan::next): Never attach extra .lnk suffix if resulting filename length exceeds NAME_LEN. (symlink_info::check): Bail out immediately with ENAMETOOLONG if filename length exceeds NAME_LEN.
Corinna Vinschen
2013-04-03 11:20:36 +0000
2e463c77de* libc/posix/scandir.c (DIRSIZ): Use offsetof instead of magic number.
Corinna Vinschen
2013-04-02 11:38:12 +0000
bbd4e05a4d.
Christopher Faylor
2013-04-01 11:04:41 +0000
4ddb658e37whitespace
Christopher Faylor
2013-03-31 12:37:45 +0000
8f8eeb70ba* child_info.h (cygheap_exec_info::sigmask): Declare new field. * cygheap.cc (init_cygheap::find_tls): Rename threadlist_ix -> ix. Only take one pass through thread list, looking for eligible threads to signal. Set a new param indicating that function has found a sigwait* mask. * cygheap.h (init_cygheap::find_tls): Reflect new parameter. * dcrt0.cc (parent_sigmask): New variable. (child_info_spawn::handle_spawn): Save parent's signal mask here. (dll_crt0_1): Restore parent's signal mask to tls sigmask as appropriate. Call sig_dispatch_pending to flush signal queue when we can finally do something with signals. * exceptions.cc (sigpacket::process): Avoid attempting to handle signals if we haven't finished initializing. Rely on the fact that find_tls will do mask checking and don't do it again. Delete ill-named 'dummy' variable. * sigproc.cc (cygheap_exec_info::alloc): Save calling thread's signal mask in new sigmask field. (wait_sig): Try to debug when WFSO fails and DEBUGGING is defined. * thread.cc (pthread::set_tls_self_pointer): Make this a true automatic method rather than inexplicably relying on a thread parameter. (pthread::thread_init_wrapper): Accommodate set_tls_self_pointer change to non-static. Initialize sigmask before setting tid or suffer signal races. * ehread.h (pthread::set_tls_self_pointer): Make non-static, delete parameter.
Christopher Faylor
2013-03-31 12:35:44 +0000
4332090c2dwhitespace
Christopher Faylor
2013-03-31 11:05:35 +0000
4aa4632ad2* cygthread.cc (cygthread::terminate_thread): Only try to free thread stack on systems not freeing it by themselves. * wincap.h (wincaps::terminate_thread_frees_stack): New element. * wincap.cc: Implement above element throughout.
Corinna Vinschen
2013-03-29 17:00:36 +0000
bb93b7ab95* pinfo.h (pinfo::status_exit): Rename from former static function in pinfo.cc. (pinfo::operator == (char *)): Remove unused operator. * pinfo.cc (pinfo::status_exit): Move this function info pinfo class. Use progname from the pinfo rather than myself. Be defensive when inspecting procinfo.
Christopher Faylor
2013-03-29 16:19:11 +0000
6fcb223858* sigproc.cc (wait_sig): Avoid uninitialized use of nb when retrying. Consolidate two error messages into one.
Christopher Faylor
2013-03-29 13:18:25 +0000
5e31c80e4e* sigproc.cc (pending_signals::retry): Declare new element. (pending_signals::pending): Force an additional loop through wait_sig by setting retry whenever this function is called. (sig_send): Reorganize to wait for SIGHOLD at bottom. Always add signal to pending queue and work on whole queue rather than just the one signal. Loop when sigq.retry is set. Fix long-broken check for SIGCHLD after queued signals.
Christopher Faylor
2013-03-29 01:22:14 +0000
1a863e04b3* exceptions.cc (exception::handle): Generalize comment.
Christopher Faylor
2013-03-28 16:14:53 +0000
8499cbfbf7PR binutils/15068 * tic6x-opcode-table.h: Fix patterns for add, ldnw and xor. * gas/tic6x/insns16-lsd-unit.s: Correct bit patterns for mvk, add and xor. * gas/tic6x/insns16-lsd-unit.d: Update expected output.
Nick Clifton
2013-03-28 09:25:11 +0000
d420513d39* faq-what.xml (faq.what.supported): Mention Windows 8 and Server 2012. Change sentence on native 64 bit version.
Corinna Vinschen
2013-03-27 16:12:30 +0000
f115039df1PR binutils/15068 * tic6x-dis.c: Add support for displaying 16-bit insns. * tic6xc-insn-formats.h (FLD): Add use of bitfield array. Add 16-bit opcodes. * tic6xc-opcode-table.h: Add 16-bit insns. * tic6x.h: Add support for 16-bit insns. * config/tc-tic6x.c (tic6x_try_encode): Add use of bitfields array. * gas/tic6x/insns16-d-unit.s: New test. * gas/tic6x/insns16-d-unit.d: Expected disassembly. * gas/tic6x/insns16-ddec.s: New test. * gas/tic6x/insns16-ddec.d: Expected disassembly. * gas/tic6x/insns16-dinc.s: New test. * gas/tic6x/insns16-dinc.d: Expected disassembly. * gas/tic6x/insns16-dind.s: New test. * gas/tic6x/insns16-dind.d: Expected disassembly. * gas/tic6x/insns16-doff4.s: New test. * gas/tic6x/insns16-doff4.d: Expected disassembly. * gas/tic6x/insns16-l-unit.s: New test. * gas/tic6x/insns16-l-unit.d: Expected disassembly. * gas/tic6x/insns16-lsd-unit.s: New test. * gas/tic6x/insns16-lsd-unit.d: Expected disassembly. * gas/tic6x/insns16-m-unit.s: New test. * gas/tic6x/insns16-m-unit.d: Expected disassembly. * gas/tic6x/insns16-s-unit-pcrel.s: New test. * gas/tic6x/insns16-s-unit-pcrel.d: Expected disassembly. * gas/tic6x/insns16-s-unit: New test. * gas/tic6x/insns16-s-unit.d: Expected disassembly.
Nick Clifton
2013-03-27 11:43:37 +0000
409c27f834* acconfig.h (_FVWRITE_IN_STREAMIO): Undefine. * newlib.hin (_FVWRITE_IN_STREAMIO): Undefine. * configure.in (--disable-newlib-fvwrite-in-streamio): New option. * configure: Regenerated. * libc/stdio/fputs.c (_fputs_r): Use _FVWRITE_IN_STREAMIO to control __sfvwrite_r. Add alternative implementation. * libc/stdio/fputws.c (_fputws_r): Ditto. * libc/stdio/fwrite.c (_fwrite_r): Ditto. * libc/stdio/puts.c (_puts_r): Ditto. * libc/stdio/vfprintf.c (__ssputs_r, __sfputs_r): New function. (_VFPRINTF_R): Use _FVWRITE_IN_STREAMIO to control vector buffer. (__SPRINT): Use _FVWRITE_IN_STREAMIO to control macro definition. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use _FVWRITE_IN_STREAMIO to control vector buffer.
Corinna Vinschen
2013-03-27 09:38:39 +0000
1ebc8da2422013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-03-26 16:07:55 +0000
74d17001b4src-release: fix version look up for bfd based projects
Michael Frysinger
2013-03-22 23:16:40 +0000
724514461e* elf32-h8300 (h8_relax_section): Add new relaxation of mov @(disp:32,ERx) to mov @(disp:16,ERx). (R_H8_DISP32A16): New reloc. Comments added and corrected. * reloc.c (BFD_RELOC_H8_DISP32A16): New reloc. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate.
Nick Clifton
2013-03-21 16:08:06 +0000
0fe1b31bcaPR gas/15082 * tic6x-opcode-table.h: Rename mpydp's specific operand type macro from ORREGD1324 to ORXREGD1324 and make it cross-path-able through tic6x_operand_xregpair operand coding type. Make mpydp instruction cross-path-able, ie: remove the FIXed 'x' opcode field, usu ORXREGD1324 for the src2 operand and remove the TIC6X_FLAG_NO_CROSS.
Nick Clifton
2013-03-20 16:56:34 +0000
de2e02904e* include/opcode/tic6x.h: add tic6x_coding_dreg_(msb|lsb) field coding type in order to encode separately the msb and lsb of a register pair ; this will be needed to encode the opcodes the same way as Ti assembler does.
Nick Clifton
2013-03-20 16:36:34 +0000
744f64fdedtest checkin
Christopher Faylor
2013-03-19 16:41:42 +0000
f30aaf7d9fgdb:
Steve Ellcey
2013-03-15 17:53:41 +0000
01aff1ea37* newlib/libc/stdio/findfp.c (glue_with_file): New. (__sfmoreglue): Use glue_with_file to avoid alignment problems.
Corinna Vinschen
2013-03-15 13:19:29 +0000
ba424141602013-03-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
Sandra Loosemore
2013-03-12 19:18:57 +0000
2ba1c516942013-03-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
Sandra Loosemore
2013-03-12 02:41:26 +0000
6868191e902013-03-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
Sandra Loosemore
2013-03-12 02:20:08 +0000
f0829dce7dAdd support for AArch32 CRC instruction in ARMv8.
Kyrylo Tkachov
2013-03-11 11:09:32 +0000
41090b6193add news
Christopher Faylor
2013-03-09 21:58:54 +0000
56bc657ce4* cygtls.h (_cygtls::signal_debugger): Change argument type. (_cygtls::copy_context): Delete declaration. * exceptions.cc (exception::handle): Don't call copy_context() here. Move signal_handler call earlier and always call it. (_cygtls::copy_context): Delete definition. (_cygtls::signal_debugger): Move copy_context logic here. Suspend thread receiving signal before gathering context information.
Christopher Faylor
2013-03-09 21:55:18 +0000
6a375e0325* spawn.cc (child_info_spawn::worker): Save and restore my_wr_proc_pipe around non-execing operations to avoid handle leak seen in http://cygwin.com/ml/cygwin/2013-03/msg00152.html .
Christopher Faylor
2013-03-09 00:11:31 +0000
735c1b8006* elf-bfd.h (elfcore_write_s390_tdb): Add prototype. * elf.c (elfcore_write_s390_tdb): New function. (elfcore_write_register_note): Call it. (elfcore_grok_s390_tdb): New function. (elfcore_grok_note): Call it.
Nick Clifton
2013-03-08 17:13:31 +0000
8981489bec* include/sys/un.h (UNIX_PATH_MAX): Rename from UNIX_PATH_LEN to follow Linux. * fhandler_socket.cc: Change UNIX_PATH_LEN to UNIX_PATH_MAX throughout. (fhandler_socket::recv_internal): Don't return prematurely in case of successful return. For AF_LOCAL sockets, overwrite returned AF_INET name with AF_LOCAL name.
Corinna Vinschen
2013-03-07 15:39:35 +0000
b5545a7b7e* fhandler_socket.cc (fhandler_socket::bind): Fix check for AF_LOCAL filename length to allow non-NUL terminated strings within namelen bytes. Copy over sun_path to local array sun_path to have a NUL-terminated string for subsequent function calls. Move path_conv check before OS bind call to not bind the socket before being sure the file doesn't exist. Add and fix comments.
Corinna Vinschen
2013-03-07 11:04:28 +0000
bd142b93ae* mount.cc (fs_names): Add trailing NULL element to avoid potential SEGV in format_proc_filesystems.
Corinna Vinschen
2013-03-06 14:10:23 +0000
4afefdec51Remove now-inappropriate comment.
Christopher Faylor
2013-03-01 16:28:09 +0000
f77f82bba5fix latest changelog description
Christopher Faylor
2013-03-01 15:55:39 +0000
aad4a3c932* exceptions.cc (exception::handle): Eliminate buggy recursed value and just check if we're exiting.
Christopher Faylor
2013-03-01 15:48:14 +0000
2d8f1ea62a* libc/include/machine/setjmp.h (sigjmp_buf): Fix definition of sigjmp_buf size if _JBTYPE is defined.
Corinna Vinschen
2013-02-28 16:42:21 +0000
c2e3ff288d* libc/include/malloc.h (struct mallinfo): Convert type of all members to size_t to match all targets.
Corinna Vinschen
2013-02-26 14:25:13 +0000
eb2f8e51ccThis patch assigns explicit integers to enum values corresponding to the plugin API. This patch helps preventing problems while cherry-picking plugin-api.h changes from trunk gold to local branches. For instance, a linker plugin compiled with a cherry-picked plugin-api.h header with some enum values missing will behave strangely when used with a linker built with the up to date header.
Sriraman Tallam
2013-02-11 19:36:56 +0000
51ab11f758PR go/55969 * configure.ac: Disable libgo on some systems where it does not work. * configure: Rebuild.
Ian Lance Taylor
2013-02-05 22:39:30 +0000
79a97aa5ea* configure: Regenerate after syncing config/.
Alan Modra
2013-02-04 23:31:16 +0000
188fc1cf6e* fhandler_socket.cc (fhandler_socket::bind): Fix length check of AF_LOCAL filename so it never accesses memory beyond namelen. Also make sure filename is NUL-terminated.
Corinna Vinschen
2013-02-04 12:04:20 +0000
1ecbae339cPR gas/15069 * tic6x-opcode-table.h: Fix encoding of BNOP instruction.
Nick Clifton
2013-01-28 15:28:38 +0000
caad19d39f* v850.h: Add e3v5 support.
Nick Clifton
2013-01-24 16:51:56 +0000
ffe54f0fa1Add support for V850E3V5 architecture
Nick Clifton
2013-01-24 11:14:01 +0000
95b7947d04* faq-programming.xml: Remove reference to "make check".
Christopher Faylor
2013-01-23 16:54:35 +0000
a69e27906f* miscfuncs.cc (__import_address): Check if malloc field points directly at 'malloc'.
Christopher Faylor
2013-01-23 14:24:34 +0000
0e8c8b0093* miscfuncs.cc (__import_address): On second thought, the chance that this pointer could be NULL is very low so don't bother checking for it.
Christopher Faylor
2013-01-23 14:06:06 +0000
df37bdc5b7* exceptions.cc (exception::handle): Make attempt to recursively dump stack fatal.
Christopher Faylor
2013-01-23 05:27:36 +0000
9c4478df47* miscfuncs.cc (__import_address): Avoid treating random instructions as import jump. * malloc_wrapper.cc (malloc_init): Remove comment about 64-bit.
Christopher Faylor
2013-01-23 02:02:36 +0000
6c3f590cd92013-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2013-01-22 21:20:08 +0000
761dfa99baCorrecting my previous commit.
Marcus Shawcroft
2013-01-22 09:49:27 +0000
93ff4bbee0* dcrt0.cc (dll_crt0_1): Comment assumption. * exceptions.cc (sigpacket::setup_handler): Avoid sending signals during fork processing.
Christopher Faylor
2013-01-21 17:17:44 +0000
3b1a8c572f* dcrt0.cc (dll_crt0_1): Flag that we are working "incyg". Handle any signals (presumably exiting signals) which may have come in while we are in the process of setting up.
Christopher Faylor
2013-01-21 16:56:09 +0000
df0f949cfdUpdate copyrights
Christopher Faylor
2013-01-21 16:28:27 +0000
02211f348dUpdate copyrights
Christopher Faylor
2013-01-21 16:21:23 +0000