]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
15 years ago * ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character.
Corinna Vinschen [Tue, 24 Mar 2009 12:18:34 +0000 (12:18 +0000)]
* ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character.
(__ctype_default): New character class array for default ASCII
character set.
(__ctype_iso): New array of character class array for ISO charsets.
(__ctype_cp): Ditto for singlebyte Windows codepages.
(tolower): Implement as distinct function to support any singlebyte
charset.
(toupper): Ditto.
(__set_ctype): New function to copy singlebyte character classes
corresponding to current charset to ctype_b array.
Align copyright text to upstream.
* dcrt0.cc (dll_crt0_1): Reset current locale to "C" per POSIX.
* environ.cc (set_file_api_mode): Remove.
(codepage_init): Remove.
(parse_thing): Remove "codepage" setting.
(environ_init): Set locale according to environment settings, or
to current codepage, before converting environment to multibyte.
* fhandler.h (fhandler_console::write_replacement_char): Drop argument.
* fhandler_console.cc (dev_console::str_to_con): Call sys_cp_mbstowcs
rather than MultiByteToWideChar.
(fhandler_console::write_replacement_char): Always print a funny
half filled square if a character isn't in the current charset.
(fhandler_console::write_normal): Convert to using __mbtowc
rather than next_char.
* fork.cc (frok::child): Drop call to set_file_api_mode.
* globals.cc (enum codepage_type) Remove.
(current_codepage): Remove.
* miscfuncs.cc (cygwin_wcslwr): Unused, dangerous.  Remove.
(cygwin_wcsupr): Ditto.
(is_cp_multibyte): Remove.
(next_char): Remove.
* miscfuncs.h (is_cp_multibyte): Drop declaration.
(next_char): Ditto.
* strfuncs.cc (get_cp): Remove.
(__db_wctomb): New function to implement _wctomb_r functionality for
doublebyte charsets using WideCharToMultiByte.
(__sjis_wctomb): New function to replace unusable newlib function.
(__jis_wctomb): Ditto.
(__eucjp_wctomb): Ditto.
(__gbk_wctomb): New function.
(__kr_wctomb): Ditto.
(__big5_wctomb): Ditto.
(__db_mbtowc): New function to implement _mbtowc_r functionality for
doublebyte charsets using MultiByteToWideChar.
(__sjis_mbtowc): New function to replace unusable newlib function.
(__jis_mbtowc): Ditto.
(__eucjp_mbtowc): Ditto.
(__gbk_mbtowc): New function.
(__kr_mbtowc): New function
(__big5_mbtowc): New function
(__set_charset_from_codepage): New function.
(sys_wcstombs): Reimplement, basically using same wide char to multibyte
conversion as newlib's application level functions.  Plus extras.
Add lengthy comment to explain.  Change return type to size_t.
(sys_wcstombs_alloc): Just use sys_wcstombs.  Change return type to
size_t.
(sys_cp_mbstowcs): Replace sys_mbstowcs, take additional codepage
argument.  Explain why.  Change return type to size_t.
(sys_mbstowcs_alloc): Just use sys_mbstowcs.  Change return type to
size_t.
* wchar.h: Declare internal functions implemented in strfuncs.cc.
(wcscasecmp): Remove.
(wcsncasecmp): Remove.
(wcslwr): Remove.
(wcsupr): Remove.
* winsup.h (codepage_init): Remove declaration.
(get_cp): Ditto.
(sys_wcstombs): Align declaration to new implementation.
(sys_wcstombs_alloc): Ditto.
(sys_cp_mbstowcs): Add declaration.
(sys_mbstowcs): Define as inline function.
(sys_mbstowcs_alloc): Align declaration to new implementation.
(set_file_api_mode): Remove declaration.
* include/ctype.h (isblank): Redefine to use _B character class.
(toupper): Remove ASCII-only definition.
(tolower): Ditto.

15 years ago * sec_auth.cc (str2buf2uni): Remove.
Corinna Vinschen [Tue, 24 Mar 2009 10:53:57 +0000 (10:53 +0000)]
* sec_auth.cc (str2buf2uni): Remove.
* security.h (str2buf2uni): Remove declaration.

15 years ago * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
Corinna Vinschen [Tue, 24 Mar 2009 10:13:27 +0000 (10:13 +0000)]
* libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
_MB_CAPABLE systems.
* libc/ctype/iswblank.c: Ditto.
* libc/ctype/iswcntrl.c: Ditto.
* libc/ctype/iswprint.c: Ditto.
* libc/ctype/iswpunct.c: Ditto.
* libc/ctype/iswspace.c: Ditto.
* libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
Explain why.
* libc/ctype/towlower.c: Ditto.
* libc/ctype/towupper.c: Ditto.
* libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
* libc/include/sys/reent.h (struct _reent): Mark _current_category
and _current_locale as unused.
* libc/locale/locale.c: Add new charset support to documentation.
Include ../stdio/local.h from here.
(lc_ctype_charset): Set to "ASCII" by default.
(lc_message_charset): Ditto.
(_setlocale_r): Don't set _current_category and _current_locale.
(loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
systems, set __mbtowc and __wctomb function pointers to function
corresponding with current charset.  Don't allow non-existant
ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
_current_category and _current_locale.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/local.h: Add prototype for __locale_charset.
Add prototypes for __mbtowc and __wctomb pointers.
Add prototypes for charset-specific _wctomb_r and _mbtowc_r
functions.
Declare tables and functions from sb_charsets.c.
* libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
by default.
(_mbtowc_r): Just call __mbtowc from here.
(__ascii_mbtowc): New function.
(__iso_mbtowc): New function.
(__cp_mbtowc): New function.
(__utf8_mbtowc): New function.
(__sjis_mbtowc): New function.  Disable on Cygwin.
(__eucjp_mbtowc): New function.  Disable on Cygwin.
(__jis_mbtowc): New function.  Disable on Cygwin.
* libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
conversion tables for all ISO and CP charsets.
(__iso_8859_index): New function.
(__cp_index): New function.
* libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
by default.
(_wctomb_r): Just call __wctomb from here.
(__ascii_wctomb): New function.
(__utf8_wctomb): New function.
(__sjis_wctomb): New function.  Disable on Cygwin.
(__eucjp_wctomb): New function.  Disable on Cygwin.
(__jis_wctomb): New function.  Disable on Cygwin.
(__iso_wctomb): New function.
(__cp_wctomb): New function.

15 years ago * include/mntent.h: Remove declarations of nonexistant addmntent
Corinna Vinschen [Tue, 24 Mar 2009 09:19:37 +0000 (09:19 +0000)]
* include/mntent.h: Remove declarations of nonexistant addmntent
and hasmntopt.  Update and clarify the /etc/mtab comment.

15 years ago * passwd.c (usage): Change description for -d option according to
Corinna Vinschen [Mon, 23 Mar 2009 20:40:17 +0000 (20:40 +0000)]
* passwd.c (usage): Change description for -d option according to
previous change.
(main): Fix typo.
* utils.sgml: Add missing description for passwd -d option.

15 years ago2009-03-23 Richard Earnshaw <rearnsha@arm.com>
Jeff Johnston [Mon, 23 Mar 2009 18:25:10 +0000 (18:25 +0000)]
2009-03-23  Richard Earnshaw  <rearnsha@arm.com>

* libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.

15 years ago * passwd.c (caller_is_admin): New function to test if calling user
Corinna Vinschen [Mon, 23 Mar 2009 16:37:49 +0000 (16:37 +0000)]
* passwd.c (caller_is_admin): New function to test if calling user
is an administrator by inspecting user token.
(main): Drop fetching caller info from logonserver.  Only fetch
server from environment when trying to change password for own
account.  Drop admin check entirely in case of doing account
maintainance.  Otherwise replace check for admin by result of
caller_is_admin call.

15 years ago * smallprint.cc (__small_vsprintf): Handle NULL PWCHAR and
Corinna Vinschen [Mon, 23 Mar 2009 15:48:16 +0000 (15:48 +0000)]
* smallprint.cc (__small_vsprintf): Handle NULL PWCHAR and
PUNICODE_STRING arguments.
(__small_vswprintf): Ditto.

15 years ago * include/asm/byteorder.h (__constant_ntohs): Remove declaration.
Corinna Vinschen [Mon, 23 Mar 2009 14:26:55 +0000 (14:26 +0000)]
* include/asm/byteorder.h (__constant_ntohs): Remove declaration.
(__constant_ntohl): Ditto.

15 years ago * libc/locale/locale.c (loadlocale): Fix typo in language and
Corinna Vinschen [Mon, 23 Mar 2009 11:28:12 +0000 (11:28 +0000)]
* libc/locale/locale.c (loadlocale): Fix typo in language and
territory evaluation.

15 years ago * cygwin.din: Export wordexp, wordfree.
Corinna Vinschen [Mon, 23 Mar 2009 09:46:38 +0000 (09:46 +0000)]
* cygwin.din: Export wordexp, wordfree.
* posix.sgml: Move them to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * include/sys/un.h: #include <string.h> for strlen.
Corinna Vinschen [Mon, 23 Mar 2009 08:45:18 +0000 (08:45 +0000)]
* include/sys/un.h: #include <string.h> for strlen.

15 years ago * passwd.c (main): Always get logonserver from environment and
Corinna Vinschen [Sun, 22 Mar 2009 19:18:26 +0000 (19:18 +0000)]
* passwd.c (main): Always get logonserver from environment and
use when fetching user info for caller.

15 years ago * ldd.cc: Fix compiler warning.
Corinna Vinschen [Sun, 22 Mar 2009 10:09:01 +0000 (10:09 +0000)]
* ldd.cc: Fix compiler warning.

* passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout.
(main): Call setlocale.  Fix a bug in fetching the logon server from
the environment.

15 years agoinclude/elf:
Ian Lance Taylor [Fri, 20 Mar 2009 23:37:51 +0000 (23:37 +0000)]
include/elf:
* common.h (SHT_GNU_INCREMENTAL_INPUTS): Define.
elfcpp:
* elfcpp.h (SHT_GNU_INCREMENTAL_INPUTS): Define.
gold:
* incremental.cc: New file.
* Makefile.am (CCFILES): Add incremental.cc.
* Makefile.in: Rebuild.

15 years ago2009-03-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 20 Mar 2009 20:44:14 +0000 (20:44 +0000)]
2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/errno.h: Protect various non-standard errnos
        with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
        * libc/include/sys/config.h[__CYGWIN__]: Define
        __LINUX_ERRNO_EXTENSIONS__.

15 years ago * cygserver-config: Remove misleading text describing the
Corinna Vinschen [Fri, 20 Mar 2009 11:54:16 +0000 (11:54 +0000)]
* cygserver-config: Remove misleading text describing the
"CYGWIN=server" setting for the client.

15 years ago * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
Corinna Vinschen [Thu, 19 Mar 2009 19:47:52 +0000 (19:47 +0000)]
* libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
invalid character sequence.

* libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
missing declaration of __locale_charset.
* libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.

15 years ago * dlfcn.cc (get_full_path_of_dll): Revert patch from 2008-07-16.
Corinna Vinschen [Thu, 19 Mar 2009 18:16:07 +0000 (18:16 +0000)]
* dlfcn.cc (get_full_path_of_dll): Revert patch from 2008-07-16.

15 years ago * cygwin.din: Export log2, log2f as functions.
Corinna Vinschen [Thu, 19 Mar 2009 09:22:01 +0000 (09:22 +0000)]
* cygwin.din: Export log2, log2f as functions.
* posix.sgml: Add them to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * configure: Rebuild.
Tom Tromey [Wed, 18 Mar 2009 23:33:26 +0000 (23:33 +0000)]
* configure: Rebuild.
* configure.ac (host_libs): Add libiconv.
* Makefile.in: Rebuild.
* Makefile.def (host_modules): Add libiconv.
(configure-gdb, all-gdb): Depend on libiconv.

15 years ago2009-03-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Jeff Johnston [Wed, 18 Mar 2009 18:11:18 +0000 (18:11 +0000)]
2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

        * libm/common/s_log2.c: New file.
        * libm/common/sf_log2.c: Ditto.
        * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
        * libm/common/Makefile.in: Regenerated.
        * libc/include/math.h: Add log2 and log2f function prototypes.

15 years ago* common.h (NT_OPENBSD_PROCINFO, NT_OPENBSD_AUXV)
Mark Kettenis [Wed, 18 Mar 2009 15:57:17 +0000 (15:57 +0000)]
* common.h (NT_OPENBSD_PROCINFO, NT_OPENBSD_AUXV)
(NT_OPENBSD_REGS, NT_OPENBSD_FPREGS, NT_OPENBSD_XFPREGS)
(NT_OPENBSD_WCOOKIE): New defines.

15 years ago*** empty log message ***
Christopher Faylor [Wed, 18 Mar 2009 14:47:13 +0000 (14:47 +0000)]
*** empty log message ***

15 years agoRe-add inexplicably missing ldh.cc.
Christopher Faylor [Wed, 18 Mar 2009 14:46:24 +0000 (14:46 +0000)]
Re-add inexplicably missing ldh.cc.

15 years ago * sec_auth.cc (lsaauth): Remove local definitions of struct
Corinna Vinschen [Wed, 18 Mar 2009 13:58:35 +0000 (13:58 +0000)]
* sec_auth.cc (lsaauth): Remove local definitions of struct
_TOKEN_LINKED_TOKEN and TokenLinkedToken in favor of definitions
from winnt.h.
(lsaprivkeyauth): As in lsaauth, fetch linked token if available and
return that in favor of default token.

15 years ago * winnt.h: Add Vista token security extensions.
Corinna Vinschen [Wed, 18 Mar 2009 13:47:18 +0000 (13:47 +0000)]
* winnt.h: Add Vista token security extensions.
(SID_HASH_SIZE): Define.
(TOKEN_MANDATORY_POLICY_OFF, TOKEN_MANDATORY_POLICY_NO_WRITE_UP,
TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN,
TOKEN_MANDATORY_POLICY_VALID_MASK): Define.
(SID_HASH_ENTRY): Define.
(struct _SID_AND_ATTRIBUTES_HASH): Define.
(struct _TOKEN_LINKED_TOKEN): Define.
(struct _TOKEN_MANDATORY_LABEL): Define.
(struct _TOKEN_MANDATORY_POLICY): Define.
(struct _TOKEN_ELEVATION): Define.
(struct _TOKEN_ACCESS_INFORMATION): Define.
(enum _TOKEN_INFORMATION_CLASS): Conditionally define new Vista token
information enumeration values.

15 years ago * cygwin-ug-net.in.sgml: Update date.
Corinna Vinschen [Wed, 18 Mar 2009 11:29:27 +0000 (11:29 +0000)]
* cygwin-ug-net.in.sgml: Update date.
* cygwinenv.sgml: Fix codepage:utf8 text in terms of setting
environment variables.
* new-features.sgml: New file describing new Cygwin 1.7 features.
Layout is preliminiary only.
* overview.sgml: Insert content of new-features.sgml.

15 years agoinclude/
Alan Modra [Wed, 18 Mar 2009 11:27:16 +0000 (11:27 +0000)]
include/
* alloca-conf.h: Revise based on autoconf-2.61, autoconf-2.13
documentation.
bfd/
* elf32-m68hc1x.c: Include alloca-conf.h.
* xsym.c: Likewise.
* elf64-hppa.c: Likewise.  Remove existing #if's handling alloca.
* som.c: Likewise.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
binutils/
* sysdep.h: Include alloca-conf.h instead of config.h and remove
existing #if's handling alloca.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
gas/
* as.h: Include alloca-conf.h instead of config.h and remove
existing #if's handling alloca.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
opcodes/
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* openrisc-opc.c: Regenerate.
ld/
* ld.h: Remove alloca handling.

15 years ago * overview2.sgml: Remove reference to CYGWIN=binmode.
Corinna Vinschen [Wed, 18 Mar 2009 11:05:45 +0000 (11:05 +0000)]
* overview2.sgml: Remove reference to CYGWIN=binmode.
* textbinary.sgml: Ditto.  Rephrase certain paragraphs to match
Cygwin 1.7 behaviour.  Add popen(3) and pipe(2) behaviour.  Make
quite clear that binmode is preferred.  Add *mode.o files to
description for developers.

15 years ago* ldd.cc (load_dll): Start helper program rather than ldd.exe.
Christopher Faylor [Wed, 18 Mar 2009 04:19:05 +0000 (04:19 +0000)]
* ldd.cc (load_dll): Start helper program rather than ldd.exe.
(set_entry_point_break): Rename from get_entry_point.
(print_dlls): Rename from print_dlls_and_kill_inferior.  Avoid printing
specific dll name if we're looking at a dll.
(report): Always dump dlls on process exit.  Don't allow thread creation.
Accommodate get_entry_point rename.
(start_process): Start process with DEBUG_ONLY_THIS_PROCESS.
(longopts): Eliminate "dll" option.
(main): Ditto.
* ldd.cc: Use wide character Win32 paths throughout.
(load_dll): Fix size expression (add fn) in realloc.

15 years agomerge from gcc
DJ Delorie [Wed, 18 Mar 2009 00:07:38 +0000 (00:07 +0000)]
merge from gcc

15 years ago * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
Corinna Vinschen [Tue, 17 Mar 2009 12:16:28 +0000 (12:16 +0000)]
* libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
string correctly.

15 years ago2009-03-16 Mark Mitchell <mark@codesourcery.com>
Jeff Johnston [Mon, 16 Mar 2009 20:12:30 +0000 (20:12 +0000)]
2009-03-16  Mark Mitchell  <mark@codesourcery.com>

        * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.

2009-03-16  Richard Earnshaw  <rearnsha@arm.com>

        * libc/machine/arm/strlen.c (strlen): Correctly detect
        end-of-string.
        * libc/machine/arm/strcpy.c (strcpy): Likewise.
        * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.

15 years ago2009-03-16 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 16 Mar 2009 19:26:59 +0000 (19:26 +0000)]
2009-03-16  Jeff Johnston  <jjohnstn@redhat.com>

        * m32r/m32r-stub.c: Replace with one from newer version of gdb.

15 years ago * configure.ac: Treat gdb as supported on x86_64-darwin.
Joel Brobecker [Mon, 16 Mar 2009 17:00:47 +0000 (17:00 +0000)]
    * configure.ac: Treat gdb as supported on x86_64-darwin.
        * configure: Regenerate.

15 years ago Merge from GCC:
Joseph Myers [Mon, 16 Mar 2009 13:29:49 +0000 (13:29 +0000)]
Merge from GCC:

2009-03-16  Joseph Myers  <joseph@codesourcery.com>

* configure.ac (--with-host-libstdcxx): New option.
* configure: Regenerate.

2009-01-29  Robert Millan  <rmh@aybabtu.com>

* configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
* configure: Regenerate.

2009-01-12  Sebastian Pop <sebastian.pop@amd.com>

PR tree-optimization/38515
* configure.ac (cloog-polylib): Removed.
(with_ppl, with_cloog): Test for "no".
* configure: Regenerated.

15 years agoMove changelog entry to the right file.
Andrew Stubbs [Mon, 16 Mar 2009 12:50:42 +0000 (12:50 +0000)]
Move changelog entry to the right file.

Sorry folks.

15 years ago2009-03-16 Andrew Stubbs <ams@codesourcery.com>
Andrew Stubbs [Mon, 16 Mar 2009 12:41:26 +0000 (12:41 +0000)]
2009-03-16  Andrew Stubbs  <ams@codesourcery.com>

* dwarf2.c (read_section): Always use rawsize, if available.

15 years agoinclude/elf/
Jan Kratochvil [Mon, 16 Mar 2009 09:45:33 +0000 (09:45 +0000)]
include/elf/
* common.h (AT_RANDOM): Define.

15 years ago * errno.cc (_sys_errlist): Add ESTRPIPE.
Corinna Vinschen [Sun, 15 Mar 2009 13:46:56 +0000 (13:46 +0000)]
* errno.cc (_sys_errlist): Add ESTRPIPE.

15 years ago * cygwin.din: Export wcsdup.
Corinna Vinschen [Sun, 15 Mar 2009 13:45:02 +0000 (13:45 +0000)]
* cygwin.din: Export wcsdup.
* posix.sgml: Add wcsdup to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/include/sys/errno.h (ESTRPIPE): Define.
Corinna Vinschen [Sun, 15 Mar 2009 13:41:46 +0000 (13:41 +0000)]
* libc/include/sys/errno.h (ESTRPIPE): Define.
* libc/string/strerror.c (strerror): Decode it.

15 years ago * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
Corinna Vinschen [Sun, 15 Mar 2009 13:39:07 +0000 (13:39 +0000)]
* libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
* libc/string/Makefile.am: Add wcsdup.c.
* libc/string/Makefile.in: Regenerate.
* libc/string/strings.tex: Add wcsdup documentation reference.
* libc/string/wcsdup.c: New file.

15 years ago * include/inttypes.h: Remove "l" size specifier from all 16 and 32 bit
Corinna Vinschen [Sun, 15 Mar 2009 13:29:04 +0000 (13:29 +0000)]
* include/inttypes.h: Remove "l" size specifier from all 16 and 32 bit
definitions.

15 years ago* ldd.cc (longopts): Add --dll option.
Christopher Faylor [Sat, 14 Mar 2009 18:40:59 +0000 (18:40 +0000)]
* ldd.cc (longopts): Add --dll option.
(get_module_filename): Generalized wrapper function which avoid path length
restrictions.
(load_dll): Handle special-case of inspecting a DLL.
(start_process): Accept an output parameter "isdll".  Detect when file to start
is a DLL and start a wrapper instead.
(print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing
everything before the DLL itself first appears.  (This is not strictly correct
and should be fixed eventually)
(report): Deal with DLLs.  Don't set a breakpoint for DLLs, just let captive
ldd process terminate normally.  Pass dll info to print_dlls_and_kill_inferior.
(main): Handle special-case "--dll" option by loading the DLL and exiting.

15 years ago* path.cc (warn_msdos): Don't warn about MS-DOS filenames encountered during
Christopher Faylor [Sat, 14 Mar 2009 18:35:26 +0000 (18:35 +0000)]
* path.cc (warn_msdos): Don't warn about MS-DOS filenames encountered during
initialization.

15 years ago * path.cc (from_fstab): Use wcstombs/mbstowcs instead of
Corinna Vinschen [Sat, 14 Mar 2009 14:58:05 +0000 (14:58 +0000)]
* path.cc (from_fstab): Use wcstombs/mbstowcs instead of
WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.

15 years ago * wide_path.h (class wide_path): New class to convert Windows path
Corinna Vinschen [Sat, 14 Mar 2009 14:56:20 +0000 (14:56 +0000)]
* wide_path.h (class wide_path): New class to convert Windows path
to WCHAR win32 path, including long path conversion if necessary.
* cygcheck.cc: Use class wide_path throughout to call Win32 functions
taking potentially long filenames.
(display_error): Use snprintf rather than sprintf.
(display_error_fmt): Ditto.
(dump_sysinfo): Use FindFirstFileW/FindNextFileW.
* cygpath.cc: Use class wide_path throughout to call Win32 functions
taking potentially long filenames.
(get_device_name): Raise buffer size to take long pathnames.
(get_short_paths): Convert to using GetShortPathNameW.
(get_short_name): Ditto.
(get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW.
(get_long_name): Convert to using GetLongPathNameW.
(do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX.
(do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t
Win32 path name and drop long pathname prefix if possible.
(main): Call setlocale to accommodate wide char/multibyte conversions.

15 years ago * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
Corinna Vinschen [Sat, 14 Mar 2009 12:17:19 +0000 (12:17 +0000)]
* libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
!_REENT_ONLY section.

15 years ago * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
Corinna Vinschen [Sat, 14 Mar 2009 12:14:08 +0000 (12:14 +0000)]
* libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
to stdlib.h.
* libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
* libc/stdio/mktemp.c: Explain the security risk when using
mktemp.

15 years agoinclude/coff/
Richard Sandiford [Sat, 14 Mar 2009 09:35:45 +0000 (09:35 +0000)]
include/coff/
* xcoff.h (XCOFF_EXPALL, XCOFF_EXPFULL): New flags.
(xcoff_loader_info): Add auto_export_flags.

bfd/
* bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
bfd_boolean export_defineds parameter with an unsigned int
auto_export_flags parameter.
* bfd-in2.h: Regenerate.
* xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
split out from xcoff_build_ldsyms.
(xcoff_covered_by_expall_p): New function.
(xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
but with extra code to handle -bexpfull and -bexpall.
(xcoff_mark_auto_exports): New function.
(xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
a function should be automatically exported.
(bfd_xcoff_size_dynamic_sections): Replace the export_defineds
parameter with an auto_export_flags parameter.  Update ldinfo
accordingly.  Use xcoff_mark_auto_exports to mark all automatically-
exported symbols.

ld/
* emultempl/aix.em (auto_export_flags): New variable.
(explicit_auto_export_flags): Likewise.
(OPTION_EXPALL, OPTION_EXPFULL): New enum values.
(OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
(gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
-bnoexpall and -bnoexpfull.
(gld${EMULATION_NAME}_handle_option): Handle them.
(gld${EMULATION_NAME}_before_allocation): Update the call to
bfd_size_dynamic_sections.

ld/testsuite/
* ld-powerpc/aix-export-1-all.dd, ld-powerpc/aix-export-1-full.dd,
ld-powerpc/aix-export-1a.s, ld-powerpc/aix-export-1b.s: New tests.
* ld-powerpc/aix52.exp: Run them.

15 years agoinclude/coff/
Richard Sandiford [Sat, 14 Mar 2009 09:34:26 +0000 (09:34 +0000)]
include/coff/
* internal.h (C_AIX_WEAKEXT): New macro.
(C_WEAKEXT): Use the GNU definition in the generic part of the file,
and conditionally reset it to C_AIX_WEAKEXT in the XCOFF part of
the file.
(CSECT_SYM_P): New macro.
* xcoff.h (L_WEAK): Define.
(EXTERN_SYM_P): New macro.

bfd/
* coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
check whether a symbol has csect information.
(coff_print_aux): Likewise.
* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
information for C_AIX_WEAKEXT too.
(_bfd_xcoff_swap_aux_out): Likewise.
(xcoff_reloc_type_br): Handle defweak symbols too.
* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
information for C_AIX_WEAKEXT too.
(_bfd_xcoff64_swap_aux_out): Likewise.
(xcoff64_reloc_type_br): Handle defweak symbols too.
* coffgen.c (coff_print_symbol): Handle auxillary function
information for C_AIX_WEAKEXT too.
* xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
instead of BSF_GLOBAL if the L_WEAK flag is set.
(xcoff_dynamic_definition_p): New function.
(xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
defines h.  Don't change h if ldsym isn't the definition.  Otherwise,
always take the symbol class from the ldsym.  Use weak bfd symbol
types for weak ldsyms.
(xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
Fix the check for whether a definition is from a shared object.
Allow redefinitions of weak symbols.
(xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
(xcoff_keep_symbol_p): Likewise.
(bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
(xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
but mark them as L_WEAK.
(xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.

gas/
* config/tc-ppc.c (ppc_frob_symbol): Add csect information for
C_AIX_WEAKEXT too.

ld/testsuite/
* ld-powerpc/aix-glink-2a.s, ld-powerpc/aix-glink-2a.ex,
ld-powerpc/aix-glink-2b.s, ld-powerpc/aix-glink-2c.s,
ld-powerpc/aix-glink-2c.ex, ld-powerpc/aix-glink-2d.s,
ld-powerpc/aix-glink-2-32.dd, ld-powerpc/aix-glink-2-64.dd,
ld-powerpc/aix-weak-1a.s, ld-powerpc/aix-weak-1b.s,
ld-powerpc/aix-weak-1-rel.hd, ld-powerpc/aix-weak-1-rel.nd,
ld-powerpc/aix-weak-1-dso.hd, ld-powerpc/aix-weak-1-dso.nd,
ld-powerpc/aix-weak-1-dso.dnd, ld-powerpc/aix-weak-1.ex,
ld-powerpc/aix-weak-2a.s, ld-powerpc/aix-weak-2a.ex,
ld-powerpc/aix-weak-2a.nd, ld-powerpc/aix-weak-2b.s,
ld-powerpc/aix-weak-2b.nd, ld-powerpc/aix-weak-2c.s,
ld-powerpc/aix-weak-2c.ex, ld-powerpc/aix-weak-2c.nd,
ld-powerpc/aix-weak-2c.od, ld-powerpc/aix-weak-3a.s,
ld-powerpc/aix-weak-3a.ex, ld-powerpc/aix-weak-3b.s,
ld-powerpc/aix-weak-3b.ex, ld-powerpc/aix-weak-3-32.d,
ld-powerpc/aix-weak-3-32.dd, ld-powerpc/aix-weak-3-64.d,
ld-powerpc/aix-weak-3-64.dd: New tests.
* ld-powerpc/aix52.exp: Run them.  Replace tmp/aix-* with
tmp/aix64-* in 64-bit ld options.

15 years agoinclude/coff/
Richard Sandiford [Sat, 14 Mar 2009 09:33:38 +0000 (09:33 +0000)]
include/coff/
* xcoff.h (XCOFF_ALLOCATED): New flag.

bfd/
* xcofflink.c (xcoff_mark): When walking the relocations,
only mark the target symbol or the target section, not both.
(xcoff_final_definition_p): New function.
(xcoff_keep_symbol_p): Use it to check whether an external XCOFF
symbol is a valid definition of the associated output symbol.
Use XCOFF_ALLOCATED to stop the same hash table entry having
two output symbols.
(bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
keeping a symbol.
(xcoff_link_input_bfd): Use xcoff_final_definition_p.

ld/testsuite/
* ld-powerpc/aix-no-dup-syms-1a.s, ld-powerpc/aix-no-dup-syms-1b.s,
ld-powerpc/aix-no-dup-syms-1.ex, ld-powerpc/aix-no-dup-syms-1.im,
ld-powerpc/aix-no-dup-syms-1-dso.dnd,
ld-powerpc/aix-no-dup-syms-1-dso.drd,
ld-powerpc/aix-no-dup-syms-1-dso.nd,
ld-powerpc/aix-no-dup-syms-1-dso.rd,
ld-powerpc/aix-no-dup-syms-1-rel.nd,
ld-powerpc/aix-no-dup-syms-1-rel.rd: New tests.
* ld-powerpc/aix52.exp: Run them.

15 years agoinclude/coff/
Richard Sandiford [Sat, 14 Mar 2009 09:17:31 +0000 (09:17 +0000)]
include/coff/
* xcoff.h (XCOFF_CALLED, XCOFF_IMPORT): Update comments.
(XCOFF_WAS_UNDEFINED): New flag.
(xcoff_link_hash_table): Add an "rtld" field.

bfd/
* coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
flag is set.  Assert that all undefined symbols are either
imported or defined by a dynamic object.
* coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
* xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
handling to all relocations.  Only set XCOFF_CALLED for function
symbols.
(xcoff_find_function): New function, split out from...
(bfd_xcoff_export_symbol) ...here.
(xcoff_set_import_path): New function, split out from...
(bfd_xcoff_import_symbol): ...here.  Remove assertion for old
meaning of XCOFF_CALLED.
(xcoff_mark_symbol): If we mark an undefined and unimported
symbol, find some way of defining it.  If the symbol is a function
descriptor, fill in its definition automatically.  If the symbol
is a function, mark its descriptor and allocate room for global
linkage code.  Otherwise mark the symbol as implicitly imported.
Move the code for creating function descriptors from...
(xcoff_build_ldsyms): ...here.  Use XCOFF_WAS_UNDEFINED to
check for symbols that were implicitly defined.
(xcoff_mark): Don't count any dynamic relocations against
function symbols.
(bfd_xcoff_size_dynamic_sections): Save the rtld parameter
in the xcoff link info.
(xcoff_link_input_bfd): Remove handling of undefined and
unexported symbols.

ld/
* emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
-berok and -bernotok control link_info.unresolved_syms_in_objects
and link_info.unresolved_syms_in_shared_libs instead of
force_make_executable.

ld/testsuite/
* ld-powerpc/aix-glink-1.ex, ld-powerpc/aix-glink-1.s,
ld-powerpc/aix-glink-1-32.dd, ld-powerpc/aix-glink-1-64.dd,
ld-powerpc/aix-glink-1-32.d, ld-powerpc/aix-glink-1-64.d: New tests.
* ld-powerpc/aix52.exp: Run them.

15 years ago * gendef: Remove STABS directives.
Corinna Vinschen [Sat, 14 Mar 2009 09:14:47 +0000 (09:14 +0000)]
* gendef: Remove STABS directives.

15 years ago* ldd.cc: Rework to detect missing DLLs.
Christopher Faylor [Sat, 14 Mar 2009 06:46:00 +0000 (06:46 +0000)]
* ldd.cc: Rework to detect missing DLLs.
(start_process): Change to expect windows filename as input.
(tocyg): New function - convert cygwin fn to windows fn.
(print_dlls_and_kill_inferior): Accept extra argument denoting whether to open
input and look for nonexistent DLLs.  Use tocyg to convert filename and pass it
to start_process.
(report): Flag when an DLL-not-found exception occurs and pass this information
to print_dlls_and_kill_inferior.
(filelist): New structure.
(saw_file): New function.
(dump_import_directory): Ditto.
(map_file): Ditto.
(skip_dos_stub): Ditto.
(get_directory_index): Ditto.
(process_file): Ditto.

15 years agoinclude/ChangeLog
Dave Korn [Sat, 14 Mar 2009 03:30:26 +0000 (03:30 +0000)]
include/ChangeLog
2009-03-12  Dave Korn  <dave.korn.cygwin@gmail.com>

* coff/internal.h (struct internal_extra_pe_aouthdr):  Correct type
of DllCharacteristics flags field to unsigned.
* coff/pe.h (IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_NX_COMPAT,
IMAGE_DLLCHARACTERISTICS_NO_ISOLATION,
IMAGE_DLLCHARACTERISTICS_NO_SEH,
IMAGE_DLLCHARACTERISTICS_NO_BIND,
IMAGE_DLLCHARACTERISTICS_WDM_DRIVER,
IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE):  New macros to
define flag bit values for DllCharacteristics field of PEAOUTHDR,
PEPAOUTHDR.

ld/ChangeLog
2009-03-12  Dave Korn  <dave.korn.cygwin@gmail.com>
            Danny Smith  <dannysmith@users.sourceforge.net>

* emultmpl/pe.em (pe_dll_characteristics): New variable.
(OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
New macros for options to set DllCharacteristics flag bits.
(gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
(init): Add DllCharacteristics field.
(gld_${EMULATION_NAME}_list_options): List new options.
(gld${EMULATION_NAME}_handle_option): Handle new options.
* emultmpl/pep.em (pe_dll_characteristics): New variable.
(OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
New macros for options to set DllCharacteristics flags.
(gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
(init): Add DllCharacteristics field.
(gld_${EMULATION_NAME}_list_options): List new options.
(gld${EMULATION_NAME}_handle_option): Handle new options.
* ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
no-isolation, no-seh, no-bind, wdmdriver, tsaware options.

15 years ago * mktemp.cc: Remove STABS specific link-time warning. Align copyright
Corinna Vinschen [Fri, 13 Mar 2009 20:49:42 +0000 (20:49 +0000)]
* mktemp.cc: Remove STABS specific link-time warning.  Align copyright
text to upstream.

15 years ago * flock.cc: Fix lockf copyright to latest version.
Corinna Vinschen [Fri, 13 Mar 2009 09:33:55 +0000 (09:33 +0000)]
* flock.cc: Fix lockf copyright to latest version.

15 years ago * fhandler_disk_file.cc (path_conv::isgood_inode): Move to be defined
Corinna Vinschen [Thu, 12 Mar 2009 22:03:28 +0000 (22:03 +0000)]
* fhandler_disk_file.cc (path_conv::isgood_inode): Move to be defined
earlier.
(get_ino_by_handle): Take additional path_conv argument, accommodate
throughout.  Only use FileId if isgood_inode check is true.
(fhandler_base::open_fs): Simplify setting ino due to above change.
(readdir_get_ino): Make sure to return always a non-zero inode number.
(fhandler_disk_file::readdir): Always open file in dir with
FILE_OPEN_REPARSE_POINT so as not to open wrong file.
Drop call to isgood_inode here.
* path.cc (symlink_info::check): Call fs.update in case we're fetching
file information from call to NtQueryDirectoryFile.

15 years ago * flock.cc (fhandler_disk_file::lock): Don't test file open mode in
Corinna Vinschen [Thu, 12 Mar 2009 18:30:29 +0000 (18:30 +0000)]
* flock.cc (fhandler_disk_file::lock): Don't test file open mode in
case of flock-type locks.  Explain why.

15 years ago * gethostby_helper: Fix typos in DEBUGGING case.
Corinna Vinschen [Thu, 12 Mar 2009 15:54:49 +0000 (15:54 +0000)]
* gethostby_helper: Fix typos in DEBUGGING case.

15 years ago * libc/time/time.tex (wcsftime.def): Include.
Corinna Vinschen [Thu, 12 Mar 2009 15:34:57 +0000 (15:34 +0000)]
* libc/time/time.tex (wcsftime.def):  Include.
* libc/time/wcsftime.c:  Clean up documentation a little.

15 years ago * libc/stdio/swscanf.c: Some documentation corrections.
Corinna Vinschen [Thu, 12 Mar 2009 14:30:28 +0000 (14:30 +0000)]
* libc/stdio/swscanf.c:  Some documentation corrections.

15 years ago * libc/stdio/swprintf.c (_swprintf_r, swprintf):
Corinna Vinschen [Thu, 12 Mar 2009 10:27:10 +0000 (10:27 +0000)]
* libc/stdio/swprintf.c (_swprintf_r, swprintf):
correct how terminating L'\0' is added;
change return to match standard for when output does not fit;
some corrections and enhancements to the docs.
* libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
* libc/stdio/vfwprintf.c:  some corrections to the docs and some
enhancements to comments.  (No code changes.)
* libc/time/strftime.c:  Correct some problems that made wcsftime()
not work correctly:  work properly with swprintf returns that are
different from snprintf returns, correct test vector lengths for
when sizeof(wchar_t) > 1.
* libc/stdio/sprintf.c:  Some documentation and comment corrections and
enhancements to match those done to swprintf.c.

15 years ago * cygwin.din: Export wcscasecmp, wcsncasecmp.
Corinna Vinschen [Wed, 11 Mar 2009 13:00:28 +0000 (13:00 +0000)]
* cygwin.din: Export wcscasecmp, wcsncasecmp.
* posix.sgml: Move wcscasecmp, wcsncasecmp to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
Corinna Vinschen [Wed, 11 Mar 2009 12:57:53 +0000 (12:57 +0000)]
* libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
* libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
* libc/stdio/Makefile.in: Regenerate.
* libc/string/strings.tex: Add new documentation references.
* libc/string/wcscasecmp.c: New file.
* libc/string/wcsncasecmp.c: New file.

15 years ago * cygwin.din: Export wscanf, fwscanf, swscanf, vwscanf, vfwscanf,
Corinna Vinschen [Wed, 11 Mar 2009 12:03:44 +0000 (12:03 +0000)]
* cygwin.din: Export wscanf, fwscanf, swscanf, vwscanf, vfwscanf,
vswscanf.
* posix.sgml: Move fwscanf, swscanf, vwscanf, vfwscanf, vswscanf
to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
Corinna Vinschen [Wed, 11 Mar 2009 11:53:22 +0000 (11:53 +0000)]
* libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
wscanf): Declare.
(_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
_wscanf_r): Declare.
* libc/stdio/Makefile.am: Add new wscanf files.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/fwscanf.c: New file.
* libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
__ssvfiwscanf_r): Declare.
* libc/stdio/stdio.tex: Add new documentation references.
* libc/stdio/swscanf.c: New file.
* libc/stdio/vfwscanf.c: New file.
* libc/stdio/vswscanf.c: New file.
* libc/stdio/vwscanf.c: New file.
* libc/stdio/wscanf.c: New file.

* libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
define if INTEGER_ONLY is defined.  Declare otherwise.
(__ssrefill_r): Ditto.
(_sfread_r): Ditto.

Remove static eofread/eofread1 functions and use __seofread
function instead, throughout.
* libc/stdio/local.h (__seofread): Declare.
* libc/stdio/stdio.c (__seofread): Define.

* libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
* libc/stdio/fgetws.c (_fgetws_r): Ditto.
* libc/stdio/fread.c (_fread_r): Ditto.
* libc/stdio/vfprintf.c: Ditto.
* libc/stdio/vswprintf.c: Ditto.

15 years ago * libc/machine/arm/arm_asm.h: Fix typo.
Corinna Vinschen [Tue, 10 Mar 2009 09:02:32 +0000 (09:02 +0000)]
* libc/machine/arm/arm_asm.h: Fix typo.

15 years agoinclude/opcode/
Alan Modra [Tue, 10 Mar 2009 06:53:45 +0000 (06:53 +0000)]
include/opcode/
* ppc.h (ppc_parse_cpu): Declare.
opcodes/
* ppc-dis.c: Include "opintl.h".
(struct ppc_mopt, ppc_opts): New.
(ppc_parse_cpu): New function.
(powerpc_init_dialect): Use it.
(print_ppc_disassembler_options): Dump options from ppc_opts.
Internationalize message.
gas/
* config/tc-ppc.c (parse_cpu): Delete.
(md_parse_option, ppc_machine): Use ppc_parse_cpu.
gas/testsuite/
* gas/ppc/altivec_and_spe.d (objdump): Add -Maltivec.
* gas/ppc/common.d: Adjust for -Mcom not including -Mppc.

15 years ago * fhandler.h (fhandler_socket::wait_for_events): Take additional
Corinna Vinschen [Mon, 9 Mar 2009 14:40:45 +0000 (14:40 +0000)]
* fhandler.h (fhandler_socket::wait_for_events): Take additional
parameter "dontwait".
* fhandler_socket.cc (fhandler_socket::wait_for_events): Act as if the
socket is non-blocking if dontwait is true.
(fhandler_socket::recv_internal): Use incoming MSG_DONTWAIT flag to
set the wait_for_events dontwait parameter.
(fhandler_socket::send_internal): Ditto.  Optimize code slightly.
* include/cygwin/socket.h (MSG_DONTWAIT): Define.
* include/cygwin/version.h: Bump API minor number.

15 years ago * cygwin.din: Export wcsftime.
Corinna Vinschen [Mon, 9 Mar 2009 13:22:37 +0000 (13:22 +0000)]
* cygwin.din: Export wcsftime.
* posix.sgml: Move wcsftime to SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/time/strftime.c: Adapt for dual-purpose use so not only
Corinna Vinschen [Mon, 9 Mar 2009 12:35:03 +0000 (12:35 +0000)]
* libc/time/strftime.c:  Adapt for dual-purpose use so not only
defines strftime(), but can also define wcsftime(); add optional
test package; speed up %Y handling.
* libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
indirectly by including strftime.c) and its documentation.
* libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
description to match modified description in strftime.c
* libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
so that wcsftime.o gets rebuilt when strftime changes.
* libc/time/Makefile.in:  Regenerate.
* libc/include/wchar.h (wcsftime): Declare.

15 years ago * pathnames.sgml: Try to be more clear explain raw devices.
Corinna Vinschen [Mon, 9 Mar 2009 10:23:44 +0000 (10:23 +0000)]
* pathnames.sgml: Try to be more clear explain raw devices.

15 years ago * utils.sgml: Fix typo.
Corinna Vinschen [Mon, 9 Mar 2009 09:20:38 +0000 (09:20 +0000)]
* utils.sgml: Fix typo.

15 years ago* cygcheck.cc (usage): Fix typo.
Christopher Faylor [Sun, 8 Mar 2009 21:13:26 +0000 (21:13 +0000)]
* cygcheck.cc (usage): Fix typo.

15 years ago * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
Corinna Vinschen [Fri, 6 Mar 2009 17:11:20 +0000 (17:11 +0000)]
* libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
statements in _REENT_SMALL case.  Check if _atexit is not NULL before
dereferencing it.
(_wrapup_reent): Check if _atexit is not NULL before dereferencing it.

15 years ago * cygwin.din: Export gethostbyname2.
Corinna Vinschen [Fri, 6 Mar 2009 16:31:26 +0000 (16:31 +0000)]
* cygwin.din: Export gethostbyname2.
* net.cc: define _CYGWIN_IN_H and include resolv.h.
(realloc_ent): New function.
(dup_ent): Call realloc_ent.
(memcpy4to6): New function.
(dn_length1): New function.
(gethostby_helper): New function.
(gethostbyname2): New function.
* posix.sgml: Add gethostbyname2.
* include/cygwin/version.h: Bump API minor number.
* libc/minires.c (get_options): Look for "inet6" and apply bounds
to "retry" and "retrans".
(res_ninit): Set the default options at the beginning.
(dn_expand): Fix "off by one".

15 years ago * cygwin.din: Export wprintf, fwprintf, swprintf, vwprintf, vfwprintf,
Corinna Vinschen [Fri, 6 Mar 2009 10:09:55 +0000 (10:09 +0000)]
* cygwin.din: Export wprintf, fwprintf, swprintf, vwprintf, vfwprintf,
vswprintf.  Sort.
* posix.sgml: Move fwprintf, swprintf, vwprintf, vfwprintf, vswprintf
to SUSv4 list.  Sort SUSv4 list.
* include/cygwin/version.h: Bump API minor number.

15 years ago * libc/include/stdio.h (__VALIST): Guard against multiple definition.
Corinna Vinschen [Fri, 6 Mar 2009 09:55:52 +0000 (09:55 +0000)]
* libc/include/stdio.h (__VALIST): Guard against multiple definition.
* libc/include/wchar.h: Include stdarg.h.
(__VALIST): Define conditionally.
(fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf: Declare.
(_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
 _wprintf_r): Declare.
* libc/stdio/Makefile.am: Add new files.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/fwprintf.c: New file.
* libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
(__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
and move to the __ namespace.
(__chclass, __state_table, __action_table): Declare.
* libc/stdio/stdio.tex: Add new documentation references.
* libc/stdio/swprintf.c: New file.
* libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
__sprint_r function according to compilation unit.  Use throughout.
(__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
Make externaly available.  Only define if INTEGER_ONLY is defined.
(__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
is defined.  Handle stream orientation.
(__sbprintf): Copy FILE's _flags2 member as well.
(__chclass, __state_table, __action_table): Prepend __ to name and
make externally available.
* libc/stdio/vfwprintf.c: New file.
* libc/stdio/vswprintf.c: New file.
* libc/stdio/vwprintf.c: New file.
* libc/stdio/wprintf.c: New file.

15 years ago2009-03-05 Kai Tietz <kai.tietz@onevision.com>
Chris Sutcliffe [Thu, 5 Mar 2009 14:48:38 +0000 (14:48 +0000)]
2009-03-05  Kai Tietz  <kai.tietz@onevision.com>

        * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.

15 years ago * dcrt0.cc (disable_dep): Disable. Explain why.
Corinna Vinschen [Wed, 4 Mar 2009 11:45:58 +0000 (11:45 +0000)]
* dcrt0.cc (disable_dep): Disable.  Explain why.
(dll_crt0_0): Disable calling disable_dep.  Explain why.

15 years agoinclude/elf/
Alan Modra [Wed, 4 Mar 2009 05:50:48 +0000 (05:50 +0000)]
include/elf/
* ppc.h (R_PPC_TLSGD, R_PPC_TLSLD): Add new relocs.
* ppc64.h (R_PPC64_TLSGD, R_PPC64_TLSLD): Add new relocs.
bfd/
* reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
* section.c (struct bfd_section): Add has_tls_get_addr_call.
(BFD_FAKE_SECTION): Init new flag.
* ecoff.c (bfd_debug_section): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
(ppc_elf_reloc_type_lookup): Handle new relocs.
(ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
without marker relocs.
(ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
if section has no old-style calls.
(ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
Don't try to optimize new-style __tls_get_addr call when handling
arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
relocs.
* elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
(ppc64_elf_reloc_type_lookup): Handle new relocs.
(ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
without marker relocs.
(ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
if section has no old-style calls.  Set toc_ref for new relocs as
appropriate.
(ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
Don't try to optimize new-style __tls_get_addr call when handling
arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
relocs.
gas/
* config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
have non-zero addend.
(md_assemble): Parse args of __tls_get_addr calls.
(md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
ld/testsuite/
* ld-powerpc/tlsmark.s, * ld-powerpc/tlsmark.d: New test.
* ld-powerpc/tlsmark32.s, * ld-powerpc/tlsmark32.d: New test.
* ld-powerpc/powerpc.exp: Run them.

15 years ago * net.cc: Include asm/byteorder.h.
Corinna Vinschen [Tue, 3 Mar 2009 11:44:18 +0000 (11:44 +0000)]
* net.cc: Include asm/byteorder.h.
(htonl): Move to end of file.  Add comment to explain why.  Align
definition to POSIX.  Use related macro from asm/byteorder.h.
(ntohl): Ditto.
(htons): Ditto.
(ntohs): Ditto.
* include/asm/byteorder.h: Revert previous patch.

15 years ago * include/asm/byteorder.h: Disable optimization when building
Corinna Vinschen [Tue, 3 Mar 2009 11:11:26 +0000 (11:11 +0000)]
* include/asm/byteorder.h: Disable optimization when building
Cygwin network code.

15 years ago * faq-using.xml: Rework UTF FAQ to accommodate latest setlocale
Corinna Vinschen [Tue, 3 Mar 2009 10:36:59 +0000 (10:36 +0000)]
* faq-using.xml: Rework UTF FAQ to accommodate latest setlocale
change in newlib.

15 years ago * libc/locale/locale.c (_setlocale_r): New implementation based on
Corinna Vinschen [Tue, 3 Mar 2009 09:28:45 +0000 (09:28 +0000)]
* libc/locale/locale.c (_setlocale_r): New implementation based on
FreeBSD's setlocale.
(currentlocale): New helper function.
(loadlocale): Ditto.
(__locale_charset): New function.
(__locale_msgcharset): Rename from __locale_charset.
* libc/ctype/local.h (__lc_ctype): Remove declaration.
(__locale_charset): Declare.
* libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
using __lc_ctype directly.  Only compare against the charset alone.
* libc/ctype/iswblank.c (iswblank): Ditto.
* libc/ctype/iswcntrl.c (iswcntrl): Ditto.
* libc/ctype/iswprint.c (iswprint): Ditto.
* libc/ctype/iswpunct.c (iswpunct): Ditto.
* libc/ctype/iswspace.c (iswspace): Ditto.
* libc/ctype/towlower.c (towlower): Ditto.
* libc/ctype/towupper.c (towupper): Ditto.
* libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
* libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
* libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
__locale_msgcharset instead of __locale_charset.

15 years ago * pathnames.sgml: Remove reference to managed mountpoints in mount
Corinna Vinschen [Tue, 3 Mar 2009 09:11:45 +0000 (09:11 +0000)]
* pathnames.sgml: Remove reference to managed mountpoints in mount
entry example.

15 years ago2009-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 2 Mar 2009 23:30:59 +0000 (23:30 +0000)]
2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
        charset, cast wchar to size_t in case wchar_t is signed.
        * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.

15 years ago2009-03-02 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston [Mon, 2 Mar 2009 23:20:28 +0000 (23:20 +0000)]
2009-03-02  Corinna Vinschen  <corinna@vinschen.de>

        * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
        invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
        value in case of using a singlebyte charset.

15 years ago * utils.sgml: Set example prompt to "$" throughout. Don't use "/"
Corinna Vinschen [Mon, 2 Mar 2009 10:56:19 +0000 (10:56 +0000)]
* utils.sgml: Set example prompt to "$" throughout.  Don't use "/"
as example cygdrive prefix.  Remove reference to -u and -s options.
Add an example using the -o flag.

15 years ago * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
Corinna Vinschen [Mon, 2 Mar 2009 10:47:04 +0000 (10:47 +0000)]
* mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
Add comments.

15 years agoAdd support for Score7 architecture.
Nick Clifton [Mon, 2 Mar 2009 10:33:07 +0000 (10:33 +0000)]
Add support for Score7 architecture.

15 years ago Backport from git Libtool:
Ralf Wildenhues [Sun, 1 Mar 2009 18:57:16 +0000 (18:57 +0000)]
Backport from git Libtool:

2009-01-19  Robert Millan  <rmh@aybabtu.com>
Support GNU/kOpenSolaris.
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
GNU/kOpenSolaris.

binutils/
* configure: Regenerate.

opcodes/
* configure: Regenerate.

bfd/
* configure: Regenerate.

gas/
* configure: Regenerate.

gprof/
* configure: Regenerate.

ld/
* configure: Regenerate.

15 years ago* dtable.cc (dtable::select_read): Add ability to override fh.
Christopher Faylor [Fri, 27 Feb 2009 00:34:40 +0000 (00:34 +0000)]
* dtable.cc (dtable::select_read): Add ability to override fh.
* fhandler.h (fhandler_fifo::select_read): Declare new function.
(fhandler_fifo::select_write): Ditto.
(fhandler_fifo::select_except): Ditto.
* select.cc (peek_pipe): Treat certain classes of pipe errors as "no data".
(fhandler_fifo::select_read): Define new function.
(fhandler_fifo::select_write): Ditto.
(fhandler_fifo::select_except): Ditto.
* shared_info.h (CURR_SHARED_MAGIC): Update.

15 years agogas/
Peter Bergner [Thu, 26 Feb 2009 22:07:33 +0000 (22:07 +0000)]
gas/
* config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63",
"f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63".
(parse_cpu): Extend -mpower7 to accept power7 and isel instructions.

gas/testsuite/
* gas/ppc/e500mc.d ("wait", "waitsrv", "waitimpl"): Add tests.
* gas/ppc/e500mc.s: Likewise.
* gas/ppc/power6.d ("cdtbcd", "cbcdtd", "addg6s"): Add tests.
* gas/ppc/power6.s: Likewise.
* gas/ppc/power7.d ("lfdpx", "mffgpr", "mftgpr"): Remove invalid tests.
("wait", "waitsrv", "waitimpl", "divwe", "divwe.", "divweo", "divweo.",
"divweu", "divweu.", "divweuo", "divweuo.", "bpermd", "popcntw",
"popcntd", "ldbrx", "stdbrx", "lfiwzx", "lfiwzx", "fcfids", "fcfids.",
"fcfidus", "fcfidus.", "fctiwu", "fctiwu.", "fctiwuz", "fctiwuz.",
"fctidu", "fctidu.", "fctiduz", "fctiduz.", "fcfidu", "fcfidu.",
"ftdiv", "ftdiv", "ftsqrt", "ftsqrt", "dcbtt", "dcbtstt", "dcffix",
"dcffix.", "lbarx", "lbarx", "lbarx", "lharx", "lharx", "lharx",
"stbcx.", "sthcx.", "fre", "fre.", "fres", "fres.", "frsqrte",
"frsqrte.", "frsqrtes", "frsqrtes.", "isel"): Add tests.
* gas/ppc/power7.s: Likewise.
* gas/ppc/vsx.d: New test.
* gas/ppc/vsx.s: Likewise.
* gas/ppc/ppc.exp: Run it.

include/opcode/
* ppc.h (PPC_OPCODE_POWER7): New.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Extend -Mpower7 to disassemble
the power7 and the isel instructions.
* ppc-opc.c (insert_xc6, extract_xc6): New static functions.
(insert_dm, extract_dm): Likewise.
(XB6): Update comment to include XX2 form.
(WC, XC6, SHW, DMEX, UIM, XX2, XX3RC, XX4, XX2_MASK, XX2UIM_MASK,
XX2BF_MASK, XX3BF_MASK, XX3SHW_MASK, XX4_MASK, XWC_MASK, POWER7): New.
(RemoveXX3DM): Delete.
(powerpc_opcodes): <"lfdp", "lfdpx", "mcrxr", "mftb", "mffgpr",
"mftgpr">: Deprecate for POWER7.
<"fres", "fres.", "frsqrtes", "frsqrtes.", "fre", "fre.", "frsqrte",
"frsqrte.">: Deprecate the three operand form and enable the two
operand form for POWER7 and later.
<"wait">: Extend to accept optional parameter.  Enable for POWER7.
<"waitsrv", "waitimpl">: Add extended opcodes.
<"ldbrx", "stdbrx">: Enable for POWER7.
<"cdtbcd", "cbcdtd", "addg6s">: Add POWER6 opcodes.
<"bpermd", "dcbtstt", "dcbtt", "dcffix.", "dcffix", "divde.", "divde",
"divdeo.", "divdeo", "divdeu.", "divdeu", "divdeuo.", "divdeuo",
"divwe.", "divwe", "divweo.", "divweo", "divweu.", "divweu", "divweuo.",
"divweuo", "fcfids.", "fcfids", "fcfidu.", "fcfidu", "fcfidus.",
"fcfidus", "fctidu.", "fctidu", "fctiduz.", "fctiduz", "fctiwu.",
"fctiwu", "fctiwuz.", "fctiwuz", "ftdiv", "ftsqrt", "lbarx", "lfiwzx",
"lharx", "popcntd", "popcntw", "stbcx.", "sthcx.">: Add POWER7 opcodes.
<"lxsdux", "lxsdx", "lxvdsx", "lxvw4ux", "lxvw4x", "stxsdux", "stxsdx",
"stxvw4ux", "stxvw4x", "xsabsdp", "xsadddp", "xscmpodp", "xscmpudp",
"xscpsgndp", "xscvdpsp", "xscvdpsxds", "xscvdpsxws", "xscvdpuxds",
"xscvdpuxws", "xscvspdp", "xscvsxddp", "xscvuxddp", "xsdivdp",
"xsmaddadp", "xsmaddmdp", "xsmaxdp", "xsmindp", "xsmsubadp",
"xsmsubmdp", "xsmuldp", "xsnabsdp", "xsnegdp", "xsnmaddadp",
"xsnmaddmdp", "xsnmsubadp", "xsnmsubmdp", "xsrdpi", "xsrdpic",
"xsrdpim", "xsrdpip", "xsrdpiz", "xsredp", "xsrsqrtedp", "xssqrtdp",
"xssubdp", "xstdivdp", "xstsqrtdp", "xvabsdp", "xvabssp", "xvadddp",
"xvaddsp", "xvcmpeqdp.", "xvcmpeqdp", "xvcmpeqsp.", "xvcmpeqsp",
"xvcmpgedp.", "xvcmpgedp", "xvcmpgesp.", "xvcmpgesp", "xvcmpgtdp.",
"xvcmpgtdp", "xvcmpgtsp.", "xvcmpgtsp", "xvcpsgnsp", "xvcvdpsp",
"xvcvdpsxds", "xvcvdpsxws", "xvcvdpuxds", "xvcvdpuxws", "xvcvspdp",
"xvcvspsxds", "xvcvspsxws", "xvcvspuxds", "xvcvspuxws", "xvcvsxddp",
"xvcvsxdsp", "xvcvsxwdp", "xvcvsxwsp", "xvcvuxddp", "xvcvuxdsp",
"xvcvuxwdp", "xvcvuxwsp", "xvdivdp", "xvdivsp", "xvmaddadp",
"xvmaddasp", "xvmaddmdp", "xvmaddmsp", "xvmaxdp", "xvmaxsp",
"xvmindp", "xvminsp", "xvmovsp", "xvmsubadp", "xvmsubasp", "xvmsubmdp",
"xvmsubmsp", "xvmuldp", "xvmulsp", "xvnabsdp", "xvnabssp", "xvnegdp",
"xvnegsp", "xvnmaddadp", "xvnmaddasp", "xvnmaddmdp", "xvnmaddmsp",
"xvnmsubadp", "xvnmsubasp", "xvnmsubmdp", "xvnmsubmsp", "xvrdpi",
"xvrdpic", "xvrdpim", "xvrdpip", "xvrdpiz", "xvredp", "xvresp",
"xvrspi", "xvrspic", "xvrspim", "xvrspip", "xvrspiz", "xvrsqrtedp",
"xvrsqrtesp", "xvsqrtdp", "xvsqrtsp", "xvsubdp", "xvsubsp", "xvtdivdp",
"xvtdivsp", "xvtsqrtdp", "xvtsqrtsp", "xxland", "xxlandc", "xxlnor",
"xxlor", "xxlxor", "xxmrghw", "xxmrglw", "xxsel", "xxsldwi", "xxspltd",
"xxspltw", "xxswapd">: Add VSX opcodes.

15 years ago2009-02-26 Brooks Moses <brooks@codesourcery.com>
Jeff Johnston [Thu, 26 Feb 2009 21:32:45 +0000 (21:32 +0000)]
2009-02-26  Brooks Moses  <brooks@codesourcery.com>

        * libc/machine/arm/strcpy.c: Add missing comma.

15 years agoFix character set problem with Ralf's name.
Jeff Johnston [Thu, 26 Feb 2009 21:04:59 +0000 (21:04 +0000)]
Fix character set problem with Ralf's name.

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