summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>Chris Sutcliffe2010-02-1713-11/+674
| | | | | | | | | | | | | | | | | | | | | | | | | | Issue [2134161]: time64 functions and types for msvcrt >= 8.0 (initial implementation) * new type: __time32_t * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t, __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32, __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t * new functions: _ctime32, _difftime32, _difftime64, _findfirst32 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64, _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32, _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64, _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32, _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32, _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32, _wstat32i64, _wstat64i32,_wutime32 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t, ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64, _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime, _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64, _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
* * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch hereCorinna Vinschen2010-02-152-1/+6
| | | | as well.
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundantCorinna Vinschen2010-02-152-1/+6
| | | | decimal point in case the float argument is an integral value.
* * new-features.sgml (ov-new1.7.2): Add native DOS path and UNC pathCorinna Vinschen2010-02-153-5/+84
| | | | | | | | | change. * pathnames.sgml (pathnames-intro): Make the Win32 path text a note and xref to new pathnames-win32 section. (cygdrive): Add description how the cygdrive mount flags apply to UNC paths starting with slashes. (pathnames-win32): New section describing native path handling.
* * path.cc (path_conv::check): Treat native DOS paths as "noacl".Corinna Vinschen2010-02-152-5/+11
|
* * mount.cc (mount_info::conv_to_win32_path): Set UNC path flags toCorinna Vinschen2010-02-152-0/+14
| | | | cygdrive prefix path flags.
* PR 11238Nick Clifton2010-02-153-0/+41
| | | | | | * configure.ac: Delete config.cache files in sub-directories when deleting Makefiles. * configure: Regenerate.
* Sync from gcc mainline.Nick Clifton2010-02-155-42/+124
|
* * fhandler.cc (fhandler_base::setup_overlapped): Don't set signalled state toChristopher Faylor2010-02-154-26/+12
| | | | | | | | | | true initially. (fhandler_base::has_ongoing_io): Delete ill-advised function. (fhandler_base::read_overlapped): Rely on caller having checked nonblocking state. Don't attempt to (incorrectly) check it here. (fhandler_base::write_overlapped): Remove call to has_ongoing_io. * select.cc (peek_pipe): Ditto. * fhandler.h (fhandler_base::has_ongoing_io): Delete declaration.
* * regex/regcomp.c (xwcrtomb): Fix one explicable and one inexcplicable CChristopher Faylor2010-02-142-2/+7
| | | | warning.
* * regex/regcomp.c (xwcrtomb): Don't convert Unicode chars outside theCorinna Vinschen2010-02-132-8/+17
| | | | | base plane always to UTF-8. Call wcsnrtombs instead to allow arbitrary multibyte charsets.
* * cygpath.cc (do_pathconv): Fix potential crash.Corinna Vinschen2010-02-132-6/+8
|
* *** empty log message ***Daniel Gutson2010-02-121-42/+0
|
* * regex/regcomp.c (wgetnext): Use size_t as type for n2 since that'sCorinna Vinschen2010-02-123-2/+9
| | | | | what's returned by mbrtowc. * regex/regexec.c (xmbrtowc): Ditto.
* gas/Daniel Gutson2010-02-121-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/tc-arm.c (asm_opcode): operands type change. (BAD_PC_ADDRESSING): New macro message. (BAD_PC_WRITEBACK): Likewise. (MIX_ARM_THUMB_OPERANDS): New macro. (operand_parse_code): Added enum values. (parse_operands): Added thumb/arm distinction, plus new enum values handling. (encode_arm_addr_mode_2): Validations enhanced. (encode_arm_addr_mode_3): Likewise. (do_rm_rd_rn): Likewise. (encode_thumb32_addr_mode): Likewise. (do_t_ldrex): Likewise. (do_t_ldst): Likewise. (do_t_strex): Likewise. (md_assemble): Call parse_operands with a new parameter. (OPS_1): New macro. (OPS_2): Likewise. (OPS_3): Likewise. (OPS_4): Likewise. (OPS_5): Likewise. (OPS_6): Likewise. (insns): Updated insns operands. gas/testsuite/ * gas/arm/sp-pc-validations-bad.d: New testcase. * gas/arm/sp-pc-validations-bad.l: New file. * gas/arm/sp-pc-validations-bad.s: New file. * gas/arm/sp-pc-validations-bad-t.d: New testcase. * gas/arm/sp-pc-validations-bad-t.l: New file. * gas/arm/sp-pc-validations-bad-t.s: New file. * gas/arm/sp-pc-usage-t.d: Removed invalid insns. * gas/arm/sp-pc-usage-t.s: Likewise. * gas/arm/unpredictable.d: Likewise. * gas/arm/unpredictable.s: Likewise. * gas/arm/thumb2_bcond.d: Added test. * gas/arm/thumb2_bcond.s: Likewise.
* * pthread.cc (pthread_mutex_init): Explicitly fill out third arg toChristopher Faylor2010-02-124-63/+46
| | | | | | | | | | | | | | | | | | | | pthread_mutex::init. * thread.cc: Remov some obsolete comments. (verifyable_object_isvalid): Reflect change to use thread_magic_t for magic numbers. (pthread_mutex::pthread_mutex): Set magic number to invalid initially until we've verified that everything is valid. (pthread_mutex::unlock): Fix a comment. (verifyable_object::verifyable_object): Delete here. (~verifyable_object::~verifyable_object): Ditto. (pthread_mutex::init): Don't run is_good_initializer for non-static objects. * thread.h (thread_magic_t): New typedef. (verifyable_object::verifyable_object): Use thread_magic_t; (verifyable_object::magic): Ditto. (pthread_mutex::is_good_initializer_or_bad_object): Remove unneeded variable names. (pthread_mutex::can_be_unlocked): Ditto. (pthread_mutex::init): Ditto. Remove default for third argument.
* fix typoChristopher Faylor2010-02-121-1/+1
|
* * regex/regcomp.c (xwcrtomb): New function to convert wide charsCorinna Vinschen2010-02-123-5/+62
| | | | | | | outside of the base plane to UTF-8. Call throughout instead of wcrtomb. (wgetnext): Handle surrogate pairs on UTF-16 systems. * regex/regexec.c (xmbrtowc): Ditto.
* * sec_auth.cc (get_user_local_groups): Retrieve name of well knownCorinna Vinschen2010-02-124-12/+40
| | | | | | builtin group from system. Explain why. * sec_helper.cc (well_known_builtin_sid): New SID for BUILTIN group. * security.h (well_known_builtin_sid): Declare.
* 2010-02-11 Pierre Humblet <Pierre.Humblet@ieee.org>Pierre Humblet2010-02-122-1/+5
| | | | * registry.c (get_registry_hive_path): Add space in string.
* * regex/engine.c (step): Drop Cygwin-specific definition.Corinna Vinschen2010-02-114-22/+42
| | | | | | | | | | | | | | | | (NONCHAR): Better cast here to make the test work. Move comment from step here. (matcher): Disable skipping initial string in multibyte case. * regex/regcomp.c (p_bracket): Don't simplify singleton in the invert case. (p_b_term): Handle early end of pattern after dash in bracket expression. (singleton): Don't ignore the wides just because there's already a singleton in the single byte chars. Fix condition for a singleton wide accordingly. (findmust): Check for LC_CTYPE charset, rather than LC_COLLATE charset. * regex2.h (CHIN): Fix condition in the icase & invert case. (ISWORD): Fix wrong cast to unsigned char.
* 2010-02-11 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2010-02-112-4/+10
| | | | | * libc/include/machine/ieeefp.h: isfinite macro modified to run faster by only calling fpclassify once instead of possibly twice.
* 2010-02-11 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2010-02-113-10/+40
| | | | | | | | | | | | | * libm/common/s_ilogb.c: Adjust documentation to reflect new returns (see next items) and that ilogb() and ilogbf() are C99/POSIX. * libm/common/s_ilogb.c (ilogb): Use C99/POSIX FP_ILOGB0 and FP_ILOGBNAN returns for 0 and NAN arguments, respectively, instead of the prior -INT_MAX and INT_MAX. The FP_ILOGBx defines in math.h presently match the prior hard-codes, so no functional change is actually introduced. (Not at this time, nor planned, but the values are permitted to be different, so subsequent edits of math.h could possibly cause a functional change.) * libm/common/sf_ilogb.c (ilogbf): Ditto.
* * new-features.sgml (ov-new1.7.2): Rephrase getlocale entry.Corinna Vinschen2010-02-112-1/+6
|
* * getlocale.c (main): Rename local variable to avoid problems.Corinna Vinschen2010-02-113-24/+83
| | | | | | | | Avoid string comparisons, rather test language and sublanguage codes wheere possible. Add more code to handle Serbian language/territory state identical on all Windows versions. Fix handling for "@latin" modifier in Belarusian locale. * utils.sgml (getlocale): Try to make wording and example clearer.
* * nlsfuncs.cc (initial_setlocale): Move check whether charset hasCorinna Vinschen2010-02-112-3/+14
| | | | | | changed from here... (internal_setlocale): ...to here, to avoid unnecessary work when invoked via CW_INT_SETLOCALE.
* * getlocale.c (usage): Change text slightly.Corinna Vinschen2010-02-102-2/+6
|
* * getlocale.c (main): Restrict -a loop to avoid psudo language entriesCorinna Vinschen2010-02-102-1/+6
| | | | on Vista and later.
* * getlocale.c (main): Revamp -a loop to avoid duplicates and to printCorinna Vinschen2010-02-102-16/+81
| | | | locales with the correct, supported modifiers.
* * new-features.sgml (ov-new1.7.2): Add LC_MESSAGES support.Corinna Vinschen2010-02-103-23/+12
| | | | | * setup2.sgml (setup-locale-ov): Change "@euro" modifier description. (setup-locale-missing): Remove.
* * nlsfuncs.cc (__set_charset_from_locale): Allow "@euro" modifier onlyCorinna Vinschen2010-02-102-1/+9
| | | | for locales which use EUR as currency.
* * nlsfuncs.cc (__get_lcid_from_locale): Convert iu_CA to iu-Latn-CACorinna Vinschen2010-02-102-2/+18
| | | | | rather than iu-Cans-CA on Vista and later. (__set_charset_from_locale): Set default charset for iu_CA to UTF-8.
* * dcrt0.cc (_dll_crt0): Set _main_tls as early as possible.Christopher Faylor2010-02-104-97/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * thread.cc (pthread_mutex::can_be_unlocked): Remove check for MUTEX_OWNER_ANONYMOUS since it is racy and unsafe. (pthread::init_mainthread): Initialize thread directly from _my_tls. (pthread::self): Ditto. (pthread::get_tls_self_pointer): Delete. (pthread_mutex::pthread_mutex): Use an event rather than a semaphore. (pthread_mutex::lock): Rename from _<func>. Derive self directly. (pthread_mutex::tryunlock): Ditto. (pthread_mutex::destroy): Ditto. (pthread_mutex::unlock): Ditto. Accommodate change from semaphore to event. (pthread_mutex::_fixup_after_fork): Accommodate change from semaphore to event. (pthread_mutex::init): Don't attempt to initialize a semaphore unless it is in an initialized state. Do this check under mutex_initialization_lock.lock * thread.h (fast_mutex::init): Use event rather than semaphore. (fast_mutex::lock): Ditto. (pthread_mutex::_lock): Delete. (pthread_mutex::_unlock): Ditto. (pthread_mutex::_trylock): Ditto. (pthread_mutex::_destroy): Ditto. (pthread_mutex::get_pthread_self): Ditto. (pthread_mutex::get_tls_self_pointer): Ditto. (pthread_mutex::lock): Un-inline. (pthread_mutex::unlock): Ditto. (pthread_mutex::trylock): Ditto. (pthread_mutex::destroy): Ditto.
* * cygtls.h (struct _cygtls): Remove unneeded elements.Christopher Faylor2010-02-104-43/+37
| | | | | * thread.cc (pthread::exit): Avoid potential double call to _my_tls.remove. * tlsoffsets.h: Regenerate.
* 2010-02-09 Daniel Gutson <dgutson@codesourcery.com>Jeff Johnston2010-02-092-1/+7
| | | | | * libc/machine/arm/arm_asm.h (_ISA_THUMB_2): __ARM_ARCH_7EM__ added to the preprocessor condition.
* * nlsfuncs.cc (lc_wcstombs): Add `return_invalid' flag to specifyCorinna Vinschen2010-02-091-23/+18
| | | | | | | | whether invalid chars should be ignored or not. Change comment. (__set_lc_monetary_from_win): Call lc_wcstombs with return_invalid flag set. (__set_lc_messages_from_win): Simplify to accommodate the fact that lc_wcstombs just ignores invalid chars. Explain why.
* bfd/Martin Schwidefsky2010-02-092-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-02-09 Michael Holzheu <holzheu@de.ibm.com> * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp, elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, elfcore_write_s390_prefix): New. * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp, elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, elfcore_write_s390_prefix): New. (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX. (elfcore_write_register_note): Handle .reg-s390-timer, .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs, .reg-s390-prefix section. binutils/ 2010-02-09 Michael Holzheu <holzheu@de.ibm.com> * readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX. include/elf/ 2010-02-09 Michael Holzheu <holzheu@de.ibm.com> * common.h (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX): Define.
* * nlsfuncs.cc (__set_lc_messages_from_win): Fix typo.Corinna Vinschen2010-02-092-1/+5
|
* * lc_msg.h: New file, fix a problem in locales with modifiers.Corinna Vinschen2010-02-092-8/+13
|
* * lc_msg.h: New file, generated from running Linux system.Corinna Vinschen2010-02-092-189/+267
|
* * lc_msg.h: New file, autogenerated from CLDR data.Corinna Vinschen2010-02-093-17/+315
| | | | | | | | | | | | | | * nlsfuncs.cc: Include lc_msg.h. (lc_time_buf): Remove. (lc_numeric_buf): Remove. (lc_monetary_buf): Remove. (lc_mbstowcs): Fix previous fix. (__set_lc_time_from_win): Take additional pointer to buffer pointer, defined in newlib. (__set_lc_numeric_from_win): Ditto. (__set_lc_monetary_from_win): Ditto. (locale_cmp): New static function. (__set_lc_messages_from_win): New function to be called from newlib.
* * libc/locale/lmessages.c (__messages_load_locale): Take additionalCorinna Vinschen2010-02-097-7/+60
| | | | | | | | | | | | | | | parameters for wide char to multibyte conversion. Call __set_lc_messages_from_win on Cygwin. * libc/locale/lmessages.h: Make C++-safe. (__messages_load_locale): Change declaration. * libc/locale/lmonetary.c (__monetary_load_locale): Use _monetary_locale_buf as buffer pointer. * libc/locale/lnumeric.c (__numeric_load_locale): Use _numeric_locale_buf as buffer pointer. * libc/locale/timelocal.c (__time_load_locale): Use time_locale_buf as buffer pointer. * libc/locale/locale.c (loadlocale): Enable loading LC_MESSAGES data on Cygwin.
* Now *really* check in what should have been checked in 12 hours ago.Corinna Vinschen2010-02-081-2/+10
|
* include/David S. Miller2010-02-082-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf/sparc.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define. bfd/ * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New. (BFD_RELOC_SPARC_IRELATIVE): Likewise. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table and loc_hash_memory. (_bfd_sparc_elf_link_hash_table_free): Declare. * elf32-sparc.c (elf32_sparc_add_symbol_hook): New. (elf_backend_add_symbol_hook, elf_backend_post_process_headers, bfd_elf32_bfd_link_hash_table_free): Define. * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set has_ifunc_symbols if STT_GNU_IFUNC. (bfd_elf64_bfd_link_hash_table_free): Define. (elf_backend_post_process_headers): Define always. * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New. (sparc_reloc_map): Add entries for new IFUNC relocs. (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs. (_bfd_sparc_elf_info_to_howto_ptr): Likewise. (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq, elf_sparc_get_local_sym_hash): New. (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization from here... (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate local hash table. (_bfd_sparc_elf_link_hash_table_free): New. (create_ifunc_sections): New. (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols cons up a fake local hash table entry for it. Unconditionally add a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count dyn relocs for ifunc. (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc. (allocate_dynrelocs): Unconditionally emit a PLT entry when STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc. (allocate_local_dynrelocs): New function. (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash table. Emit dynamic relocs to irelplt when not shared. Treat iplt like splt. (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand. (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt in iplt/irelplt. ld/testsuite/ * ld-ifunc/ifunc.exp: Run for sparc.
* 2010-02-08 Conny Marco Menebrocker <c-m-m@gmx.de>Jeff Johnston2010-02-084-1/+20
| | | | | | * xc16x/xc16x.mt: New file. * xc16x/configure.in: Add target_makefile_frag reference. * xc16x/configure: Regenerated.
* 2010-02-08 Josef Wolf <jw@raven.inka.de>Jeff Johnston2010-02-082-1/+6
| | | | | * libc/machine/m68k/memcpy.S: MISALIGEND_OK should not be set for __mcpu32__.
* This patch got lost in the previous checkin, accidentally:Corinna Vinschen2010-02-081-1/+1
| | | | * nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc.
* * external.cc (cygwin_internal): Add CW_INT_SETLOCALE case toCorinna Vinschen2010-02-084-4/+23
| | | | | | | | | | allow to call internal_setlocale(). * nlsfuncs.cc (internal_setlocale): Make externally available. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_INT_SETLOCALE. * nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc. (__set_locale_from_locale_alias): Ignore "@cjknarrow" modifier.
* missed from last commitAlan Modra2010-02-081-0/+4
|
* include/Alan Modra2010-02-081-2/+5
| | | | | | | | | | | | | | | | | | | * opcode/ppc.h (PPC_OPCODE_TITAN): Define. bfd/ * archures.c (bfd_mach_ppc_titan): Define. * bfd-in2.h: Regenerate. * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry. opcodes/ * ppc-dis.c (ppc_opts): Add titan entry. * ppc-opc.c (TITAN, MULHW): Define. (powerpc_opcodes): Support AppliedMicro Titan core (APM83xxx). gas/ * config/tc-ppc.c (md_show_usage): Mention -mtitan. Don't use tabs. (ppc_mach): Handle titan. * doc/c-ppc.texi: Mention -mtitan. gas/testsuite/ * gas/ppc/titan.d, * gas/ppc/titan.s: New test. * gas/ppc/ppc.exp: Run it.