]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
15 years ago * moxie/crt0.S (_start): Clear BSS at startup. Register _fini()
Anthony Green [Wed, 1 Jul 2009 11:45:49 +0000 (11:45 +0000)]
    * moxie/crt0.S (_start): Clear BSS at startup.  Register _fini()
        with atexit().
        * moxie/sim-open.S: Fix comment.

15 years ago * lib/comctl32.def (StrCSpnA@8, StrCSpnIA@8, StrCSpnW@8, StrChrA@8,
Corinna Vinschen [Wed, 1 Jul 2009 11:06:12 +0000 (11:06 +0000)]
* lib/comctl32.def (StrCSpnA@8, StrCSpnIA@8, StrCSpnW@8, StrChrA@8,
StrChrIA@8, StrChrIW@8, StrChrW@8, StrCmpNA@12, StrCmpNIA@12,
StrCmpNIW@12, StrCmpNW@12, StrRChrA@12, StrRChrIA@12, StrRChrW@12,
StrRStrIA@12, StrRStrIW@12, StrStrA@8, StrStrIA@8, StrStrIW@8,
StrStrW@8, StrToIntA@4, StrToIntW@4): Remove erroneously defined
entry points.

15 years ago * fhandler.h (class fhandler_socket): Add class members and methods
Corinna Vinschen [Wed, 1 Jul 2009 09:16:17 +0000 (09:16 +0000)]
* fhandler.h (class fhandler_socket): Add class members and methods
to store and retrieve the SO_RCVBUF and SO_SNDBUF sizes.
* fhandler_socket.cc (fhandler_socket::dup): Duplicate new members.
(fhandler_socket::send_internal): Check for SO_SNDBUF size and
restrict send to 1 byte less per KB 823764.  Leave loop immediately
if WSASendMsg has been used.
* net.cc (fdsock): Change comment again.  Set buffer sizes to 65536.
Store values in fhandler_socket.
(cygwin_setsockopt): Store SO_RCVBUF and SO_SNDBUF sizes in
fhandler_socket.
(cygwin_sendto): Drop call to sig_dispatch_pending.
(cygwin_recvfrom): Ditto.
(cygwin_recvmsg): Ditto.
(cygwin_sendmsg): Ditto.

15 years ago* select.h: New file split from fhandler.h.
Christopher Faylor [Tue, 30 Jun 2009 21:18:44 +0000 (21:18 +0000)]
* select.h: New file split from fhandler.h.
(select_record::select_record): Define do-nothing constructor for "new" to
avoid gratuitous zeroing.
(select_info): New base class.
(select_pipe_info): New class with methods for dealing with pipes.
(select_socket_info): New class with methods for dealing with sockets.
(select_serial_info): Dummy class for serial.
(select_mailslot_info): Dummy class for mailslots.
(select_stuff): Define device_specific_* as actual classes rather than void *.
* dtable.h (dtable::select_read): Accommodate return value change to 'bool' and
argument change to "select_stuff".
(dtable::select_write): Ditto.
(dtable::select_except): Ditto.
* dtable.cc (dtable::select_read): Accommodate return value change to 'bool'
and argument change to "select_stuff".
(dtable::select_write): Ditto.
(dtable::select_except): Ditto.
* fhandler.h: Excise select-related classes.
(fhandler_*::select_read): Change argument to select_stuff.
(fhandler_*::select_write): Ditto.
(fhandler_*::select_except): Ditto.
* select.cc (UNIX_FD_ZERO): Use memset rather than bzero.
(select_stuff::test_and_set): Change return type to bool.  Allocate
select_record on entry and let fhandler_*::select_* operate on the start.next
field of select_stuff.
(pipeinf): Delete.
(select_pipe_info::select_pipe_info): New constructor.  Allocates event for
controlling pipe waits.
(select_pipe_info::~select_pipe_info): New destructor.  Destroy event.  Stop
thread.
(select_pipe_info::add_watch_handle): New function.
(thread_pipe): Wait for the hEvent part of any overlapped pipes before peeking.
(start_thread_pipe): Don't allocate device_specific_pipe stuff here.  Assume
that it has been allocated earlier.
(pipe_cleanup): Rely on select_pipe_info destructor to clean up pipe
paraphenalia.
(fhandler_*::select_*): Derive select_record from new select_stuff argument.
(fhandler_pipe::select_*): Ditto.  Allocate pipe-specific field if not already
allocated.
(serialinf): Delete.
(thread_serial): serialinf -> select_serial_info.
(fhandler_base::ready_for_read): Rewrite to accommodate change in argument to
fhandler_*::select_*.
(socketinf): Delete.
(thread_socket): socketinf -> select_socket_info.
(mailslotinf): Delete.
(thread_mailslot): mailslotinf -> select_mailslot_info.

15 years ago* fhandler.cc (fhandler_base::has_ongoing_io): Accept an argument indicating
Christopher Faylor [Tue, 30 Jun 2009 14:36:11 +0000 (14:36 +0000)]
* fhandler.cc (fhandler_base::has_ongoing_io): Accept an argument indicating
whether the overlapped event should be tested.
(fhandler_base::read_overlapped): Pass is_overlapped state to has_ongoing_io.
(fhandler_base::write_overlapped): Ditto.
* fhandler.h (fhandler_base::has_ongoing_io): Accommodate argument change.
* select.cc (peek_pipe): Ditto.

15 years ago * net.cc (fdsock): Set default socket buffer sizes to 65520. Change
Corinna Vinschen [Tue, 30 Jun 2009 10:36:40 +0000 (10:36 +0000)]
* net.cc (fdsock): Set default socket buffer sizes to 65520.  Change
comment accordingly.
* fhandler_socket.cc (fhandler_socket::send_internal): Set maximum
send size to 65520 as well.

15 years ago* select.cc (peek_pipe): Turn on (temporarily?) the experimental code which
Christopher Faylor [Mon, 29 Jun 2009 14:32:58 +0000 (14:32 +0000)]
* select.cc (peek_pipe): Turn on (temporarily?) the experimental code which
tries to determine when a pipe is writable.

15 years ago* select.cc (peek_pipe): Use has_ongoing_io() to determine if the pipe is ready
Christopher Faylor [Sun, 28 Jun 2009 19:27:15 +0000 (19:27 +0000)]
* select.cc (peek_pipe): Use has_ongoing_io() to determine if the pipe is ready
for writing rather than performing brute-force checks.

15 years ago* fhandler.h (fhandler_base::has_ongoing_io): Declare new function.
Christopher Faylor [Sun, 28 Jun 2009 19:23:13 +0000 (19:23 +0000)]
* fhandler.h (fhandler_base::has_ongoing_io): Declare new function.
* fhandler.cc (fhandler_base::has_ongoing_io): Define new function.
(fhandler_base::read_overlapped): Use has_ongoing_io to avoid writing when
handle has not completed last I/O.
(fhandler_base::write_overlapped): Ditto.
* select.cc (peek_pipe): Be more careful about accessing hEvent field from
get_overlapped().

15 years ago* gendef (cleanup): Rename from 'nocr'. Remove comments and trailing spaces.
Christopher Faylor [Sun, 28 Jun 2009 18:23:35 +0000 (18:23 +0000)]
* gendef (cleanup): Rename from 'nocr'.  Remove comments and trailing spaces.
* cygwin.din: Add long-needed comment describing what dll_crt0__FP11per_process
demangles to.

15 years ago * Makefile.def (host_modules): Add cgen.
Doug Evans [Fri, 26 Jun 2009 17:19:07 +0000 (17:19 +0000)]
* Makefile.def (host_modules): Add cgen.
* Makefile.in: Regenerate.
* configure.ac (host_tools): Add cgen.
* configure: Regenerate.

15 years ago * wincap.h (wincaps::has_broken_alloc_console): New element.
Corinna Vinschen [Fri, 26 Jun 2009 15:12:06 +0000 (15:12 +0000)]
* wincap.h (wincaps::has_broken_alloc_console): New element.
* wincap.cc: Implement above element throughout.

15 years ago * sec_auth.cc (lsaauth): Close unused handle.
Corinna Vinschen [Thu, 25 Jun 2009 08:22:09 +0000 (08:22 +0000)]
* sec_auth.cc (lsaauth): Close unused handle.
(lsaprivkeyauth): Ditto.

15 years ago * include/wtsapi32.h (WTSQueryUserToken, WTSEnumerateSessionsW,
Corinna Vinschen [Wed, 24 Jun 2009 10:30:07 +0000 (10:30 +0000)]
* include/wtsapi32.h (WTSQueryUserToken, WTSEnumerateSessionsW,
WTSEnumerateSessionsA): Add function prototypes.
(struct _WTS_SESSION_INFOW, struct _WTS_SESSION_INFOA): Add typedefs.
(WTS_SESSION_INFO, PWTS_SESSION_INFO, WTSEnumerateSessions): Add
defines dependent on UNICODE setting.

15 years ago * faq-setup.xml (faq.setup.setup-fails-on-ts): Fix another typo.
Corinna Vinschen [Wed, 24 Jun 2009 07:57:03 +0000 (07:57 +0000)]
* faq-setup.xml (faq.setup.setup-fails-on-ts): Fix another typo.

15 years ago * faq-setup.xml (faq.setup.setup-fails-on-ts): Fix typo.
Corinna Vinschen [Wed, 24 Jun 2009 07:49:37 +0000 (07:49 +0000)]
* faq-setup.xml (faq.setup.setup-fails-on-ts): Fix typo.

15 years ago * faq-setup.xml (faq.setup.setup-failes-on-ts): Change rebaseall to
Corinna Vinschen [Tue, 23 Jun 2009 16:16:57 +0000 (16:16 +0000)]
* faq-setup.xml (faq.setup.setup-failes-on-ts): Change rebaseall to
rebase.

15 years ago2009-06-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 23 Jun 2009 16:04:33 +0000 (16:04 +0000)]
2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>

        * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
        sf_fpclassify as these are now used for infinity testing.
        * Makefile.in: Regenerated.

15 years ago * faq-setup.xml (faq.setup.setup-failes-on-ts): New FAQ entry.
Corinna Vinschen [Tue, 23 Jun 2009 15:52:20 +0000 (15:52 +0000)]
* faq-setup.xml (faq.setup.setup-failes-on-ts): New FAQ entry.

15 years ago * sec_auth.cc (get_server_groups): Ignore errors from
Corinna Vinschen [Tue, 23 Jun 2009 10:23:16 +0000 (10:23 +0000)]
* sec_auth.cc (get_server_groups): Ignore errors from
get_user_local_groups.

15 years ago * spawn.cc (spawn_guts): Don't run additional check for Win32
Corinna Vinschen [Mon, 22 Jun 2009 15:40:59 +0000 (15:40 +0000)]
* spawn.cc (spawn_guts): Don't run additional check for Win32
incompatible CWD if newargv.fixup bailed out already.
(av::fixup): Check shell scripts for executability.

15 years agoinclude/elf/
Alan Modra [Mon, 22 Jun 2009 00:52:20 +0000 (00:52 +0000)]
include/elf/
* ppc.h (R_PPC_RELAX*): Define as enum.
bfd/
* elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch.
* elf32-v850.c (v850_elf_relocate_section): Warning fix.

15 years ago2009-06-19 Joseph Myers <joseph@codesourcery.com>
Jeff Johnston [Fri, 19 Jun 2009 18:18:01 +0000 (18:18 +0000)]
2009-06-19  Joseph Myers  <joseph@codesourcery.com>

        * Makefile.in (html, pdf): New.
        * doc/Makefile.in (html, pdf, porting.pdf, porting.html): New.
        * doc/porting.texi: Fix section structure.

15 years ago2009-06-19 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston [Fri, 19 Jun 2009 18:15:35 +0000 (18:15 +0000)]
2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>

        * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
        so it can point to an aligned structure or double.

15 years ago * new-features.sgml (ov-new1.7-misc): Add new link libs.
Corinna Vinschen [Fri, 19 Jun 2009 09:33:45 +0000 (09:33 +0000)]
* new-features.sgml (ov-new1.7-misc): Add new link libs.
* setup2.sgml (setup-locale-ov): Explain locale-specific wcwidth
feature.

15 years ago PR 10288
Nick Clifton [Thu, 18 Jun 2009 10:31:20 +0000 (10:31 +0000)]
    PR 10288
        * arm-dis.c (print_insn_coprocessor): Check that a user specified
        ARM architecture supports the matched instruction.
        (print_insn_arm): Likewise.
        (select_arm_features): New function.  Fills in the fields of an
        arm_feature_set structure based on a given arm machine number.
        (print_insn): Initialise an arm_feature_set structure.

        * objdump.c (disassemble_bytes): Set the
        USER_SPECIFIED_MACHINE_TYPE flag in the disassemble_info structure
        if the user has invoked the -m switch.
        * doc/binutils.texi: Document the additional behaviour of
        objdump's -m switch for ARM targets.

        * dis-asm.h (USER_SPECIFIED_MACHINE_TYPE): New value for the flags
        field of struct disassemble_info.

        * gas/arm/align.s: Add labels so that COFF based targets can
        correctly locate THUMB code.
        * gas/arm/copro.d: Do not pass --architecture switch to objdump.

15 years ago * path.cc (chdir): Check error conditions first.
Corinna Vinschen [Thu, 18 Jun 2009 09:47:13 +0000 (09:47 +0000)]
* path.cc (chdir): Check error conditions first.

15 years ago * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
Corinna Vinschen [Thu, 18 Jun 2009 09:13:39 +0000 (09:13 +0000)]
* libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
documentation.

15 years ago2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Wed, 17 Jun 2009 22:01:36 +0000 (22:01 +0000)]
2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/stdlib.h (_wtof): Define.

15 years ago2009-06-17 Michael Eager <eager@eagercon.com>
Jeff Johnston [Wed, 17 Jun 2009 16:47:02 +0000 (16:47 +0000)]
2009-06-17  Michael Eager <eager@eagercon.com>

        * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
        PTHREAD_MUTEX_NORMAL.
        * libc/include/sys/features.h: Same.
        * libc/include/sys/types.h: Same.

15 years ago2009-06-17 Michael Eager <eager@eagercon.com>
Jeff Johnston [Wed, 17 Jun 2009 16:38:22 +0000 (16:38 +0000)]
2009-06-17  Michael Eager <eager@eagercon.com>

        * rs6000/Makefile.in: Add xilinx support.
        * rs6000/xil-crt0.s: New crt0 file for powerpc-xilinx-eabi.
        * rs6000/xilinx.ld: New file.
        * rs6000/xilinx440.ld: Ditto.

15 years ago2009-06-17 Michael Eager <eager@eagercon.com>
Jeff Johnston [Wed, 17 Jun 2009 16:35:15 +0000 (16:35 +0000)]
2009-06-17  Michael Eager <eager@eagercon.com>

        * COPYING.LIBGLOSS: Add Xilinx license.

15 years ago * fhandler_socket.cc (fhandler_socket::recv_internal): Mark WSARecvMsg
Corinna Vinschen [Wed, 17 Jun 2009 08:23:17 +0000 (08:23 +0000)]
* fhandler_socket.cc (fhandler_socket::recv_internal): Mark WSARecvMsg
as NO_COPY.

15 years ago* fhandler.cc (fhandler_base::read_overlapped): Use a better variable name.
Christopher Faylor [Tue, 16 Jun 2009 20:33:45 +0000 (20:33 +0000)]
* fhandler.cc (fhandler_base::read_overlapped): Use a better variable name.

15 years ago * libc/include/locale.h (struct lconv): Add missing members required
Corinna Vinschen [Tue, 16 Jun 2009 19:45:17 +0000 (19:45 +0000)]
* libc/include/locale.h (struct lconv): Add missing members required
by POSIX.1-2008.
* libc/locale/locale.c (lconv): Initialize new members to default
values in "C" locale.

15 years ago* fhandler.cc (fhandler_base::read_overlapped): Preserve len when looping due
Christopher Faylor [Tue, 16 Jun 2009 19:05:43 +0000 (19:05 +0000)]
* fhandler.cc (fhandler_base::read_overlapped): Preserve len when looping due
to received signal.

15 years ago * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
Corinna Vinschen [Tue, 16 Jun 2009 17:44:20 +0000 (17:44 +0000)]
* libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
radix char instead of assuming length 1.
* libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
(gethex): Allow multibyte decimal point.
Fix compiler warnings due to different signedness of pointer types.
* libc/stdlib/strtod.c: Remove use of USE_LOCALE.
(_strtod_r): Allow multibyte decimal point.
* libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
endptr position if the decimal point is a multibyte char.

15 years ago2009-06-16 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Tue, 16 Jun 2009 16:02:07 +0000 (16:02 +0000)]
2009-06-16  Craig Howland <howland@LGSInnovations.com>

        * libc/ctype/local.h (__locale_charset): Add arguments to
        prototype
        * libc/stdlib/local.h (__locale_charset): Ditto.

15 years ago2009-06-16 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Tue, 16 Jun 2009 15:55:06 +0000 (15:55 +0000)]
2009-06-16  Craig Howland <howland@LGSInnovations.com>

        * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
        macros to remove un-necessary extension use.  isinf and isnan also
        changed to use fpclassify.  isfinite macro modified to run faster by
        only calling fpclassify once instead of possibly twice.

15 years agomerge from gcc
DJ Delorie [Tue, 16 Jun 2009 13:21:26 +0000 (13:21 +0000)]
merge from gcc

15 years ago * net.cc (get_flags): New static function to generate interface flags
Corinna Vinschen [Mon, 15 Jun 2009 20:04:15 +0000 (20:04 +0000)]
* net.cc (get_flags): New static function to generate interface flags
value.
(get_ipv4fromreg_ipcnt): New static function to fetch number of
configured IPv4 addresses for a given NIC from registry.
(get_ipv4fromreg): New static function to fetch configured IPv4
addresses for a given NIC from registry.
(get_friendlyname): New static function to generate friendly name.
(get_hwaddr): New static function to copy hardware address.
(get_xp_ifs): Restructure slightly.  Add code to generate IPv4 entries
entries for interfaces which are disconnected.

15 years ago * configure.ac: Define is_elf for QNX Neutrino targets.
Nick Clifton [Mon, 15 Jun 2009 14:08:41 +0000 (14:08 +0000)]
    * configure.ac: Define is_elf for QNX Neutrino targets.
        * configure: Regenerate.

15 years ago PR 10263
Nick Clifton [Mon, 15 Jun 2009 11:37:26 +0000 (11:37 +0000)]
    PR 10263
        * arm-dis.c (print_insn): Ignore is_data if the user has requested
        the disassembly of data as well as instructions.

        * objdump.c (disassemble_bytes): Set the DISASSEMBLE_DATA bit in
        the flags field of the disassemble_info structure if the -D switch
        is in operation.

        * dis-asm.h (struct disassemble_info): New value for the flags
        field.

15 years ago* errno.cc (errmap): Add mapping for ERROR_IO_INCOMPLETE.
Christopher Faylor [Sun, 14 Jun 2009 23:42:09 +0000 (23:42 +0000)]
* errno.cc (errmap): Add mapping for ERROR_IO_INCOMPLETE.
* fhandler.cc (fhandler_base::fcntl): Fix comment.
(fhandler_base::wait_overlapped): Accept an optional len parameter.  Use the
len parameter when WriteFile fails with ERROR_IO_PENDING.  Make debug output
less alarming.
(fhandler_base::write_overlapped): Pass len to wait_overlapped.
* fhandler.h (fhandler_base::wait_overlapped): Add an optional argument
denoting the number of characters intended to be written.
* fhandler_tty.cc (fhandler_pty_master::close): Don't close archetype handles
when cygwin is still initializing since the handles aren't actually opened at
that point.

15 years ago * localtime.cc (time2): Take another stab at fixing a compiler warning.
Corinna Vinschen [Sun, 14 Jun 2009 09:35:35 +0000 (09:35 +0000)]
* localtime.cc (time2): Take another stab at fixing a compiler warning.

15 years ago* localtime.cc (time2): Take a stab at fixing a compiler warning.
Christopher Faylor [Sun, 14 Jun 2009 05:49:01 +0000 (05:49 +0000)]
* localtime.cc (time2): Take a stab at fixing a compiler warning.

15 years ago* fhandler.cc (fhandler_base::wait_overlapped): Honor nonblocking flag for
Christopher Faylor [Sun, 14 Jun 2009 05:38:55 +0000 (05:38 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Honor nonblocking flag for
writes.  Don't reset event handle when we see a ERROR_IO_PENDING.
* sigproc.cc (stopped_or_terminated): Use bool constants for consistency.
* wait.cc (wait4): Remove nonsensical comment.

15 years ago * fhandler_socket.cc (fhandler_socket::recv_internal): Set namelen
Corinna Vinschen [Sat, 13 Jun 2009 16:13:01 +0000 (16:13 +0000)]
* fhandler_socket.cc (fhandler_socket::recv_internal): Set namelen
pointer to NULL if name pointer is NULL.  Explain why.

15 years ago * faq-using.xml (faq.using.emacs): Update.
Corinna Vinschen [Fri, 12 Jun 2009 15:16:27 +0000 (15:16 +0000)]
* faq-using.xml (faq.using.emacs): Update.

15 years ago * localtime.cc (time2): Change "spring gap" to "spring forward gap"
Corinna Vinschen [Fri, 12 Jun 2009 15:08:43 +0000 (15:08 +0000)]
* localtime.cc (time2): Change "spring gap" to "spring forward gap"
in comment.

15 years ago * localtime.cc (time2): Add workaround for spring gap problem. Add
Corinna Vinschen [Fri, 12 Jun 2009 15:06:26 +0000 (15:06 +0000)]
* localtime.cc (time2): Add workaround for spring gap problem.  Add
explaining comment.

15 years ago * Makefile.in (SUBLIBS): Add librt.a.
Corinna Vinschen [Fri, 12 Jun 2009 10:19:36 +0000 (10:19 +0000)]
* Makefile.in (SUBLIBS): Add librt.a.
(librt.a): New rule to build librt.a.

15 years agoImprove ChangeLog entry. Fix posix_ipc.cc copyright
Corinna Vinschen [Fri, 12 Jun 2009 09:52:06 +0000 (09:52 +0000)]
Improve ChangeLog entry.  Fix posix_ipc.cc copyright

15 years ago * posix_ipc.cc (check_path): Fix typo in comment. Align naming
Corinna Vinschen [Fri, 12 Jun 2009 09:50:05 +0000 (09:50 +0000)]
* posix_ipc.cc (check_path): Fix typo in comment.  Align naming
convention rules to Linux.  Add comment.

15 years agoAdd PC-relative branch instructions to moxie port.
Anthony Green [Thu, 11 Jun 2009 11:27:57 +0000 (11:27 +0000)]
Add PC-relative branch instructions to moxie port.

15 years ago * path.cc (oopts): Sort alphabetically, add missing "auto" and
Corinna Vinschen [Wed, 10 Jun 2009 10:42:22 +0000 (10:42 +0000)]
* path.cc (oopts): Sort alphabetically, add missing "auto" and
"override" entries.
(from_fstab_line): Handle mount points same as Cygwin itself.  Use
"cygdrive prefix" as posix name of cygdrive prefix.
(from_fstab): Add auto entries for /usr/bin and /usr/lib.  Add
MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry.
Use "cygdrive prefix" as posix name of default cygdrive prefix.
(getmntent): Allocate smaller buffers.  Align output closer to output
of mount(1).

15 years ago * libc/ctype/tolower.c (tolower): Cast conversion result from
Corinna Vinschen [Tue, 9 Jun 2009 11:33:57 +0000 (11:33 +0000)]
* libc/ctype/tolower.c (tolower): Cast conversion result from
mbtowc/wctomb to unsigned char to avoid negative return values.
* libc/ctype/toupper.c (toupper): Ditto.

15 years ago * autoload.cc (GetSystemTimes): Remove.
Corinna Vinschen [Tue, 9 Jun 2009 09:45:29 +0000 (09:45 +0000)]
* autoload.cc (GetSystemTimes): Remove.
* fhandler_proc.cc (format_proc_uptime): Use global system_info rather
than retrieving a local copy of the SYSTEM_INFO.  Drop call to
GetSystemTimes and retrieve SystemPerformanceInformation on all systems
again with buffer size big enough for 64 bit systems.
(format_proc_stat): Use global system_info rather than retrieving a
local copy of the SYSTEM_INFO.  Retrieve SystemPerformanceInformation
with buffer size big enough for 64 bit systems.

15 years agoFix ChangeLog entry
Corinna Vinschen [Mon, 8 Jun 2009 20:06:55 +0000 (20:06 +0000)]
Fix ChangeLog entry

15 years ago * autoload.cc (GetSystemTimes): Define.
Corinna Vinschen [Mon, 8 Jun 2009 20:04:37 +0000 (20:04 +0000)]
* autoload.cc (GetSystemTimes): Define.
* fhandler_proc.cc (format_proc_uptime): Use GetSystemInfo to retrieve
processor count.  Use GetSystemTimes when available to retrieve system
idle time.  Improve debug output.
(format_proc_stat): Use GetSystemInfo to retrieve processor
count.  Improve debug output.  Ignore if SystemPerformanceInformation
returns error.  Explain why.

15 years ago * fork.cc (frok::parent): Remove ancient code erroneously flushing
Corinna Vinschen [Mon, 8 Jun 2009 19:45:39 +0000 (19:45 +0000)]
* fork.cc (frok::parent): Remove ancient code erroneously flushing
stdout descriptor.

15 years ago * cygerrno.h (save_errno::~save_errno): Set errno directly to avoid
Corinna Vinschen [Mon, 8 Jun 2009 19:44:33 +0000 (19:44 +0000)]
* cygerrno.h (save_errno::~save_errno): Set errno directly to avoid
flooding debug output.

15 years ago * path.cc (symlink_info::check): Return with error set to ENOENT if
Corinna Vinschen [Mon, 8 Jun 2009 15:22:52 +0000 (15:22 +0000)]
* path.cc (symlink_info::check): Return with error set to ENOENT if
STATUS_NO_MEDIA_IN_DEVICE is returned.

15 years ago* cygheap.h (mini_cygheap): New struct.
Christopher Faylor [Mon, 8 Jun 2009 03:53:40 +0000 (03:53 +0000)]
* cygheap.h (mini_cygheap): New struct.
(init_cygheap): Inherit locale field via mini_cygheap.
* cygheap.cc (cygheap_at_start): Define new variable.
(cygheap): Initialize as cygheap_at_start so that locale information is always
available.
(cygheap_init): Initialize cygheap iff it is set to cygheap_at_start.
* shared_info.h (memory_init): Accommodate argument change.
* memory.cc (memory_init): Accept an argument indicating whether cygheap should
be initialized or not.
* dcrt0.cc (child_info_fork::handle_fork): Pass false to memory_init().
(child_info_spawn::handle_spawn): Ditto.
(dll_crt0_0): Pass true to memory_init when not forking or execing.
* cygheap.h (cygheap_types::HEAP_2_DLL): New enum.
* dll_init.h (dll): Remove unused namelen field.
(dll_list::load_after_fork): Accommodate change in arguments.
* dll_init.cc (dll_list::alloc): Allocate dll information in the cygwin heap.
(dll_list::detach): Free dll information from the cygwin heap.
(dll_list::load_after_fork): Use dll information in the cygwin heap directly
rather than querying parent.
* fork.cc (frok::first_dll): Delete.
(frok::child): Don't report on first_dll.  Don't pass it to load_on_fork.
(frok::parent): Don't set first_dll.
(fork): Ditto.

15 years ago * include/ddk/ntapi.h: Add NtXxx equivalent to ZwXxx where missing
Corinna Vinschen [Sun, 7 Jun 2009 11:40:09 +0000 (11:40 +0000)]
* include/ddk/ntapi.h: Add NtXxx equivalent to ZwXxx where missing
and vice versa.
* include/ddk/ntifs.h: Ditto.
* include/ddk/winddk.h: Ditto.
* lib/ntdll.def (NtPlugPlayControl, NtQueryInstallUILanguage,
ZwPlugPlayControl, ZwQueryInstallUILanguage): Add entry points defined
in header, but missing in lib.  Omit NT4-only entry points.

15 years ago * dll_init.cc (dll_list::alloc): Allocate memory using a section
Corinna Vinschen [Sun, 7 Jun 2009 07:26:07 +0000 (07:26 +0000)]
* dll_init.cc (dll_list::alloc): Allocate memory using a section
object.  Explain why.  Drop call to GetSystemInfo, rather call
getpagesize to get allocation granularity.  Only align to allocation
granularity under WOW64.  Use roundup2 to align.
(dll_list::detach): Call NtUnmapViewOfSection instead of VirtualFree.

15 years ago * mmap.cc: Use NtUnmapViewOfSection instead of UnmapViewOfFile
Corinna Vinschen [Sat, 6 Jun 2009 19:56:41 +0000 (19:56 +0000)]
* mmap.cc: Use NtUnmapViewOfSection instead of UnmapViewOfFile
throughout for symmetry.
(fhandler_dev_mem::munmap): Use correct process handle in call to
NtUnmapViewOfSection.

15 years agoPrint moxie addresses nicely.
Anthony Green [Sat, 6 Jun 2009 13:02:21 +0000 (13:02 +0000)]
Print moxie addresses nicely.

15 years ago * dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.
Corinna Vinschen [Sat, 6 Jun 2009 11:47:29 +0000 (11:47 +0000)]
* dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.
* dll_init.cc: Fix formatting.
(dll_list::alloc): Only allocate as much memory for struct dll as
necessary for given DLL name.
(dll_list::load_after_fork): Only read a single page of parent memory.
Only read more if namelen indicates that it's necessary.

15 years ago * winbase.h (ilockexch): Fix asm constraints.
Dave Korn [Fri, 5 Jun 2009 13:53:01 +0000 (13:53 +0000)]
* winbase.h (ilockexch):  Fix asm constraints.
(ilockcmpexch):  Likewise.

15 years ago * heap.cc (heap_init): Fix typo in comment.
Corinna Vinschen [Fri, 5 Jun 2009 11:15:28 +0000 (11:15 +0000)]
* heap.cc (heap_init): Fix typo in comment.

15 years ago * fhandler_clipboard.cc: Avoid calling system_printf.
Corinna Vinschen [Thu, 4 Jun 2009 17:14:53 +0000 (17:14 +0000)]
* fhandler_clipboard.cc: Avoid calling system_printf.
(set_clipboard): Add basic error checking.  Set errno here.  Per MSDN,
don't call GlobalFree on data block transferred to clipboard.
(fhandler_dev_clipboard::write): Drop setting errno after call to
set_clipboard.
(fhandler_dev_clipboard::read): Add basic error checking. Simplify code.

15 years ago * new-features.sgml: Add changes to console BS and Space key.
Corinna Vinschen [Thu, 4 Jun 2009 15:13:40 +0000 (15:13 +0000)]
* new-features.sgml: Add changes to console BS and Space key.

15 years ago * fhandler_console.cc (set_console_title): Convert title string to
Corinna Vinschen [Thu, 4 Jun 2009 14:59:47 +0000 (14:59 +0000)]
* fhandler_console.cc (set_console_title): Convert title string to
wchar_t and call SetConsoleTitleW.

15 years ago * fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space to
Corinna Vinschen [Thu, 4 Jun 2009 09:57:34 +0000 (09:57 +0000)]
* fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space to
emit a NUL byte.

15 years ago * thread.cc (__cygwin_lock_lock): Delete racy optimisation.
Dave Korn [Thu, 4 Jun 2009 01:45:05 +0000 (01:45 +0000)]
* thread.cc (__cygwin_lock_lock):  Delete racy optimisation.
(__cygwin_lock_unlock):  Likewise.

15 years agomerge from gcc
DJ Delorie [Wed, 3 Jun 2009 21:02:16 +0000 (21:02 +0000)]
merge from gcc

15 years ago * libc/string/wcwidth.c: Optimize for speed.
Corinna Vinschen [Wed, 3 Jun 2009 19:28:22 +0000 (19:28 +0000)]
* libc/string/wcwidth.c: Optimize for speed.

* libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
(loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
(__locale_cjk_lang): New function.
* libc/string/local.h (__locale_cjk_lang): Declare.
* libc/string/wcwidth.c: Fix comments.
(__wcwidth): Handle CJK Ambiguous Width characters according
to setting returned by __locale_cjk_lang.

15 years ago * strfuncs.cc (sys_cp_mbstowcs): Fix condition.
Corinna Vinschen [Wed, 3 Jun 2009 19:04:07 +0000 (19:04 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Fix condition.

15 years agoChangeLog:
Ulrich Weigand [Wed, 3 Jun 2009 18:08:14 +0000 (18:08 +0000)]
ChangeLog:

* mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
mdebug_type_unsigned_char, mdebug_type_unsigned_short,
mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
mdebug_type_complex, mdebug_type_double_complex,
mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
Remove.

(basic_type_data): New global variable.
(basic_type): New function.
(parse_type): Remove static basic type map map_bt.  Call basic_type
to get basic types instead of using mdebug_type_ variables.

(parse_symbol): Use builtin types instead of mdebug_type_ variables.
(upgrade_type): Likewise.
(parse_procedure): Likewise.
(psymtab_to_symtab_1): Likewise.

(_initialize_mdebugread): Do not initialize mdebug_type_ variables.
Initialize basic_type_data.

include/coff/ChangeLog:

* symconst.h (btLong64, btULong64, btLongLong64, btULongLong64,
btAdr64, btInt64, btUInt64): New defines.

15 years ago * strfuncs.cc (sys_cp_wcstombs): Implement reverse functionality
Corinna Vinschen [Wed, 3 Jun 2009 17:23:39 +0000 (17:23 +0000)]
* strfuncs.cc (sys_cp_wcstombs): Implement reverse functionality
of the change to sys_cp_mbstowcs from 2009-05-30.
(sys_cp_mbstowcs): Slightly reformat.  Fix comment to accommodate
change to sys_cp_wcstombs.  Don't write to *ptr if dst is NULL.

15 years ago * fhandler_console.cc (fhandler_console::read): Convert Alt-Backspace
Corinna Vinschen [Wed, 3 Jun 2009 11:07:38 +0000 (11:07 +0000)]
* fhandler_console.cc (fhandler_console::read): Convert Alt-Backspace
to \033\177 or to \377 dependent on the setting of dev_state->metabit.

15 years ago * Makefile.tpl (all): Avoid a trailing backslash.
Ralf Wildenhues [Wed, 3 Jun 2009 05:40:47 +0000 (05:40 +0000)]
    * Makefile.tpl (all): Avoid a trailing backslash.
        * Makefile.in: Regenerate.

15 years ago * config.sub, config.guess: Update from upstream sources.
Ben Elliston [Tue, 2 Jun 2009 23:00:59 +0000 (23:00 +0000)]
* config.sub, config.guess: Update from upstream sources.

15 years ago2009-06-02 Richard Earnshaw <rearnsha@arm.com>
Jeff Johnston [Tue, 2 Jun 2009 20:39:17 +0000 (20:39 +0000)]
2009-06-02  Richard Earnshaw  <rearnsha@arm.com>

        * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
        thumb2.

15 years ago * path.cc (path_conv::check): Don't call set_exec for files on "noacl"
Corinna Vinschen [Tue, 2 Jun 2009 13:29:30 +0000 (13:29 +0000)]
* path.cc (path_conv::check): Don't call set_exec for files on "noacl"
mount points.

15 years ago * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
Corinna Vinschen [Tue, 2 Jun 2009 09:41:06 +0000 (09:41 +0000)]
* libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
(__jp2uc): Change the scope to static function.
* libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
* libc/string/local.h (_jp2uc): Include ../ctype/local.h.

15 years ago* Makefile.tpl ([+compare-target+]): Compare all stage
Alexandre Oliva [Tue, 2 Jun 2009 08:23:45 +0000 (08:23 +0000)]
* Makefile.tpl ([+compare-target+]): Compare all stage
directories, rather than just gcc.
* Makefile.in: Rebuilt.

15 years agomerge from gcc
DJ Delorie [Mon, 1 Jun 2009 19:40:32 +0000 (19:40 +0000)]
merge from gcc

15 years agobfd/
H.J. Lu [Mon, 1 Jun 2009 13:11:52 +0000 (13:11 +0000)]
bfd/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
(elf_i386_reloc_type_lookup): Likewise.
(R_386_tls): Removed.
(R_386_irelative): New.
(R_386_vt_offset): Updated.
(elf_i386_rtype_to_howto): Likewise.
(elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
(elf_i386_link_hash_table_create): Initialize igotplt,
iplt and irelplt.
(elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
(elf_i386_adjust_dynamic_symbol): Likewise.
(elf_i386_allocate_dynrelocs): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
sections.
(elf_i386_finish_dynamic_symbol): When building a static
executable, use .iplt, .igot.plt and .rel.iplt sections for
STT_GNU_IFUNC symbols.  Generate R_386_IRELATIVE relocation for
locally defined STT_GNU_IFUNC symbol.

* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
(x86_64_reloc_map): Likewise.
(R_X86_64_standard): Updated.
(elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
(elf64_x86_64_link_hash_table_create): Initialize igotplt,
iplt and irelplt.
(elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
(elf64_x86_64_allocate_dynrelocs): Likewise.
(elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
sections.
(elf64_x86_64_finish_dynamic_symbol): When building a static
executable, use .iplt, .igot.plt and .rela.iplt sections for
STT_GNU_IFUNC symbols.  Generate R_X86_64_IRELATIVE relocation
for locally defined STT_GNU_IFUNC symbol.

* reloc.c (BFD_RELOC_386_IRELATIVE): New.
(BFD_RELOC_X86_64_IRELATIVE): Likewise.

* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.

include/elf/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* i386.h (R_386_IRELATIVE): New.
* x86-64.h (R_X86_64_IRELATIVE): Likewise.

ld/testsuite/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* ld-ifunc/ifunc.exp (contains_irelative_reloc): New.
Use it on executable and shared library.
Run *.d.

* ld-ifunc/lib.c: Add a hidden alias, __GI_library_func2, for
library_func2.
(library_func): New.

* ld-ifunc/ifunc-1-x86.d: New.
* ld-ifunc/ifunc-1-x86.s: Likewise.
* ld-ifunc/ifunc-2-i386.d: Likewise.
* ld-ifunc/ifunc-2-i386.s: Likewise.
* ld-ifunc/ifunc-2-x86-64.d: Likewise.
* ld-ifunc/ifunc-2-x86-64.s: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.
* ld-ifunc/ifunc-3b-x86.d: Likewise.
* ld-ifunc/ifunc-3-x86.s: Likewise.
* ld-ifunc/ifunc-4-x86.d: Likewise.
* ld-ifunc/ifunc-4-x86.s: Likewise.
* ld-ifunc/ifunc-5-i386.d: Likewise.
* ld-ifunc/ifunc-5-i386.s: Likewise.
* ld-ifunc/ifunc-5-x86-64.d: Likewise.
* ld-ifunc/ifunc-5-x86-64.s: Likewise.

15 years ago* strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *. Convert failure
Christopher Faylor [Sun, 31 May 2009 03:59:38 +0000 (03:59 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *.  Convert failure
of f_mbtowc into a single malformed utf-16 value.

15 years ago* cygwin/include/sys/termios.h: Make default erase character "^?".
Christopher Faylor [Sat, 30 May 2009 17:21:22 +0000 (17:21 +0000)]
* cygwin/include/sys/termios.h: Make default erase character "^?".

15 years ago* fhandler_console.cc (fhandler_console::read): Convert backspace key to DEL.
Christopher Faylor [Sat, 30 May 2009 05:51:41 +0000 (05:51 +0000)]
* fhandler_console.cc (fhandler_console::read): Convert backspace key to DEL.

15 years ago* path.cc (cwdstuff::set): Rewrite previous change to properly test the end of
Christopher Faylor [Fri, 29 May 2009 20:18:50 +0000 (20:18 +0000)]
* path.cc (cwdstuff::set): Rewrite previous change to properly test the end of
the buffer.

15 years ago2009-05-28 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 29 May 2009 00:15:11 +0000 (00:15 +0000)]
2009-05-28  Doug Kwan  <dougkwan@google.com>

        * configure.ac: Support gold for target arm*-*-*.
        * configure: Regenerate.
        * gold/Makefile.am (TARGETSOURCES): Add arm.cc.
        (ALL_TARGETOBJECTS): Add arm.$(OBJEXT)
        * gold/Makefile.in: Regenerate.
        * gold/arm.cc: New file.
        * gold/configure.tgt: Add armbe*-*-*, armeb*-*-* and arm*-*-* targets.

15 years ago* path.cc (cwdstuff::set): Avoid removing a nonexistent trailing slash.
Christopher Faylor [Thu, 28 May 2009 05:10:03 +0000 (05:10 +0000)]
* path.cc (cwdstuff::set): Avoid removing a nonexistent trailing slash.

15 years ago2009-05-27 Neal H. Walfield <neal@gnu.org>
Jeff Johnston [Wed, 27 May 2009 18:54:58 +0000 (18:54 +0000)]
2009-05-27  Neal H. Walfield  <neal@gnu.org>

        * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
        _JBTYPE and the size of sigset_t.

15 years ago2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 27 May 2009 17:05:53 +0000 (17:05 +0000)]
2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>

* common.h: Update comments for dynamic tag ranges.

15 years ago * plugins.m4: New.
Nick Clifton [Wed, 27 May 2009 16:29:54 +0000 (16:29 +0000)]
* plugins.m4: New.

        * aclocal.m4: Include ../config/plugins.m4.
        * configure.in: Use AC_PLUGINS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.
        * doc/Makefile.in: Regenerate.

15 years ago* Makefile.tpl (all): Avoid harmless warning in make all when
Alexandre Oliva [Wed, 27 May 2009 07:30:42 +0000 (07:30 +0000)]
* Makefile.tpl (all): Avoid harmless warning in make all when
gcc-bootstrap is enabled but stage_last does not exist.
* Makefile.in: Rebuilt.

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