]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
16 years agoFix usage of recently fixed Interlocked* functions.
Eric Blake [Sat, 12 Jul 2008 18:09:17 +0000 (18:09 +0000)]
Fix usage of recently fixed Interlocked* functions.

* winbase.h (ilockincr, ilockdecr, ilockexch, ilockcmpexch): Add
volatile qualifier, to match Interlocked* functions.

16 years agoRevert my last change since it has not been approved.
Jie Zhang [Sat, 12 Jul 2008 08:54:12 +0000 (08:54 +0000)]
Revert my last change since it has not been approved.

16 years ago bfd/
Jie Zhang [Fri, 11 Jul 2008 19:24:39 +0000 (19:24 +0000)]
bfd/
* elf.c (_bfd_elf_map_sections_to_segments): Don't put
executable sections into the same segment with other
read only sections if --sep-code.
* elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
(elf32_bfin_data_in_l1): New variable.
(elf32_bfin_final_write_processing): New.
(elf32_bfin_special_sections[]): New.
(elf_backend_final_write_processing): Define.
(elf_backend_special_sections): Define.

binutils/
* readelf.c (get_machine_flags): Deal with Blackfin specific
flags.

include/
* bfdlink.h (struct bfd_link_info): Add sep_code member
variable.
* elf/bfin.h (EF_BFIN_CODE_IN_L1): Define.
(EF_BFIN_DATA_IN_L1): Define.

ld/
* Makefile.am (eelf32bfin.c): Depend on bfin.em.
(eelf32bfinfd.c): Likewise.
* Makefile.in: Regenerate.
* gen-doc.texi: Set Blackfin.
* ld.texinfo: Document --sep-code and Blackfin specific
options.
* ldmain.c (main): Initialize link_info.sep_code.
* lexsup.c (enum option_values): Add OPTION_SEP_CODE.
(ld_options[]): Add --sep-code.
(parse_args): Deal with --sep-code.
* emulparams/bfin.sh (EXTRA_EM_FILE): Define.
* emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
* emultempl/bfin.em: New file.

16 years ago * select.cc (peek_pipe): Temporarily revert patch from 2008-05-30.
Corinna Vinschen [Fri, 11 Jul 2008 16:37:29 +0000 (16:37 +0000)]
* select.cc (peek_pipe): Temporarily revert patch from 2008-05-30.

16 years ago * mh-mingw (LDFLAGS): Append to rather than replacing previous
Joseph Myers [Fri, 11 Jul 2008 11:15:59 +0000 (11:15 +0000)]
* mh-mingw (LDFLAGS): Append to rather than replacing previous
value.

16 years ago * cyglsa.c (LsaApLogonUserEx): Accommodate the fact that authinf->domain
Corinna Vinschen [Fri, 11 Jul 2008 10:00:38 +0000 (10:00 +0000)]
* cyglsa.c (LsaApLogonUserEx): Accommodate the fact that authinf->domain
and authinf->username are now of type WCHAR.  Change sam_username and
sam_u size to be deifned in terms of MAX_DOMAIN_NAME_LEN instead of
INTERNET_MAX_HOST_NAME_LENGTH.

16 years ago Change length for domain buffers from INTERNET_MAX_HOST_NAME_LENGTH to
Corinna Vinschen [Fri, 11 Jul 2008 10:00:36 +0000 (10:00 +0000)]
Change length for domain buffers from INTERNET_MAX_HOST_NAME_LENGTH to
MAX_DOMAIN_NAME_LEN throughout.
* cyglsa.h (CYG_LSA_MAGIC): New value.
(cyglsa_t): Define username and domain as WCHAR arrays.
* errno.cc (errmap): Add mapping for ERROR_NONE_MAPPED.
* sec_auth.cc: Drop 'w' prefix from WCHAR string variable names where
appropriate.
(extract_nt_dom_user): Prefer resolving by SID before resolving by
domain\name pair.
(cygwin_logon_user): Don't print cleartext password in debug output.
Change comment.
(get_user_groups): Revert calls to LookupAccountNameW to use NULL
server instead of explicit server name, according to MSDN.
(get_user_local_groups): Ditto.
(get_server_groups): Fetch domain and user name from usersid per
LookupAccountSidW instead of calling extract_nt_dom_user.
(lsaauth): Fetch domain and user name from usersid per LookupAccountSidW
instead of calling extract_nt_dom_user.
* sec_helper.cc (cygpriv): Convert to wchar_t pointer array.
(privilege_luid): Convert first parameter to  PWCHAR.
(privilege_name): Return wchar_t pointer.
(set_privileges): Accommodate debug output.
* security.h (privilege_luid): Change prototype accordingly.

16 years agoinclude/elf/
Richard Sandiford [Thu, 10 Jul 2008 19:05:28 +0000 (19:05 +0000)]
include/elf/
* mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros.

bfd/
* elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16.
(mips_elf_calculate_relocation): Likewise.
(_bfd_mips_elf_add_symbol_hook): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Likewise.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.

opcodes/
* mips-dis.c (_print_insn_mips): Use ELF_ST_IS_MIPS16.

gas/
* config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
(mips_fix_adjustable): Likewise.
(mips_frob_file_after_relocs): Likewise.

gas/testsuite/
* gas/mips/mips16-vis-1.d, gas/mips/mips16-vis-1.s: New tests.
* gas/mips/mips.exp: Run them.

16 years ago * cyglsa.c: Revamp debugging output.
Corinna Vinschen [Thu, 10 Jul 2008 18:05:03 +0000 (18:05 +0000)]
* cyglsa.c: Revamp debugging output.
(LsaApInitializePackage): Open debugging output file here.
(LsaApLogonUserEx): Replace LsaApLogonUser.  Add debugging output.
Create machine name for accounting.  Add (disabled) code to fetch
a token from GetAuthDataForUser/ConvertAuthDataToToken.
* cyglsa.din: Relace LsaApLogonUser with LsaApLogonUserEx.

16 years ago * cyglsa.h (SECURITY_STRING): Define.
Corinna Vinschen [Thu, 10 Jul 2008 18:01:25 +0000 (18:01 +0000)]
* cyglsa.h (SECURITY_STRING): Define.
(enum _SECPKG_NAME_TYPE): Define.
(struct _SECPKG_CALL_INFO): Define.
(struct _LSA_SECPKG_FUNCS): Extend to full size.  Define unused
functions lazily.
(cygprf_t): Define.
* sec_auth.cc (lsaauth): Use actual primary group if no admins group.
Add (disabled) code to fetch token from profil data.

16 years ago * sec_auth.cc (verify_token): Allow builtin groups missing in a token
Corinna Vinschen [Wed, 9 Jul 2008 15:45:08 +0000 (15:45 +0000)]
* sec_auth.cc (verify_token): Allow builtin groups missing in a token
and it's still valid.  Explain why.

16 years ago * mkgroup.c: Use statically linked functions throughout, except for
Corinna Vinschen [Wed, 9 Jul 2008 14:32:29 +0000 (14:32 +0000)]
* mkgroup.c: Use statically linked functions throughout, except for
DsGetDcNameW.  Reformat.  Convert to use WCHAR for names throughout.
Use defines instead of constants throughout.
(MAX_SID_LEN): Define.
(load_netapi): Just load DsGetDcNameW pointer.
(psx_dir): Remove.
(uni2ansi): Remove.
(enum_local_users): Take server name and use in Net... call.
(DBGSID): Define datastructure.
(MAX_BUILTIN_SIDS): Define.
(builtin_sid_list): Define global sid list.
(builtin_sid_cnt): Define counter for global sid list.
(enum_local_groups): Take server name and use in Net... and Lookup...
calls.  Take offset argument.  Use MAX_PREFERRED_LENGTH in call to
NetLocalGroupEnum.  Check for duplicate builtin groups.
(enum_users): Take server name and use in Net... call.
(usage): Change text slightly.
(print_version): Fix copyright.
(main): Call enum_local_groups for domains as well.
* mkpasswd.c: Use statically linked functions throughout, except for
DsGetDcNameW.  Reformat.  Convert to use WCHAR for names throughout.
Use defines instead of constants throughout.
(MAX_SID_LEN): Define.
(load_netapi): Just load DsGetDcNameW pointer.
(uni2ansi): Use wcstombs.
(current_user): Replace "unused_by_nt/2000/xp" by
just "unused".
(enum_users): Ditto.
(print_version): Fix copyright.

16 years ago * autoload.cc (DsGetDcNameW): Replace DsGetDcNameA.
Corinna Vinschen [Wed, 9 Jul 2008 11:58:38 +0000 (11:58 +0000)]
* autoload.cc (DsGetDcNameW): Replace DsGetDcNameA.
* dcrt0.cc (child_info_spawn::handle_spawn): Drop artificial
supplementary group list from calling setgroups in parent.
* grp.cc (internal_getgroups): Drop 9x-only code.  Reformat.
* sec_auth.cc (get_logon_server): Do everything in WCHAR only.
(get_user_groups): Ditto.  Use wlogonserver in LookupAccountNameW
calls, too.
(is_group_member): Get logon server as first argument and use in call
to NetLocalGroupGetMembers.
(get_user_local_groups): Get logon server as first argument and use in
calls to NetLocalGroupEnum and LookupAccountNameW.  Revamp to work
more correctly in domain environments.
(get_server_groups): Accommodate aforementioned changed function calls.
* security.h (get_logon_server): Change prototype accordingly.
* uinfo.cc (cygheap_user::env_logsrv): Accommodate changed
get_logon_server call.

16 years ago * grp.cc (internal_getgroups): Also add integrity-enabled groups.
Corinna Vinschen [Wed, 9 Jul 2008 09:14:12 +0000 (09:14 +0000)]
* grp.cc (internal_getgroups): Also add integrity-enabled groups.

16 years ago * sec_auth.cc (verify_token): Disable code which returns false if
Corinna Vinschen [Wed, 9 Jul 2008 08:10:25 +0000 (08:10 +0000)]
* sec_auth.cc (verify_token): Disable code which returns false if
the token contains additional groups not requested by setgroups.
Explain why.

16 years ago2008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com>
Jeff Johnston [Tue, 8 Jul 2008 20:36:27 +0000 (20:36 +0000)]
2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>

        * libc/machine/mn10300/memset.S: Fix bug where return value is
        incorrectly set if number of bytes set is a multiple of 4.

16 years ago * fhandler_socket.cc (fhandler_socket::bind): Don't run explicit
Corinna Vinschen [Tue, 8 Jul 2008 20:12:46 +0000 (20:12 +0000)]
* fhandler_socket.cc (fhandler_socket::bind): Don't run explicit
local socket test in SO_REUSEADDR case on systems supporting
enhanced socket security.  Explain why.  Only call address_in_use
for AF_INET sockets.
* net.cc (cygwin_setsockopt): Don't call setsockopt to set SO_REUSEADDR
on systems supporting enhanced socket security.  Add comment.
* wincap.h (wincaps::has_enhanced_socket_security): New element.
* wincap.cc: Implement above element throughout.

16 years ago * net.cc (ipv6_inited): Make NO_COPY.
Corinna Vinschen [Tue, 8 Jul 2008 12:37:44 +0000 (12:37 +0000)]
* net.cc (ipv6_inited): Make NO_COPY.

16 years ago2008-07-07 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Mon, 7 Jul 2008 18:40:13 +0000 (18:40 +0000)]
2008-07-07  Stan Shebs  <stan@codesourcery.com>

    * dis-asm.h (struct disassemble_info): Add endian_code field.

16 years ago * safe-ctype.h: Add #include of ctype.h before redefining
Joel Brobecker [Mon, 7 Jul 2008 17:09:31 +0000 (17:09 +0000)]
    * safe-ctype.h: Add #include of ctype.h before redefining
        the ctype.h macros.

16 years ago2008-07-07 Hans-Peter Nilsson <hp@axis.com>
Jeff Johnston [Mon, 7 Jul 2008 15:51:55 +0000 (15:51 +0000)]
2008-07-07  Hans-Peter Nilsson  <hp@axis.com>

        * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
        (strncpy): Cast src to uintptr_t before checking alignment with "&".

16 years ago2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
Danny Smith [Mon, 7 Jul 2008 07:58:33 +0000 (07:58 +0000)]
2008-07-06  Gregory McGarry   <gregorymcgarry@users.sourceforge.net>

        * include/ctype.h (_imp____mb_cur_max): Correct spelling.
(_imp____mb_cur_max_dll): Likewise.

16 years ago * safe-ctype.h: Remove #error when detecting that ctype.h has been
Joel Brobecker [Fri, 4 Jul 2008 17:11:29 +0000 (17:11 +0000)]
    * safe-ctype.h: Remove #error when detecting that ctype.h has been
        included. Redefine the various macros provided by ctype.h as
        undefined variables.

16 years ago * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
Danny Smith [Fri, 4 Jul 2008 03:55:50 +0000 (03:55 +0000)]
    * include/stdio.h (swprintf, vswprintf): Guard with  #ifndef __STRICT_ANSI__
        * include/wchar.h (swprintf, vswprintf): Likewise.

16 years ago2008-07-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 2 Jul 2008 18:38:45 +0000 (18:38 +0000)]
2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/argz/argz_count.c: Include stddef.h to get size_t.
        * libc/argz/argz_extract.c: Ditto.
        * libc/argz/argz_stringify.c: Ditto.
        * libc/search/hash.h: Ditto.
        * libc/sys/linux/include/sched.h: Ditto.
        * libc/sys/linux/sys/types.h: Ditto.

16 years ago2008-07-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 2 Jul 2008 18:17:48 +0000 (18:17 +0000)]
2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
        source data is taken care of before loop unrolling.

16 years ago * path.cc (path_conv::is_binary): Fix test. Add comment.
Corinna Vinschen [Wed, 2 Jul 2008 14:00:27 +0000 (14:00 +0000)]
* path.cc (path_conv::is_binary): Fix test.  Add comment.

16 years agoAdd _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80
Keith Marshall [Tue, 1 Jul 2008 22:57:24 +0000 (22:57 +0000)]
Add _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80

16 years ago* Makefile.in: Temporarily add ability to generate pdfs.
Christopher Faylor [Tue, 1 Jul 2008 17:17:31 +0000 (17:17 +0000)]
* Makefile.in: Temporarily add ability to generate pdfs.

16 years ago* effectively.sgml: Correct subject-verb agreement, missing verb
Christopher Faylor [Fri, 27 Jun 2008 00:34:02 +0000 (00:34 +0000)]
* effectively.sgml: Correct subject-verb agreement, missing verb
(typo), preposition and (definite vs indefinite) article use.

16 years ago2008-06-25 Brandon Sneed <nivenh@sourceware.org>
Brandon Sneed [Wed, 25 Jun 2008 21:21:08 +0000 (21:21 +0000)]
2008-06-25  Brandon Sneed  <nivenh@sourceware.org>

* include/winbase.h (GetProcessHandleCount, GetSystemRegistryQuota,
GetThreadIOPendingFlag): Modified to rely on _WIN32_WINNT 0x0501 instead
of 0x0502.
Bug reported by Thomas Denk.

16 years ago2008-06-25 Brandon Sneed <nivenh@sourceware.org>
Brandon Sneed [Wed, 25 Jun 2008 20:53:31 +0000 (20:53 +0000)]
2008-06-25  Brandon Sneed  <nivenh@sourceware.org>

* include/winbase.h (InterlockedIncrement, InterlockedDecrement,
InterlockedCompareExchange, InterlockedExchange,
InterlockedCompareExchangePointer, InterlockedExchangeAdd,
InterlockedExchangePointer): Modified from PLONG to LONG volatile *.

16 years ago Fix strict-aliasing issues with _strtod_r and Storeinc.
Hans-Peter Nilsson [Wed, 25 Jun 2008 01:45:02 +0000 (01:45 +0000)]
Fix strict-aliasing issues with _strtod_r and Storeinc.
* libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
rv, rv0 from double to type U.  Use accessor macros dval, dword0
and dword1 for all accesses except for the ULtod call, where rv.i
replaces the pointer cast.
* libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
of access macros.  Tweak comment.
Remove #ifdef'd YES_ALIAS code.
(dword0, dword1, dval): Define in terms of uncast union member
access.  Ditto for _DOUBLE_IS_32BITS variants.
(Storeinc): Replace aliasing-flawed microoptimized definition with
alternative suggested in comment.  Remove now stale comment.

16 years ago * net.cc (cygwin_bindresvport_sa): Fix usage of last_used_bindresvport.
Corinna Vinschen [Tue, 24 Jun 2008 13:13:44 +0000 (13:13 +0000)]
* net.cc (cygwin_bindresvport_sa): Fix usage of last_used_bindresvport.

16 years agomerge from gcc
DJ Delorie [Tue, 24 Jun 2008 03:01:29 +0000 (03:01 +0000)]
merge from gcc

16 years ago * include/limits.h (PATH_MAX): Add comment.
Corinna Vinschen [Sat, 21 Jun 2008 20:24:45 +0000 (20:24 +0000)]
* include/limits.h (PATH_MAX): Add comment.
* include/cygwin/config.h (__FILENAME_MAX__): Define as 4096.  Add
comment.

16 years ago * libc/include/machine/setjmp.h (_longjmp): Define as function on
Corinna Vinschen [Sat, 21 Jun 2008 18:48:45 +0000 (18:48 +0000)]
* libc/include/machine/setjmp.h (_longjmp): Define as function on
Cygwin.
(_setjmp): Ditto.

16 years agoCommitted as obvious.
Danny Smith [Fri, 20 Jun 2008 03:19:15 +0000 (03:19 +0000)]
Committed as obvious.

* lib/ddk/hal.def (HalTranslateBusAddress): Correct suffix.
* lib/ddk/ntoskrnl.def (MmAllocateContiguousMemory): Correct suffix.
Bug reported by Brian Hawley.

16 years ago* faq-using.xml: Add more words about multiple cygwins.
Christopher Faylor [Fri, 20 Jun 2008 01:46:34 +0000 (01:46 +0000)]
* faq-using.xml: Add more words about multiple cygwins.

16 years ago * fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance.
Corinna Vinschen [Thu, 19 Jun 2008 19:50:47 +0000 (19:50 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance.

16 years ago* strsig.cc (strsignal): Return non-const buffer to allow building with recent
Christopher Faylor [Thu, 19 Jun 2008 00:02:13 +0000 (00:02 +0000)]
* strsig.cc (strsignal): Return non-const buffer to allow building with recent
newlib change.

16 years ago * src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.
Ian Lance Taylor [Wed, 18 Jun 2008 23:20:43 +0000 (23:20 +0000)]
* src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.

16 years ago2008-06-18 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Wed, 18 Jun 2008 20:06:36 +0000 (20:06 +0000)]
2008-06-18  Ian Lance Taylor  <iant@google.com>

* src-release (BINUTILS_SUPPORT_DIRS): Add depcomp.

16 years agoPer Posix, strsignal returns non-const char*.
Eric Blake [Wed, 18 Jun 2008 15:27:41 +0000 (15:27 +0000)]
Per Posix, strsignal returns non-const char*.

* libc/include/string.h (strsignal): Fix return type.

16 years ago common.h (EM_CR16): Correct value.
Swami Reddy M R [Wed, 18 Jun 2008 11:04:29 +0000 (11:04 +0000)]
  common.h (EM_CR16): Correct value.
  (EM_CR16): Rename to EM_CR16_OLD.

16 years ago common.h (EM_CR16): Correct value.
Swami Reddy M R [Wed, 18 Jun 2008 11:03:03 +0000 (11:03 +0000)]
   common.h (EM_CR16): Correct value.
   (EM_CR16): Rename to EM_CR16_OLD.

16 years ago * configure: Regenerate.
Ralf Wildenhues [Tue, 17 Jun 2008 23:14:40 +0000 (23:14 +0000)]
* configure: Regenerate.

config/
* override.m4: Use m4_version_prereq throughout.
(_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE): Backport from git
Autoconf: output pwd along with fatal errors, so the right
config.log file is hinted at more prominently.
(PARSE_ARGS): Push setting of ac_pwd in this diversion.
(_GCC_AUTOCONF_VERSION): New, define to 2.59 if not defined.
(_GCC_AUTOCONF_VERSION_CHECK): New macro, require use of Autoconf
version _GCC_AUTOCONF_VERSION throughout the tree.
(m4_wrap): New override, fix for Posix semantics of m4wrap.

binutils/
* configure: Regenerate.

opcodes/
* configure: Regenerate.

bfd/
* configure: Regenerate.

gas/
* configure: Regenerate.

gprof/
* configure: Regenerate.

ld/
* config.in: Regenerate.
* configure: Regenerate.

16 years ago * sec_auth.cc (DsGetDcNameA): Drop declaration.
Corinna Vinschen [Tue, 17 Jun 2008 18:54:16 +0000 (18:54 +0000)]
* sec_auth.cc (DsGetDcNameA): Drop declaration.
(DS_FORCE_REDISCOVERY): Drop definition.

16 years ago * include/dsgetdc.h (DS_FORCE_REDISCOVERY, DS_FORCE_REDISCOVERY,
Corinna Vinschen [Tue, 17 Jun 2008 18:53:21 +0000 (18:53 +0000)]
* include/dsgetdc.h (DS_FORCE_REDISCOVERY, DS_FORCE_REDISCOVERY,
DS_DIRECTORY_SERVICE_REQUIRED, DS_DIRECTORY_SERVICE_PREFERRED,
DS_GC_SERVER_REQUIRED, DS_PDC_REQUIRED, DS_BACKGROUND_ONLY,
DS_IP_REQUIRED, DS_KDC_REQUIRED, DS_TIMESERV_REQUIRED,
DS_WRITABLE_REQUIRED, DS_GOOD_TIMESERV_PREFERRED, DS_AVOID_SELF,
DS_ONLY_LDAP_NEEDED, DS_IS_FLAT_NAME, DS_IS_DNS_NAME,
DS_RETURN_DNS_NAME, DS_RETURN_FLAT_NAME): Define.
(DsGetDcNameW, DsGetDcNameA): Declare.
(DsGetDcName): Define.
* lib/netapi32.def (DsGetDcNameA, DsGetDcNameW): Export.

16 years ago2008-06-17 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Tue, 17 Jun 2008 17:28:20 +0000 (17:28 +0000)]
2008-06-17  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
        support.

16 years ago2008-06-17 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Tue, 17 Jun 2008 17:26:54 +0000 (17:26 +0000)]
2008-06-17  Ken Werner  <ken.werner@de.ibm.com>

        * spu/Makefile.in: Add new file.
        * spu/linux_syscalls.c: New file to add Linux syscall support.

16 years ago * app.c (do_scrub_chars): Do not UNGET an EOF value.
Nick Clifton [Tue, 17 Jun 2008 16:01:28 +0000 (16:01 +0000)]
    * app.c (do_scrub_chars): Do not UNGET an EOF value.

        * ti.h (GET_SCNHDR_NLNNO): Provide an alternative version of this
        macro which does not trigger an array bounds warning in gcc.
        (PUT_SCNHDR_NLNNO): Likewise.
        (GET_SCNHDR_FLAGS): Likewise.
        (PUT_SCNHDR_FLAGS): Likewise.
        (GET_SCNHDR_PAGE): Likewise.
        (PUT_SCNHDR_PAGE): Likewise.

16 years ago* spawn.cc (spawn_guts): Reinstate call to fhandler_console::need_invisible
Christopher Faylor [Tue, 17 Jun 2008 15:38:17 +0000 (15:38 +0000)]
* spawn.cc (spawn_guts): Reinstate call to fhandler_console::need_invisible
since it is required to prevent console flashing.

16 years ago * include/resolv.h (_getshort): Drop declaration.
Corinna Vinschen [Tue, 17 Jun 2008 10:05:28 +0000 (10:05 +0000)]
* include/resolv.h (_getshort): Drop declaration.
(_getlong): Ditto.

16 years ago * configure.ac: Set TOPLEVEL_CONFIGURE_ARGUMENTS early, when
Ralf Wildenhues [Mon, 16 Jun 2008 21:38:13 +0000 (21:38 +0000)]
* configure.ac: Set TOPLEVEL_CONFIGURE_ARGUMENTS early, when
"$@" is still intact with both Autoconf 2.59 and 2.62.
* configure: Regenerate.

16 years ago * Makefile.tpl: Fix comment errors.
Ralf Wildenhues [Mon, 16 Jun 2008 21:30:58 +0000 (21:30 +0000)]
* Makefile.tpl: Fix comment errors.
* Makefile.in: Regenerate.

16 years ago2008-06-16 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Mon, 16 Jun 2008 18:54:17 +0000 (18:54 +0000)]
2008-06-16  Ken Werner  <ken.werner@de.ibm.com>

* libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
* libc/machine/spu/sys/sched.h: Likewise.
* libc/machine/spu/sys/syscall.h: Likewise.

16 years ago2008-06-16 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Mon, 16 Jun 2008 18:51:10 +0000 (18:51 +0000)]
2008-06-16  Ken Werner  <ken.werner@de.ibm.com>

* libc/machine/spu/mk_syscalls: Provide .type and .size directives
in generated assembler files.
* libc/machine/spu/fprintf.S: Regenerate.
* libc/machine/spu/fscanf.S: Regenerate.
* libc/machine/spu/printf.S: Regenerate.
* libc/machine/spu/scanf.S: Regenerate.
* libc/machine/spu/snprintf.S: Regenerate.
* libc/machine/spu/sprintf.S: Regenerate.
* libc/machine/spu/sscanf.S: Regenerate.
* libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
and .size directives.
* libc/machine/spu/setjmp.S (setjmp): Likewise.
(longjmp): Likewise.

16 years ago2008-06-16 Corrin Meyer <cjmeyer@gmail.com>
Jeff Johnston [Mon, 16 Jun 2008 18:42:40 +0000 (18:42 +0000)]
2008-06-16  Corrin Meyer  <cjmeyer@gmail.com>

        * m68k/cf-crt1.c[__mcf_family_m1qe]: Don't access CACR.

16 years agoCommitted as obvious.
Danny Smith [Sat, 14 Jun 2008 09:13:38 +0000 (09:13 +0000)]
Committed as obvious.

[mingw-Bugs-1801641]
* include/wchar.h (_wfdopen): Const-ify second arg.
* include/stdio.h (_wfdopen): Likewise.
Thanks to <tdragon at users dot sourceforge net>

16 years agoinclude/opcode/
Peter Bergner [Fri, 13 Jun 2008 20:16:00 +0000 (20:16 +0000)]
include/opcode/
* ppc.h (ppc_cpu_t): New typedef.
(struct powerpc_opcode <flags>): Use it.
(struct powerpc_operand <insert, extract>): Likewise.
(struct powerpc_macro <flags>): Likewise.

gas/
* config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
(ppc_insert_operand): Likewise.
(ppc_machine): Likewise.
* config/tc-ppc.h: #include "opcode/ppc.h"
(struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
(ppc_cpu): Update extern decl.

opcodes/
* ppc-dis.c (print_insn_powerpc): Update prototye to use new
ppc_cpu_t typedef.
(struct dis_private): New.
(POWERPC_DIALECT): New define.
(powerpc_dialect): Renamed to...
(powerpc_init_dialect): This.  Update to use ppc_cpu_t and
struct dis_private.
(print_insn_big_powerpc): Update for using structure in
info->private_data.
(print_insn_little_powerpc): Likewise.
(operand_value_powerpc): Change type of dialect param to ppc_cpu_t.
(skip_optional_operands): Likewise.
(print_insn_powerpc): Likewise.  Remove initialization of dialect.
* ppc-opc.c (extract_bat, extract_bba, extract_bdm, extract_bdp,
extract_bo, extract_boe, extract_fxm, extract_mb6, extract_mbe,
extract_nb, extract_nsi, extract_rbs, extract_sh6, extract_spr,
extract_sprg, extract_tbr insert_bat, insert_bba, insert_bdm,
insert_bdp, insert_bo, insert_boe, insert_fxm, insert_mb6, insert_mbe,
insert_nsi, insert_ral, insert_ram, insert_raq, insert_ras, insert_rbs,
insert_sh6, insert_spr, insert_sprg, insert_tbr): Change the dialect
param to be of type ppc_cpu_t.  Update prototype.

16 years ago * mount.cc (mount_info::get_cygdrive_info): Fix usage of user and
Corinna Vinschen [Fri, 13 Jun 2008 15:22:59 +0000 (15:22 +0000)]
* mount.cc (mount_info::get_cygdrive_info): Fix usage of user and
system arguments.  Strip trailing slash from path for backward
compatibility.

16 years ago * configure.ac (arm*-*-linux-gnueabi): Don't disable building
Julian Brown [Fri, 13 Jun 2008 13:05:13 +0000 (13:05 +0000)]
* configure.ac (arm*-*-linux-gnueabi): Don't disable building
    of libobjc for ARM EABI Linux.
    * configure: Regenerate.

16 years ago * mips.h: Document new field descriptors +Q.
Nick Clifton [Thu, 12 Jun 2008 21:44:53 +0000 (21:44 +0000)]
    * mips.h: Document new field descriptors +Q.
        (OP_SH_SEQI, OP_MASK_SEQI): New bit mask and shift count for SEQI.

opcodes/

        * mips-dis.c (print_insn_args): Handle field descriptor +Q.
        * mips-opc.c (mips_builtin_opcodes): Add Octeon instructions seq,
        seqi, sne and snei.

gas/

        * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
        (mips_ip): Likewise.
        (macro_build): Likewise.
        (CPU_HAS_SEQ): New macro.
        (macro2) <M_SEQ_I, M_SNE_I>: Use it.  Emit seq/sne and seqi/snei.

gas/testsuite/

        * gas/mips/octeon.s, gas/mips/octeon.d: Add tests for seq* and sne*.
        * gas/mips/octeon-ill.s, gas/mips/octeon-ill.s: Add tests for seqi
        and snei.

16 years ago* common.h (EM_M32C_NEW): Rename to EM_M32C.
DJ Delorie [Thu, 12 Jun 2008 19:49:47 +0000 (19:49 +0000)]
* common.h (EM_M32C_NEW): Rename to EM_M32C.
(EM_M32C): Rename to EM_M32C_OLD.

* elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD.

* readelf.c (guess_is_rela): Add EM_M32C_OLD.
(dump_relocations): Likewise.
(process_section_headers): Likewise.
(is_32bit_abs_reloc): Likewise.
(is_16bit_abs_reloc): Likewise.

16 years ago2008-06-12 David S. Miller <davem@davemloft.net>
David Edelsohn [Thu, 12 Jun 2008 17:07:34 +0000 (17:07 +0000)]
2008-06-12  David S. Miller  <davem@davemloft.net>
            David Edelsohn  <edelsohn@gnu.org>

        * configure.ac: Add powerpc*-*-* to gold supported targets.
        * configure: Regenerate.

16 years agoinclude/opcode/
Nick Clifton [Thu, 12 Jun 2008 16:14:52 +0000 (16:14 +0000)]
include/opcode/

        * mips.h: Document new field descriptors +x, +X, +p, +P, +s, +S.
        Update comment before MIPS16 field descriptors to mention MIPS16.
        (OP_SH_BBITIND, OP_MASK_BBITIND): New bit mask and shift count for
        BBIT.
        (OP_SH_CINSPOS, OP_MASK_CINSPOS, OP_SH_CINSLM1, OP_MASK_CINSLM1):
        New bit masks and shift counts for cins and exts.

gas/

        * config/tc-mips.c (validate_mips_insn): Handle field descriptors
        +x, +X, +p, +P, +s, +S.
        (mips_ip): Likewise.

opcodes/

        * mips-dis.c (print_insn_args): Handle field descriptors +x, +p,
        +s, +S.
        * mips-opc.c (mips_builtin_opcodes): Add Octeon instructions
        baddu, bbit*, cins*, dmul, pop, dpop, exts*, mtm*, mtp*, syncs,
        syncw, syncws, vm3mulu, vm0 and vmulu.

gas/testsuite/

        * gas/mips/octeon.s, gas/mips/octeon.d: Add tests for baddu,
        bbit*, cins*, dmul, pop, dpop, exts*, mtm*, mtp*, syncs, syncw,
        syncws, vm3mulu, vm0 and vmulu.
        * gas/mips/octeon-ill.s, gas/mips/octeon-ill.s: New test.
        * gas/mips/mips.exp: Run it.  Run octeon test with
        run_dump_test_arches.

16 years ago * fhandler.h (set_console_state_for_spawn): Drop declaration.
Corinna Vinschen [Thu, 12 Jun 2008 15:57:23 +0000 (15:57 +0000)]
* fhandler.h (set_console_state_for_spawn): Drop declaration.
* fhandler_console.cc (set_console_state_for_spawn): Remove.
(fhandler_console::open): Set console state last.  Don't set
ENABLE_PROCESSED_INPUT flag.
* spawn.cc (spawn_guts): Drop call to set_console_state_for_spawn.

16 years agoremove obsolete comment
Christopher Faylor [Thu, 12 Jun 2008 14:55:08 +0000 (14:55 +0000)]
remove obsolete comment

16 years ago * common.h: Update e_machine table.
Joseph Myers [Thu, 12 Jun 2008 12:44:01 +0000 (12:44 +0000)]
* common.h: Update e_machine table.

16 years ago2008-06-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 11 Jun 2008 22:14:54 +0000 (22:14 +0000)]
2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/machine/_default_types.h: Fix GNUC check to
        handle 4.0 and greater.

16 years ago * path.cc (get_nt_native_path): Drop considerations for DOS devices.
Corinna Vinschen [Wed, 11 Jun 2008 14:06:05 +0000 (14:06 +0000)]
* path.cc (get_nt_native_path): Drop considerations for DOS devices.
Keep relative paths relative.
(cygwin_conv_path): Don't try to skip native NT prefixes on relative
paths.

16 years ago * include/cygwin/version.h (CYGWIN_VERSION_MOUNT_REGISTRY): Bump.
Corinna Vinschen [Wed, 11 Jun 2008 09:43:59 +0000 (09:43 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_MOUNT_REGISTRY): Bump.
(CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME): Remove.
(CYGWIN_INFO_CYGDRIVE_FLAGS): Remove.
(CYGWIN_INFO_CYGDRIVE_PREFIX): Remove.
(CYGWIN_INFO_CYGDRIVE_DEFAULT_PREFIX): Add comment to differ from the
registry related defines.

16 years ago * fhandler_procnet.cc (dad_to_flags): Fix comment.
Corinna Vinschen [Wed, 11 Jun 2008 08:38:39 +0000 (08:38 +0000)]
* fhandler_procnet.cc (dad_to_flags): Fix comment.

16 years ago * fhandler_procnet.cc (get_scope): New static function to evaluate
Corinna Vinschen [Tue, 10 Jun 2008 19:58:58 +0000 (19:58 +0000)]
* fhandler_procnet.cc (get_scope): New static function to evaluate
scope.
(dad_to_flags): New static array to convert Windows DAD state to
Linux values.
(format_procnet_ifinet6): Drop asking for IfIndex, just use Ipv6IfIndex.
Use get_scope and dad_to_flags to generate more accurate linux-like
output.

16 years ago * net.cc (if_nametoindex): Fix typo in call to get_adapters_addresses.
Corinna Vinschen [Tue, 10 Jun 2008 18:15:57 +0000 (18:15 +0000)]
* net.cc (if_nametoindex): Fix typo in call to get_adapters_addresses.
(if_indextoname): Prefer IPv6 loopback device name over IPv4 loopback
device name on pre-Vista systems.
(if_nameindex): Ditto.

16 years ago * fhandler_procnet.cc (format_procnet_ifinet6): Use sprintf rather than
Corinna Vinschen [Tue, 10 Jun 2008 17:24:00 +0000 (17:24 +0000)]
* fhandler_procnet.cc (format_procnet_ifinet6): Use sprintf rather than
__small_sprintf.
* net.cc (if_nametoindex): Prefer IPv6IfIndex over IfIndex for
consistency with /proc/net/if_inet6.
(if_indextoname): Ditto.
(if_nameindex): Ditto.

16 years ago * mount.cc (mount_info::from_fstab): Read sizeof (buf) - 2 bytes.
Corinna Vinschen [Tue, 10 Jun 2008 17:17:44 +0000 (17:17 +0000)]
* mount.cc (mount_info::from_fstab): Read sizeof (buf) - 2 bytes.
Add code to handle overly long lines.

16 years ago * sec_auth.cc (lsaauth): Make returned token inheritable.
Corinna Vinschen [Tue, 10 Jun 2008 15:16:01 +0000 (15:16 +0000)]
* sec_auth.cc (lsaauth): Make returned token inheritable.

16 years ago * devices.cc: Regenerate.
Corinna Vinschen [Tue, 10 Jun 2008 14:48:24 +0000 (14:48 +0000)]
* devices.cc: Regenerate.

16 years ago2008-06-09 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Tue, 10 Jun 2008 02:13:22 +0000 (02:13 +0000)]
2008-06-09  Ken Werner  <ken.werner@de.ibm.com>

* libc/machine/spu/Makefile.am: Add new files.
* libc/machine/spu/Makefile.in: Likewise.
* libc/machine/spu/include/spu_timer.h: New file to add timer support
        using interrupts.
* libc/machine/spu/spu_clock_stop.c: Likewise.
* libc/machine/spu/spu_clock_svcs.c: Likewise.
* libc/machine/spu/spu_timer_flih.S: Likewise.
* libc/machine/spu/spu_timer_free.c: Likewise.
* libc/machine/spu/spu_timer_internal.h: Likewise.
* libc/machine/spu/spu_timer_slih.c: Likewise.
* libc/machine/spu/spu_timer_slih_reg.c: Likewise.
* libc/machine/spu/spu_timer_stop.c: Likewise.
* libc/machine/spu/spu_timer_svcs.c: Likewise.

16 years ago * sh.h (EF_SH_BFD_TABLE): Set bfd_mach_sh for EF_SH_UNKNOWN.
Kaz Kojima [Mon, 9 Jun 2008 22:20:46 +0000 (22:20 +0000)]
* sh.h (EF_SH_BFD_TABLE): Set bfd_mach_sh for EF_SH_UNKNOWN.

16 years ago2008-06-09 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Mon, 9 Jun 2008 17:26:30 +0000 (17:26 +0000)]
2008-06-09  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/strcat.c: Return value fixed.
        * libc/machine/spu/strncat.c: Likewise.

16 years ago * common.h: Change registry@caldera.com to registry@sco.com.
Joseph Myers [Mon, 9 Jun 2008 14:07:18 +0000 (14:07 +0000)]
* common.h: Change registry@caldera.com to registry@sco.com.

16 years ago* devices.in: Remove "Global" from tty device.
Christopher Faylor [Mon, 9 Jun 2008 14:01:40 +0000 (14:01 +0000)]
* devices.in: Remove "Global" from tty device.

16 years ago* signal.cc (abort): Only flush streams after signal handler.
Christopher Faylor [Mon, 9 Jun 2008 13:45:59 +0000 (13:45 +0000)]
* signal.cc (abort): Only flush streams after signal handler.

16 years ago * Makefile.def (flags_to_pass): Add LDFLAGS_FOR_BUILD.
Joseph Myers [Sun, 8 Jun 2008 16:19:22 +0000 (16:19 +0000)]
* Makefile.def (flags_to_pass): Add LDFLAGS_FOR_BUILD.
* Makefile.tpl (EXTRA_BUILD_FLAGS): Define.
(all prefix="build-"): Pass them to build-system sub-makes.
* Makefile.in: Regenerate.

config:
* config/mh-mingw (LDFLAGS): Define.

16 years agoinclude/
Alan Modra [Fri, 6 Jun 2008 06:01:53 +0000 (06:01 +0000)]
include/
* bfdlink.h (struct bfd_link_info): Add "path_separator".
bfd/
* elf32-spu.c (spu_elf_auto_overlay): Relax requirement that
file names be unique.  Specify archive:path in overlay script.
ld/
* ldlang.c (name_match): New function.
(unique_section_p, walk_wild_consider_section): Use it here.
(walk_wild_section_general): And here.
(archive_path): New function.
(walk_wild): Match archive:path filespecs.
(open_input_bfds): Don't load archive:path files.
* emultempl/spuelf.em (choose_target): Set path_separator.
* emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.

16 years ago PR driver/35916
Danny Smith [Fri, 6 Jun 2008 02:32:32 +0000 (02:32 +0000)]
PR driver/35916
* mh-mingw (CFLAGS): Add -D__USE_MINGW_ACCESS.

16 years agoAvoid precision errors in round(), lround() and llround() functions.
Keith Marshall [Tue, 3 Jun 2008 18:42:21 +0000 (18:42 +0000)]
Avoid precision errors in round(), lround() and llround() functions.

16 years ago* cygwin.sc: Remove unrequired and erroneous definition.
Christopher Faylor [Tue, 3 Jun 2008 02:22:36 +0000 (02:22 +0000)]
* cygwin.sc: Remove unrequired and erroneous definition.

16 years ago* select.cc (peek_pipe): Semi-reinstate pipe NT-special write detection.
Christopher Faylor [Fri, 30 May 2008 17:56:37 +0000 (17:56 +0000)]
* select.cc (peek_pipe): Semi-reinstate pipe NT-special write detection.

16 years agoadd missing entry
Christopher Faylor [Thu, 29 May 2008 17:09:10 +0000 (17:09 +0000)]
add missing entry

16 years ago* devices.in: Change mapping for /dev/ttyS* and /dev/com*.
Christopher Faylor [Thu, 29 May 2008 17:08:45 +0000 (17:08 +0000)]
* devices.in: Change mapping for /dev/ttyS* and /dev/com*.

16 years ago2008-05-28 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Thu, 29 May 2008 01:39:52 +0000 (01:39 +0000)]
2008-05-28  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/commctrl.h (NMLVODSTATECHANGE): Define.

        Thanks to Tim Kosse <botg at users dot sf dot net>.

16 years ago2008-05-28 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Thu, 29 May 2008 01:26:45 +0000 (01:26 +0000)]
2008-05-28  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/winnt.h (SUBLANG_TIBETAN_BHUTAN): Fix definition.

        Thanks to Nicola Di Nisio <nicoladinisio at users dot sf dot net>.

16 years agoFix bug in previous patch.
Eric Blake [Wed, 28 May 2008 14:00:39 +0000 (14:00 +0000)]
Fix bug in previous patch.

* libc/machine/i386/memset.S (memset): Mask second arg correctly.

16 years ago2008-05-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 27 May 2008 18:44:40 +0000 (18:44 +0000)]
2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/string/memset.c: Fix documented prototype to remove
        erroneous const attribute on first parameter.

16 years ago2008-05-26 Eric Blake <ebb9@byu.net>
Jeff Johnston [Mon, 26 May 2008 23:31:08 +0000 (23:31 +0000)]
2008-05-26  Eric Blake  <ebb9@byu.net>

        Optimize the generic and x86 memchr.
        * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
        Pre-align pointer so unaligned searches aren't penalized.
        * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
        operations are faster than repnz byte searches.

16 years ago2008-05-26 Eric Blake <ebb9@byu.net>
Jeff Johnston [Mon, 26 May 2008 23:23:15 +0000 (23:23 +0000)]
2008-05-26  Eric Blake  <ebb9@byu.net>

        Optimize the generic and x86 memset.
        * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
        Pre-align pointer so unaligned stores aren't penalized.
        * libc/machine/i386/memset.S (memset): [!__OPTIMIZE_SIZE__]:
        Pre-align pointer so unaligned stores aren't penalized.  Prefer
        8-byte over 4-byte alignment.  Reduce register pressure.

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