]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
15 years agoFix isalpha(0x100000001LL) and friends on 64-bit machines.
Eric Blake [Sat, 24 Oct 2009 13:24:29 +0000 (13:24 +0000)]
Fix isalpha(0x100000001LL) and friends on 64-bit machines.

* libc/include/ctype.h (__ctype_lookup): New macro.
(isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
(isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
on 64-bit machines.

15 years ago * fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.
Corinna Vinschen [Sat, 24 Oct 2009 08:40:15 +0000 (08:40 +0000)]
* fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.

15 years ago * fhandler.cc (fhandler_base::open): Always create file with default
Corinna Vinschen [Sat, 24 Oct 2009 08:26:01 +0000 (08:26 +0000)]
* fhandler.cc (fhandler_base::open): Always create file with default
security descriptor and fix descriptor afterwards.  Change comment to
explain why.
* security.cc (alloc_sd): Drop setting the SE_DACL_PROTECTED flag.
* wincap.cc: Remove has_dacl_protect throughout.
* wincap.h: Ditto.

15 years ago cpu/
Doug Evans [Sat, 24 Oct 2009 00:17:08 +0000 (00:17 +0000)]
cpu/
* m32c.opc (opc.h): cgen-types.h -> cgen/basic-modes.h.
cgen-ops.h -> cgen/basic-ops.h.

include/opcode/
* cgen-bitset.h: Delete, moved to ../cgen/bitset.h.
* cgen.h: Update.  Improve multi-inclusion macro name.

include/cgen/
* basic-modes.h: New file.  Moved here from opcodes/cgen-types.h.
* basic-ops.h: New file.  Moved here from opcodes/cgen-ops.h.
* bitset.h: New file.  Moved here from ../opcode/cgen-bitset.h.
Update license to GPL v3.

opcodes/
* cgen-ops.h: Delete, moved to ../include/cgen/basic-ops.h.
* cgen-types.h: Delete, moved to ../include/cgen/basic-modes.h.
* cgen-bitset.c: Update.
* fr30-desc.h: Regenerate.
* frv-desc.h: Regenerate.
* ip2k-desc.h: Regenerate.
* iq2000-desc.h: Regenerate.
* lm32-desc.h: Regenerate.
* m32c-desc.h: Regenerate.
* m32c-opc.h: Regenerate.
* m32r-desc.h: Regenerate.
* mep-desc.h: Regenerate.
* mt-desc.h: Regenerate.
* openrisc-desc.h: Regenerate.
* xc16x-desc.h: Regenerate.
* xstormy16-desc.h: Regenerate.

15 years agoSync pseudo-reloc.c with cygwin/lib/
Charles Wilson [Fri, 23 Oct 2009 22:19:42 +0000 (22:19 +0000)]
Sync pseudo-reloc.c with cygwin/lib/

15 years ago2009-10-23 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 23 Oct 2009 15:06:33 +0000 (15:06 +0000)]
2009-10-23  Kai Tietz  <kai.tietz@onevision.com>

* splay-tree.h (libi_uhostptr_t): Add gcc specific
__extension__ for long long type case to silent cX9.
(libi_shostptr_t): Likewise.

15 years ago * fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
Corinna Vinschen [Fri, 23 Oct 2009 09:22:14 +0000 (09:22 +0000)]
* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
dummy file positions as on Linux.

15 years ago2009-10-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 20 Oct 2009 22:44:28 +0000 (22:44 +0000)]
2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
        that to CFLAGS.
        * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
        as it sets the same flags as we are using.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * Makefile.in: Ditto.
        * iconvdata/aclocal.m4: Ditto.
        * iconvdata/configure: Ditto.
        * iconvdata/Makefile.in: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * doc/Makefile.in: Ditto.
        * libc/aclocal.m4: Ditto.
        * libc/configure: Ditto.
        * libc/Makefile.in: Ditto.
        * libc/*Makefile.in: Ditto.
        * libc/*aclocal.m4: Ditto.
        * libc/*configure: Ditto.
        * libm/*Makefile.in: Ditto.
        * libm/*aclocal.m4: Ditto.
        * libm/*configure: Ditto.

15 years ago2009-10-16 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 20 Oct 2009 16:44:11 +0000 (16:44 +0000)]
2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
        if not __STRICT_ANSI__ or stdc version C99 or greater.
        * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
        for fseeko and ftello prototypes.

15 years ago * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
Corinna Vinschen [Tue, 20 Oct 2009 15:26:33 +0000 (15:26 +0000)]
* cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.

15 years ago * registry.cc (reg_key::get_int): Add alternative implementation
Corinna Vinschen [Tue, 20 Oct 2009 14:54:47 +0000 (14:54 +0000)]
* registry.cc (reg_key::get_int): Add alternative implementation
taking WCHAR strings.
(reg_key::set_int): Ditto.
(reg_key::get_string): Ditto.
(reg_key::set_string): Ditto.
* registry.h (struct reg_key): Add prototypes for added methods.

15 years ago * smallprint.cc (__small_vsprintf): Simplify UNICODE string handling
Corinna Vinschen [Tue, 20 Oct 2009 14:52:43 +0000 (14:52 +0000)]
* smallprint.cc (__small_vsprintf): Simplify UNICODE string handling
and allow empty strings.

15 years ago * fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a status
Corinna Vinschen [Tue, 20 Oct 2009 10:12:05 +0000 (10:12 +0000)]
* fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a status
code STATUS_NOT_SUPPORTED.  Add matching comment.

15 years ago * syscalls.cc (internal_setlocale): Only convert $PATH if there is a
Corinna Vinschen [Mon, 19 Oct 2009 19:47:15 +0000 (19:47 +0000)]
* syscalls.cc (internal_setlocale): Only convert $PATH if there is a
$PATH.

15 years agomerge from gcc
DJ Delorie [Mon, 19 Oct 2009 18:14:24 +0000 (18:14 +0000)]
merge from gcc

15 years ago * spawn.cc (av::fixup): Treat non-readable, but executable files as
Corinna Vinschen [Mon, 19 Oct 2009 08:33:00 +0000 (08:33 +0000)]
* spawn.cc (av::fixup): Treat non-readable, but executable files as
Cygwin executables.

15 years ago * uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if
Corinna Vinschen [Sun, 18 Oct 2009 09:07:13 +0000 (09:07 +0000)]
* uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if
not in a setuid condition.

15 years ago * z80.h: Store alignment requirement in section header, to allow
Arnold Metselaar [Sat, 17 Oct 2009 18:23:12 +0000 (18:23 +0000)]
* z80.h: Store alignment requirement in section header, to allow
ld to preserve alignment. Some code was copied from ti.h.

15 years agomerge from gcc
DJ Delorie [Thu, 15 Oct 2009 17:03:34 +0000 (17:03 +0000)]
merge from gcc

15 years ago * cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
Corinna Vinschen [Thu, 15 Oct 2009 11:40:02 +0000 (11:40 +0000)]
* cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
using my_wcstombs.
(get_user_folder): Remove.
(do_sysfolders): Use get_special_folder instead of get_user_folder.
Fetch system paths as WCHAR and convert using my_wcstombs.

15 years ago * faq-setup.xml (faq.setup.disk-space): Fix URL pointing to
Corinna Vinschen [Thu, 15 Oct 2009 08:46:58 +0000 (08:46 +0000)]
* faq-setup.xml (faq.setup.disk-space): Fix URL pointing to
clean_setup.pl script.

15 years ago * libc/include/wchar.h (struct tm0: Declare as incomplete type.
Corinna Vinschen [Thu, 15 Oct 2009 08:23:27 +0000 (08:23 +0000)]
* libc/include/wchar.h (struct tm0: Declare as incomplete type.

15 years ago * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
Corinna Vinschen [Thu, 15 Oct 2009 08:08:50 +0000 (08:08 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
exception for KOI8 charsets.

15 years agoinclude/
Alan Modra [Wed, 14 Oct 2009 05:54:28 +0000 (05:54 +0000)]
include/
* bfdlink.h (enum bfd_link_common_skip_ar_symbols): Rename from
bfd_link_common_skip_ar_aymbols.
(struct bfd_link_info): Here too.
bfd/
* aoutx.h (aout_link_check_ar_symbols): Typo fix.
ld/
* emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.

15 years agoConsistently use va_end.
Eric Blake [Wed, 14 Oct 2009 04:17:05 +0000 (04:17 +0000)]
Consistently use va_end.

* external.cc (cygwin_internal): Use va_end.
* fork.cc (child_copy): Likewise.
* libc/bsdlib.cc (warn, warnx, err, errx): Likewise.
* pinfo.cc (commune_request): Likewise.
* strace.cc (strace::prntf, strace_printf): Likewise.

15 years ago* libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
Eric Blake [Wed, 14 Oct 2009 04:15:25 +0000 (04:15 +0000)]
* libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
new to POSIX 2008.

15 years ago2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Jeff Johnston [Tue, 13 Oct 2009 17:31:49 +0000 (17:31 +0000)]
2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

        * libc/include/sys/signal.h: Include <sys/types.h> always.
        [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
        standards.

15 years ago * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Corinna Vinschen [Tue, 13 Oct 2009 12:08:22 +0000 (12:08 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

15 years ago * include/sys/cygwin.h: Add new cygwin_getinfo_type
Corinna Vinschen [Tue, 13 Oct 2009 10:23:31 +0000 (10:23 +0000)]
* include/sys/cygwin.h: Add new cygwin_getinfo_type
CW_SET_EXTERNAL_TOKEN.
Add new enum CW_TOKEN_IMPERSONATION, CW_TOKEN_RESTRICTED.
* cygheap.h (cyguser): New flags ext_token_is_restricted,
curr_token_is_restricted and setuid_to_restricted.
* external.cc (cygwin_internal): Add CW_SET_EXTERNAL_TOKEN.
* sec_auth.cc (set_imp_token): New function.
(cygwin_set_impersonation_token): Call set_imp_token ().
* security.h (set_imp_token): New prototype.
* spawn.cc (spawn_guts): Use CreateProcessAsUserW if restricted token
was enabled by setuid().  Do not create new window station in this case.
* syscalls.cc (seteuid32): Add handling of restricted external tokens.
Set HANDLE_FLAG_INHERIT for primary token.
(setuid32): Set setuid_to_restricted flag.
* uinfo.cc (uinfo_init): Do not reimpersonate if restricted token was
enabled by setuid ().  Initialize user.*_restricted flags.

15 years agoFix toplevel 'config.status --recheck' for --enable-lto.
Ralf Wildenhues [Tue, 13 Oct 2009 03:32:18 +0000 (03:32 +0000)]
Fix toplevel 'config.status --recheck' for --enable-lto.

/:
* configure.ac: Add 'lto' to enable_languages, not
new_enable_languages, and only if not already present.
* configure: Regenerate.

15 years agoImprove clock_gettime and utimensat resolution.
Eric Blake [Tue, 13 Oct 2009 02:26:33 +0000 (02:26 +0000)]
Improve clock_gettime and utimensat resolution.

* hires.h (hires_ms): Change initime_us to initime_ns, with 10x
more resolution.
(hires_ms::nsecs): New prototype.
(hires_ms::usecs, hires_ms::msecs, hires_ms::uptime): Adjust.
* times.cc (systime_ns): New helper function.
(hires_ms::prime): Use it for more resolution.
(hires_ms::usecs): Change to...
(hires_ms::nsecs): ...with more resolution.
(clock_gettime): Use more resolution.
(systime): Rewrite in terms of systime_ns.
(timespec_to_filetime): Rewrite math to reflect true operation.
* fhandler_disk_file.cc (utimens_fs): Use higher resolution.

15 years ago * external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
Corinna Vinschen [Mon, 12 Oct 2009 19:26:08 +0000 (19:26 +0000)]
* external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
and CW_SETERRNO cases.

15 years ago * kill.cc (main): Skip to PID loop on invalid option to handle
Corinna Vinschen [Mon, 12 Oct 2009 16:01:44 +0000 (16:01 +0000)]
* kill.cc (main): Skip to PID loop on invalid option to handle
negative pids there.

15 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
Corinna Vinschen [Mon, 12 Oct 2009 11:57:29 +0000 (11:57 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
if the original device had one, too.  Add comment.

* fhandler_socket.cc (fhandler_socket::fstat): Always return a size of
0 on sockets.

15 years ago2009-10-09 Dave Korn <dave.korn@artimi.com>
Jeff Johnston [Fri, 9 Oct 2009 18:43:12 +0000 (18:43 +0000)]
2009-10-09  Dave Korn  <dave.korn@artimi.com>

        * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
        defining struct timeval.

15 years agomerge from gcc
DJ Delorie [Fri, 9 Oct 2009 16:17:35 +0000 (16:17 +0000)]
merge from gcc

15 years ago * pathnames.sgml (pathnames-specialchars): Add control chars to the
Corinna Vinschen [Fri, 9 Oct 2009 11:19:18 +0000 (11:19 +0000)]
* pathnames.sgml (pathnames-specialchars): Add control chars to the
list.  Explain backslash exception.

15 years ago * path.cc (tfx_chars): Convert all ASCII control characters except
Corinna Vinschen [Fri, 9 Oct 2009 11:17:17 +0000 (11:17 +0000)]
* path.cc (tfx_chars): Convert all ASCII control characters except
ASCII NUL as well.  Change layout to make the conversions more clear.
Add comment.

15 years ago * include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".
Corinna Vinschen [Fri, 9 Oct 2009 08:36:21 +0000 (08:36 +0000)]
* include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".

15 years ago * libc/locale/locale.c (DEFAULT_LOCALE): New define.
Corinna Vinschen [Fri, 9 Oct 2009 08:25:28 +0000 (08:25 +0000)]
* libc/locale/locale.c (DEFAULT_LOCALE): New define.
(__default_locale): New global variable set to the default locale.
(__get_locale_env): Return __default_locale rather than fixed "C".

15 years ago2009-10-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 8 Oct 2009 16:44:10 +0000 (16:44 +0000)]
2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
        * libc/stdlib/assert.c (_assert_func): Do not specify
        __assert_func if HAVE_ASSERT_FUNC flag is set.

15 years ago2009-10-08 Jie Zhang <jie.zhang@analog.com>
Jeff Johnston [Thu, 8 Oct 2009 16:35:34 +0000 (16:35 +0000)]
2009-10-08  Jie Zhang  <jie.zhang@analog.com>

        * bfin/Makefile.in (basiccrt.o, basiccrts.o): Use
        -mcpu=bf532-any for the default multilib.

15 years ago2009-10-08 Eric Blake <ebb9@byu.net>
Jeff Johnston [Thu, 8 Oct 2009 16:26:28 +0000 (16:26 +0000)]
2009-10-08  Eric Blake  <ebb9@byu.net>

        * libc/include/getopt.h (__getopt_r, __getopt_long_r)
        (__getopt_long_only_r): Protect declarations, to avoid compiler
        warning.

15 years ago* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
Christopher Faylor [Thu, 8 Oct 2009 15:56:14 +0000 (15:56 +0000)]
* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
if we're exiting.

15 years ago* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.
Eric Blake [Thu, 8 Oct 2009 11:13:45 +0000 (11:13 +0000)]
* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.

15 years ago * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
Corinna Vinschen [Wed, 7 Oct 2009 16:45:23 +0000 (16:45 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
charset on Cygwin.

15 years agoSupport pseudo-reloc version 2
Charles Wilson [Wed, 7 Oct 2009 15:47:38 +0000 (15:47 +0000)]
Support pseudo-reloc version 2

15 years ago * syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
Corinna Vinschen [Wed, 7 Oct 2009 08:20:49 +0000 (08:20 +0000)]
* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
as well.

15 years ago * fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
Corinna Vinschen [Wed, 7 Oct 2009 07:52:30 +0000 (07:52 +0000)]
* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
* fhandler_termios.cc (fhandler_termios::tcgetpgrp): Only return
valid pgid if tty is controlling tty.  Set errno to ENOTTY and
return -1 otherwise.
(fhandler_pty_master::tcgetpgrp): New function.  Return 0 for
master side of pty if it's not the controlling tty of the process.

15 years agoSync with gcc repository.
Ian Lance Taylor [Wed, 7 Oct 2009 05:57:49 +0000 (05:57 +0000)]
Sync with gcc repository.

15 years agomerge from gcc
DJ Delorie [Wed, 7 Oct 2009 02:57:27 +0000 (02:57 +0000)]
merge from gcc

15 years agoAdd cygwin wrapper for ExitProcess and TerminateProcess.
Charles Wilson [Tue, 6 Oct 2009 21:51:17 +0000 (21:51 +0000)]
Add cygwin wrapper for ExitProcess and TerminateProcess.

15 years agoMerge from gcc repository.
Ian Lance Taylor [Tue, 6 Oct 2009 20:14:06 +0000 (20:14 +0000)]
Merge from gcc repository.

15 years ago* exceptions.cc: Move global variable sigExeced...
Christopher Faylor [Tue, 6 Oct 2009 03:39:38 +0000 (03:39 +0000)]
* exceptions.cc: Move global variable sigExeced...
* globals.cc: here.
* pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Remove now unneeded
declaration.

15 years ago * Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.
Dave Korn [Sun, 4 Oct 2009 17:48:05 +0000 (17:48 +0000)]
* Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.

15 years ago * include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.
Corinna Vinschen [Sun, 4 Oct 2009 12:28:08 +0000 (12:28 +0000)]
* include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.
_WIN32_WINNT >= 0x0500.
(DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN,
WRITE_RESTRICTED): Define.
(IsTokenRestricted): Declare for >= Win 2000.

15 years ago * syscalls.cc (internal_setlocale): Add comment.
Corinna Vinschen [Sun, 4 Oct 2009 11:32:07 +0000 (11:32 +0000)]
* syscalls.cc (internal_setlocale): Add comment.

15 years ago * faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.
Dave Korn [Sat, 3 Oct 2009 13:33:18 +0000 (13:33 +0000)]
* faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.

15 years ago * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
Corinna Vinschen [Sat, 3 Oct 2009 08:51:07 +0000 (08:51 +0000)]
* libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
value encoding.
* libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
value decoding.

15 years agomerge from gcc
DJ Delorie [Fri, 2 Oct 2009 18:22:51 +0000 (18:22 +0000)]
merge from gcc

15 years ago * dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r. Just
Corinna Vinschen [Fri, 2 Oct 2009 14:58:10 +0000 (14:58 +0000)]
* dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r.  Just
call initial_setlocale from here.
* syscalls.cc (initial_setlocale): Set internal charset and revert
application locale to "C".
(setlocale): Don't set Cygwin's internal charset here.

15 years agogas/
Peter Bergner [Fri, 2 Oct 2009 14:42:42 +0000 (14:42 +0000)]
gas/
* config/tc-ppc.c (md_show_usage): Document -m476.
* doc/c-ppc.texi (PowerPC-Opts): Document -m476.

gas/testsuite/
* gas/ppc/476.s: New test.
* gas/ppc/476.d: Likewise.
* gas/ppc/ppc.exp: Run the 476 test.

include/opcode/
* ppc.h (PPC_OPCODE_476): Define.

opcodes/
* ppc-dis.c (ppc_opts): Add "476" entry.
* ppc-opc.c (PPC476): Define.
(powerpc_opcodes): Update mnemonics where required for 476.

15 years agoinclude/aout/
Alan Modra [Fri, 2 Oct 2009 14:40:41 +0000 (14:40 +0000)]
include/aout/
* aout64.h (N_SHARED_LIB): Define as zero if not already defined.
* sun4.h (N_SHARED_LIB): Define.
* hp300hpux.h (N_SHARED_LIB): Don't define.
bfd/
* aout-cris.c (N_SHARED_LIB): Don't define.
* hp300bsd.c (N_SHARED_LIB): Don't define.
* i386bsd.c (N_SHARED_LIB): Don't define.
* i386linux.c (N_SHARED_LIB): Don't define.
* i386lynx.c (N_SHARED_LIB): Don't define.
* m68klinux.c (N_SHARED_LIB): Don't define.
* m88kmach3.c (N_SHARED_LIB): Don't define.
* mipsbsd.c (N_SHARED_LIB): Don't define.
* newsos3.c (N_SHARED_LIB): Don't define.
* pc532-mach.c (N_SHARED_LIB): Don't define.
* pdp11.c (N_SHARED_LIB): Don't define.
* sparclinux.c (N_SHARED_LIB): Don't define.
* vaxbsd.c (N_SHARED_LIB): Don't define.

15 years ago* mkpasswd.c: Properly define __progname as __declspec(dllimport).
Christopher Faylor [Fri, 2 Oct 2009 13:49:39 +0000 (13:49 +0000)]
* mkpasswd.c: Properly define __progname as __declspec(dllimport).
* mkgroup.c: Ditto.

15 years ago * setup2.sgml (setup-locale-ov): Fix typo in C+charset example.
Corinna Vinschen [Fri, 2 Oct 2009 12:35:52 +0000 (12:35 +0000)]
* setup2.sgml (setup-locale-ov): Fix typo in C+charset example.
Rephrase how the locale environment variables are evaluated.

15 years ago* dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here.
Christopher Faylor [Fri, 2 Oct 2009 06:04:57 +0000 (06:04 +0000)]
* dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here.
(check_sanity_and_sync): to here.
* path.cc (has_dot_last_component): Rewrite to detect some corner cases that
were previously uncaught.

15 years agogas/
Peter Bergner [Thu, 1 Oct 2009 19:24:48 +0000 (19:24 +0000)]
gas/
* config/tc-ppc.c (md_show_usage): Rename "ppca2" to "a2".
* doc/c-ppc.texi (PowerPC-Opts): Likewise.

gas/testsuite/
* gas/ppc/a2.d: Rename "ppca2" to "a2".

include/opcode/
* ppc.h (PPC_OPCODE_A2): Rename from PPC_OPCODE_PPCA2.

opcodes/
* ppc-opc.c (PPCA2): Use renamed mask PPC_OPCODE_A2.
* ppc-dis.c (ppc_opts): Likewise.
Rename "ppca2" to "a2".

15 years ago * new-features.sgml (ov-new1.7-file): Ctrl-X, not Ctrl-N.
Corinna Vinschen [Wed, 30 Sep 2009 09:45:01 +0000 (09:45 +0000)]
* new-features.sgml (ov-new1.7-file): Ctrl-X, not Ctrl-N.
* pathnames.sgml (pathnames-unusual): Ditto.
* setup2.sgml (setup-locale-ov): Change description according to
latest changes.
(setup-locale-how): Rewrite.
(setup-locale-console): Enable section again.  Change to reflect
recent changes.
(setup-locale-problems): Change to reflect recent changes.

15 years ago * fhandler_console.cc (beep): Move up to avoid forward declaration.
Corinna Vinschen [Wed, 30 Sep 2009 09:23:45 +0000 (09:23 +0000)]
* fhandler_console.cc (beep): Move up to avoid forward declaration.
(fhandler_console::read): Just beep on characters invalid in current
charset.  Add comment.

15 years ago* syscalls.cc (rename): Fix regression in rename("dir","d/").
Eric Blake [Wed, 30 Sep 2009 02:11:05 +0000 (02:11 +0000)]
* syscalls.cc (rename): Fix regression in rename("dir","d/").

15 years ago2009-09-29 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 29 Sep 2009 21:31:07 +0000 (21:31 +0000)]
2009-09-29  Paolo Bonzini  <bonzini@gnu.org>

Sync from gcc:
2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

* configure.ac: Update minimum MPC version to 0.7.
* configure: Regenerate.

15 years agoMake MinGW printf() "%p" format compatible with MSVCRT scanf().
Keith Marshall [Tue, 29 Sep 2009 20:43:50 +0000 (20:43 +0000)]
Make MinGW printf() "%p" format compatible with MSVCRT scanf().

15 years ago * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
Corinna Vinschen [Tue, 29 Sep 2009 19:12:28 +0000 (19:12 +0000)]
* libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
prefix.  Add some words to documentation.

15 years ago * libc/stdlib/sb_charsets.c: Throughout, translate undefined
Corinna Vinschen [Tue, 29 Sep 2009 19:11:01 +0000 (19:11 +0000)]
* libc/stdlib/sb_charsets.c: Throughout, translate undefined
characters to their corresponding Windows Unicode value.

15 years agobfd
Nick Clifton [Tue, 29 Sep 2009 14:17:13 +0000 (14:17 +0000)]
bfd
        * Makefile.am (ALL_MACHINES): Add cpu-rx.lo.
        (ALL_MACHINES_CFILES): Add cpu-rx.c.
        (BFD32_BACKENDS): Add elf32-rx.lo.
        (BFD32_BACKENDS_CFILES): Add elf32-rx.c.
        * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx.
        Export bfd_rx_arch.
        (bfd_archures_list): Add bfd_rx_arch.
        * config.bfd: Add entry for rx-*-elf.
        * configure.in: Add entries for bfd_elf32_rx_le_vec and
        bfd_elf32_rx_be_vec.
        * reloc.c: Add RX relocations.
        * targets.c: Add RX target vectors.
        * Makefile.in: Regenerate.
        * bfd-in2.h: Regenerate.
        * configure: Regenerate.
        * libbfd.h: Regenerate.
        * cpu-rx.c: New file.
        * elf32-rx.c: New file.

binutils
        * readelf.c: Add support for RX target.
        * MAINTAINERS: Add DJ and NickC as maintainers for RX.

gas
        * Makefile.am: Add RX target.
        * configure.in: Likewise.
        * configure.tgt: Likewise.
        * read.c (do_repeat_with_expander): New function.
        * read.h: Provide a prototype for do_repeat_with_expander.
        * doc/Makefile.am: Add RX target documentation.
        * doc/all.texi: Likewise.
        * doc/as.texinfo: Likewise.
        * Makefile.in: Regenerate.
        * NEWS: Mention support for RX architecture.
        * configure: Regenerate.
        * doc/Makefile.in: Regenerate.
        * config/rx-defs.h: New file.
        * config/rx-parse.y: New file.
        * config/tc-rx.h: New file.
        * config/tc-rx.c: New file.
        * doc/c-rx.texi: New file.

gas/testsuite
        * gas/rx: New directory.
        * gas/rx/*: New set of test cases.
        * gas/elf/section2.e-rx: New expected output file.
        * gas/all/gas.exp: Add support for RX target.
        * gas/elf/elf.exp: Likewise.
        * gas/lns/lns.exp: Likewise.
        * gas/macros/macros.exp: Likewise.

include
        * dis-asm.h: Add prototype for print_insn_rx.

include/elf
        * rx.h: New file.

include/opcode
        * rx.h: New file.

ld
        * Makefile.am: Add rules to build RX emulation.
        * configure.tgt: Likewise.
        * NEWS: Mention support for RX architecture.
        * Makefile.in: Regenerate.
        * emulparams/elf32rx.sh: New file.
        * emultempl/rxelf.em: New file.

opcodes
        * Makefile.am: Add RX files.
        * configure.in: Add support for RX target.
        * disassemble.c: Likewise.
        * Makefile.in: Regenerate.
        * configure: Regenerate.
        * opc2c.c: New file.
        * rx-decode.c: New file.
        * rx-decode.opc: New file.
        * rx-dis.c: New file.

15 years ago * fhandler_socket.cc (fhandler_socket::recv_internal): Always call
Corinna Vinschen [Tue, 29 Sep 2009 08:46:29 +0000 (08:46 +0000)]
* fhandler_socket.cc (fhandler_socket::recv_internal): Always call
WSARecv on SOCK_STREAM sockets.

15 years ago2009-09-28 Michael Eager <eager@eagercon.com>
Jeff Johnston [Mon, 28 Sep 2009 16:43:57 +0000 (16:43 +0000)]
2009-09-28  Michael Eager <eager@eagercon.com>

        * configure.in: Add microblaze-*-*.
        * configure: Add microblaze-*-* (not regenerated.)
        * microblaze: NEW microblaze target directory.
        * microblaze/configure.in: NEW.
        * microblaze/configure: Generate.
        * microblaze/Makefile.in: NEW.
        * microblaze/{crt0.S, crt1.S, crt2.S, crt3.S, crt4.S, crtinit.S}: NEW.
        * microblaze/{pgcrtinit.S, _program_clean.S, _program_init.S,
        sbrk.c, sim-crtinit.S, sim-pgcrtinit.S, timer.c, _exception_handler.S,
        _hw_exception_handler.S, _interrupt_handler.S, xil_malloc.c,
        nnxil_printf.c, xil_sbrk.c: NEW.
        * microblaze/xilinx.ld: NEW.

15 years ago2009-09-28 Michael Eager <eager@eagercon.com>
Jeff Johnston [Mon, 28 Sep 2009 16:42:21 +0000 (16:42 +0000)]
2009-09-28  Michael Eager <eager@eagercon.com>

        * configure.host: Add microblaze.
        * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
        * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
        * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
        _UNIX98_THREAD_MUTEX_ATTRIBUTES.
        * libc/include/sys/types.h: Treat XMK like rtems, define
        PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
        PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
        * libc/machine/configure.in: Add microblaze.
        * libc/machine/configure: Add microblaze (not regenerated).
        * libc/machine/microblaze/configure.in: NEW.
        * libc/machine/microblaze/configure: Generate.
        * libc/machine/microblaze/Makefile.am: NEW.
        * libc/machine/microblaze/Makefile.in: Generate.
        * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
        mallocr.c, longjmp.S, setjmp.S}: NEW.
        * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
        mALLOc(): return malloc value.

15 years ago * fhandler.h (class dev_console): Constify charset parameter of
Corinna Vinschen [Mon, 28 Sep 2009 12:10:32 +0000 (12:10 +0000)]
* fhandler.h (class dev_console): Constify charset parameter of
str_to_con.
* fhandler_console.cc (dev_console::con_to_str): Simplify.  Always
default to the current internal locale.
(dev_console::get_console_cp): Always use codepage 437 for alternate
charset.
(dev_console::str_to_con): Constify charset parameter.
(fhandler_console::write_normal): Always use codepage 437 for alternate
charset.  Otherwise always default to the current internal locale.
Replace ASCII SO with ASCII CAN.
* strfuncs.cc: Tweka comments according to below changes.
(sys_cp_wcstombs): Constify charset parameter.  Convert all wchar_t
values in the Unicode private use area U+F0xx to the singlebyte
counterpart.  Drop special handling creating ASCII SO sequence from
U+DCxx value.  Rearrange for performance.  Replace ASCII SO with
ASCII CAN.
(sys_cp_mbstowcs): Constify charset parameter.  Replace ASCII SO with
ASCII CAN.  Drop special case for U+DCxx ASCII SO sequences.  Always
create a replacement from the Unicode private use area U+F0xx for
invalid byte values in a multibyte sequence.  Do the same for wchar_t
values from the U+F0xx range to make them roundtrip safe.
* wchar.h (sys_cp_wcstombs): Constify charset parameter.
(sys_cp_mbstowcs): Ditto.

15 years ago * cygheap.cc (cygheap_init): Default locale.charset to "UTF-8".
Corinna Vinschen [Mon, 28 Sep 2009 10:43:49 +0000 (10:43 +0000)]
* cygheap.cc (cygheap_init): Default locale.charset to "UTF-8".
* dcrt0.cc (dll_crt0_1): Call setlocale (LC_CTYPE, "") here, just
before resetting application locale to "C".
* environ.cc (environ_init): Drop code setting locale here.
* syscalls.cc (check_codepage): Break out check for required codepage
from internal_setlocale.
(internal_setlocale): Just convert CWD and $PATH from old charset to
new charset and set internal charset.
(setlocale): Change accordingly.  Don't require LC_ALL or LC_CTYPE to
store old locale value.  Always call internal_setlocale if charset
changed due to locale environment changes.

15 years ago * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
Corinna Vinschen [Sun, 27 Sep 2009 12:21:16 +0000 (12:21 +0000)]
* libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
(lc_message_charset): Ditto.
(loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
* libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
Cygwin.
* libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
Cygwin.

15 years ago* new-features.sgml (ov-new1.7-file): Mention fexecve, execvpe.
Eric Blake [Sat, 26 Sep 2009 21:01:59 +0000 (21:01 +0000)]
* new-features.sgml (ov-new1.7-file): Mention fexecve, execvpe.

15 years agoAdd fexecve, execvpe.
Eric Blake [Sat, 26 Sep 2009 21:01:10 +0000 (21:01 +0000)]
Add fexecve, execvpe.

* exec.cc (fexecve): New function.
* cygwin.din (execvpe, fexecve): Export new fexecve and existing
execvpe.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* posix.sgml: Mention them.

15 years ago* libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
Eric Blake [Sat, 26 Sep 2009 20:59:54 +0000 (20:59 +0000)]
* libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
Add declarations.

15 years agoFix some POSIX-compliance bugs in link, rename, mkdir.
Eric Blake [Sat, 26 Sep 2009 15:51:53 +0000 (15:51 +0000)]
Fix some POSIX-compliance bugs in link, rename, mkdir.

* syscalls.cc (link): Delete obsolete comment.  Reject directories
and missing source up front.
(rename): Use correct errno for trailing '.'.  Detect empty
strings.  Allow trailing slash to newpath iff oldpath is
directory.
* dir.cc (mkdir): Reject dangling symlink with trailing slash.
* fhandler_disk_file.cc (fhandler_disk_file::link): Reject
trailing slash.
* fhandler.cc (fhandler_base::link): Match Linux errno.

15 years agomerge from gcc
DJ Delorie [Sat, 26 Sep 2009 00:01:16 +0000 (00:01 +0000)]
merge from gcc

15 years ago* libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
Eric Blake [Fri, 25 Sep 2009 23:57:09 +0000 (23:57 +0000)]
* libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
Add declarations.

15 years ago* new-features.sgml (ov-new1.7-file): Mention eaccess, euidaccess,
Eric Blake [Fri, 25 Sep 2009 23:56:18 +0000 (23:56 +0000)]
* new-features.sgml (ov-new1.7-file): Mention eaccess, euidaccess,
canonicalize_file_name, and document change in access semantics.

15 years agoProvide euidaccess, canonicalize_file_name; fix fchmodat.
Eric Blake [Fri, 25 Sep 2009 23:55:00 +0000 (23:55 +0000)]
Provide euidaccess, canonicalize_file_name; fix fchmodat.

* syscalls.cc (fchmodat): lchmod is not yet implemented.
(euidaccess): New function.
* path.cc (realpath): Update comment.
(canonicalize_file_name): New function.
* include/cygwin/stdlib.h (canonicalize_file_name): Declare it.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* cygwin.din: Export canonicalize_file_name, eaccess, euidaccess.
* posix.sgml: Mention them.

15 years ago * configure.ac: Pass any --cache-file=/dev/null option on to
Nick Clifton [Fri, 25 Sep 2009 19:25:04 +0000 (19:25 +0000)]
    * configure.ac: Pass any --cache-file=/dev/null option on to
        subconfigures.
        * configure: Regenerate.

15 years agomerge from gcc
DJ Delorie [Fri, 25 Sep 2009 19:02:00 +0000 (19:02 +0000)]
merge from gcc

15 years ago * setup2.sgml (setup-locale-problems): Fix charset names of codepages
Corinna Vinschen [Fri, 25 Sep 2009 16:42:36 +0000 (16:42 +0000)]
* setup2.sgml (setup-locale-problems): Fix charset names of codepages
936 and 949.

15 years agoFix faccessat(,0) and access() semantics.
Eric Blake [Fri, 25 Sep 2009 13:44:45 +0000 (13:44 +0000)]
Fix faccessat(,0) and access() semantics.

* fhandler.h (fhandler_base::fhaccess): Add parameter.
* security.h (check_file_access, check_registry_access): Likewise.
* security.cc (check_file_access, check_registry_access)
(check_access): Implement new parameter.
* fhandler.cc (fhandler_base::fhaccess): Likewise.
(device_access_denied): Update caller.
* syscalls.cc (access, faccessat): Update callers.
* spawn.cc (find_exec, fixup): Likewise.

15 years ago* setup2.sgml (setup-locale-problems): Document how to install
Eric Blake [Fri, 25 Sep 2009 12:27:46 +0000 (12:27 +0000)]
* setup2.sgml (setup-locale-problems): Document how to install
non-default charsets.

15 years agoinclude/
Cary Coutant [Thu, 24 Sep 2009 20:52:07 +0000 (20:52 +0000)]
include/

* dwarf2.h (DW_TAG_rvalue_reference_type, DW_TAG_template_alias):
New tags.
(DW_FORM_ref_sig8): New name for DW_FORM_sig8.
(DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr,
DW_AT_enum_class, DW_AT_linkage_name, DW_AT_GNU_guarded_by,
DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded,
DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required,
DW_AT_GNU_shared_locks_required, DW_AT_GNU_odr_signature): New
attributes.
(DW_LANG_Python): New language.

binutils/

* dwarf.c (get_TAG_name): Add missing DWARF-3 and new DWARF-4 tags.
(get_FORM_name): Add new DWARF-4 forms.
(read_and_display_attr_value): Add DW_FORM_ref_sig8, DW_LANG_Python.
(get_AT_name): Add new DWARF-4 and GNU-specific attributes.
(process_debug_info): Add do_types parameter; change all callers.
Add support for .debug_types sections.
(display_debug_types): New function.
(debug_displays): Add .debug_types section.
* readelf.c (process_section_headers): Add .debug_types section.
(display_debug_section): Simplify call to streq.

15 years ago * posix_ipc.cc (mq_open): Avoid closing the same descriptor twice in
Corinna Vinschen [Thu, 24 Sep 2009 09:25:35 +0000 (09:25 +0000)]
* posix_ipc.cc (mq_open): Avoid closing the same descriptor twice in
case of errors.
(sem_open): Ditto.

15 years ago * kernel32.cc (CreateMutexW): Use correct access mask.
Corinna Vinschen [Thu, 24 Sep 2009 09:09:45 +0000 (09:09 +0000)]
* kernel32.cc (CreateMutexW): Use correct access mask.
(CreateSemaphoreW): Ditto.

15 years ago * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
Corinna Vinschen [Wed, 23 Sep 2009 17:19:00 +0000 (17:19 +0000)]
* libc/locale/locale.c: Drop Cygwin-specific windows.h include.
(loadlocale): Call __set_charset_from_codepage with 0 codepage.

15 years ago * strfuncs.cc (__set_charset_from_codepage): Fetch current ANSI
Corinna Vinschen [Wed, 23 Sep 2009 17:13:55 +0000 (17:13 +0000)]
* strfuncs.cc (__set_charset_from_codepage): Fetch current ANSI
codepage if cp is 0.

15 years ago Fix typo.
Corinna Vinschen [Wed, 23 Sep 2009 12:01:42 +0000 (12:01 +0000)]
Fix typo.

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