Christopher Faylor
e2213b70dd
* Makefile.in: Simplify a little.
2006-07-18 03:24:07 +00:00
Christopher Faylor
f62412f235
GCC 4.1 fixes.
...
* cygheap.h (cygheap_user): Remove unneeded class names from function
declaration.
* fhandler.h (fhandler_base): Ditto.
(fhandler_dev_floppy): Ditto.
(fhandler_console): Ditto.
* wininfo.h (wininfo): Ditto.
* exceptions.cc (sigpacket::process): Avoid compiler errors about gotos and
initialization.
* fhandler_fifo.cc (fhandler_fifo::open): Ditto.
* fhandler_floppy.cc (fhandler_dev_floppy::ioctl): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::ioctl): Ditto.
* mmap.cc (mmap64): Ditto.
* pipe.cc (fhandler_pipe::open): Ditto.
* spawn.cc (spawn_guts): Ditto.
* sec_helper.cc: Fix some comments.
(get_null_sd): Move file-scope static to only function where it is used.
2006-07-17 19:30:30 +00:00
Jakub Jelinek
b04b2e6b6d
* Makefile.def: Add dependencies for configure-opcodes
...
on configure-intl and all-opcodes on all-intl.
* Makefile.in: Regenerated.
2006-07-17 17:04:21 +00:00
Christopher Faylor
fbadc634cb
* fork.cc (fork): Lock the process before forking to prevent things like new
...
fds from being opened, etc.
* sync.h (lock_process::dont_bother): New function.
2006-07-14 22:15:12 +00:00
Christopher Faylor
d9ceecd2d2
* include/cygwin/types.h: Update copyright.
2006-07-14 21:45:00 +00:00
Christopher Faylor
ebc223f182
* cygwin.sc: Make sure there's something in the cygheap.
...
* dllfixdbg: Accommodate newer binutils which put the gnu_debuglink at the end
rather than at the beginning.
2006-07-14 19:33:55 +00:00
H.J. Lu
62f94a893e
2006-07-14 H.J. Lu <hongjiu.lu@intel.com>
...
* i386.h (i386_optab): Remove InvMem from maskmovq, movhlps,
movlhps, movmskps, pextrw, pmovmskb, movmskpd, maskmovdqu,
movdq2q and movq2dq.
2006-07-14 16:15:27 +00:00
Christopher Faylor
6b838263ea
* sigproc.cc (waitq_head): Don't initialize to zero.
...
* sigproc.h: Update copyright, fix whitespace.
2006-07-14 00:50:55 +00:00
Michael Meissner
2d73611e56
Add amdfam10 instructions
2006-07-13 22:25:48 +00:00
Christopher Faylor
e8bf232949
* fhandler.cc (fhandler_base::raw_read): Only return EISDIR when we're really
...
trying to read a directory.
* sigproc.cc: Use "Static" where appropriate.
2006-07-13 20:56:24 +00:00
Corinna Vinschen
94fe03664f
* fhandler_socket.cc: Update copyright.
...
* include/pthread.h: Ditto.
2006-07-13 12:59:53 +00:00
Corinna Vinschen
2e19497afc
* mmap.cc (mmap64): Drop MAP_NORESERVE flag for non-anonymous,
...
non-private mappings.
(mmap_record::unmap_pages): Only check noreserve flag which now implies
anonymous and private.
(mprotect): Ditto.
(fixup_mmaps_after_fork): Ditto.
2006-07-13 10:29:21 +00:00
Corinna Vinschen
f6105f89d5
* exceptions.cc (_cygtls::handle_exceptions): Call new
...
mmap_is_attached_or_noreserve_page function in case of access violation
and allow application to retry access on noreserve pages.
* mmap.cc (mmap_is_attached_or_noreserve_page): Changed from
mmap_is_attached_page. Handle also noreserve pages now. Change
comment accordingly.
* winsup.h (mmap_is_attached_or_noreserve_page): Declare instead of
mmap_is_attached_page.
2006-07-13 08:33:34 +00:00
Corinna Vinschen
d44b979536
* mmap.cc (mmap_record::alloc_page_map): Don't call VirtualProtect
...
on maps created with MAP_NORESERVE.
2006-07-12 20:15:00 +00:00
Corinna Vinschen
2633942858
* include/pthread.h: Define PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT and
...
PTHREAD_PRIO_PROTECT only if _POSIX_THREAD_PRIO_INHERIT is defined.
2006-07-12 09:55:47 +00:00
Jakub Jelinek
a9ad8f8ca5
include/
...
* bfdlink.h (struct bfd_link_info): Add emit_hash and
emit_gnu_hash bitfields.
include/elf/
* common.h (SHT_GNU_HASH, DT_GNU_HASH): Define.
ld/
* scripttempl/elf.sc: Add .gnu.hash section.
* emultempl/elf32.em (OPTION_HASH_STYLE): Define.
(gld${EMULATION_NAME}_add_options): Register --hash-style option.
(gld${EMULATION_NAME}_handle_option): Handle it.
(gld${EMULATION_NAME}_list_options): Document it.
* ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
* ld.texinfo: Document --hash-style option.
bfd/
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_GNU_HASH.
(bfd_section_from_shdr, elf_fake_sections, assign_section_numbers):
Handle SHT_GNU_HASH.
(special_sections_g): Include .gnu.hash section.
(bfd_elf_gnu_hash): New function.
* elf-bfd.h (bfd_elf_gnu_hash, _bfd_elf_hash_symbol): New prototypes.
(struct elf_backend_data): Add elf_hash_symbol method.
* elflink.c (_bfd_elf_link_create_dynamic_sections): Create .hash
only if info->emit_hash, create .gnu.hash section if
info->emit_gnu_hash.
(struct collect_gnu_hash_codes): New type.
(elf_collect_gnu_hash_codes, elf_renumber_gnu_hash_syms,
_bfd_elf_hash_symbol): New functions.
(compute_bucket_count): Don't compute HASHCODES array, instead add
that and NSYMS as arguments. Use bed->s->sizeof_hash_entry
instead of bed->s->arch_size / 8. Fix .hash size estimation.
When not optimizing, use the number of hashed symbols rather than
dynsymcount.
(bfd_elf_size_dynamic_sections): Only add DT_HASH if info->emit_hash,
and ADD DT_GNU_HASH if info->emit_gnu_hash.
(bfd_elf_size_dynsym_hash_dynstr): Size .hash only if info->emit_hash,
adjust compute_bucket_count caller. Create and populate .gnu.hash
section if info->emit_gnu_hash.
(elf_link_output_extsym): Only populate .hash section if
finfo->hash_sec != NULL.
(bfd_elf_final_link): Adjust assertion. Handle DT_GNU_HASH.
* elfxx-target.h (elf_backend_hash_symbol): Define if not yet defined.
(elfNN_bed): Add elf_backend_hash_symbol.
* elf64-x86-64.c (elf64_x86_64_hash_symbol): New function.
(elf_backend_hash_symbol): Define.
* elf32-i386.c (elf_i386_hash_symbol): New function.
(elf_backend_hash_symbol): Define.
binutils/
* readelf.c (get_dynamic_type): Handle DT_GNU_HASH.
(get_section_type_name): Handle SHT_GNU_HASH.
(dynamic_info_DT_GNU_HASH): New variable.
(process_dynamic_section): Handle DT_GNU_HASH.
(process_symbol_table): Print also DT_GNU_HASH histogram.
ld/testsuite/
* ld-powerpc/tlsso32.r: Adjust.
* ld-powerpc/tlsso32.d: Adjust.
* ld-powerpc/tlsso32.g: Adjust.
* ld-powerpc/tlsso.r: Adjust.
* ld-powerpc/tlsso.g: Adjust.
* ld-powerpc/tlstocso.g: Adjust.
2006-07-10 21:40:24 +00:00
Corinna Vinschen
2c1394b495
* libc/inet_addr.c: Define __INSIDE_CYGWIN_NET__.
...
* libc/inet_network.c: Ditto.
2006-07-10 08:15:54 +00:00
Corinna Vinschen
e7b77aaecd
* fhandler_socket.cc (fhandler_socket::wait): Disable SA_RESTART
...
handling for now.
2006-07-07 15:44:19 +00:00
Corinna Vinschen
722031140a
* Makefile.in (DLL_OFILES): Add inet_addr.o and inet_network.o.
...
* autoload.cc (inet_addr): Drop definition.
(inet_ntoa): Ditto.
* net.cc: Forward declare cygwin_inet_aton and cygwin_inet_ntop.
(cygwin_inet_ntoa): Call cygwin_inet_ntop instead of Winsock inet_ntoa.
(cygwin_inet_addr): Remove here.
(cygwin_inet_aton): Ditto.
(cygwin_inet_network): Ditto.
* libc/inet_addr.c: New file implementing cygwin_inet_aton and
cygwin_inet_addr.
* libc/inet_network.c: New file implementing cygwin_inet_network.
2006-07-07 09:14:15 +00:00
Christopher Faylor
b4054e7706
* hookapi.cc: Add comment header
...
(putmem): Make static.
(get_export): Ditto.
(rvadelta): Ditto. Don't assume that a section which ends where the import_rva
begins is the import list.
* child_info.h: Update copyright.
* fork.cc: Ditto.
2006-07-06 17:16:37 +00:00
Danny Smith
26d31dc917
* include/math.h (__INFF,__INFL): Remove '#'.
2006-07-06 07:36:58 +00:00
Jeff Johnston
b0b9243869
2006-07-05 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
floating-point format support. Also redefine
dword0 and dword1 macros.
* libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
to prevent setting dword1 which is an rvalue only.
2006-07-05 16:18:30 +00:00
Christopher Faylor
8307a41117
* sortdin: Ignore all leading underscores when deriving a sort key.
...
* cygwin.din: Resort.
2006-07-05 16:06:50 +00:00
Christopher Faylor
03ac0afe48
* sortdin: New program.
...
* cygwin.din: Sort.
2006-07-05 15:59:39 +00:00
Corinna Vinschen
a25d71a899
* fhandler.h (fhandler_socket::wait): Reset default timeout to 10ms.
2006-07-05 15:39:08 +00:00
Shaun Jackman
0b6bb78b34
2006-07-05 Shaun Jackman <sjackman@gmail.com>
...
* arm/linux-crt0.S: Remove file.
* arm/linux-crt0.c: New file. Supports PIC code.
2006-07-05 15:24:30 +00:00
Corinna Vinschen
7bfe2409a0
* path.cc (path_conv::check): Ignore has_ea setting, it's always unset
...
at this point anyway.
(get_symlink_ea): Remove.
(set_symlink_ea): Remove.
(symlink_worker): Drop writing symlink into NTFS extended attributes.
(symlink_info::check): Drop reading symlinks from NTFS extended
attributes.
2006-07-05 08:35:51 +00:00
Christopher Faylor
49bd27c47c
* libc/rexec.cc (cygwin_rexec): Obvious (?) fix to correct a gcc warning - set
...
port to zero first thing in the function.
2006-07-05 00:14:42 +00:00
Shaun Jackman
0a22f2e537
2006-07-04 Shaun Jackman <sjackman@gmail.com>
...
* arm/linux-syscalls0.S (ftruncate, getegid, geteuid, getgid,
getgroups, getpgid, getpgrp, getuid, lchown, pause, pipe,
setpgid, setgid, setsid, setuid, sigprocmask, sync, uname): New
system call.
2006-07-04 23:58:02 +00:00
Christopher Faylor
a16597363f
* signal.cc (signal): Set sa_mask to sig.
2006-07-04 23:57:43 +00:00
Alexandre Oliva
e51ac1a2bf
ChangeLog:
...
* ltconfig: chmod 644 before ranlib during install.
libiberty/ChangeLog:
* Makefile.in: chmod 644 before ranlib during install.
2006-07-04 20:31:03 +00:00
Corinna Vinschen
fa48cf5325
* Makefile.in (DLL_OFILES): Add rexec.o.
...
* autoload.cc (inet_network): Drop definition.
(rexec): Ditto.
* net.cc (rexec): Drop extern declaration.
(inet_network): Ditto.
(cygwin_inet_network): Implement using inet_addr.
(cygwin_rexec): Remove.
* libc/rexec.cc: New file.
2006-07-04 20:24:27 +00:00
Corinna Vinschen
c2ab308c81
* fhandler_socket.cc (fhandler_socket::listen): Allow listening on
...
unbound INET socket.
2006-07-04 20:10:43 +00:00
Corinna Vinschen
6dbfd8f9ba
* fhandler.h (fhandler_socket::wait): Set default timeout to INFINITE.
2006-07-04 09:26:49 +00:00
Danny Smith
66e7d55998
* mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2006-07-03 20:51:58 +00:00
Corinna Vinschen
4635b6ebd8
* autoload.cc (NtQueryEaFile): Define.
...
(NtSetEaFile): Define.
* fhandler.cc (fhandler_base::open): Use appropriate open flags
in query case when allow_ntea is set.
* ntdll.h (struct _FILE_GET_EA_INFORMATION): Define.
(struct _FILE_FULL_EA_INFORMATION): Define.
(NtQueryEaFile): Declare.
(NtSetEaFile): Declare.
* ntea.cc (read_ea): Rename from NTReadEA and rewrite using
NtQueryEaFile.
(write_ea): Rename from NTWriteEA and rewrite using NtSetEaFile.
* path.cc (get_symlink_ea): Make static. Add handle parameter to
accomodate new read_ea call.
(set_symlink_ea): Make static. Add handle parameter to accomodate new
write_ea call.
(symlink_worker): Call set_symlink_ea while file is still open.
(symlink_info::check): Call get_symlink_ea after file has been opened.
* security.cc (get_file_attribute): Accomodate new read_ea call.
(set_file_attribute): Accomodate new write_ea call.
* security.h (read_ea): Change declaration accordingly.
(write_ea): Ditto.
2006-07-03 18:30:08 +00:00
Corinna Vinschen
e60e8d3b0e
* Makefile.in: Build setmetamode.exe.
...
* setmetamode.c: New file.
2006-07-03 16:00:58 +00:00
Corinna Vinschen
6258d96af8
* fhandler.h (class dev_console): Add `metabit' indicating the
...
current meta key mode.
* fhandler_console.cc (fhandler_console::read): Set the top bit of
the character if metabit is true.
* fhandler_console.cc (fhandler_console::ioctl): Implement
KDGKBMETA and KDSKBMETA commands.
* fhandler_tty.cc (process_ioctl): Support KDSKBMETA.
(fhandler_tty_slave::ioctl): Send KDGKBMETA and KDSKBMETA to the
master.
* include/cygwin/kd.h: New file for the meta key mode.
* include/sys/kd.h: New file.
2006-07-03 15:29:10 +00:00
Corinna Vinschen
61aea27d90
* include/stdint.h (UINT8_C, UINT16_C): Unsigned types smaller
...
than int promote to signed int.
2006-07-03 12:30:04 +00:00
Corinna Vinschen
78db7dff2c
* net.cc (cygwin_sendto): Define appropriate parameters using
...
socklen_t type according to SUSv3.
(cygwin_recvfrom): Ditto.
(cygwin_setsockopt): Ditto.
(cygwin_getsockopt): Ditto.
(cygwin_connect): Ditto.
(cygwin_accept): Ditto.
(cygwin_bind): Ditto.
(cygwin_getsockname): Ditto.
(cygwin_getpeername): Ditto.
(cygwin_recv): Ditto.
(cygwin_send): Ditto.
* include/cygwin/socket.h (socklen_t): Typedef and define.
* include/sys/socket.h: Declare socket functions using socklen_t type.
2006-07-03 11:31:56 +00:00
Paolo Bonzini
37b43cde0c
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
...
* configure.in: Fix thinkos in previous check-in.
* configure: Regenerate.
2006-07-03 11:22:03 +00:00
Danny Smith
ebd84cac3c
Add a real Changelog entry.
2006-07-03 10:49:42 +00:00
Danny Smith
f34428eb35
Support SSE float environment in fenv.h functions.
...
* cpu_features.c: New file.
* cpu_features.h: New file.
* crt1.c: Include "cpu_features.h".
(__mingw_CRTStartup): Call cpu_features_init().
* Makefile.in (MING_OBJS): Add cpu_features.c.
(SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
* include/fenv,h ( fenv_t;): Append __mxcsr field.
(__MXCSR_EXCEPT_FLAG_SHIFT): New define.
(__MXCSR_EXCEPT_MASK_SHIFT): New define.
(__MXCSR_ROUND_FLAG_SHIFT): New define.
* mingwex/feclearexcept.c: Include "cpu_features.h".
Handle SSE environment.
* mingwex/fegetenv.c: Likewise.
* mingwex/feholdexcept.c: Likewise.
* mingwex/fesetenv.c: Likewise.
* mingwex/fesetexceptflag.c: Likewise.
* mingwex/fesetround.c: Likewise.
* mingwex/fetestexcept.c: Likewise.
* mingwex/feupdateenv.c: Likewise.
* mingwex/fegetround.c: Add comment.
2006-07-03 10:32:58 +00:00
Paolo Bonzini
69d5f3329f
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
...
* configure.in: Fix thinko in previous check-in.
* configure: Regenerate.
2006-07-03 09:26:24 +00:00
Paolo Bonzini
f90716dddf
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
...
Sync from gcc:
2007-07-03 Paolo Bonzini <bonzini@gnu.org>
PR other/27063
* configure.in: Test subdir_requires and give an appropriate
error message.
* configure: Regenerate.
2006-06-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
PR target/27540
* configure.in: Only enable libgomp on IRIX 6.
* configure: Regenerate.
2006-07-03 07:58:12 +00:00
Christopher Faylor
d42e28b57a
* include/cygwin/version.h: Bump DLL minor version number to 21.
2006-07-02 16:22:59 +00:00
DJ Delorie
6d2903ba95
* m32c/crt0.S (done_inilist): Fix dwarf2 address sizes.
2006-06-30 21:55:23 +00:00
Corinna Vinschen
e0d8706d8f
* net.cc (cygwin_sendto): Allow zero-sized packets.
...
(cygwin_sendmsg): Ditto.
2006-06-30 11:04:13 +00:00
Corinna Vinschen
8b46f03c8d
Revert patches from 2005-10-22 and 2006-06-14 to use event driven
...
accept and connect back to using select:
* fhandler.h (class fhandler_socket): Remove accept_mtx.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Drop
initializing accept_mtx.
(fhandler_socket::accept): Drop event handling.
(fhandler_socket.cc (fhandler_socket::connect): Ditto.
(fhandler_socket::dup): Drop accept_mtx handling.
(fhandler_socket::listen): Ditto.
(fhandler_socket::prepare): Ditto.
(fhandler_socket::release): Ditto.
(fhandler_socket::close): Ditto.
* net.cc (cygwin_accept): Revert to calling cygwin_select to
implement interuptible accept.
(cygwin_connect): Ditto for connect.
2006-06-26 12:12:11 +00:00
Chris Sutcliffe
50d838a468
2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* Include/_mingw.h: Increment version to 3.10.
* Makefile.in: Ditto.
2006-06-26 01:41:48 +00:00