summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s/open/create/Corinna Vinschen2008-03-061-1/+1
|
* * child_info.h (~child_info_spawn): Check moreinfo->myself_pinfo forCorinna Vinschen2008-03-055-5/+23
| | | | | | | | | | | NULL before closing. * spawn.cc (spawn_guts): Don't close moreinfo->myself_pinfo explicitely in case of failing CloseProcess. * fhandler.cc (fhandler_base::open_): Return EISDIR when trying to create a directory. * path.cc (path_conv::check): If input path had a trailing dir separator, tack it on to the native path if directory doesn't exist.
* 2008-03-04 Paul Brook <paul@codesourcery.com>Paul Brook2008-03-052-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | gas/ * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New. (arm_ext_v7m): Rename... (arm_ext_m): ... to this. Include v6-M. (do_t_add_sub): Allow narrow low-reg non flag setting adds. (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m. (md_assemble): Allow wide msr instructions. (insns): Add classifications for v6-m instructions. (arm_cpu_option_table): Add cortex-m1. (arm_arch_option_table): Add armv6-m. (cpu_arch): Add ARM_ARCH_V6M. Fix numbering of other v6 variants. gas/testsuite/ * gas/arm/archv6m.d: New test. * gas/arm/archv6m.s: New test. * gas/arm/t16-bad.s: Test low register non flag setting add. * gas/arm/t16-bad.l: Update expected output. include/opcode/ * arm.h (ARM_EXT_V6M, ARM_EXT_BARRIER, ARM_EXT_THUMB_MSR): Define. (ARM_AEXT_V6T2, ARM_AEXT_V7_ARM, ARM_AEXT_V7M): Use new flags. (ARM_AEXT_V6M, ARM_ARCH_V6M): Define.
* Fix strtod("nan()", ptr).Eric Blake2008-03-042-1/+7
| | | | | | * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional n-char-sequence is omitted, still parse the (). -------------------------------------------------------------------
* 2008-02-28 Joseph Myers <joseph@codesourcery.com>Chris Sutcliffe2008-03-042-5/+5
| | | | | * include/complex.h: Don't condition contents on C99 or not __STRICT_ANSI__.
* Fix ftell bug after ungetc.Eric Blake2008-03-044-6/+23
| | | | | | | | | * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on ftell. * libc/stdio64/ftello64.c (_ftello64_r): Likewise. * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when repositioning underlying fd offset. -------------------------------------------------------------------
* 2008-03-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-03-032-0/+11
| | | | | * libc/include/getopt.h (no_argument): Added for glibc compatibility. (required_argument, optional_argument): Ditto.
* * dwarf2.h: (enum dwarf_location_atom): Add new DW_OP,Nick Clifton2008-03-032-2/+9
| | | | | | | DW_OP_PGI_omp_thread_num. * dwarf.c (decode_location_expression): Handle DW_OP_PGI_omp_thread_num.
* fix typoChristopher Faylor2008-03-021-1/+1
|
* * cygtls.cc (_cygtls::init_exception_handler): Semi-revert to making onlyChristopher Faylor2008-03-025-12/+46
| | | | | | | | | | | | | ourselves the exception handler and nothing else. * exceptions.cc (open_stackdumpfile): Use correct format specifiers for unicode when printing nameof stackdump file. (stack_info::walk): Stop walking if ebp points into cygwin itself. (_cygtls::handle_exceptions): Detect when signal is masked and treat as if it was not caught. Reinitialize exception handler to known state to avoid subsequent attempts to call Windows exception handlers if an exception occurs in a signal handler. Revert to a 'return 0' rather than using a goto. * strfuncs.cc (sys_wcstombs_alloc): Minor formatting tweak. * winsup.h: Fix comment typo.
* * smallprint.cc (__small_vsprintf): Free allocated buffer rather than pointerChristopher Faylor2008-03-022-4/+11
| | | | into the buffer.
* Update ChangeLog.Christopher Faylor2008-03-011-0/+1
|
* * cygtls.h (_cygtls::handle_threadlist_exception): Eliminate.Christopher Faylor2008-03-014-43/+19
| | | | | | | | (_cygtls::init_threadlist_exceptions): Ditto. * cygtls.cc (_cygtls::handle_threadlist_exception): Eliminate. (_cygtls::init_threadlist_exceptions): Ditto. (_cygtls::find_tls): Use myfault handling to deal with errors caused by nonexistent threads.
* * cygtls.cc (_cygtls::init_exception_handler): Just return.Christopher Faylor2008-03-011-0/+4
|
* * exceptions.cc (_cygtls::handle_exceptions): Only call rtl_unwind whenChristopher Faylor2008-03-014-20/+22
| | | | | | | | exiting. Just return, don't set thread context. * gendef (_setjmp): Store %fs:0 in jmp_buf. (_sjfault): Ditto. (_ljfault): Restore %fs:0 from jmp_buf. (_longjmp): Ditto.
* 2008-02-29 Gregory Pietsch <gpietsch@comcast.net>Jeff Johnston2008-02-293-199/+322
| | | | | | | | | | | * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept data area so as to support reentrant calls. Change all callers to fill in data area with global values and restore any changes to the global values after call. (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines to support reentrancy that add a data area argument. * libc/include/getopt.h: Add new _r routines and provide macros so they can be called with using double-underscores.
* * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call close_fsCorinna Vinschen2008-02-292-3/+11
| | | | | | | instead of close to avoid calling close from wrong class when changing a file system based device node. (fhandler_disk_file::fchown): Ditto. (fhandler_disk_file::facl): Ditto.
* Change accreditation for patch for PR3134Nick Clifton2008-02-291-1/+1
|
* * exceptions.cc (_cygtls::handle_exceptions): When being debugged,Corinna Vinschen2008-02-282-2/+8
| | | | | leave through SetThreadContext, too, to keep exception handler stack intact.
* * exceptions.cc (open_stackdumpfile): Add comments.Corinna Vinschen2008-02-282-1/+8
|
* * exceptions.cc (open_stackdumpfile): Use NtCreateFile to createCorinna Vinschen2008-02-282-5/+28
| | | | stackdump file.
* * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entriesCorinna Vinschen2008-02-282-15/+10
| | | | for LocalService and NetworkService accounts. Change comments.
* * exceptions.cc (stack_info::walk): Fix typo.Corinna Vinschen2008-02-272-1/+5
|
* * cygtls.cc (_cygtls::init_exception_handler): Fix comment.Corinna Vinschen2008-02-272-7/+6
|
* Fix dateCorinna Vinschen2008-02-271-1/+1
|
* * (struct __DIR_cache): Switch order of members so that the bufferCorinna Vinschen2008-02-272-1/+6
| | | | given to NtQueryDirectoryFile is 8 byte aligned.
* * cygtls.cc (_cygtls::handle_threadlist_exception): Make it clear that theChristopher Faylor2008-02-273-3/+25
| | | | | | function never actually returns. * exceptions.cc (_cygtls::handle_exceptions): Jump out of function rather than returning to avoid meddling by previously installed exception handlers.
* PR 3134Nick Clifton2008-02-272-1/+10
| | | | | | | | | | | | | * h8300.h (h8_opcodes): Add an encoding for a mov.l instruction with a 32-bit displacement but without the top bit of the 4th byte set. * gas/h8300/pr3134.s: New test. * gas/h8300/pr3134.d: Expected disassembly * gas/h8300/h8300.exp: Run the new test. * gas/h8300/h8300-coff.exp: Fix test for COFF based ports to accept h8300-rtemscoff not just h8300-rtems.
* * dcrt0.cc (initial_env): Only use local buffer "buf" if DEBUGGING isCorinna Vinschen2008-02-2511-65/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | enabled. Replace calls to GetEnvironmentVariable by calls to GetEnvironmentVariableA for clarity. Call GetEnvironmentVariableA with NULL buffer. (cygbench): Ditto, drop local buffer. * environ.cc (getearly): Call GetEnvironmentVariableA. (environ_init): Retrieve unicode environment and convert to current codepage locally. (getwinenveq): Ditto. * exceptions.cc (try_to_debug): Accommodate new sys_mbstowcs calling convention. * fhandler_clipboard.cc (set_clipboard): Call sys_mbstowcs to retrieve required buffer length. * fork.cc (frok::child): Call GetEnvironmentVariableA. * miscfuncs.cc: Accommodate changed arguments in calls to sys_mbstowcs. * sec_auth.cc: Ditto. * strfuncs.cc (sys_wcstombs_alloc): Fix formatting. (sys_mbstowcs): Change arguments to allow specifying a source string length. (sys_mbstowcs_alloc): Ditto. * uinfo.cc (cygheap_user::ontherange): Accommodate changed arguments in calls to sys_mbstowcs. * winsup.h (sys_mbstowcs): Adjust declaration. (sys_mbstowcs_alloc): Ditto.
* 2008-02-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2008-02-243-6/+7
| | | | | | * include/winnt.h: Update guard around KEY_WOW64_64KEY and KEY_WOW64_32KEY definitions. * include/winreg.h (KEY_WOW64_64KEY, KEY_WOW64_32KEY): Remove.
* 2008-02-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2008-02-242-2/+10
| | | | * include/winnt.h (KEY_WOW64_64KEY, KEY_WOW64_32KEY): Define.
* Fix strtod("-0x", NULL).Eric Blake2008-02-212-23/+39
| | | | | * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse fails.
* config:Paolo Bonzini2008-02-202-3/+7
| | | | | | 2008-02-20 Uros Bizjak <ubizjak@gmail.com> * mh-ppc-darwin (BOOT_CFLAGS): Use +=, not =.
* * path.cc (cwdstuff::set): Revert error handling change in caseCorinna Vinschen2008-02-202-13/+14
| | | | DuplicateHandle fails, because it breaks Vista/Longhorn workaround.
* 2008-02-20 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2008-02-208-721/+1261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR bootstrap/32009 PR bootstrap/32161 * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Compute here. * configure: Regenerate. * Makefile.def: Define stage_libcflags for all bootstrap stages. * Makefile.tpl (BOOT_LIBCFLAGS, STAGE2_LIBCFLAGS, STAGE3_LIBCFLAGS, STAGE4_LIBCFLAGS): New. (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Subst from autoconf, without $(SYSROOT_CFLAGS_FOR_TARGET) and $(DEBUG_PREFIX_CFLAGS_FOR_TARGET). (BASE_TARGET_EXPORTS): Append them here to C{,XX}FLAGS. (EXTRA_TARGET_FLAGS): Append them here to {LIB,}C{,XX}FLAGS. (configure-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags for target modules. Don't export LIBCFLAGS. (all-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags; pass $(BASE_FLAGS_TO_PASS) where [+args+] was passed, and [+args+] after the overridden CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. (invocations of `all'): Replace $(TARGET_FLAGS_TO_PASS) with $(EXTRA_TARGET_FLAGS), $(FLAGS_TO_PASS) with $(EXTRA_HOST_FLAGS). * Makefile.in: Regenerate. config: 2008-02-20 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/32009 * mh-ppc-darwin (BOOT_CFLAGS): Reenable.
* * sigproc.cc (sig_send): Use sigmask of target thread if it is specifiedChristopher Faylor2008-02-192-2/+7
| | | | otherwise default to main sigmask.
* * cr16.h (cr16_num_optab): Declared.Nick Clifton2008-02-182-1/+6
| | | | * cr16-opc.c (cr16_num_optab): Defined
* 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>Paolo Bonzini2008-02-162-3/+12
| | | | | | PR libgcj/33085 * libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] <GCJ>: Do not use -DDLL_EXPORT. Backport from upstream.
* * fhandler.cc (fhandler_base::fpathconf): Fix _PC_NAME_MAX andCorinna Vinschen2008-02-162-2/+15
| | | | _PC_PATH_MAX cases.
* * include/sys/cygwin.h (__INT_MAX_PATH): Remove.Corinna Vinschen2008-02-163-4/+10
| | | | | (external_pinfo): Convert program_long to pointer. * external.cc (fillout_pinfo): Add buffer for program_long value.
* * include/sys/cygwin.h (__INT_MAX_PATH): Define to 32K.Corinna Vinschen2008-02-152-1/+8
| | | | (external_pinfo): Set size to __INT_MAX_PATH.
* * include/sys/cygwin.h (external_pinfo): Define program_long size usingChristopher Faylor2008-02-152-1/+6
| | | | external buffer size rather than cygwin-internal buffer size.
* Perform whitespace cleanup throughout.Christopher Faylor2008-02-1545-315/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dcrt0.cc (signal_shift_subtract): Eliminate ancient backwards compatibility. (check_sanity_and_sync): Ditto. * winsup.h (SIGTOMASK): Ditto. Just use constant in signal calculation. * include/cygwin/version: Remove backwards signal mask compatibility define. * path.cc (symlink_info::check_sysfile): Cosmetic change. * registry.cc (get_registry_hive_path): Remove unneeded variable. * exceptions.cc (handle_sigsuspend): Eliminate thread signal mask and use either main sigmask or current thread sigmask. (set_process_mask): Ditto. (sighold): Ditto. (sigrelse): Ditto. (sigset): Ditto. (set_process_mask_delta): Ditto. (_cygtls::call_signal_handler): Ditto. * fhandler_process.cc (format_process_status): Ditto. * fhandler_termios.cc (fhandler_termios::bg_check): Ditto. * pinfo.h (class pinfo): Ditto. * select.cc (pselect): Ditto. * signal.cc (sigprocmask): Ditto. (abort): Ditto. (sigpause): Ditto. (sigsend): Ditto. (wait_sig): Ditto. * thread.h (pthread::parent_tls): New member. * thread.cc (pthread::pthread): Record parent_tls here. (pthread::thread_init_wrapper): Initialize sigmask from parent thread.
* include/Alan Modra2008-02-152-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bfdlink.h (struct bfd_link_hash_table): Delete creator field. (struct bfd_link_info): Add output_bfd. bfd/ * elflink.c: Replace all accesses to hash->creator field with output_bfd->xvec. * cofflink.c: Likewise. * coff-h8300.c: Likewise. * ecoff.c: Likewise. * elf32-m68hc1x.c: Likewise. * elf32-ppc.c: Likewise. * elf64-alpha.c: Likewise. * elf64-ppc.c: Likewise. * elf64-sparc.c: Likewise. * elfxx-mips.c: Likewise. * i386linux.c: Likewise. * m68klinux.c: Likewise. * sparclinux.c: Likewise. * sunos.c: Likewise. * xcofflink.c: Likewise. * linker.c: Likewise. (_bfd_link_hash_table_init): Don't store creator. ld/ * ldmain.h (output_bfd): Delete. * ldmain.c (output_bfd): Delete. Replace all occurrences of output_bfd with link_info.output_bfd. * ldcref.c: Likewise. * ldctor.c: Likewise. * ldemul.c: Likewise. * ldexp.c: Likewise. * ldfile.c: Likewise. * ldlang.c: Likewise. * ldmisc.c: Likewise. * ldwrite.c: Likewise. * pe-dll.c: Likewise. * emultempl/aix.em: Likewise. * emultempl/alphaelf.em: Likewise. * emultempl/armcoff.em: Likewise. * emultempl/armelf.em: Likewise. * emultempl/avrelf.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/elf-generic.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/irix.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68hc1xelf.em: Likewise. * emultempl/mmix-elfnmmo.em: Likewise. * emultempl/mmo.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/ppc32elf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/scoreelf.em: Likewise. * emultempl/sh64elf.em: Likewise. * emultempl/spuelf.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/vanilla.em: Likewise. * emultempl/vxworks.em: Likewise. * emultempl/xtensaelf.em: Likewise. * emultempl/z80.em: Likewise. * ldlang.c (open_output): Don't return output, instead write link_info_output_bfd directly. * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator with link_info.output_bfd->xvec. * emultempl/hppaelf.em: Likewise. * emultempl/ppc32elf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/spuelf.em: Likewise.
* * cygheap.cc (cwcsdup): New function.Corinna Vinschen2008-02-1423-60/+138
| | | | | | | | | | | | | | | | | | | | | | (cwcsdup1): New function. * cygheap.h (cygheap_user::get_windows_id): New method returning PWCHAR. (cwcsdup): Declare. (cwcsdup1): Declare. * registry.cc (get_registry_hive_path): Use WCHAR instead of char throughout. (load_registry_hive): Ditto. * registry.h (get_registry_hive_path): Change declaration accordingly. (load_registry_hive): Ditto. * sec_helper.cc (cygpsid::string): New method returning PWCHAR. * security.h (cygpsid::string): Declare. * syscalls.cc (seteuid32): Convert local name var to WCHAR. * uinfo.cc (cygheap_user::env_userprofile): Convert local name buffers to WCHAR. Call sys_wcstombs_alloc to generate puserprof buffer. * winsup.h: Fix comment. (NT_MAX_PATH): New definition for maximum internal path length. Use throughout where appropriate. * include/limits.h (PATH_MAX): Set to 4096 as on Linux.
* PR gas/2626Nick Clifton2008-02-142-1/+8
| | | | | | | | | * avr.h (AVR_ISA_2xxe): Define. * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26 to AVR_ISA_2xxe. (avr_operand): Disallow post-increment addressing in the lpm instruction for the attiny26.
* Import this patch from gcc:Nick Clifton2008-02-142-12/+19
| | | | | | 2008-01-24 David Edelsohn <edelsohn@gnu.org> * libtool.m4: Backport AIX 6 support from ToT Libtool.
* * configure.in: Remove non-working options.Christopher Faylor2008-02-143-2160/+3195
| | | | * configure: Regenerate.
* * syscalls.cc (_isatty): Define as an alias to isatty to override newlibChristopher Faylor2008-02-133-2/+27
| | | | | | version. * thread.cc (pthread_kill): Deal with signal 0 as per POSIX and also avoid manipulating an invalid thread.
* * posix.sgml: Move llrint, llrintf, llrintl, lrintl, rintl, wcstol,Corinna Vinschen2008-02-132-11/+35
| | | | | | | | | wcstoll, wcstoul, wcstoull, wcsxfrm from unimplemented to implemented POSIX interfaces. Change headline of "GNU extensions" to "GNU and Linux extensions". Add fgetxattr, flistxattr, fremovexattr, fsetxattr, getxattr, lgetxattr, listxattr, llistxattr, lremovexattr, lsetxattr, removexattr, setxattr, wcpcpy and wcpncpy to list of implemented GNU functions.