2033ccdd17* malloc_wrapper.cc (malloc_init): Re-add inadvertently dropped comment which explains what's going on with the use_internal calculation.
Christopher Faylor
2013-01-21 04:43:48 +0000
bc837d22f3Throughout, update copyrights to reflect dates which correspond to main-branch checkins. Regularize copyright format.
Christopher Faylor
2013-01-21 04:38:31 +0000
6e75c72b89Throughout, change __attribute__ ((regparm (N))) to just __regN. Throughout, (mainly in fhandler*) start fixing gcc 4.7.2 mismatch between regparm definitions and declarations. * gendef: Define some functions to take @ declaration to accommodate _regN defines which use __stdcall. * gentls_offsets: Define __regN macros as empty. * autoload.cc (wsock_init): Remove unneeded regparm attribute. * winsup.h (__reg1): Define. (__reg2): Define. (__reg3): Define. * advapi32.cc (DuplicateTokenEx): Coerce some initializers to avoid warnings from gcc 4.7.2. * exceptions.cc (status_info): Declare struct to use NTSTATUS. (cygwin_exception::dump_exception): Coerce e->ExceptionCode to NTSTATUS. * fhandler_clipboard.cc (cygnativeformat): Redefine as UINT to avoid gcc 4.7.2 warnings. (fhandler_dev_clipboard::read): Ditto.
Christopher Faylor
2013-01-21 04:34:52 +0000
eb0876b22f* update-copyright: Silently skip nonexistent files. Display filename on update. Don't update non-Red Hat copyrights.
Christopher Faylor
2013-01-21 03:55:55 +0000
0413f0bd40* update-copyright: Update standard copyright information based on cvs log and current sandbox status.
Christopher Faylor
2013-01-20 23:56:26 +0000
4713b1b294* malloc_wrapper.cc: Change 'use_internal_malloc' to 'use_internal' throughout. (export_malloc_called): Delete. (internal_malloc_determined): New variable. (malloc_init): Control calculation of internal/external malloc based on 'internal_malloc_determined'. Use import_address() to determine if malloc in user_data is ours or not. * miscfuncs.cc (thread_wrapper): Make static. (__import_address): Define new function. * miscfuncs.h (import_address): New define. (__import_address): Declare new function.
Christopher Faylor
2013-01-20 22:59:58 +0000
1471537a8f* sigproc.cc (sig_dispatch_pending): Add correct regparm attributes to match declaration. (pid_exists): Ditto. (proc_subproc): Ditto. (sig_clear): Ditto. (sig_send): Ditto. (checkstate): Ditto.
Christopher Faylor
2013-01-20 06:34:59 +0000
a32a9a87a1* syscalls.cc (rename): Remove ill-conceived NFS workaround from 2013-01-10 for self-inflicted NFS server problem.
Corinna Vinschen
2013-01-19 14:54:18 +0000
d5c977948b* exceptions.cc (ctrl_c_handler): Remove special-case handler for "cygwin_finished_initializing". * sigproc.cc (exit_thread): Undefine ExitThread earlier to avoid recursion on error return.
Christopher Faylor
2013-01-19 05:57:06 +0000
085461c3ec2013-01-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
Marcus Shawcroft
2013-01-18 15:52:32 +0000
b31aa3904c* mmap.cc (handler_disk_file::msync): Add call to FlushFileBuffers to implement MS_SYNC.
Corinna Vinschen
2013-01-18 09:35:05 +0000
c5eb7a4971* mmap.cc (handler_disk_file::msync): Retry up to 99 times if FlushViewOFile fails with ERROR_LOCK_VIOLATION.
Christopher Faylor
2013-01-18 00:28:21 +0000
450fe1bfa32013-01-17 Marcus Shawcroft <marcus.shawcroft@linaro.org>
Marcus Shawcroft
2013-01-17 14:53:32 +0000
78f66de6ce2013-01-17 Marcus Shawcroft <marcus.shawcroft@linaro.org>
Marcus Shawcroft
2013-01-17 14:52:37 +0000
211dd84b83* sigproc.cc (no_signals_available): Finally remove this macro entirely. (exit_thread): Ensure process lock is released on error exit. (sig_send): Simplify "its_me" test. Remove no_signals_available tests.
Christopher Faylor
2013-01-16 23:04:28 +0000
f432e328afDefine R_386_SIZE32/R_X86_64_SIZE32/R_X86_64_SIZE64
H.J. Lu
2013-01-16 20:31:57 +0000
b01065f174* pthread.cc (pthread_exit): Add kludge to accommodate noreturn attribute.
Christopher Faylor
2013-01-16 19:20:59 +0000
7d88a8d373* libc/sys/sysnecv850/crt0.S (_start): Enable FPU for the V850e2v3. * v850/crt0.S (_start): Enable FPU for the V850e2v3.
Nick Clifton
2013-01-15 15:41:31 +0000
18905f5551fix typo
Christopher Faylor
2013-01-14 22:24:36 +0000
b8540dae6c* include/pthread.h (pthread_exit): Mark as "noreturn".
Christopher Faylor
2013-01-14 21:17:37 +0000
656a20cbd1fix typo
Christopher Faylor
2013-01-14 18:10:28 +0000
3920a99a22* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Add code to correctly handle 's' format specifier on not _MB_CAPABLE targets. Fix a formatting glitch in _MB_CAPABLE enabled code. Add a missing 'L' specifier.
Corinna Vinschen
2013-01-11 20:05:41 +0000
2f47bbd555* DevNotes: Add entry cgf-000021. * select.cc (select): Unconditionally return when a signal is detected. (select_stuff::wait): Ditto.
Christopher Faylor
2013-01-11 15:36:40 +0000
0ad26aec5bSync the root .gitignore file with GCC's.
Joel Brobecker
2013-01-11 15:17:35 +0000
7142197465* syscalls.cc (rename): Drop handling paths > 32757 chars, emit EINVAL instead, thus simplifying code allocating and filling pfri. Drop size and use constant expression in NtSetInformationFile call. Add comments. Drop redundant test for fs_serial_number and change comment accordingly.
Corinna Vinschen
2013-01-11 12:34:41 +0000
85d8e389cd* dcrt0.cc (main_thread_sinit): New inline function. Fix and explain a stdio initialization issue. (dll_crt0_1): Call main_thread_sinit rather than __sinit.
Corinna Vinschen
2013-01-09 14:23:44 +0000
2fadaa7a202013-01-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2013-01-08 16:42:23 +0000
0c2c3ac8392013-01-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2013-01-07 21:39:26 +0000
a3f10f13842013-01-07 Steve Ellcey <sellcey@mips.com>
Jeff Johnston
2013-01-07 21:29:39 +0000
98f16610ca* thread.cc (pthread_rwlock::lookup_reader): Remove parameter: always assume that we're looking for the current thread. (pthread_rwlock::tryrdlock): Eliminate self variable. Accommodate change in lookup_reader(). (pthread_rwlock::unlock): Ditto. (pthread_rwlock::rdlock): Ditto. Move add_reader call after writer tests to more closely mimic old behavior. (pthread_rwlock::wrlock): Accommodate change in lookup_reader(). * thread.h ((pthread_rwlock::lookup_reader): Eliminate argument.
Christopher Faylor
2013-01-07 19:34:44 +0000
d5446858b5Remove "-I" from LIBSTDCXX_RAW_CXX_LDFLAGS
H.J. Lu
2013-01-07 18:25:13 +0000
24b70a72d5Add missing gas dependency
H.J. Lu
2013-01-07 17:16:04 +0000
b3a2ca7b72Sync config.guess and config.sub with GCC
H.J. Lu
2013-01-07 17:13:22 +0000
8f3f61eb96* thread.cc (pthread_rwlock::add_reader): Perform new operation here and return pointer to allocated RWLOCK_READER structure. (pthread_rwlock::rdlock): Reorganize to reflect new add_reader functionality. (pthread_rwlock::tryrdlock): Ditto. Remove unneeded call to lookup_reader(). * thread.h (pthread_rwlock::RWLOCK_READER::RWLOCK_READER): New constructor. (pthread_rwlock::add_reader): Reflect new functionality.
Christopher Faylor
2013-01-07 16:01:10 +0000
6cb6ea9cb4(make_instruction): Rename to cr16_make_instruction. (match_opcode): Rename to cr16_match_opcode.
Nick Clifton
2013-01-07 15:09:07 +0000
bb8fa932a5* archures.c: Add support for MIPS r5900 * bfd-in2.h: Add support for MIPS r5900 * config.bfd: Add support for Sony Playstation 2 * cpu-mips.c: Add support for MIPS r5900 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000)
Nick Clifton
2013-01-04 17:22:50 +0000
0fd830efdf* globals.cc (exit_states): Renumber so that ES_EXIT_STARTING is first, as intended. * sigproc.cc (wait_sig): Only stop accepting signals after exit_state > ES_EXIT_STARTING.
Christopher Faylor
2013-01-04 02:21:03 +0000
fba91299d7* sigproc.cc (exit_thread): Set thread signal mask so that no signals are sent to an exiting thread.
Christopher Faylor
2013-01-03 05:05:10 +0000
d8e0d0a1b9* sigproc.cc (no_signals_available): Remove exit_state test since signals are available in a limited fashion when exiting. (sig_dispatch_pending): Ditto. (sig_send): Ditto. (exit_thread): Rearrange to avoid an unnecessary DuplicateProcess when exiting. (wait_sig): Allow special signals when exiting.
Christopher Faylor
2013-01-03 03:33:18 +0000
19aef3fa1aupdate copyright
Christopher Faylor
2013-01-02 18:48:21 +0000
36e97781ee* DevNotes: Add entry cgf-000020, relating to previous checkin.
Christopher Faylor
2013-01-02 18:46:55 +0000
ca77b848e7* cygtls.h (_cygtls::signal_exit): Delete from class. * exception.h (cygwin_exception): New class. (cygwin_exception::dumpstack): Declare new function. (cygwin_exception::context): Ditto. (cygwin_exception::dump_exception): Ditto. * exceptions.cc (cygwin_exception::dump_exception): Move into cygwin_exception class. Accommodate new variable names. (cygwin_exception::dumpstack): Ditto stackdump -> dumpstack. (exception::handle): Move andreas processing earlier. Defer signal processing decisions to the signal thread where they belong. Pass exception information to sig_send via new siginfo_t si_cyg field. (ctrl_c_handler): Wait for SIGHUP signal to be processed since it could cause a process exit and we don't want races with thread exit lock. (signal_exit): Move back here from sigproc.cc. Modify arguments and remove from sigpacket class. Decide when to dump core based on signal type. (sigpacket::process): Handle exiting signals in context of threads rather than in the signal thread. Signal debugger on non-Windows signals. Remove setup_signal_exit call. * sigproc.cc (no_signals_available): Remove argument. (signal_exit_code): Delete. (close_my_readsig): Ditto. (_cygtls::signal_exit): Move to exceptions.cc. (sigproc_terminate): Don't attempt to terminate signal thread. (setup_signal_exit): Delete. (exit_thread): Use new si_cyg entry in siginfo_t. (sig_send): Just use empty initializer for si. Accommodate change in no_signals_available argument. (wait_sig): Remove attempt to "go asynchronous" on process exit. Delete __SIGEXIT handling. Don't ever exit. * sigproc.h: Remove __SIGEXIT from signal enum. Renumber. * include/cygwin/signal.h (siginfo_t): Add si_cyg entry.
Christopher Faylor
2013-01-02 18:34:06 +0000
f6187d46b1* dtable.cc (dtable::dup3): Fix bounds checking for valid newfd. * syscalls.cc (dup2): Ditto. * winsup.h (events_terminate): Delete obsolete function declaration.
Christopher Faylor
2012-12-31 18:31:49 +0000
871d0724fa* DevNotes: Add entry cgf-000019. * dcrt0.cc (do_exit): Just set exit_state to ES_EVENTS_TERMINATE and nuke call to events_terminate which just set a superfluous flag. * sigproc.cc (signal_exit_code): New variable. (setup_signal_exit): Define new function. (_cygtls::signal_exit): Remove accommodations for closing the signal pipe handle. (exit_thread): Just sleep if we're exiting. (wait_sig): If signal_exit_code is set, just handle bookkeeping signals and exit ReadFile loop if there is nothing more to process. Call signal_exit at end if signal_exit_code is non-zero. * sigproc.h (setup_signal_exit): Declare new function. * exceptions.cc (sigpacket::process): Use setup_signal_exit to control exiting due to a signal. (exception::handle): Ditto. Query exit_state rather than defunct exit_already to determine if we are exiting. * globals.cc (ES_SIGNAL_EXIT): New enum. * sync.h (lock_process::release): New function for explicitly unlocking muto. (lock_process::~lock_process): Use release method.
Christopher Faylor
2012-12-28 18:06:17 +0000
dbadcc4372Fix tid comment.
Christopher Faylor
2012-12-22 23:37:33 +0000
4a84997ae4* select.h (select_stuff): Remove variable names from parameter declarations. (select_info): Ditto. (select_record::dump_select_record): Declare new debugging-only function. (select_info): Zero all fields. (select_pipe_info): Ditto. (select_socket_info): Ditto. (select_serial_info): Ditto. (select_mailslot_info): Ditto. * select.cc (select_record::dump_select_record): Define new debugging-only function. (select_stuff::test_and_set): Call dump_select_record when debugging. * thread.cc (pthread_mutex::unlock): Revert setting of tid to NULL since, in this context, it is a number, not a pointer. (pthread_spinlock::unlock): Ditto.
Christopher Faylor
2012-12-22 19:35:41 +0000
e97256cf70Back out prematurely checked-in change.
Christopher Faylor
2012-12-22 03:16:43 +0000
d3a03427bc* sigproc.cc (exit_thread): undef ExitThread or suffer recursion. Attempt to lock process prior to calling sig_send.
Christopher Faylor
2012-12-22 03:14:37 +0000
c3a4634985Revert the reversion and go with implementation described in cgf-000017, with some modifications. * init.cc (dll_entry): Revert previous change. * miscfuncs.cc: Include sigproc.h for exit_thread declaration. * winsup.h (ExitThread): Define as 'exit_thread' to ensure no accidental use. * sigproc.cc (exit_thread): New function. (wait_sig): Handle __SIGTHREADEXIT case. Don't just block rather than returning from this function. * sigproc.h (__SIGTHREADEXIT): New enum. (exit_thread): Declare. * sync.cc (muto::release): Accept a tls command-line argument. * sync.h (muto::release): Accept a tls command-line parameter. Default to &_my_tls. * cygerrno.h (__set_errno): Define as extern so that no function code is ever emitted. * cygserver_ipc.h (cygserver_ipc.h): Ditto. * miscfuncs.h (transform_chars): Ditto. * path.h (has_attribute): Ditto. * security.h (privilege_luid): Ditto. * winsup.h (flush_file_buffers): Ditto.
Christopher Faylor
2012-12-21 21:30:56 +0000
65068ebd7f* DevNotes: Add entry cgf-000018. * init.cc (dll_entry): Grab process lock before exiting to ensure that thread doesn't exit before parent if parent is exiting. * _cygtls.cc (_cygtls::call2): Revert previous 2012-12-21 change. * miscfuncs.cc (thread_wrapper): Ditto. * thread.cc (pthread::exit): Ditto. * sigproc.cc (exit_thread): Ditto. (wait_sig): Ditto. * sync.cc (muto::release): Ditto. * sync.h (muto::release): Ditto. * sigproc.h (__SIGTHREADEXIT): Delete enum. (exit_thread): Delete declaration.
Christopher Faylor
2012-12-21 19:32:43 +0000
614aff88a0* DevNotes: Add entry cgf-000017. * _cygtls.cc (_cygtls::call2): Use new exit_thread function in place of ExitThread. * miscfuncs.cc (thread_wrapper): Ditto. * thread.cc (pthread::exit): Ditto. (pthread_mutex::unlock): Set tid to NULL rather than 0. (pthread_spinlock::unlock): Ditto. * pinfo.cc (commune_process): Actually call lock_process constructor. * sigproc.cc (exit_thread): New function. (wait_sig): Handle __SIGTHREADEXIT case. Don't just block rather than returning from this function. * sigproc.h (__SIGTHREADEXIT): New enum. (exit_thread): Declare. * sync.cc (muto::release): Accept a tls command-line argument. * sync.h (muto::release): Accept a tls command-line parameter. Default to &_my_tls.
Christopher Faylor
2012-12-21 18:52:00 +0000
dfbb1d0383* Makefile.def (install-target-libgo): Depend on install-target-libatomic. Merged from GCC repo. * Makefile.in: Regenerate.
Jan-Benedict Glaw
2012-12-20 21:59:17 +0000
f2d223bd0f2012-12-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2012-12-20 21:10:27 +0000
45b8e70594* pathnames.sgml (pathnames-at): Drop confusing description on "embedded double quotes".
Corinna Vinschen
2012-12-20 16:47:26 +0000
081e9da6e8Add missing file.
Christopher Faylor
2012-12-19 22:07:14 +0000
6dadfa5644* select.h (select_stuff::select_stuff): Make default constructor always zero everything while constructor with int arg just zeroes next. * select.cc (select_stuff::test_and_set): Revert to using default constructor.
Christopher Faylor
2012-12-19 21:15:54 +0000
63d9f29311* select.cc (select_stuff::wait): Add windows error number to error message.
Christopher Faylor
2012-12-19 18:44:40 +0000
17ecab12a82012-12-18 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2012-12-18 22:41:53 +0000
b060af22642012-12-18 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2012-12-18 21:20:51 +0000
c91d8a98e3merge from gcc
DJ Delorie
2012-12-18 17:41:27 +0000
4effb32b81* select.cc (select_stuff::test_and_set): Remove workaround and use proper constructor.
Christopher Faylor
2012-12-18 17:32:45 +0000
9574be60a7* select.cc (select_stuff::test_and_set): Work around problem of new() not returning zeroed memory.
Christopher Faylor
2012-12-18 16:41:38 +0000
e3132dba59* libc/stdio/puts.c (_puts_r): Fix typo in previous patch. Add local variable fp for better readability.
Corinna Vinschen
2012-12-18 08:54:10 +0000
0a95d803852012-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2012-12-17 22:44:09 +0000
3c90302d412012-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2012-12-17 17:46:09 +0000