summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* include:Bob Wilson2005-12-302-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * xtensa-config.h (XCHAL_HAVE_WIDE_BRANCHES): New. gas: * config/tc-xtensa.c (op_placement_info_struct): Delete single, single_size, widest, and widest_size fields. Add narrowest_slot. (xg_emit_insn_to_buf): Remove fmt parameter and compute it here. Use xg_get_single_slot to find the slot. (finish_vinsn): Use emit_single_op instead of bundle_single_op. (bundle_single_op): Rename this to.... (bundle_tinsn): ...this function, which builds a vliw_insn but does not call finish_vinsn. (emit_single_op): Use bundle_tinsn instead of bundle_single_op. (relax_frag_immed): Get num_slots from cur_vinsn. (convert_frag_narrow): Update call to xg_emit_insn_to_buf. (convert_frag_immed): Likewise. Also, get num_slots from cur_vinsn. (init_op_placement_info_table): Set narrowest_slot field. Remove code for deleted fields. (xg_get_single_size): Return narrowest_size field, not single_size. (xg_get_single_format): Return narrowest field, not single. (xg_get_single_slot): New. (tinsn_to_insnbuf): Rewrite to use tinsn_to_slotbuf. * config/xtensa-relax.c (widen_spec_list): Add wide branch relaxations. (transition_applies): Check wide branch option availability.
* * relnotes.texinfo: Remove entry about hyperthreaded processor.Christopher Faylor2005-12-302-8/+4
|
* * faq-problems.html: Remove entry about hyperthreaded processor.Christopher Faylor2005-12-302-12/+4
|
* * fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Use straceChristopher Faylor2005-12-292-2/+8
| | | | | method rather than accessing field directly. (fhandler_tty_common::__release_output_mutex): Ditto.
* *** cygwin DLL Changes:Christopher Faylor2005-12-2920-143/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * child_info.h (CURR_CHILD_INFO_MAGIC): Reset. (child_info::dwProcessId): Delete. (child_info::straced): New variable. (child_info::handle_fork): New member function. * dcrt0.cc (in_forkee): New global variable. (__cygwin_user_data::forkee): Mark as obsolete. (do_global_ctors): Use in_forkee rather than user_data->forkee. (get_cygwin_startup_info): Ditto. Deal with new straced field to allow strace to deal with children of attached processes. (initial_env): Accommodate changes to strace::hello. (child_info_fork::handle_fork): Rename from plain old 'handle_fork'. Move alloc_stack() call elsewhere. (dll_crt0_0): Fill out more of user_data. Reference handle_fork via fork_info. Add some debugging output. (_dll_crt0): Don't wait for sync thread if sync_startup is invalid. Zero sync_startup here. Call alloc_stack() here, if appropriate. (dll_crt0_1): Use in_forkee rather than user_data->forkee. (dll_crt0): Ditto. * malloc_wrapper.cc (malloc_init): Ditto. * dll_init.cc (in_forkee): Remove local static version of this variable. (dll_list::load_after_fork): Don't set in_forkee here. * external.cc (cygwin_internal): Use strace method rather than accessing field directly. * fhandler.cc (fhandler_base::read): Ditto. * fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Ditto. * fork.cc (frok::parent): Invoke strace write_childpid to communicate with potential strace. (child_copy): Add more detail to debugging output. * init.cc (calibration_id): New static variable. (prime_threads): Set sync_startup to invalid handle if we already know about thread_func_ix. Use static calibration_id to hold calibration thread id. * munge_threadfunc (munge_threadfunc): Don't try to debug if we don't find threadfunc_ix. (dll_entry): Avoid calling munge_threadfunc and _cygtls::remove on non-cygwin threads invoked during process startup. * pinfo.cc (set_myself): Always call strace.hello here regardless of DEBUGGING. * sigproc.cc (child_info::child_info): Remove spurious handling of dwProcessId. Set straced as appropriate. * spawn.cc (spawn_guts): Rename ciresrv to ch. Invoke strace write_childpid to communicate with potential strace. * strace.cc: Include child_info.h. (strace::hello): Remove inited test. Use active() method to test if strace has been activated. Handle case where we are started before (mypid): New function. (strace::vsprntf): Try to deal more intelligently with case where progname may not be filled out. Put pid in parentheses if it is a windows pid rather than a cygwin pid. myself has been filled out. (strace::write_childpid): New function for notifying strace about the creation of children. (strace::vprntf): Use strace method rather than accessing field directly. (strace_printf): Ditto. (strace::wm): Ditto. * winsup.h (in_forkee): Declare. * include/sys/strace.h (strace::write_childpid): Declare new function. (strace::attached): Define new function. (strace::active): Ditto. (strace::active_val): Ditto. (_STRACE_ON): Delete. (_STRACE_OFF): Ditto. (define_strace0): Use strace method rather than accessing field directly. (strace_printf_wrap): Ditto. (strace_printf_wrap1): Ditto. *** cygwin utils changes: * strace.cc (nprocesses): Make static global. (quiet): New variable. (strace_active): Ditto. (add_child): Increment nprocesses here. Don't add a child if it is already added (windows bug?). Report on child if not quiet. (get_child): Just return NULL if child not found. (remove_child): Report on child if not quiet. (attach_process): Don't complain if given a windows process. Use windows pid in error. (handle_output_debug_string): Issue error if trying to manipulate a process that we don't know about. Handle _STRACE_CHILD_PID - attach to reported child when we get this. (proc_child): Move nprocesses to file scope. Report on exceptions. (longopts): Implement "--quiet". (opts): Implement "-q". (main): Manipulate quiet flag. * utils.sgml (strace): Add words describing '-q'.
* * cygcheck.cc (common_apps): Add crontab, vi, vim.Christopher Faylor2005-12-292-0/+7
|
* * environ.cc (win_env::add_cache): Don't add variables to the environmentChristopher Faylor2005-12-292-1/+6
| | | | during initialization.
* * exceptions.cc (_cygtls::handle_exceptions): Drop redundant `break'.Corinna Vinschen2005-12-272-1/+4
|
* * ChangeLog: Add linebreaks.Corinna Vinschen2005-12-271-2/+4
|
* * exceptions.cc (inside_kernel): Rename from interruptible.Corinna Vinschen2005-12-272-3/+8
| | | | Accommodate change throughout file.
* * exceptions.cc (interruptible): New function, code stripped fromCorinna Vinschen2005-12-272-28/+75
| | | | | | | | | | _cygtls::interrupt_now. (_cygtls::handle_exceptions): Handle STATUS_DATATYPE_MISALIGNMENT as SIGBUS error. Differ between unmapped memory (SEGV_MAPERR) and access violation (SEGV_ACCERR) in case of STATUS_ACCESS_VIOLATION. Write kernel log message in case of uncatched STATUS_ACCESS_VIOLATION. (_cygtls::interrupt_now): Just call interruptible now instead of evaluating interruptibility here.
* Add missing ChangeLog entry.Corinna Vinschen2005-12-271-0/+7
|
* * path.cc (path_conv::check): Rework loop removing trailing dotsCorinna Vinschen2005-12-272-9/+19
| | | | | | and spaces. * syslog.cc (vklog): Set facility to LOG_KERN if not set.
* Add support for RDOS targets.Nick Clifton2005-12-273-107/+137
|
* PR binutils/1990Nick Clifton2005-12-272-9/+113
| | | | * libtool.m4: Synchronize with version in GCC sources.
* white spaceChristopher Faylor2005-12-261-1/+0
|
* * dcrt0.cc (__api_fatal): Simplify to just use strace mechamisms.Christopher Faylor2005-12-265-28/+42
| | | | | | | | | | (do_exit): Move minimal_printf... * pinfo.cc (pinfo::exit): ...into here. * strace.cc (strace::vprntf): Guarantee output to the console when system_printf/api_fatal. * heap.cc (heap_init): Wait a second before issuing an error when ERROR_INVALID_ADDRESS since this is probably due to a CTRL-C handler sneaking in, using the memory that we want to use for the heap, and, eventually exiting.
* typoChristopher Faylor2005-12-251-1/+1
|
* * cygtls.cc (_cygtls::handle_threadlist_exception): Make an error fatal.Christopher Faylor2005-12-2312-91/+92
| | | | | | | | | | | | | | | | | | | | | * cygtls.h (sockaddr_in): Use header rather than defining our own structure. * exceptions.cc (_cygtls::interrupt_setup): Use exact contents of sa_mask rather than assuming tht current sig should be masked, too. (_cygtls::call_signal_handler): Use more aggressive locking. * gendef (_sigbe): Wait until later before releasing incyg. (_sigreturn): Remove more arguments to accommodate quasi-sa_sigaction support. (_sigdelayed): Push arguments for sa_sigaction. More work needed here. * signal.cc (sigaction): Implement SA_NODEFER. * tlsoffsets.h: Regenerate. * sigproc.cc (wait_sig): Use default buffer size of Windows 9x complains. * pinfo.cc (_onreturn::dummy_handle): Remove. (_onreturn::h): Make this a pointer. (_onreturn::~_onreturn): Detect whether pointer is NULL rather than value is NULL. (_onreturn::_onreturn): Set h to NULL initially. (_onreturn::no_close_p_handle): Set h to NULL. (winpids::add): Initialize onreturn with value from p.hProcess immediately.
* * fork.cc (fork): Honor error return from sig_send. Don't continue with forkChristopher Faylor2005-12-233-8/+24
| | | | | | | | if we couldn't suspend signals. * sigproc.cc (sig_send): Set sigCONT event when we see __SIGNOHOLD. (wait_sig): Remove holding_signals. Create pipe with a buffer which will theoretically cause blocking if there is nothing reading on the pipe. Wait for sigCONT at end of loop when we have a __SIGHOLD.
* * fhandler.h (fhandler_base::issymlink): New method.Corinna Vinschen2005-12-225-2/+21
| | | | | | | * syscalls.cc (open): Handle O_NOFOLLOW flag. * include/fcntl.h (_FNOFOLLOW): New define. (O_NOFOLLOW): Ditto. * include/cygwin/version.h: Bump API minor number.
* * lib/ws2_32.c: New file, defining IPv6 constants.Danny Smith2005-12-223-2/+14
| | | | | * Makefile.in (SOURCES): Add ws2_32.c (EXTRA_OBJS): Add ws2_32.o.
* whitespace cleanup to force snapshot.Christopher Faylor2005-12-2213-74/+74
|
* * pinfo.cc (winpids::add): Increment nelem when winpid is true since we don'tChristopher Faylor2005-12-222-1/+7
| | | | care if it's a cygwin process in that case.
* fix ya typoChristopher Faylor2005-12-221-1/+2
|
* * pinfo.cc (winpids::release): Fix typo.Christopher Faylor2005-12-222-2/+6
|
* * pinfo.cc (pinfo::init): Clarify comment slightly.Christopher Faylor2005-12-223-31/+116
| | | | | | | | | (_onreturn): New helper class. (winpids:add): Remove copied stuff. Try to put process handle into pinfo in question and use _onreturn class to control when to close it. (winpids::release): Remove use of copied array. Free procinfo when hProc is NULL. Otherwise call release and call CloseHandle on hProc. * pinfo.h (winpids::copied): Remove throughout class.
* * pinfo.cc (pinfo::init): Remove spurious low_priority_sleep.Christopher Faylor2005-12-212-5/+8
|
* * spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just when weChristopher Faylor2005-12-212-1/+6
| | | | have no console.
* * cygheap.cc (init_cygheap::manage_console_count): Revert previous change.Christopher Faylor2005-12-216-8/+32
| | | | | | | | | | | | | Handle this a different way. * external.cc (cygwin_internal): Accommodate extra hook_or_detect_cygwin argument. * hookapi.cc (cygwin_internal): Fill in subsys variable with the subsystem of the executable. * spawn.cc (av::iscui): New variable. (spawn_guts): Hide window when we don't have a console and this isn't NT/XP/2003. (av::fixup): Set iscui flag. * winsup.h (hook_or_detect_cygwin): Accommodate extra argument.
* * cygheap.cc (init_cygheap::manage_console_count): Don't call FreeConsole onChristopher Faylor2005-12-212-1/+7
| | | | 9x/Me.
* * (fhandler_disk_file::fchown): Remove execute bits from "sensible"Corinna Vinschen2005-12-212-6/+7
| | | | permissions. Use same setting as in symlink.
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix inode numberCorinna Vinschen2005-12-212-5/+26
| | | | | | debug output. (fhandler_disk_file::fchown): Always set sensible permission values when creating the ACL for symlinks.
* 2005-12-21 Michael Jung <mjung@iss.tu-darmstadt.de>Danny Smith2005-12-213-0/+9
| | | | | | * lib/user32.def (PrivateExtractIconsA@32, PrivateExtractIconsW@32): Define. * lib/shell32.c (IID_IShellLinkDataList): Add GUID.
* * winsup.h (flush_file_buffers): Define as inline function.Corinna Vinschen2005-12-203-12/+9
| | | | * miscfuncs.cc (flush_file_buffers): Remove.
* * winsup.h (flush_file_buffers): Declare new function.Corinna Vinschen2005-12-203-0/+19
| | | | | (FLushFileBuffers): New define. * miscfuncs.cc (flush_file_buffers): Define new function.
* * fhandler.h (fhandler_termios::fixup_after_exec): Make non-inlined.Christopher Faylor2005-12-203-1/+14
| | | | | * fhandler_termios.cc (fhandler_termios::fixup_after_exec): Don't call fixup_after_fork if close_on_exec'ed.
* 2005-12-20 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2005-12-208-98/+95
| | | | | | | | | | | | | | | | | | Revert Ada-related part of the previous change. * Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, ADAFLAGS_FOR_TARGET): Do not pass. * Makefile.tpl (BOOT_ADAFLAGS): Do not define. * Makefile.in: Regenerate. * configure.in: Do not include mt-ppc-aix target fragment. * configure: Regenerate. config: 2005-12-20 Paolo Bonzini <bonzini@gnu.org> Revert Ada-related part of the previous change. * mt-ppc-aix: Delete.
* * cygtls.h (_cygtls::interrupt_now): Subsume interruptible().Christopher Faylor2005-12-202-18/+27
| | | | | | (interruptible): Delete. (setup_handler): Remove interruptible call and just use return from interrupt_now.
* * fhandler.h (set_console_state_for_spawn): Add an argument to the declaration.Christopher Faylor2005-12-194-7/+16
| | | | | | | | * fhandler_console.cc (set_console_state_for_spawn): Ditto for the definition. Only set invisible console for non-cygwin process. Remove debugging leftover. * spawn.cc (spawn_guts): Pass argument denoting whether this is a cygwin process to set_console_state_for_spawn and only call this function when exec'ing.
* 2005-12-19 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2005-12-199-103/+169
| | | | | | | | | | | | | | | | | | * configure.in: Select appropriate fragments for PowerPC/AIX. * configure: Regenerate. * Makefile.def (flags_to_pass): Add ADAFLAGS, BOOT_ADAFLAGS, BOOT_CFLAGS, BOOT_LDFLAGS. * Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Handle BOOT_ADAFLAGS, BOOT_CFLAGS, BOOT_LDFLAGS. (TARGET_FLAGS_TO_PASS): Handle ADAFLAGS_FOR_TARGET. (stage[+id+]-bubble): Pass flags recursively to the comparison target. (stage): Fail if we cannot complete the work. config: 2005-12-19 Paolo Bonzini <bonzini@gnu.org> * mt-ppc-aix, mh-ppc-aix: New.
* * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".Corinna Vinschen2005-12-192-1/+5
|
* * mmap.cc (fhandler_dev_zero::mmap): Call VirtualFree(MEM_RELEASE)Corinna Vinschen2005-12-192-2/+8
| | | | | with zero length parameter, otherwise it fails. (fhandler_dev_zero::munmap): Ditto.
* fix minor typo.Christopher Faylor2005-12-191-2/+3
|
* * fhandler.h (fhandler_pipe::fixup_in_child): Declare new function.Christopher Faylor2005-12-198-65/+120
| | | | | | | | | | | | | | | | | | | | | | (fhandler_console::invisible_console): Declare new variable. (fhandler_console::need_invisible): Ditto. (fhandler_console::has_a): Ditto. * fhandler_console.cc (set_console_state_for_spawn): Eliminate return value. Set up an invisible console if necessary prior to spawning. (fhandler_console::invisible_console): Define. * fhandler_tty.cc (fhandler_tty_slave::open): Use fhandler_console::invisible_console to setup an invisible console. * pipe.cc (fhandler_pipe::fixup_in_child): Define new function from fixup_after_exec. (fhandler_pipe::fixup_after_exec): Use fixup_in_child when appropriate. (fhandler_pipe::fixup_after_fork): Ditto. * spawn.cc (handle): Reorganize and modernize a little. (spawn_guts): Rely on set_console_state_for_spawn to set the console into the right state but don't create the process with "detached" flag if we have no controlling tty since that confuses 'cmd'. * dtable.cc (dtable::stdio_init): Don't set console as controlling terminal if we have an invisible console. * sigproc.cc (child_info::sync): Use correct name in ForceCloseHandle1.
* * include/sys/dirent.h: Change __deprecated_d_ino to __invalid_d_ino throughoutChristopher Faylor2005-12-193-10/+16
| | | | | to make things a little clearer. * dir.cc (readdir_worker): Reflect above change.
* * winsup.h (child_copy): Change prototype to match new functionality.Christopher Faylor2005-12-176-105/+134
| | | | | | | | | | | | | | | | | | | | | | | * cygheap.cc (cygheap_fixup_in_child): Accommodate new child_copy arguments. * dcrt0.cc (dll_data_start): Move definition here from fork. (dll_data_end): Ditto. (dll_bss_start): Ditto. (dll_bss_end): Ditto. (handle_fork): New function. Called when forked to deal with fork issues and copy data to this process from the parent. (dll_crt0_0): Call handle_fork when _PROC_FORK condition. (dll_crt0): Don't copy user_data when we've forked. Don't zero first element of main_environment ever. (cygwin_dll_init): Ditto. * fork.cc (child_copy): Rename from fork_copy and change arguments so that each pair of things to copy gets its own descriptor. (frok::child): Remove fixup_mmaps_after_fork call here. Move to handle_fork in dcrt0.cc. (frok::parent): Use child_copy rather than fork_copy and accommodate changes in parameters. * exceptions.cc (setup_handler): Delay test of whether we're locked until after GetThreadContext has been called since there are apparently cases where SuspendThread does not cause an immediate thread suspension.
* 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-12-162-1/+6
| | | | | * COPYING.NEWLIB: Update copyright year for default copyright.
* 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-12-16150-159/+190
| | | | | | | | | | | | | | | | | * NEWS: Update with 1.14.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.14.0. * aclocal.m4: Regenerated. * configure: Ditto. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/configure: Ditto. * libc/libc.texinfo: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto. * libm/libm.texinfo: Ditto. * libc/sys/linux/shared.ld: Add VERS_1.14.
* * init.cc (dll_entry): Call prime_threads after dll_crt0_0 to avoid conflictsChristopher Faylor2005-12-162-1/+6
| | | | between heap allocation and thread stack allocation.