]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
14 years ago2009-07-29 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 29 Jul 2009 22:33:40 +0000 (22:33 +0000)]
2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
        when a lower-case character is detected.

14 years ago * ppc64.h: Add R_PPC64_JMP_IREL, R_PPC64_REL16, R_PPC64_REL16_LO,
Alan Modra [Wed, 29 Jul 2009 14:55:20 +0000 (14:55 +0000)]
* ppc64.h: Add R_PPC64_JMP_IREL, R_PPC64_REL16, R_PPC64_REL16_LO,
R_PPC64_REL16_HI, R_PPC64_REL16_HA.

14 years ago * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
Corinna Vinschen [Wed, 29 Jul 2009 08:31:30 +0000 (08:31 +0000)]
* libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
pair handling to be more bullet-proof even with incomplete UTF-8
sequences.  Add check for 4 byte sequences resulting in values
outside the valid Unicode range.  Add a comment to clarify checking
for invalid CESU-8 sequences.

14 years agoCorrect disposition of wchar_t output in printf().
Keith Marshall [Wed, 29 Jul 2009 07:22:51 +0000 (07:22 +0000)]
Correct disposition of wchar_t output in printf().

14 years ago* mep/gmap_default.ld: Add linkonce sections for .vtext.
DJ Delorie [Wed, 29 Jul 2009 00:57:57 +0000 (00:57 +0000)]
* mep/gmap_default.ld: Add linkonce sections for .vtext.
* mep/default.ld: Likewise.
* mep/fmax.ld: Likewise.
* mep/simple.ld: Likewise.

14 years ago * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
Corinna Vinschen [Tue, 28 Jul 2009 16:49:19 +0000 (16:49 +0000)]
* libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
of handling incomplete sequences.

14 years ago * mount.h (enum fs_info_type): New type.
Corinna Vinschen [Tue, 28 Jul 2009 10:39:55 +0000 (10:39 +0000)]
* mount.h (enum fs_info_type): New type.
(IMPLEMENT_FS_FLAG): New define.
(class fs_info): Convert filesystem type status flags into an enum
fs_info_type.  Add cifs FS.  Revert change to has_buggy_open and
has_buggy_fileid_dirinfo.  Make them normal; status flags again.
Implement is_FS functions using IMPLEMENT_FS_FLAG.
* mount.cc (fs_info::update): Define MINIMAL_WIN_NTFS_FLAGS and
FS_IS_WINDOWS_NTFS.  Add comment.  Only test remote filesystems
for "NTFS" once.  Add is_cifs check using FS_IS_WINDOWS_NTFS.
Set has_buggy_open flag for SUNWNFS.  Set has_buggy_fileid_dirinfo
flag for UNIXFS and all cifs type filesystems.  Only check for
caseinsensitivity once.
(fillout_mntent): Create locale fs_names array.  Use for setting
_my_tls.locals.mnt_type.

14 years ago2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 28 Jul 2009 01:28:22 +0000 (01:28 +0000)]
2009-07-27  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * mingwex/stdio/pformat.c: Implement better fix for type punned warning.

14 years agoConvert to monolithic configuration procedure.
Keith Marshall [Mon, 27 Jul 2009 20:27:09 +0000 (20:27 +0000)]
Convert to monolithic configuration procedure.

14 years ago * include/winnt.h (FILE_SUPPORTS_HARD_LINKS,
Corinna Vinschen [Mon, 27 Jul 2009 11:40:26 +0000 (11:40 +0000)]
* include/winnt.h (FILE_SUPPORTS_HARD_LINKS,
FILE_SUPPORTS_EXTENDED_ATTRIBUTES, FILE_SUPPORTS_OPEN_BY_FILE_ID,
FILE_SUPPORTS_USN_JOURNALS): Define.  Add comment.
* include/ddk/ntifs.h: Ditto.
(FILE_SEQUENTIAL_WRITE_ONCE, FILE_SUPPORTS_TRANSACTIONS): Define.

14 years ago * posix.sgml (std-notes): Remove obsolete reference to CYGWIN=server.
Corinna Vinschen [Mon, 27 Jul 2009 08:05:47 +0000 (08:05 +0000)]
* posix.sgml (std-notes): Remove obsolete reference to CYGWIN=server.

15 years ago * posix.sgml (std-notes): Add flock restriction.
Corinna Vinschen [Sun, 26 Jul 2009 09:34:35 +0000 (09:34 +0000)]
* posix.sgml (std-notes): Add flock restriction.

15 years agobfd/
H.J. Lu [Sat, 25 Jul 2009 14:58:55 +0000 (14:58 +0000)]
bfd/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* archures.c (bfd_architecture): Add bfd_arch_l1om.
(bfd_l1om_arch): New.
(bfd_archures_list): Add &bfd_l1om_arch.
* bfd-in2.h: Regenerated.

* config.bfd (targ64_selvecs): Add bfd_elf64_l1om_vec if
bfd_elf64_x86_64_vec is supported.  Add bfd_elf64_l1om_freebsd_vec
if bfd_elf64_x86_64_freebsd_vec is supported.
(targ_selvecs): Likewise.

* configure.in: Support bfd_elf64_l1om_vec and
bfd_elf64_l1om_freebsd_vec.
* configure: Regenerated.

* cpu-l1om.c: New.

* elf64-x86-64.c (elf64_l1om_elf_object_p): New.
(bfd_elf64_l1om_vec): Likewise.
(bfd_elf64_l1om_freebsd_vec): Likewise.

* Makefile.am (ALL_MACHINES): Add cpu-l1om.lo.
(ALL_MACHINES_CFILES): Add cpu-l1om.c.
* Makefile.in: Regenerated.

* targets.c (bfd_elf64_l1om_vec): New.
(bfd_elf64_l1om_freebsd_vec): Likewise.
(_bfd_target_vector): Add bfd_elf64_l1om_vec and
bfd_elf64_l1om_freebsd_vec.

binutils/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (guess_is_rela): Handle EM_L1OM.
(dump_relocations): Likewise.
(get_machine_name): Likewise.
(get_section_type_name): Likewise.
(get_elf_section_flags): Likewise.
(get_symbol_index_type): Likewise.
(is_32bit_abs_reloc): Likewise.
(is_32bit_pcrel_reloc): Likewise.
(is_64bit_abs_reloc): Likewise.
(is_64bit_pcrel_reloc): Likewise.
(is_none_reloc): Likewise.

gas/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (cpu_arch): Add l1om.
(check_cpu_arch_compatible): New.
(set_cpu_arch): Use it.
(i386_arch): New.
(i386_mach): Return bfd_mach_l1om for Intel L1OM.
(md_show_usage): Display l1om.
(i386_target_format): Return ELF_TARGET_L1OM_FORMAT if
cpu_arch_isa_flags.bitfield.cpul1om is set.

* config/tc-i386.h (TARGET_ARCH): Use (i386_arch ()).
(i386_arch): New.
(ELF_TARGET_L1OM_FORMAT): Likewise.

* doc/c-i386.texi: Document l1om.

gas/testsuite/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/l1om.d: New.
* gas/i386/l1om-inval.l: Likewise.
* gas/i386/l1om-inval.s: Likewise.

* gas/i386/i386.exp: Run l1om-inval and l1om.

include/elf/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_L1OM): New.

ld/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
is supported.  Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
(targ_extra_emuls): Likewise.

* Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
eelf_l1om_fbsd.o
(eelf_l1om.c): New.
(eelf_l1om_fbsd.c): Likewise.
* Makefile.in: Regenerated.

* emulparams/elf_l1om.sh: New.
* emulparams/elf_l1om_fbsd.sh: Likewise.

ld/testsuite/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* ld-x86-64/abs-l1om.d: New.
* ld-x86-64/protected2-l1om.d: Likewise.
* ld-x86-64/protected3-l1om.d: Likewise.

* ld-x86-64/x86-64.exp: Run abs-l1om, protected2-l1om and
protected3-l1om.

opcodes/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* configure.in: Handle bfd_l1om_arch.
* disassemble.c (disassembler): Likewise.

* configure: Regenerated.

* i386-dis.c (print_insn): Handle bfd_mach_l1om and
bfd_mach_l1om_intel_syntax.  Use 8 bytes per line for Intel L1OM.

* i386-gen.c (cpu_flag_init): Set CPU_UNKNOWN_FLAGS to ~CpuL1OM.
Add CPU_L1OM_FLAGS.
(cpu_flags): Add CpuL1OM.
(set_bitfield): Take an argument to set the value field.
(process_i386_cpu_flag): Support ~CpuXXX and ~(CpuXXX|CpuYYY).
(process_i386_opcode_modifier): Updated.
(process_i386_operand_type): Likewise.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

* i386-opc.h (CpuL1OM): New.
(CpuXsave): Updated.
(i386_cpu_flags): Add cpul1om.

15 years agomerge from gcc
DJ Delorie [Sat, 25 Jul 2009 11:28:15 +0000 (11:28 +0000)]
merge from gcc

15 years ago * fhandler_console.cc (set_console_title): Set buffer size to
Corinna Vinschen [Sat, 25 Jul 2009 08:27:10 +0000 (08:27 +0000)]
* fhandler_console.cc (set_console_title): Set buffer size to
TITLESIZE + 1.  Call sys_mbstowcs with correct destination length.

15 years agomerge from gcc
DJ Delorie [Sat, 25 Jul 2009 00:01:48 +0000 (00:01 +0000)]
merge from gcc

15 years ago* sigproc.h (wait_for_sigthread): Eliminate parameter.
Christopher Faylor [Fri, 24 Jul 2009 20:54:33 +0000 (20:54 +0000)]
* sigproc.h (wait_for_sigthread): Eliminate parameter.
* sigproc.cc (wait_for_sigthread): Ditto.  Don't synchronize with wait_sig
after receiving an event that it is ready to go.
(init_sig_pipe): New function.
(wait_sig): Call init_sig_pipe to create pipes for communicating signals to
this process.  Don't send sigCONT signal when initializing.
* fork.cc (frok::child): Accommodate wait_for_sigpipe parameter change.
* fhandler.h (fhandler_*::write): Make ssize_t/__stdcall.
(fhandler_*::write_overlapped): Ditto.
(fhandler_*::raw_write): Ditto.
(fhandler_*::readv): Ditto.
(fhandler_*::writev): Ditto.
(fhandler_*::raw_read): Make __stdcall.
* fhandler: Accommodate changes to read/write functions throughout.
* fhandler_clipboard.cc: Ditto.
* fhandler_console.cc: Ditto.
* fhandler_dsp.cc: Ditto.
* fhandler_fifo.cc: Ditto.
* fhandler_mailslot.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_random.cc: Ditto.
* fhandler_tape.cc: Ditto.
* fhandler_tty.cc: Ditto.
* fhandler_virtual.cc: Ditto.
* fhandler_windows.cc: Ditto.
* fhandler_zero.cc: Ditto.
* syscalls.cc (readv): Use ssize_t as temp variable.
* fhandler.cc (fhandler_base::read): Coerce returned len to signed or it will
never be treated as < 0.
(fhandler_base::wait_overlapped): Minimize calls to GetLastError.  Remove
duplicate debugging test.  Fix error return.
* fhandler.h (fhandler_fifo::fifo_name): Declare new function.
(fhandler_fifo::close): Ditto.
(fhandler_fifo::dup): Ditto.
(fhandler_fifo::close_on_exec): Ditto.
* fhandler.cc (fhandler_fifo::fifo_name): Define new function.
(FIFO_BUF_SIZE): New define.
(cnp): Ditto.
(fhandler_fifo::open): Rework.  Use cnp to open named pipe.  Always open write
side as a client.  Open dummy client when writing and can't connect.
(wait): Rework.  Implement fifo_wait_for_next_client.  Handle signals during
connect better.  Add new fifo_wait_for_server code which polls
(sigh) waiting for server.
(fhandler_fifo::raw_read): Handle transition states when one client closes and
another is available.
(fhandler_fifo::close): Define.
(fhandler_fifo::dup): Ditto.
(fhandler_fifo::close_on_exec): Ditto.

15 years agoinclude/elf/
Trevor Smigiel [Fri, 24 Jul 2009 19:51:27 +0000 (19:51 +0000)]
include/elf/
        * spu.h (R_SPU_ADD_PIC): New.
bfd/
        * reloc.c (BFD_RELOC_SPU_ADD_PIC): Define.
        * bfd-in2.h: Regenerate.
        * libbfd.h: Regenerate.
        * elf32-spu.c (elf_howto_table): Add entries SPU_ADD_PIC.
        (spu_elf_bfd_to_reloc_type): Handle SPU_ADD_PIC.
        (spu_elf_relocate_section): Patch instructions marked by SPU_ADD_PIC.
gas/
        * config/tc-spu.c (md_apply_fix): Handle SPU_ADD_PIC.
        * config/tc-spu.h (tc_fix_adjustable): Don't adjust for SPU_ADD_PIC.
        (TC_FORCE_RELOCATION): Emit relocs for SPU_ADD_PIC.
ld/testsuite/
        * ld-spu/pic.d: New.
        * ld-spu/pic.s: New.
        * ld-spu/picdef.s: New.

15 years ago * syscalls.cc (internal_setlocale): Fix typo in GBK codepage.
Corinna Vinschen [Fri, 24 Jul 2009 18:24:57 +0000 (18:24 +0000)]
* syscalls.cc (internal_setlocale): Fix typo in GBK codepage.

15 years ago * syscalls.cc (unlink_nt): Ignore sharing violation on NFS. Align
Corinna Vinschen [Fri, 24 Jul 2009 14:13:44 +0000 (14:13 +0000)]
* syscalls.cc (unlink_nt): Ignore sharing violation on NFS.  Align
comments.

15 years ago2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Fri, 24 Jul 2009 01:29:38 +0000 (01:29 +0000)]
2009-07-23  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
        to complaints that it causes issues.

15 years ago2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
Chris Sutcliffe [Fri, 24 Jul 2009 01:21:27 +0000 (01:21 +0000)]
2009-07-23  Jacky Lai  <crazyjacky@users.sourceforge.net>

        * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().

15 years ago * config/obj-elf.c (obj_elf_type): Add code to support a type of
Nick Clifton [Thu, 23 Jul 2009 13:00:30 +0000 (13:00 +0000)]
    * config/obj-elf.c (obj_elf_type): Add code to support a type of
        gnu_unique_object.
        * doc/as.texinfo: Document new feature of .type directive.
        * NEWS: Mention support for gnu_unique_object symbol type.

        * common.h (STB_GNU_UNIQUE): Define.

        * NEWS: Mention the linker's support for symbols with a binding of
        STB_GNU_UNIQUE.

        * gas/elf/type.s: Add unique global symbol definition.
        * gas/elf/type.e: Add expected readelf output for global unique
        symbol.

        * elfcpp.h (enum STB): Add STB_GNU_UNIQUE.

        * readelf.c (get_symbol_binding): For Linux targeted files return
        UNIQUE for symbols with the STB_GNU_UNIQUE binding.
        * doc/binutils.texi: Document the meaning of the 'u' symbol
        binding in the output of nm and objdump --syms.

        * elf-bfd.h (struct elf_link_hash_entry): Add unique_global field.
        * elf.c (swap_out_syms): Set binding to STB_GNU_UNIQUE for symbols
        with the BSF_GNU_UNIQUE flag bit set.
        * elfcode.h (elf_slurp_symbol_table): Set the BSF_GNU_UNIQUE flag
        for symbols with STB_GNU_UNIQUE binding.
        * elflink.c (_bfd_elf_merge_symbol): Set unique_global for symbols
        with the STB_GNU_UNIQUE binding.
        (elf_link_add_object_symbols): Set the BSF_GNU_UNIQUE flag for
        symbols with STB_GNU_UNIQUE binding.  Set STB_GNU_UNIQUE for
        symbols with the unique_global field set.
        (elf_link_output_extsym): Set unique_global field for symbols with
        the STB_GNU_UNIQUE binding.
        * syms.c (struct bfd_symbol): Define BSF_GNU_UNIQUE flag bit.
        (bfd_print_symbol_vandf): Print a 'u' character for BSF_GNU_UNIQUE
        symbols.
        (bfd_decode_symclass): Return a 'u' character for BSF_GNU_UNIQUE
        symbols.
        * bfd-in2.h: Regenerate.

15 years ago * mount.h (fs_info::fsn): New member.
Corinna Vinschen [Thu, 23 Jul 2009 11:46:06 +0000 (11:46 +0000)]
* mount.h (fs_info::fsn): New member.
(fs_info::clear): Clear fsn.
(fs_info::fsname): New read accessor for fsn.
* mount.cc (fs_info::update): Fill in fsn member with lowercased
filesystem name if filesystem is not well-known.  Fall back to
"unknown" if filesystem name is missing.
(fillout_mntent): Print filesystem name retrieved in fs_info::update
rather than static string "unknown".

15 years ago * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
Corinna Vinschen [Thu, 23 Jul 2009 09:12:18 +0000 (09:12 +0000)]
* cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
products array.

15 years ago * faq-using.xml (faq.using.ipv6): Try to clarify OS specific support.
Corinna Vinschen [Thu, 23 Jul 2009 08:49:06 +0000 (08:49 +0000)]
* faq-using.xml (faq.using.ipv6): Try to clarify OS specific support.
* faq-what.xml (faq.what.supported): Add Windows 7 and 2008 R2.
* new-features.sgml: Add "and later" to rcmd news.

15 years ago * mount.cc (fs_info::update): Revert to open filesystem with access set
Corinna Vinschen [Thu, 23 Jul 2009 07:51:55 +0000 (07:51 +0000)]
* mount.cc (fs_info::update): Revert to open filesystem with access set
to READ_CONTROL.  If that fails, try additionally with FILE_READ_DATA.

15 years ago * exceptions.cc (handle_exceptions): Set si_addr according to
Eric Blake [Thu, 23 Jul 2009 02:47:17 +0000 (02:47 +0000)]
* exceptions.cc (handle_exceptions): Set si_addr according to
POSIX for SIGSEGV.

15 years ago * mount.cc (fs_info::update): Open filesystem with access set to 0.
Corinna Vinschen [Wed, 22 Jul 2009 18:49:48 +0000 (18:49 +0000)]
* mount.cc (fs_info::update): Open filesystem with access set to 0.
Explain why.

15 years ago * mount.cc: Revert accidental checkin.
Corinna Vinschen [Wed, 22 Jul 2009 18:27:47 +0000 (18:27 +0000)]
* mount.cc: Revert accidental checkin.

15 years ago * path.cc (symlink_info::check): Handle STATUS_NOT_SUPPORTED from
Corinna Vinschen [Wed, 22 Jul 2009 18:21:09 +0000 (18:21 +0000)]
* path.cc (symlink_info::check): Handle STATUS_NOT_SUPPORTED from
NtCreateFile just like STATUS_EAS_NOT_SUPPORTED.

15 years ago * mount.cc (do_mount): Replace --no-executable flag with notexec
Corinna Vinschen [Wed, 22 Jul 2009 16:24:17 +0000 (16:24 +0000)]
* mount.cc (do_mount): Replace --no-executable flag with notexec
mount option in hint for remote filesystems.
* path.cc (getmntent): Fix typo (noexec -> notexec).

15 years ago * mount.cc (fillout_mntent): Fix typo (noexec -> notexec).
Corinna Vinschen [Wed, 22 Jul 2009 16:21:33 +0000 (16:21 +0000)]
* mount.cc (fillout_mntent): Fix typo (noexec -> notexec).

15 years ago * path.cc (symlink_info::check): Fix typo in comment.
Corinna Vinschen [Wed, 22 Jul 2009 15:55:47 +0000 (15:55 +0000)]
* path.cc (symlink_info::check): Fix typo in comment.

15 years ago * fhandler.h (enum del_lock_called_from): New enumeration.
Corinna Vinschen [Wed, 22 Jul 2009 15:46:36 +0000 (15:46 +0000)]
* fhandler.h (enum del_lock_called_from): New enumeration.
(fhandler_base::del_my_locks): Declare taking a del_lock_called_from
as argument.
* fhandler.cc (fhandler_base::close): Call del_my_locks with "on_close".
(fhandler_base::fixup_after_fork): Call del_my_locks with "after_fork".
(fhandler_base::fixup_after_exec): Call del_my_locks with "after_exec".
* flock.cc (fhandler_base::del_my_locks): Take del_lock_called_from
as argument.  Call node->del_my_locks with NULL handle in after_exec
case.  Explain why.

15 years ago * Makefile.in (path-mount.o): Add a rule to build stripped down version
Corinna Vinschen [Wed, 22 Jul 2009 10:20:26 +0000 (10:20 +0000)]
* Makefile.in (path-mount.o): Add a rule to build stripped down version
of path.cc for usage in mount.
(mount.exe): Add dependency to path-mount.o.
* mount.cc (force): Convert to bool value.  Accommodate throughout.
(from_fstab): New function.
(do_mount_from_fstab): New function.
(longopts): Add --all option.
(opts): Add -a option.
(usage): Document -a/--all option.
(main): Handle -a option as well as single parameter.
* path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o.
(mount_table): Remove static storage class.
(max_mount_entry): Ditto.
(root_here): Unused.  Remove.
(from_fstab_line): Remove static.
* path.h (struct mnt_t): Define here rather than in path.cc.
(from_fstab_line): Declare.
(mount_table): Declare.
(max_mount_entry): Declare.
* utils.sgml (mount): Document -a/--all option and mounting of single
path from fstab files.

15 years agoAvoid a fault from locking a closed standard file.
Eric Blake [Wed, 22 Jul 2009 02:17:12 +0000 (02:17 +0000)]
Avoid a fault from locking a closed standard file.

* libc/stdio/fflush.c (_fflush_r): Give up early if stream has
been previously closed.

15 years agoAdd ccoutant to previous dwarf4 entry.
Doug Evans [Tue, 21 Jul 2009 19:06:39 +0000 (19:06 +0000)]
Add ccoutant to previous dwarf4 entry.

15 years ago * dtable.cc (dup2): Correct return value for no-op.
Corinna Vinschen [Tue, 21 Jul 2009 13:29:00 +0000 (13:29 +0000)]
* dtable.cc (dup2): Correct return value for no-op.

15 years ago * lib/msimg32.def (GetDCBrushColor, GetDCPenColor): Move entry points
Corinna Vinschen [Tue, 21 Jul 2009 09:39:02 +0000 (09:39 +0000)]
* lib/msimg32.def (GetDCBrushColor, GetDCPenColor): Move entry points
from here...
* lib/gdo32.dll: ...to here.

15 years ago * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Add special case
Corinna Vinschen [Tue, 21 Jul 2009 08:10:36 +0000 (08:10 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Add special case
for MVFS.  Explain why.
(fhandler_disk_file::utimens): Drop local variables lastaccess and
lastwrite.  Copy timestamps right into FILE_BASIC_INFORMATION structure
to avoid copying them twice.

15 years ago Add some dwarf4 values.
Doug Evans [Mon, 20 Jul 2009 20:57:39 +0000 (20:57 +0000)]
Add some dwarf4 values.
* dwarf2.h (enum dwarf_tag): Add DW_TAG_type_unit.
(enum dwarf_form): Add DW_FORM_sec_offset, DW_FORM_exprloc,
DW_FORM_flag_present, DW_FORM_sig8.
(enum dwarf_attribute): Add DW_AT_signature.

15 years ago * wincap.h (wincaps::has_always_all_codepages): New element.
Corinna Vinschen [Mon, 20 Jul 2009 15:44:55 +0000 (15:44 +0000)]
* wincap.h (wincaps::has_always_all_codepages): New element.
* wincap.cc: Implement above element throughout.
* wchar.h (__sjis_mbtowc): Declare.
(__eucjp_mbtowc): Ditto.
(__gbk_mbtowc): Ditto.
(__kr_mbtowc): Ditto.
(__big5_mbtowc): Ditto.
* syscalls.cc (internal_setlocale): Convert to char * function.
Return parameter by default.  Return NULL if request to use a
charset can't be satisfied due to missing codepage support in the
underlying OS.  Fix comment.
(setlocale): Store original locale.  Restore to original locale if
internal_setlocale returns NULL.

15 years ago * Makefile.in (all): Fix wrong target names.
Corinna Vinschen [Mon, 20 Jul 2009 15:08:08 +0000 (15:08 +0000)]
* Makefile.in (all): Fix wrong target names.
(cygwin-ug-net/cygwin-ug-net-nochunks.html.gz): Ditto.
(cygwin-ug-net/cygwin-ug-net.pdf): Convert to use docbook2pdf.
(cygwin-api/cygwin-api.pdf): Ditto.

15 years ago * fork.cc (fork): Create local tmp_pathbuf. Explain why.
Corinna Vinschen [Mon, 20 Jul 2009 14:16:06 +0000 (14:16 +0000)]
* fork.cc (fork): Create local tmp_pathbuf.  Explain why.

15 years ago * faq: Throughout, revert references to User's Guide to default URL.
Corinna Vinschen [Mon, 20 Jul 2009 10:10:48 +0000 (10:10 +0000)]
* faq: Throughout, revert references to User's Guide to default URL.

15 years ago * new-features.sgml (ov-new1.7-misc): Add stdc++ new/delete wrappers.
Corinna Vinschen [Mon, 20 Jul 2009 08:57:54 +0000 (08:57 +0000)]
* new-features.sgml (ov-new1.7-misc): Add stdc++ new/delete wrappers.

15 years ago * new-features.sgml (ov-new1.7-posix): Add WCONTINUED, WIFCONTINUED.
Corinna Vinschen [Mon, 20 Jul 2009 08:49:21 +0000 (08:49 +0000)]
* new-features.sgml (ov-new1.7-posix): Add WCONTINUED, WIFCONTINUED.

15 years ago * setup2.sgml (setup-locale-charsetlist): Fix ISO88-59-13 and -15
Corinna Vinschen [Mon, 20 Jul 2009 08:32:39 +0000 (08:32 +0000)]
* setup2.sgml (setup-locale-charsetlist): Fix ISO88-59-13 and -15
codepage numbers.

15 years ago* exceptions.cc (sig_handle_tty_stop): Set stopsig to SIGCONT when continuing.
Christopher Faylor [Sat, 18 Jul 2009 20:25:07 +0000 (20:25 +0000)]
* exceptions.cc (sig_handle_tty_stop): Set stopsig to SIGCONT when continuing.
(stopped_or_terminated): Honor WCONTINUED.
* wait.cc (wait4): Ditto.
* include/cygwin/wait.h (WCONTINUED): Define.
(__W_CONTINUED): Ditto.
(WIFCONTINUED): Ditto.

15 years ago2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
Chris Sutcliffe [Sat, 18 Jul 2009 15:19:03 +0000 (15:19 +0000)]
2009-07-18  Gregory McGarry  <gregorymcgarry@users.sourceforge.net>

        * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
        include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
        to all inline functions.

15 years ago2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
Chris Sutcliffe [Sat, 18 Jul 2009 15:09:18 +0000 (15:09 +0000)]
2009-07-18  Gregory McGarry  <gregorymcgarry@users.sourceforge.net>

        * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
        * CRT_fp10.c: Ditto.

15 years ago2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
Chris Sutcliffe [Sat, 18 Jul 2009 15:05:20 +0000 (15:05 +0000)]
2009-07-18  Gregory McGarry  <gregorymcgarry@users.sourceforge.net>

        * cpu_features.c: replace gcc-specific construct with portable alternative
        and match the code a few lines above.
        * crt1.c: remove gcc-specific noreturn attribute with mingw alternative

15 years ago2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
Chris Sutcliffe [Sat, 18 Jul 2009 14:56:47 +0000 (14:56 +0000)]
2009-07-18  Gregory McGarry  <gregorymcgarry@users.sourceforge.net>

        * include/_mingw.h: Changes required for PCC compiler.

15 years ago2009-07-18 Jeff Lu <jll544@yahoo.com>
Chris Sutcliffe [Sat, 18 Jul 2009 14:41:23 +0000 (14:41 +0000)]
2009-07-18 Jeff Lu  <jll544@yahoo.com>

        * mingwex/usleep.c: round up to next ms

15 years ago2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 18 Jul 2009 01:39:52 +0000 (01:39 +0000)]
2009-07-17  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
        mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
        mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
        the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.

15 years ago * libstdcxx_wrapper.cc (operator delete): Remove stray space in
Dave Korn [Fri, 17 Jul 2009 23:37:05 +0000 (23:37 +0000)]
* libstdcxx_wrapper.cc (operator delete):  Remove stray space in
asm name.

15 years agorevert erroneous checkin
Christopher Faylor [Fri, 17 Jul 2009 22:51:28 +0000 (22:51 +0000)]
revert erroneous checkin

15 years agomerge from gcc
DJ Delorie [Fri, 17 Jul 2009 20:20:39 +0000 (20:20 +0000)]
merge from gcc

15 years ago* cygtls.cc (_cygtls::init_exception_handler): Test for e, not e->prev or we
Christopher Faylor [Fri, 17 Jul 2009 18:17:11 +0000 (18:17 +0000)]
* cygtls.cc (_cygtls::init_exception_handler): Test for e, not e->prev or we
could still end up adding our handler twice.  Add comment explaining what we're
doing.
* dll_init.cc (dll_dllcrt0_1): Clarify comment.

15 years ago* cygtls.cc (_cygtls::init_exception_handler): Avoid adding our exception
Christopher Faylor [Fri, 17 Jul 2009 16:54:21 +0000 (16:54 +0000)]
* cygtls.cc (_cygtls::init_exception_handler): Avoid adding our exception
handler twice.

15 years ago * syscalls.cc (unlink_nt): Just return when a sharing violation
Corinna Vinschen [Fri, 17 Jul 2009 16:45:22 +0000 (16:45 +0000)]
* syscalls.cc (unlink_nt): Just return when a sharing violation
occurs on remote filesystems.

15 years ago PR other/40784
Joseph Myers [Fri, 17 Jul 2009 15:11:33 +0000 (15:11 +0000)]
PR other/40784
* tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to
AC_LINK_IFELSE.

15 years ago * globals.cc: Improve comment on R/O UNICODE_STRINGs.
Corinna Vinschen [Fri, 17 Jul 2009 09:00:19 +0000 (09:00 +0000)]
* globals.cc: Improve comment on R/O UNICODE_STRINGs.
* mount.h (class fs_info): Add is_mvfs bit.
* mount.cc (fs_info::update): Recognize MVFS remote filesystem.
(fillout_mntent): Reorder filesystem checks for speed.  Add
mvfs, unixfs, and sunwnfs filesystem types.
* path.h (class path_conv): Add fs_is_mvfs method.
* path.cc (symlink_worker): On MVFS, always create symlinks as
Windows shortcuts.  Explain why.

15 years ago * tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
Joseph Myers [Thu, 16 Jul 2009 23:21:15 +0000 (23:21 +0000)]
* tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
cross-compiling.

15 years ago * syscalls.cc (unlink_nt): First remove the R/O DOS attribute with
Corinna Vinschen [Thu, 16 Jul 2009 16:55:25 +0000 (16:55 +0000)]
* syscalls.cc (unlink_nt): First remove the R/O DOS attribute with
FILE_WRITE_ATTRIBUTES access only, then re-open the file for DELETE.
Explain why.

15 years ago * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Remove file
Corinna Vinschen [Thu, 16 Jul 2009 15:28:57 +0000 (15:28 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Remove file
attribute check already done in NtSetAttributesFile.

15 years ago * globals.cc: Reorder constant UNICODE_STRINGs for clarity.
Corinna Vinschen [Thu, 16 Jul 2009 09:56:25 +0000 (09:56 +0000)]
* globals.cc: Reorder constant UNICODE_STRINGs for clarity.
* mount.h (fs_info::sttaus): Move filesystem type flags into
substructure.  Add union to allow simple test for having set any
one filesystem type flag.  Replace has_buggy_open flag with is_sunwnfs
flag.  Replace has_buggy_fileid_dirinfo with is_unixfs flag.
(fs_info::got_fs): New private method.
(fs_info::has_buggy_open): New explicit implementation.
(fs_info::has_buggy_fileid_dirinfo): Ditto.
* mount.cc (fs_info::update): Optimize filesystem checks for speed.
* winsup.h (IMPLEMENT_STATUS_FLAG): Change write accessor to return
value just set.

15 years ago * fhandler_netdrive.cc (GET_RESOURCE_INFO): Remove.
Corinna Vinschen [Wed, 15 Jul 2009 18:18:03 +0000 (18:18 +0000)]
* fhandler_netdrive.cc (GET_RESOURCE_INFO): Remove.
(thread_netdrive): Drop GET_RESOURCE_INFO case.
(fhandler_netdrive::exists): Use GET_RESOURCE_OPENENUM info class
to check for existance.

15 years ago * strace.cc (main): Open trace output file in UNIX mode.
Corinna Vinschen [Wed, 15 Jul 2009 15:18:51 +0000 (15:18 +0000)]
* strace.cc (main): Open trace output file in UNIX mode.

15 years ago * fhandler_netdrive.cc (fhandler_netdrive::readdir): Remove useless
Corinna Vinschen [Wed, 15 Jul 2009 14:31:51 +0000 (14:31 +0000)]
* fhandler_netdrive.cc (fhandler_netdrive::readdir): Remove useless
alloca.

15 years ago * path.cc (cwdstuff::set): Only fix up UNC path in win32 so as not
Corinna Vinschen [Wed, 15 Jul 2009 13:27:34 +0000 (13:27 +0000)]
* path.cc (cwdstuff::set): Only fix up UNC path in win32 so as not
to overwrite incoming path.

15 years ago* mep/syscalls.S (sysret): Maintain 16-byte stack alignment.
DJ Delorie [Tue, 14 Jul 2009 20:15:32 +0000 (20:15 +0000)]
* mep/syscalls.S (sysret): Maintain 16-byte stack alignment.

15 years ago Throughout avoid having to initialize constant UNICODE_STRINGs.
Corinna Vinschen [Tue, 14 Jul 2009 17:37:42 +0000 (17:37 +0000)]
Throughout avoid having to initialize constant UNICODE_STRINGs.
* globals.cc: Define constant UNICODE_STRINGs and store in .rdata
section.
* fhandler_disk_file.cc: Throughout, use readonly UNICODE_STRINGs
rather then initializing local UNICODE_STRING variable where
applicable.
* fhandler_mem.cc (fhandler_dev_mem::open): Ditto.
* flock.cc (inode_t::inode_t): Ditto.
* mmap.cc: Ditto.
* syscalls.cc: Ditto.
* mount.cc (fs_info::update): Ditto.
* path.cc: Ditto.

* ntdll.h (RtlEqualUnicodePathPrefix): Redefine to take prefix as
UNICODE_STRING.
(RtlEqualUnicodePathSuffix): Redefine to take suffix as UNICODE_STRING.
* fhandler_disk_file.cc: Accommodate throughout.
* mount.cc (fs_info::update): Ditto.
* path.cc (cwdstuff::set): Ditto.
* syscalls.cc: Ditto.

15 years ago * globals.cc (active_codepage): Remove.
Corinna Vinschen [Tue, 14 Jul 2009 16:24:33 +0000 (16:24 +0000)]
* globals.cc (active_codepage): Remove.

15 years ago * cygcheck.cc (dump_sysinfo): Remove "not yet supported" text.
Corinna Vinschen [Mon, 13 Jul 2009 10:40:42 +0000 (10:40 +0000)]
* cygcheck.cc (dump_sysinfo): Remove "not yet supported" text.

15 years ago2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sun, 12 Jul 2009 23:02:10 +0000 (23:02 +0000)]
2009-07-12  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.

15 years ago2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
Chris Sutcliffe [Sun, 12 Jul 2009 22:44:37 +0000 (22:44 +0000)]
2009-06-28  Ozkan Sezer  <sezero@users.sourceforge.net>

        * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
        * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
        mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
        mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
        mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
        mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
        mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
        mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
        mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
        mingwex/gdtoa/ulp.c:  Update the gdtoa library to match the netlib.org
        sources as of Apr. 20, 2009.  Update further to match the sources in
        the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
        code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
        double/ulong union from U to dbl_union for better grepping and white-
        space tidy-ups.

15 years ago* how-spawn-works.txt: Add "out of date" note.
Christopher Faylor [Sun, 12 Jul 2009 21:26:40 +0000 (21:26 +0000)]
* how-spawn-works.txt: Add "out of date" note.
* how-vfork-works.txt: Ditto.

15 years ago* Makefile.in: Don't do anything special with any RCS directories.
Christopher Faylor [Sun, 12 Jul 2009 21:15:47 +0000 (21:15 +0000)]
* Makefile.in: Don't do anything special with any RCS directories.
* ntdll.h (PROCESSINFOCLASS): Remove unneeded trailing comma.
* pinfo.cc (_pinfo::dup_proc_pipe): Remove unneeded assignment.
* sigproc.cc (sig_send): Don't send signal to myself if this is an exec stub.

15 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Don't use
Corinna Vinschen [Sun, 12 Jul 2009 13:00:36 +0000 (13:00 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Don't use
FileAllInformation info class since it needs a big buffer.  Add a
comment.

15 years agobfd
Tom Tromey [Fri, 10 Jul 2009 15:27:04 +0000 (15:27 +0000)]
bfd
* Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
(elf-eh-frame.lo): Likewise.
(elf32-bfin.lo): Likewise.
(elf32-frv.lo): Likewise.
(elf32-xc16x.lo): Likewise.
* Makefile.in: Rebuild.
* dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
* elf-eh-frame.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-xc16x.c: Likewise.
binutils
* Makefile.am (dwarf.o): Refer to dwarf2.h, not elf/dwarf2.h.
* Makefile.in: Rebuild.
* dwarf.c: Include dwarf2.h, not elf/dwarf2.h.
gas
* Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
elf/dwarf2.h.
(DEPTC_alpha_elf): Likewise.
(DEPTC_alpha_evax): Likewise.
(DEPTC_arm_elf): Likewise.
(DEPTC_hppa_elf): Likewise.
(DEPTC_i386_aout): Likewise.
(DEPTC_i386_coff): Likewise.
(DEPTC_i386_elf): Likewise.
(DEPTC_m68k_aout): Likewise.
(DEPTC_m68k_coff): Likewise.
(DEPTC_m68k_elf): Likewise.
(DEPTC_mips_coff): Likewise.
(DEPTC_mips_ecoff): Likewise.
(DEPTC_mips_elf): Likewise.
(DEPTC_ppc_coff): Likewise.
(DEPTC_ppc_elf): Likewise.
(DEPTC_s390_elf): Likewise.
(DEPTC_sh_coff): Likewise.
(DEPTC_sh_elf): Likewise.
(DEPTC_sh64_elf): Likewise.
(DEPTC_sparc_aout): Likewise.
(DEPTC_sparc_coff): Likewise.
(DEPTC_sparc_elf): Likewise.
(as.o): Likewise.
(dwarf2dbg.o): Likewise.
(dw2gencfi.o): Likewise.
(ehopt.o): Likewise.
(read.o): Likewise.
* Makefile.in: Rebuild.
* dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2dbg.c: Likewise.
* ehopt.c: Likewise.
gdb
* dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2expr.c: Likewise.
* dwarf2loc.c: Likewise.
* dwarf2read.c: Likewise.
* sh-tdep.c: Likewise.
* xtensa-tdep.c: Likewise.
include
* dwarf2.h: New file, moved from elf/.
include/elf

* dwarf2.h: Move to `..'.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 14:47:16 +0000 (14:47 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf2.h: Just include ../dwarf2.h.

15 years agoSTT_GNU_IFUNC support for PowerPC.
Alan Modra [Fri, 10 Jul 2009 12:19:55 +0000 (12:19 +0000)]
STT_GNU_IFUNC support for PowerPC.

15 years agomerge from gcc
DJ Delorie [Thu, 9 Jul 2009 21:01:15 +0000 (21:01 +0000)]
merge from gcc

15 years agomerge from gcc
DJ Delorie [Thu, 9 Jul 2009 20:02:41 +0000 (20:02 +0000)]
merge from gcc

15 years ago2009-07-09 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Thu, 9 Jul 2009 17:04:56 +0000 (17:04 +0000)]
2009-07-09  Craig Howland <howland@LGSInnovations.com>

        * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
        isnan() (C99 macro).
        * libm/math/wf_log.c:  Ditto.
        * libm/math/wf_j0.c:  Ditto.
        * libm/math/wf_sqrt.c:  Ditto.
        * libm/math/wf_pow.c:  Ditto.
        * libm/math/wf_fmod.c:  Ditto.
        * libm/math/wf_remainder.c:  Ditto.
        * libm/math/wf_scalb.c:  Ditto.
        * libm/math/wf_atanh.c:  Ditto.
        * libm/math/wf_cosh.c:  Ditto.
        * libm/math/wf_acos.c:  Ditto.
        * libm/math/wf_acosh.c:  Ditto.
        * libm/math/wf_jn.c:  Ditto.
        * libm/math/wf_log10.c:  Ditto.
        * libm/math/wf_asin.c:  Ditto.
        * libm/math/wf_j1.c:  Ditto.
        * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
        * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
        match that from s_isinf.c.
        * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
        remove un-necessary extension use (in a similar manner to as was
        recently done in math.h).
        * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
        ieeefp.h).
        * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).

15 years ago* pathnames.sgml: Fix typo.
Christopher Faylor [Wed, 8 Jul 2009 23:23:02 +0000 (23:23 +0000)]
* pathnames.sgml: Fix typo.

15 years ago* m32c/sbrk.c (sbrk): Change to take ptrdiff_t, not int.
DJ Delorie [Wed, 8 Jul 2009 20:54:19 +0000 (20:54 +0000)]
* m32c/sbrk.c (sbrk): Change to take ptrdiff_t, not int.

15 years ago * winbase.h (ilockexch): Avoid making 'ret' volatile.
Dave Korn [Tue, 7 Jul 2009 21:41:43 +0000 (21:41 +0000)]
* winbase.h (ilockexch): Avoid making 'ret' volatile.
(ilockcmpexch): Likewise.

15 years ago * ChangeLog: Assorted minor whitespace fixes in old entries.
Dave Korn [Tue, 7 Jul 2009 20:25:34 +0000 (20:25 +0000)]
* ChangeLog: Assorted minor whitespace fixes in old entries.

15 years agowinsup/ChangeLog:
Dave Korn [Tue, 7 Jul 2009 20:12:44 +0000 (20:12 +0000)]
winsup/ChangeLog:

* Makefile.common (COMPILE_CXX): Add support for per-file overrides
to exclude $(nostdinc) and $(nostdincxx) from compiler flags.
(COMPILE_CC): Likewise for $(nostdinc).

winsup/cygwin/ChangeLog:

* Makefile.in (DLL_OFILES): Add libstdcxx_wrapper.o
(libstdcxx_wrapper_CFLAGS): Add flags for new module.
(_cygwin_crt0_common_STDINCFLAGS): Define per-file override.
(libstdcxx_wrapper_STDINCFLAGS, cxx_STDINCFLAGS): Likewise.
* cxx.cc: Include "cygwin-cxx.h".
(operator new): Tweak prototype for full standards compliance.
(operator new[]): Likewise.
(operator new (nothrow)): New fallback function.
(operator new[] (nothrow), operator delete (nothrow),
operator delete[] (nothrow)): Likewise.
(default_cygwin_cxx_malloc): New struct of pointers to the above,
for final last-resort fallback default.
* cygwin-cxx.h: New file.
(struct per_process_cxx_malloc): Define.
(default_cygwin_cxx_malloc): Declare extern.
* cygwin.din (__wrap__ZdaPv): Export new wrapper.
(__wrap__ZdaPvRKSt9nothrow_t, __wrap__ZdlPv,
__wrap__ZdlPvRKSt9nothrow_t, __wrap__Znaj,
__wrap__ZnajRKSt9nothrow_t, __wrap__Znwj,
__wrap__ZnwjRKSt9nothrow_t): Likewise.
* globals.cc (__cygwin_user_data): Init newly-repurposed 'forkee'
field (now 'cxx_malloc') to point to default_cygwin_cxx_malloc.
* libstdcxx_wrapper.cc: New file.
(__wrap__ZdaPv, __wrap__ZdaPvRKSt9nothrow_t, __wrap__ZdlPv,
__wrap__ZdlPvRKSt9nothrow_t, __wrap__Znaj,
__wrap__ZnajRKSt9nothrow_t, __wrap__Znwj,
__wrap__ZnwjRKSt9nothrow_t): Define wrapper functions for libstdc++
malloc operators and their overrides.
* winsup.h (default_cygwin_cxx_malloc): Declare extern.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* include/sys/cygwin.h (struct per_process_cxx_malloc): Forward
declare here.
(struct per_process::forkee): Rename and repurpose from this ...
(struct per_process::cxx_malloc): ... to this.
* lib/_cygwin_crt0_common.cc: Include cygwin-cxx.h.
(WEAK): Define shorthand helper macro.
(__cygwin_cxx_malloc): Define and populate with weak references
to whatever libstdc++ malloc operators will be visible at final
link time for Cygwin apps and dlls.
(_cygwin_crt0_common): Always look up cygwin DLL's internal
per_process data, and don't test for (impossible) failure.  Inherit
any members of __cygwin_cxx_malloc that we don't have overrides
for from the DLL's default and store the resulting overall set of
overrides back into the DLL's global per_process data.

15 years ago * cygtls.cc (_cygtls::remove): Fix typo.
Corinna Vinschen [Tue, 7 Jul 2009 08:07:38 +0000 (08:07 +0000)]
* cygtls.cc (_cygtls::remove): Fix typo.

15 years ago* Makefile.in (clean): Clean generated files in srcdir.
Christopher Faylor [Mon, 6 Jul 2009 23:19:08 +0000 (23:19 +0000)]
* Makefile.in (clean): Clean generated files in srcdir.
* tlsoffsets.h: Regenerate.

15 years ago* cygtls.cc (_cygtls::remove): Avoid closing a NULL handle.
Christopher Faylor [Mon, 6 Jul 2009 23:05:10 +0000 (23:05 +0000)]
* cygtls.cc (_cygtls::remove): Avoid closing a NULL handle.

15 years ago * fhandler_socket.cc (fhandler_socket::recv_internal): Convert wsabuf
Corinna Vinschen [Mon, 6 Jul 2009 20:30:34 +0000 (20:30 +0000)]
* fhandler_socket.cc (fhandler_socket::recv_internal): Convert wsabuf
and wsacnt to references.  Fix handling of WSAEMSGSIZE.

15 years ago2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston [Mon, 6 Jul 2009 18:59:04 +0000 (18:59 +0000)]
2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>

        * libc/include/sys/features.h: Enable UNIX98 mutex attributes
        for RTEMS.

15 years ago * cygtls.h (struct _local_storage): Add thread storage pointers for
Corinna Vinschen [Mon, 6 Jul 2009 15:42:01 +0000 (15:42 +0000)]
* cygtls.h (struct _local_storage): Add thread storage pointers for
memory used by socket select functions.  Combine them into a single
struct select.
* cygtls.cc: Accommodate above change throughout.
(_cygtls::init_thread): Drop initalizing of sockevt to
INVALID_HANDLE_VALUE.
(_cygtls::fixup_after_fork): Reset sockevt to NULL.
(_cygtls::remove): Don't use sockevt value to bail out prematurely.
Set sockevt to NULL.  Free malloced select members.
* select.h (struct select_socket_info): Drop max_w4 member.
* select.cc (thread_socket): Use INFINITE timeout value if number of
objects to wait for is <= MAXIMUM_WAIT_OBJECTS.  Use num_w4 member
of select_socket_info struct rather than dropped max_w4.
(init_tls_select_info): New inline function to initialize TLS select
members.
(start_thread_socket): Just call init_tls_select_info to initialize TLS
select members and use them later on.
(socket_cleanup): Don't free select_socket_info pointer members since
they are thread local now.

15 years ago* dtable.cc (handle_to_fn): Detect failing NtQueryObject.
Christopher Faylor [Mon, 6 Jul 2009 15:11:30 +0000 (15:11 +0000)]
* dtable.cc (handle_to_fn): Detect failing NtQueryObject.

15 years ago * autoload.cc: Delete stray CR.
Corinna Vinschen [Mon, 6 Jul 2009 10:44:14 +0000 (10:44 +0000)]
* autoload.cc: Delete stray CR.

This page took 0.080537 seconds and 5 git commands to generate.