summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * autoload.cc (GetSystemTimes): Remove.Corinna Vinschen2009-06-093-35/+44
| | | | | | | | | | * fhandler_proc.cc (format_proc_uptime): Use global system_info rather than retrieving a local copy of the SYSTEM_INFO. Drop call to GetSystemTimes and retrieve SystemPerformanceInformation on all systems again with buffer size big enough for 64 bit systems. (format_proc_stat): Use global system_info rather than retrieving a local copy of the SYSTEM_INFO. Retrieve SystemPerformanceInformation with buffer size big enough for 64 bit systems.
* Fix ChangeLog entryCorinna Vinschen2009-06-081-1/+1
|
* * autoload.cc (GetSystemTimes): Define.Corinna Vinschen2009-06-083-39/+61
| | | | | | | | | * fhandler_proc.cc (format_proc_uptime): Use GetSystemInfo to retrieve processor count. Use GetSystemTimes when available to retrieve system idle time. Improve debug output. (format_proc_stat): Use GetSystemInfo to retrieve processor count. Improve debug output. Ignore if SystemPerformanceInformation returns error. Explain why.
* * fork.cc (frok::parent): Remove ancient code erroneously flushingCorinna Vinschen2009-06-082-4/+5
| | | | stdout descriptor.
* * cygerrno.h (save_errno::~save_errno): Set errno directly to avoidCorinna Vinschen2009-06-082-1/+6
| | | | flooding debug output.
* * path.cc (symlink_info::check): Return with error set to ENOENT ifCorinna Vinschen2009-06-082-1/+7
| | | | STATUS_NO_MEDIA_IN_DEVICE is returned.
* * cygheap.h (mini_cygheap): New struct.Christopher Faylor2009-06-089-185/+104
| | | | | | | | | | | | | | | | | | | | | | | | | (init_cygheap): Inherit locale field via mini_cygheap. * cygheap.cc (cygheap_at_start): Define new variable. (cygheap): Initialize as cygheap_at_start so that locale information is always available. (cygheap_init): Initialize cygheap iff it is set to cygheap_at_start. * shared_info.h (memory_init): Accommodate argument change. * memory.cc (memory_init): Accept an argument indicating whether cygheap should be initialized or not. * dcrt0.cc (child_info_fork::handle_fork): Pass false to memory_init(). (child_info_spawn::handle_spawn): Ditto. (dll_crt0_0): Pass true to memory_init when not forking or execing. * cygheap.h (cygheap_types::HEAP_2_DLL): New enum. * dll_init.h (dll): Remove unused namelen field. (dll_list::load_after_fork): Accommodate change in arguments. * dll_init.cc (dll_list::alloc): Allocate dll information in the cygwin heap. (dll_list::detach): Free dll information from the cygwin heap. (dll_list::load_after_fork): Use dll information in the cygwin heap directly rather than querying parent. * fork.cc (frok::first_dll): Delete. (frok::child): Don't report on first_dll. Don't pass it to load_on_fork. (frok::parent): Don't set first_dll. (fork): Ditto.
* * include/ddk/ntapi.h: Add NtXxx equivalent to ZwXxx where missingCorinna Vinschen2009-06-075-12/+2029
| | | | | | | | | and vice versa. * include/ddk/ntifs.h: Ditto. * include/ddk/winddk.h: Ditto. * lib/ntdll.def (NtPlugPlayControl, NtQueryInstallUILanguage, ZwPlugPlayControl, ZwQueryInstallUILanguage): Add entry points defined in header, but missing in lib. Omit NT4-only entry points.
* * dll_init.cc (dll_list::alloc): Allocate memory using a sectionCorinna Vinschen2009-06-072-25/+72
| | | | | | | object. Explain why. Drop call to GetSystemInfo, rather call getpagesize to get allocation granularity. Only align to allocation granularity under WOW64. Use roundup2 to align. (dll_list::detach): Call NtUnmapViewOfSection instead of VirtualFree.
* * mmap.cc: Use NtUnmapViewOfSection instead of UnmapViewOfFileCorinna Vinschen2009-06-062-5/+12
| | | | | | throughout for symmetry. (fhandler_dev_mem::munmap): Use correct process handle in call to NtUnmapViewOfSection.
* Print moxie addresses nicely.Anthony Green2009-06-062-0/+6
|
* * dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.Corinna Vinschen2009-06-063-36/+60
| | | | | | | | * dll_init.cc: Fix formatting. (dll_list::alloc): Only allocate as much memory for struct dll as necessary for given DLL name. (dll_list::load_after_fork): Only read a single page of parent memory. Only read more if namelen indicates that it's necessary.
* * winbase.h (ilockexch): Fix asm constraints.Dave Korn2009-06-052-11/+25
| | | | (ilockcmpexch): Likewise.
* * heap.cc (heap_init): Fix typo in comment.Corinna Vinschen2009-06-052-1/+5
|
* * fhandler_clipboard.cc: Avoid calling system_printf.Corinna Vinschen2009-06-042-103/+112
| | | | | | | | (set_clipboard): Add basic error checking. Set errno here. Per MSDN, don't call GlobalFree on data block transferred to clipboard. (fhandler_dev_clipboard::write): Drop setting errno after call to set_clipboard. (fhandler_dev_clipboard::read): Add basic error checking. Simplify code.
* * new-features.sgml: Add changes to console BS and Space key.Corinna Vinschen2009-06-042-0/+9
|
* * fhandler_console.cc (set_console_title): Convert title string toCorinna Vinschen2009-06-042-5/+9
| | | | wchar_t and call SetConsoleTitleW.
* * fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space toCorinna Vinschen2009-06-042-1/+9
| | | | emit a NUL byte.
* * thread.cc (__cygwin_lock_lock): Delete racy optimisation.Dave Korn2009-06-042-14/+10
| | | | (__cygwin_lock_unlock): Likewise.
* merge from gccDJ Delorie2009-06-032-0/+16
|
* * libc/string/wcwidth.c: Optimize for speed.Corinna Vinschen2009-06-034-4/+112
| | | | | | | | | | | * libc/locale/locale.c (lc_ctype_cjk_lang): New static int. (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang to 1 if the language is "jp", "ko", or "zh", to 0 otherwise. (__locale_cjk_lang): New function. * libc/string/local.h (__locale_cjk_lang): Declare. * libc/string/wcwidth.c: Fix comments. (__wcwidth): Handle CJK Ambiguous Width characters according to setting returned by __locale_cjk_lang.
* * strfuncs.cc (sys_cp_mbstowcs): Fix condition.Corinna Vinschen2009-06-032-1/+5
|
* ChangeLog:Ulrich Weigand2009-06-032-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short, mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64, mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64, mdebug_type_unsigned_char, mdebug_type_unsigned_short, mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64, mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64, mdebug_type_unsigned_long_long_64, mdebug_type_adr_32, mdebug_type_adr_64, mdebug_type_float, mdebug_type_double, mdebug_type_complex, mdebug_type_double_complex, mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string): Remove. (basic_type_data): New global variable. (basic_type): New function. (parse_type): Remove static basic type map map_bt. Call basic_type to get basic types instead of using mdebug_type_ variables. (parse_symbol): Use builtin types instead of mdebug_type_ variables. (upgrade_type): Likewise. (parse_procedure): Likewise. (psymtab_to_symtab_1): Likewise. (_initialize_mdebugread): Do not initialize mdebug_type_ variables. Initialize basic_type_data. include/coff/ChangeLog: * symconst.h (btLong64, btULong64, btLongLong64, btULongLong64, btAdr64, btInt64, btUInt64): New defines.
* * strfuncs.cc (sys_cp_wcstombs): Implement reverse functionalityCorinna Vinschen2009-06-032-12/+29
| | | | | | of the change to sys_cp_mbstowcs from 2009-05-30. (sys_cp_mbstowcs): Slightly reformat. Fix comment to accommodate change to sys_cp_wcstombs. Don't write to *ptr if dst is NULL.
* * fhandler_console.cc (fhandler_console::read): Convert Alt-BackspaceCorinna Vinschen2009-06-032-2/+10
| | | | to \033\177 or to \377 dependent on the setting of dev_state->metabit.
* * Makefile.tpl (all): Avoid a trailing backslash.Ralf Wildenhues2009-06-033-2/+10
| | | | * Makefile.in: Regenerate.
* * config.sub, config.guess: Update from upstream sources.Ben Elliston2009-06-023-40/+19
|
* 2009-06-02 Richard Earnshaw <rearnsha@arm.com>Jeff Johnston2009-06-022-5/+5
| | | | | * libc/include/sys/config.h: Remove specification of _REENT_SMALL for thumb2.
* * path.cc (path_conv::check): Don't call set_exec for files on "noacl"Corinna Vinschen2009-06-022-1/+9
| | | | mount points.
* * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.Corinna Vinschen2009-06-024-9/+19
| | | | | | (__jp2uc): Change the scope to static function. * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__. * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
* * Makefile.tpl ([+compare-target+]): Compare all stageAlexandre Oliva2009-06-023-15/+24
| | | | | directories, rather than just gcc. * Makefile.in: Rebuilt.
* merge from gccDJ Delorie2009-06-014-5/+45
|
* bfd/H.J. Lu2009-06-013-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-06-01 H.J. Lu <hongjiu.lu@intel.com> PR ld/10205 * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE. (elf_i386_reloc_type_lookup): Likewise. (R_386_tls): Removed. (R_386_irelative): New. (R_386_vt_offset): Updated. (elf_i386_rtype_to_howto): Likewise. (elf_i386_link_hash_table): Add igotplt, iplt and irelplt. (elf_i386_link_hash_table_create): Initialize igotplt, iplt and irelplt. (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first. (elf_i386_adjust_dynamic_symbol): Likewise. (elf_i386_allocate_dynrelocs): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt sections. (elf_i386_finish_dynamic_symbol): When building a static executable, use .iplt, .igot.plt and .rel.iplt sections for STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for locally defined STT_GNU_IFUNC symbol. * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE. (x86_64_reloc_map): Likewise. (R_X86_64_standard): Updated. (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt. (elf64_x86_64_link_hash_table_create): Initialize igotplt, iplt and irelplt. (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first. (elf64_x86_64_adjust_dynamic_symbol): Likewise. (elf64_x86_64_allocate_dynrelocs): Likewise. (elf64_x86_64_relocate_section): Likewise. (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt sections. (elf64_x86_64_finish_dynamic_symbol): When building a static executable, use .iplt, .igot.plt and .rela.iplt sections for STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation for locally defined STT_GNU_IFUNC symbol. * reloc.c (BFD_RELOC_386_IRELATIVE): New. (BFD_RELOC_X86_64_IRELATIVE): Likewise. * bfd-in2.h: Regenerated. * libbfd.h: Likewise. include/elf/ 2009-06-01 H.J. Lu <hongjiu.lu@intel.com> PR ld/10205 * i386.h (R_386_IRELATIVE): New. * x86-64.h (R_X86_64_IRELATIVE): Likewise. ld/testsuite/ 2009-06-01 H.J. Lu <hongjiu.lu@intel.com> PR ld/10205 * ld-ifunc/ifunc.exp (contains_irelative_reloc): New. Use it on executable and shared library. Run *.d. * ld-ifunc/lib.c: Add a hidden alias, __GI_library_func2, for library_func2. (library_func): New. * ld-ifunc/ifunc-1-x86.d: New. * ld-ifunc/ifunc-1-x86.s: Likewise. * ld-ifunc/ifunc-2-i386.d: Likewise. * ld-ifunc/ifunc-2-i386.s: Likewise. * ld-ifunc/ifunc-2-x86-64.d: Likewise. * ld-ifunc/ifunc-2-x86-64.s: Likewise. * ld-ifunc/ifunc-3a-x86.d: Likewise. * ld-ifunc/ifunc-3b-x86.d: Likewise. * ld-ifunc/ifunc-3-x86.s: Likewise. * ld-ifunc/ifunc-4-x86.d: Likewise. * ld-ifunc/ifunc-4-x86.s: Likewise. * ld-ifunc/ifunc-5-i386.d: Likewise. * ld-ifunc/ifunc-5-i386.s: Likewise. * ld-ifunc/ifunc-5-x86-64.d: Likewise. * ld-ifunc/ifunc-5-x86-64.s: Likewise.
* * strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *. Convert failureChristopher Faylor2009-05-312-7/+30
| | | | of f_mbtowc into a single malformed utf-16 value.
* * cygwin/include/sys/termios.h: Make default erase character "^?".Christopher Faylor2009-05-302-1/+5
|
* * fhandler_console.cc (fhandler_console::read): Convert backspace key to DEL.Christopher Faylor2009-05-302-4/+14
|
* * path.cc (cwdstuff::set): Rewrite previous change to properly test the end ofChristopher Faylor2009-05-292-5/+17
| | | | the buffer.
* 2009-05-28 Doug Kwan <dougkwan@google.com>Doug Kwan2009-05-293-2/+7
| | | | | | | | | | * configure.ac: Support gold for target arm*-*-*. * configure: Regenerate. * gold/Makefile.am (TARGETSOURCES): Add arm.cc. (ALL_TARGETOBJECTS): Add arm.$(OBJEXT) * gold/Makefile.in: Regenerate. * gold/arm.cc: New file. * gold/configure.tgt: Add armbe*-*-*, armeb*-*-* and arm*-*-* targets.
* * path.cc (cwdstuff::set): Avoid removing a nonexistent trailing slash.Christopher Faylor2009-05-283-7/+12
|
* 2009-05-27 Neal H. Walfield <neal@gnu.org>Jeff Johnston2009-05-272-1/+10
| | | | | * libc/include/machine/setjmp.h (sigjmp_buf): Size according to _JBTYPE and the size of sigset_t.
* 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2009-05-272-4/+10
| | | | * common.h: Update comments for dynamic tag ranges.
* * plugins.m4: New.Nick Clifton2009-05-272-0/+15
| | | | | | | | * aclocal.m4: Include ../config/plugins.m4. * configure.in: Use AC_PLUGINS. * configure: Regenerate. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate.
* * Makefile.tpl (all): Avoid harmless warning in make all whenAlexandre Oliva2009-05-273-2/+8
| | | | | gcc-bootstrap is enabled but stage_last does not exist. * Makefile.in: Rebuilt.
* Change explicitely to explicitly throughout.Christopher Faylor2009-05-276-7/+11
|
* 2009-05-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2009-05-252-0/+35
| | | | * setup.com: Complete the file with configuration and build.
* 2009-05-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2009-05-252-6/+11
| | | | | * fopen-vms.h (FOPEN_RB, FOPEN_WB, FOPEN_AB, FOPEN_RUB, FOPEN_WUB, FOPEN_AUB): Use "rfm=udf,rat=none" attribute.
* * net.cc (gethostby_helper): Use correct signedness.Christopher Faylor2009-05-202-35/+40
|
* PR other/40159Alexandre Oliva2009-05-193-9/+16
| | | | | | * Makefile.tpl (all): Don't assume gcc-bootstrap and gcc-no-bootstrap are mutually exclusive. * Makefile.in: Rebuilt.
* * mount.cc (mount_info::add_item): Avoid using any-old '/' as indicating root.Christopher Faylor2009-05-192-1/+6
|
* PR other/40159Alexandre Oliva2009-05-193-9/+15
| | | | | * Makefile.tpl (all): Don't end with unconditional success. * Makefile.in: Rebuilt.