summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems whichChristopher Faylor2012-08-232-0/+7
| | | | do not provide it.
* Fix sparc opcode encoding for 4-arg crypto instructions.David S. Miller2012-08-212-0/+5
| | | | | | | | | | | | | | | include/opcode * sparc.h (F3F4): New macro. opcodes * sparc-opc.c (4-argument crypto instructions): Fix encoding using F3F4 macro. gas/testsuite * gas/sparc/crypto.d: Fix opcodes for 4-arg crypto instructions.
* * libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode flags toChristopher Faylor2012-08-212-16/+33
| | | | | just loop over more allowed flags. Support glibc 'e' flag on systems defining _GLIBC_EXTENSION. Support C11 'x' flag.
* * net.cc (get_adapters_addresses): Drop FIXME part of comment.Christopher Faylor2012-08-212-3/+5
|
* * DevNotes: Add entry cgf-000016.Christopher Faylor2012-08-176-38/+66
| | | | | | | | | | | | | | | | | | * cygtls.h (_cygtls::push): Inline. (_cygtls::interrupt_now): Change signal number argument to siginfo_t argument. (_cygtls::interrupt_setup): Ditto. (_cygtls::set_siginfo): Delete declaration. (_cygtls::reset_signal_arrived): Don't reset signal_arrived signal. Just reset flag. * exceptions.cc (_cygtls::interrupt_now): Reflect argument changes. Pass si to interrupt_setup. (_cygtls::interrupt_setup): Reflect argument changes. Fill out tls infodata here using passed-in si. Use si.si_signo instead of sig. (sigpacket::setup_handler): Move this function into sigpacket class. Use si field from the class as appropriate. (sigpacket::process): Don't call tls->set_siginfo here since setup_handler could fail. Eliminate now-unneeded sig argument. * sigproc.h (sigpacket::setup_handler): Move setup_handler to this class.
* * exceptions.cc (sig_handle_tty_stop): Clear tls sig field.Christopher Faylor2012-08-172-1/+11
| | | | | (sigpacket::process): When continuing, set tls->sig before arming signal_arrived.
* * fhandler_clipboard.cc (fhandler_dev_clipboard::read): UseCorinna Vinschen2012-08-173-7/+55
| | | | | | read-ahead buffer for reading Windows clipboard if caller's buffer is too small for complete characters. * include/limits.h: Remove outdated TODO comment.
* whitespace cleanupChristopher Faylor2012-08-1622-71/+71
|
* * cygtls.cc (_cygtls::operator HANDLE): Reverse '?' test stupidity.Christopher Faylor2012-08-162-1/+5
|
* * cygheap.cc (init_cygheap::find_tls): Don't consider unitialized threads.Christopher Faylor2012-08-164-24/+39
| | | | | | * cygtls.cc (_cygtls::operator HANDLE): Return NULL when tid is not set. * exceptions.cc (setup_handler): Don't try to suspend a thread if it has no handle.
* fix typoChristopher Faylor2012-08-151-1/+1
|
* Rename cancelable_wait -> cygwait throughout.Christopher Faylor2012-08-1513-25/+36
| | | | | * DevNotes: Add entry cgf-000015. * cygwait.h (cygwait): Don't allow an optional PLARGE_INTERGER argument.
* * cygtls.h (_cygtls::create_signal_arrived): New function.Christopher Faylor2012-08-154-7/+36
| | | | | | | | (_cygtls::set_signal_arrived): Lock creation of signal_arrived. * cygwait.cc (cancelable_wait): Ignore signal_arrived event if _my_tls 'sig' element does not exist. * exceptions.cc (_cygtls::interrupt_setup): Create signal_arrived if recipient thread has not created it.
* * gendef: Tighten up whitespace detection.Christopher Faylor2012-08-152-4/+8
|
* * gendef: Delete unneeded read from <IN> which ate an arbitrary line fromChristopher Faylor2012-08-152-2/+6
| | | | cygwin.din.
* * exceptions.cc (sigdelayed): Move declaration to sigproc.h.Christopher Faylor2012-08-155-5/+18
| | | | | | | * sigproc.h (sigdelayed): Make symbol globally available. * gendef (sigdelayed): Specifically zero incyg and stacklock. * signal.cc (sigwaitinfo): Lock _my_tls and try harder to clean up signal information.
* * pinfo.cc (_pinfo::exists): Don't consider an execed process to exist.Christopher Faylor2012-08-152-1/+5
|
* * gmon.c (_mcleanup): Fix scope bug when using gmon_out array.Corinna Vinschen2012-08-142-4/+8
|
* * errno.cc (errmap): Keep sorted.Christopher Faylor2012-08-142-1/+5
|
* * thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output inCorinna Vinschen2012-08-142-1/+6
| | | | api_fatal call.
* * errno.cc (errmap): Keep sorted.Christopher Faylor2012-08-142-1/+5
|
* * mount.cc (fs_names): Add missing ReFS entry. Change comment.Corinna Vinschen2012-08-143-1/+10
| | | | * mount.h (enum fs_info_type): Add comment.
* * errno.cc (errmap): Map ERROR_SXS_CANT_GEN_ACTCTX to ELIBBAD.Christopher Faylor2012-08-132-0/+5
|
* Add support for 64-bit ARM architecture: AArch64Nick Clifton2012-08-137-2/+1190
|
* include/opcode/Maciej W. Rozycki2012-08-132-37/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mips.h (mips_opcode): Add the exclusions field. (OPCODE_IS_MEMBER): Remove macro. (cpu_is_member): New inline function. (opcode_is_member): Likewise. opcodes/ * micromips-opc.c (micromips_opcodes): Update comment. * mips-opc.c (mips_builtin_opcodes): Likewise. Mark coprocessor instructions for IOCT as appropriate. * mips-dis.c (print_insn_mips): Replace OPCODE_IS_MEMBER with opcode_is_member. * configure.in: Substitute NO_WMISSING_FIELD_INITIALIZERS with the result of a check for the -Wno-missing-field-initializers GCC option. * Makefile.am (NO_WMISSING_FIELD_INITIALIZERS): New variable. (mips-opc.lo): Pass $(NO_WMISSING_FIELD_INITIALIZERS) to compilation. (mips16-opc.lo): Likewise. (micromips-opc.lo): Likewise. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. gas/ * config/tc-mips.c (NO_ISA_COP, COP_INSN): Remove macros. (is_opcode_valid): Remove coprocessor instruction exclusions. Replace OPCODE_IS_MEMBER with opcode_is_member. (is_opcode_valid_16): Replace OPCODE_IS_MEMBER with opcode_is_member. (macro): Remove coprocessor instruction exclusions.
* * libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.Corinna Vinschen2012-08-105-5/+14
| | | | | | | * libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid compiler warning. * libc/stdio/fgets.c (_fgets_r): Ditto. * libc/time/strftime.c (strftime): Ditto.
* Even though MSDN documents these as __cdecl the kernel32.dll libraryEarnie Boyd2012-08-103-6/+22
| | | | | | | | | | | | exports them as __stdcall. Confirmed with gendef program. * lib/kernel32.def (InterlockedDecrement): Revert the 2012-08-08 change. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto. * include/winbase.h (InterlockedDecrement): Revert the 2012-08-01 change. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
* Fix dateCorinna Vinschen2012-08-101-1/+1
|
* * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state toCorinna Vinschen2012-08-102-2/+7
| | | | allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.
* * DevNotes: Add entry cgf-000014.Christopher Faylor2012-08-099-67/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | * cygheap.cc (tls_sentry): Move here, rename from 'sentry' in cygtls.cc (tls_sentry::lock): Ditto. (nthreads): Move from cygtls.cc (THREADLIST_CHUNK): Ditto. (cygheap_init): Call init_tls_list(). (init_cygheap::init_tls_list): Define new function. (init_cygheap::add_tls): Ditto. (init_cygheap::remove_tls): Ditto. (init_cygheap::find_tls): Ditto. Semi-resurrect from _cygtls::find_tls. * cygheap.h (init_cygheap::init_tls_list): Declare new function. (init_cygheap::add_tls): Ditto. (init_cygheap::remove_tls): Ditto. (init_cygheap::find_tls): Ditto. * cygtls.cc (sentry): Delete. (sentry::lock): Ditto. (nthreads): Ditto. (THREADLIST_CHUNK): Ditto. (_cygtls::init): Delete definition. (_cygtls::init_thread): Call cygheap->add_tls() to add thread to global list. (_cygtls::remove): cygheap->remove_tls() to remove thread from global list. * cygtls.h (_cygtls::init): Delete declaration. * dcrt0.cc (dll_crt0_0): Delete call to _cygtls::init(). * exceptions.cc (sigpacket::process): When no thread is specified, try to find one via cygheap->find_tls.
* * lib/kernel32.def (InterlockedDecrement): Remove the @BYTE count sinceEarnie Boyd2012-08-082-3/+10
| | | | | | we now declare it as __cdecl. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
* 2012-08-08 Kai Tietz <ktietz@redhat.com>Earnie Boyd2012-08-082-4/+8
| | | | * mingwex/gdtoa/gd_qnan.h: Make Nan constants positive valued.
* * libc/posix/engine.c(dissect): Guard diagnostic pragma for rightCorinna Vinschen2012-08-083-2/+14
| | | | | | | versions of GCC only. * libc/string/strcasestr.c: Ditto. Fix typo in previous ChangeLog entry.
* Throughout, run newlib with -Wall -Werror option and fix bugs andCorinna Vinschen2012-08-0843-74/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiler warnings found this way. * libc/stdio/freopen.c (_freopen_r): Fix bug setting _flags. * libc/include/stdio.h (_rename): Define when building newlib. * libc/include/sys/signal.h (_kill): Ditto. * libc/include/sys/stat.h (_mkdir): Ditto. * libc/include/sys/time.h (_gettimeofday): Ditto. * libc/include/sys/times.h (_times): Ditto. * libc/include/sys/wait.h (_wait): Ditto. * libc/locale/lmessages.c (empty): Don't define for Cygwin. * libc/locale/lmonetary.c (cnv): Ditto. * libc/locale/nl_langinfo.c (nl_langinfo): Ditto for variable s. * libc/posix/collate.c: Throughout cast to avoid compiler warning. * libc/posix/engine.c (matcher): Initialize dp to avoid compiler warning. * libc/posix/glob.c: Disable on Cygwin. Explain why. * libc/posix/regcomp.c: Fix "uninitialized" compiler warnings. (dissect): Deliberately silence gcc compiler warning. Add comment to explain why. * libc/posix/wordexp.c (wordexp): Remove num_bytes variable since result is never used. * libc/posix/popen.c (popen): Ditto for variable last. * libc/reent/mkdirr.c: Include sys/stat.h. * libc/reent/renamer.c: Include stdio.h. * libc/search/hash.c: Throughout use underscored variants of the stat function family. (init_hash): Add missing definition for the __USE_INTERNAL_STAT64 case. * libc/search/hash_bigkey.c (__big_insert): Add parenthesis to avoid compiler warning. * libc/search/hash_page.c (overflow_page): Initalize freep to NULL to avoid compiler warning. * libc/stdio/asiprintf.c (_asiprintf_r): Cast unsigned char * to char * to avoid compiler warning. (asiprintf): Ditto. * libc/stdio/asprintf.c (_asprintf_r): Ditto. (asprintf): Ditto. * libc/stdio/vasiprintf.c (_vasiprintf_r): Ditto. * libc/stdio/vasprintf.c (_vasprintf_r): Ditto. * libc/stdio/mktemp.c (_gettemp): Cast to unsigned char in call to isdigit to avoid compiler warning. * libc/stdio/vfprintf.c (_VFPRINTF_R): Initialize variables used for grouping to avoid compiler warning. Only define and set nseps and nrepeats if they are really used. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Ditto. Only define state if it is really used. * libc/stdio/vfscanf.c (u_char): Revert to be defined as unsigned char. (__SVFSCANF_R): Cast fmt in call to __mbtowc. * libc/stdlib/mbtowc_r.c (JIS_state_table): Disable when building Cygwin. (JIS_action_table): Ditto. * libc/stdlib/wctomb_r.c (__utf8_wctomb): Add parenthesis to avoid compiler warning. * libc/string/strcasestr.c: Deliberately silence gcc compiler warning. Add comment to explain why. * libc/time/strptime.c (strptime): Cast to unsigned char in calls to isspace to avoid compiler warning. * libm/math/e_atan2.c (__ieee754_atan2): Add parenthesis to avoid compiler warning. * libm/math/e_exp.c (__ieee754_exp): Initialize k to 0 to avoid compiler warning. Drop setting it to 0 later. * libm/math/ef_exp.c (__ieee754_expf): Ditto. * libm/math/e_pow.c (__ieee754_pow): Add braces to avoid compiler warning. * libm/math/ef_pow.c (__ieee754_powf): Ditto. * libm/math/er_lgamma.c (__ieee754_lgamma_r): Initialize nadj to 0 to avoid compiler warning. * libm/math/erf_lgamma.c (__ieee754_lgammaf_r): Ditto. * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Ditto for variable z. * libm/common/sf_round.c (roundf): Remove signbit variable since result is never used.
* * include/sys/wait.h (_wait): Define when building newlib.Corinna Vinschen2012-08-082-1/+9
|
* * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compilerCorinna Vinschen2012-08-072-1/+6
| | | | warning.
* * signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.Christopher Faylor2012-08-072-2/+5
|
* * include/winnt.h (MemoryBarrier): Define to __mingworg_MemoryBarrier()Earnie Boyd2012-08-062-2/+7
| | | | | | | | which is in libmingwex.a. MODIFIED FROM: Use __sync_synchronize instead of creating a function due to multiple definition. NOTE: Not using __sync_synchronize to allow applications to mix-n-match C libraries from different vendors.
* * mingwex/membarrier.c: New file.Earnie Boyd2012-08-063-2/+27
| | | | | * mingwex/Makefile.in (DISTFILES): Add membarrier.c. (REPLACE_OBJS): Add membarrier.o.
* * include/winnt.h (MemoryBarrier): Use __sync_synchronize instead ofEarnie Boyd2012-08-062-5/+6
| | | | creating a function due to multiple definition.
* *** empty log message ***Corinna Vinschen2012-08-061-0/+12
|
* AddChristopher Faylor2012-08-061-0/+13
|
* * include/winver.h (VerQueryValue[AW]): Correct declaration per MSDN.Earnie Boyd2012-08-042-2/+6
|
* Add mingwex/tsearch.c to ChangeLogEarnie Boyd2012-08-031-0/+1
|
* * include/_mingw.h (threadlocalinfostruct, threadmbinfostruct,Earnie Boyd2012-08-033-11/+27
| | | | *pthreadlocinfo, *pthreadmbcinfo, _locale_tstruct, *_locale_t): Declare.
* * include/limits.h (PATH_MAX): Guard with #ifndef __STRICT_ANSI__.Earnie Boyd2012-08-033-1/+9
| | | | * include/sys/param.h (MAXPATHLEN): Make sure PATH_MAX is defined.
* 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>Earnie Boyd2012-08-032-0/+26
| | | | * include/process.h (_wexec*, _wspawn*): Declare.
* * include/stdio.h (_lock_file, _unlock_file): Declare.Earnie Boyd2012-08-032-1/+4
|
* * include/stdio.h (_getws, _putws): Guard with #ifndef __STRICT_ANSI__.Earnie Boyd2012-08-032-2/+7
| | | | | (_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto. (_wrename, _wremove, _wperror, _wpopen): Ditto.
* * include/wchar.h (_wcstrtoi64): Declare.Earnie Boyd2012-08-033-4/+12
| | | | | | (_wcstrtoi64_l): Ditto. (_wcstrtoui64): Ditto. (_wcstrtoui64_l): Ditto.