Jeff Johnston
17bfd1e083
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.
2008-07-08 20:36:27 +00:00
Corinna Vinschen
23672785ee
* 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.
2008-07-08 20:12:46 +00:00
Corinna Vinschen
b8fbf5d4c4
* net.cc (ipv6_inited): Make NO_COPY.
2008-07-08 12:37:44 +00:00
Stan Shebs
dd5e3247eb
2008-07-07 Stan Shebs <stan@codesourcery.com>
...
* dis-asm.h (struct disassemble_info): Add endian_code field.
2008-07-07 18:40:13 +00:00
Joel Brobecker
d68240794e
* safe-ctype.h: Add #include of ctype.h before redefining
...
the ctype.h macros.
2008-07-07 17:09:31 +00:00
Jeff Johnston
2adedff8b3
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 "&".
2008-07-07 15:51:55 +00:00
Danny Smith
6f6b4e11cb
2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
...
* include/ctype.h (_imp____mb_cur_max): Correct spelling.
(_imp____mb_cur_max_dll): Likewise.
2008-07-07 07:58:33 +00:00
Joel Brobecker
4261a8d107
* safe-ctype.h: Remove #error when detecting that ctype.h has been
...
included. Redefine the various macros provided by ctype.h as
undefined variables.
2008-07-04 17:11:29 +00:00
Danny Smith
608d5d8f36
* include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
...
* include/wchar.h (swprintf, vswprintf): Likewise.
2008-07-04 03:55:50 +00:00
Jeff Johnston
18a635e315
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.
2008-07-02 18:38:45 +00:00
Jeff Johnston
a9f7d0a7a7
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.
2008-07-02 18:17:48 +00:00
Corinna Vinschen
bb82bbe6ff
* path.cc (path_conv::is_binary): Fix test. Add comment.
2008-07-02 14:00:27 +00:00
Keith Marshall
278101de7f
Add _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80
2008-07-01 22:57:24 +00:00
Christopher Faylor
4534778c4c
* Makefile.in: Temporarily add ability to generate pdfs.
2008-07-01 17:17:31 +00:00
Christopher Faylor
3236e43753
* effectively.sgml: Correct subject-verb agreement, missing verb
...
(typo), preposition and (definite vs indefinite) article use.
2008-06-27 00:34:02 +00:00
Brandon Sneed
8b79fb163b
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.
2008-06-25 21:21:08 +00:00
Brandon Sneed
854c27dd8d
2008-06-25 Brandon Sneed <nivenh@sourceware.org>
...
* include/winbase.h (InterlockedIncrement, InterlockedDecrement,
InterlockedCompareExchange, InterlockedExchange,
InterlockedCompareExchangePointer, InterlockedExchangeAdd,
InterlockedExchangePointer): Modified from PLONG to LONG volatile *.
2008-06-25 20:53:31 +00:00
Hans-Peter Nilsson
5592f939b4
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.
2008-06-25 01:45:02 +00:00
Corinna Vinschen
7b3e3bfd49
* net.cc (cygwin_bindresvport_sa): Fix usage of last_used_bindresvport.
2008-06-24 13:13:44 +00:00
DJ Delorie
6b9b8ecd85
merge from gcc
2008-06-24 03:01:29 +00:00
Corinna Vinschen
3db08eeece
* include/limits.h (PATH_MAX): Add comment.
...
* include/cygwin/config.h (__FILENAME_MAX__): Define as 4096. Add
comment.
2008-06-21 20:24:45 +00:00
Corinna Vinschen
eb3f08acf8
* libc/include/machine/setjmp.h (_longjmp): Define as function on
...
Cygwin.
(_setjmp): Ditto.
2008-06-21 18:48:45 +00:00
Danny Smith
31558344b0
Committed as obvious.
...
* lib/ddk/hal.def (HalTranslateBusAddress): Correct suffix.
* lib/ddk/ntoskrnl.def (MmAllocateContiguousMemory): Correct suffix.
Bug reported by Brian Hawley.
2008-06-20 03:19:15 +00:00
Christopher Faylor
2d03477142
* faq-using.xml: Add more words about multiple cygwins.
2008-06-20 01:46:34 +00:00
Corinna Vinschen
83e80c9178
* fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance.
2008-06-19 19:50:47 +00:00
Christopher Faylor
4f1ed68c5c
* strsig.cc (strsignal): Return non-const buffer to allow building with recent
...
newlib change.
2008-06-19 00:02:13 +00:00
Ian Lance Taylor
e81e314651
* src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.
2008-06-18 23:20:43 +00:00
Ian Lance Taylor
dfd0dbafdc
2008-06-18 Ian Lance Taylor <iant@google.com>
...
* src-release (BINUTILS_SUPPORT_DIRS): Add depcomp.
2008-06-18 20:06:36 +00:00
Eric Blake
8fa475e4b1
Per Posix, strsignal returns non-const char*.
...
* libc/include/string.h (strsignal): Fix return type.
2008-06-18 15:27:41 +00:00
Swami Reddy M R
9c8883d423
common.h (EM_CR16): Correct value.
...
(EM_CR16): Rename to EM_CR16_OLD.
2008-06-18 11:04:29 +00:00
Swami Reddy M R
7f33231964
common.h (EM_CR16): Correct value.
...
(EM_CR16): Rename to EM_CR16_OLD.
2008-06-18 11:03:03 +00:00
Ralf Wildenhues
7fb8d61266
* 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.
2008-06-17 23:14:40 +00:00
Corinna Vinschen
e4278ecbd2
* sec_auth.cc (DsGetDcNameA): Drop declaration.
...
(DS_FORCE_REDISCOVERY): Drop definition.
2008-06-17 18:54:16 +00:00
Corinna Vinschen
d7d60d10a1
* 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.
2008-06-17 18:53:21 +00:00
Jeff Johnston
12b0cae7d0
2008-06-17 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
support.
2008-06-17 17:28:20 +00:00
Jeff Johnston
52ff05126a
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.
2008-06-17 17:26:54 +00:00
Nick Clifton
4055a11236
* 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.
2008-06-17 16:01:28 +00:00
Christopher Faylor
7ba4aab9b6
* spawn.cc (spawn_guts): Reinstate call to fhandler_console::need_invisible
...
since it is required to prevent console flashing.
2008-06-17 15:38:17 +00:00
Corinna Vinschen
95c9157df0
* include/resolv.h (_getshort): Drop declaration.
...
(_getlong): Ditto.
2008-06-17 10:05:28 +00:00
Ralf Wildenhues
00f8aa9cd6
* configure.ac: Set TOPLEVEL_CONFIGURE_ARGUMENTS early, when
...
"$@" is still intact with both Autoconf 2.59 and 2.62.
* configure: Regenerate.
2008-06-16 21:38:13 +00:00
Ralf Wildenhues
5edf1524df
* Makefile.tpl: Fix comment errors.
...
* Makefile.in: Regenerate.
2008-06-16 21:30:58 +00:00
Jeff Johnston
4e73927b06
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.
2008-06-16 18:54:17 +00:00
Jeff Johnston
b243d287e4
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.
2008-06-16 18:51:10 +00:00
Jeff Johnston
8ddb4e477e
2008-06-16 Corrin Meyer <cjmeyer@gmail.com>
...
* m68k/cf-crt1.c[__mcf_family_m1qe]: Don't access CACR.
2008-06-16 18:42:40 +00:00
Danny Smith
e161debaba
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>
2008-06-14 09:13:38 +00:00
Peter Bergner
bc089f5083
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.
2008-06-13 20:16:00 +00:00
Corinna Vinschen
0730461203
* mount.cc (mount_info::get_cygdrive_info): Fix usage of user and
...
system arguments. Strip trailing slash from path for backward
compatibility.
2008-06-13 15:22:59 +00:00
Julian Brown
d4ab21b1cc
* configure.ac (arm*-*-linux-gnueabi): Don't disable building
...
of libobjc for ARM EABI Linux.
* configure: Regenerate.
2008-06-13 13:05:13 +00:00
Nick Clifton
dc70030aba
* 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.
2008-06-12 21:44:53 +00:00
DJ Delorie
637fe5e44f
* 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.
2008-06-12 19:49:47 +00:00