Richard Sandiford
304263c612
include/opcode/
...
* mips.h (MIPS16_INSN_WRITE_SP, MIPS16_INSN_READ_31)
(MIPS16_INSN_READ_PC, MIPS16_INSN_UNCOND_BRANCH)
(MIPS16_INSN_COND_BRANCH): Delete.
opcodes/
* mips16-opc.c (UBR, CBR, RD_31, RD_PC): Redefine as INSN2_* flags.
(WR_SP): Replace with...
(MOD_SP): ...this.
(mips16_opcodes): Update accordingly.
* mips-dis.c (print_insn_mips16): Likewise.
gas/
* config/tc-mips.c (compact_branch_p, uncond_branch_p): Use the same
flags for MIPS16 and non-MIPS16 instructions.
(gpr_mod_mask): Move the INSN2_MOD_SP case outside the micromips block.
(gpr_read_mask): Use INSN2_READ_GPR_31 for MIPS16 instructions too.
(gpr_write_mask): Remove MIPS16_INSN_WRITE_SP handling.
(can_swap_branch_p, get_append_method): Use the same flags for MIPS16
and non-MIPS16 instructions. Fix formatting.
2013-08-01 20:40:23 +00:00
Christopher Faylor
5213ca6f1c
* fhandler_tty.cc: Revert accidental checkin.
...
* update-copyright: Ditto.
2013-07-31 15:19:18 +00:00
Christopher Faylor
24557e9caa
* cygheap.cc (cmalloc): Use size_t for size field.
...
(cmalloc_abort): Ditto.
(crealloc): Ditto.
(crealloc_abort): Ditto.
(ccalloc): Ditto.
(ccalloc_abort): Ditto.
* cygheap_malloc.h (HEAP_USER): Add.
(cmalloc): Use size_t for size field in declaration.
(cmalloc_abort): Ditto.
(crealloc): Ditto.
(crealloc_abort): Ditto.
(ccalloc): Ditto.
(ccalloc_abort): Ditto.
* path.cc (normalize_posix_path): Don't check existence of / or // dir in
parent dir check.
2013-07-31 14:43:05 +00:00
Corinna Vinschen
c39e8632d1
*** empty log message ***
2013-07-31 10:32:46 +00:00
Corinna Vinschen
fd5f6eb13e
* path.cc (normalize_posix_path): Don't check existence of / or // dir
...
in parent dir check.
2013-07-31 10:26:51 +00:00
Corinna Vinschen
7df2c73d5d
* Makefile.in (MINGW_LDFLAGS): Don't link against w32api libs. These
...
are only for Cygwin executables.
2013-07-31 09:58:55 +00:00
Corinna Vinschen
96b3b10abf
Fix typo
2013-07-30 16:14:34 +00:00
Corinna Vinschen
4a4b9b4813
*** empty log message ***
2013-07-30 08:06:04 +00:00
Corinna Vinschen
7e20c854cf
* Makefile.in (cyglsa.dll): Explicitely specify DLL entry point to
...
harden against gcc function and block reordering optimizations.
(cyglsa64.dll): Ditto.
2013-07-29 18:57:16 +00:00
Christopher Faylor
033fe7d87f
cygwin directory changes:
...
* environ.cc (tty_is_gone): Delete.
(known): Delete tty, add wincmdln.
* globals.cc: Reorganize list of environment bools, remove explicit =
false for slight load time optimization.
(wincmdln): New global.
* spawn.cc (child_info_spawn::worker): Honor wincmdln.
doc directory changes:
* new-features.sgml (ov-new1.7.23): Add new section. Mention wincmdln.
* cygwinenv.xml: Mention wincmdln.
2013-07-26 17:28:00 +00:00
Corinna Vinschen
a30f955d28
* gcc.xml (gcc-64): Fix example.
2013-07-25 09:09:14 +00:00
Corinna Vinschen
a90f2ca74f
* gcc.xml (gcc-default: Rename from gcc-cons. Change title.
...
(gcc-64): New section explaininig differences in programming for
64 bit Cygwin.
(gcc-gui): Simplify description and aim at UNIX/Linux developers only.
Note that X programming is preferred. Drop example.
2013-07-25 09:04:21 +00:00
Steve Ellcey
2dc32f6ae4
2013-07-24 Steve Ellcey <sellcey@mips.com>
...
* mips/idtmon.S (unlink, lseek, stat): Add new functions.
2013-07-24 22:32:51 +00:00
H.J. Lu
c9eaabe0ad
Support Intel MPX
...
gas/
2013-07-24 Anna Tikhonova <anna.tikhonova@intel.com>
Kirill Yukhin <kirill.yukhin@intel.com>
Michael Zolotukhin <michael.v.zolotukhin@intel.com>
* config/tc-i386.c (BND_PREFIX): New.
(struct _i386_insn): Add new field bnd_prefix.
(add_bnd_prefix): New.
(cpu_arch): Add MPX.
(i386_operand_type): Add regbnd.
(md_assemble): Handle BND prefixes.
(parse_insn): Likewise.
(output_branch): Likewise.
(output_jump): Likewise.
(build_modrm_byte): Handle regbnd.
(OPTION_MADD_BND_PREFIX): New.
(md_longopts): Add entry for 'madd-bnd-prefix'.
(md_parse_option): Handle madd-bnd-prefix option.
(md_show_usage): Add description for madd-bnd-prefix
option.
* doc/c-i386.texi: Document mpx/.mpx and -madd-bnd-prefix.
gas/testsuite/
2013-07-24 Anna Tikhonova <anna.tikhonova@intel.com>
Kirill Yukhin <kirill.yukhin@intel.com>
Michael Zolotukhin <michael.v.zolotukhin@intel.com>
* gas/i386/mpx-add-bnd-prefix.s: New.
* gas/i386/mpx-add-bnd-prefix.d: New.
* gas/i386/mpx-inval-1.l: New.
* gas/i386/mpx-inval-1.s: New.
* gas/i386/mpx.d: New.
* gas/i386/mpx.s: New.
* gas/i386/x86-64-mpx-add-bnd-prefix.d: New.
* gas/i386/x86-64-mpx-add-bnd-prefix.s: New.
* gas/i386/x86-64-mpx-addr32.d: New.
* gas/i386/x86-64-mpx-addr32.s: New.
* gas/i386/x86-64-mpx-inval-1.l: New.
* gas/i386/x86-64-mpx-inval-1.s: New.
* gas/i386/x86-64-mpx-inval-2.l: New.
* gas/i386/x86-64-mpx-inval-2.s: New.
* gas/i386/x86-64-mpx.d: New.
* gas/i386/x86-64-mpx.s: New.
* gas/i386/nops.d: Adjust to MPX changes.
* gas/i386/nops.s: Likewise.
* gas/i386/x86-64-nops.d: Likewise.
* gas/i386/x86-64-nops.s: Likewise.
* gas/i386/ilp32/x86-64-nops.d: Likewise.
* gas/i386/i386.exp: Run new MPX tests.
include/opcode/
2013-07-24 Anna Tikhonova <anna.tikhonova@intel.com>
Kirill Yukhin <kirill.yukhin@intel.com>
Michael Zolotukhin <michael.v.zolotukhin@intel.com>
* i386.h (BND_PREFIX_OPCODE): New.
opcodes/
2013-07-24 Anna Tikhonova <anna.tikhonova@intel.com>
Kirill Yukhin <kirill.yukhin@intel.com>
Michael Zolotukhin <michael.v.zolotukhin@intel.com>
* i386-dis.c (BND_Fixup): New.
(Ebnd): New.
(Ev_bnd): New.
(Gbnd): New.
(BND): New.
(v_bnd_mode): New.
(bnd_mode): New.
(MOD enum): Add new entries.
(PREFIX enum): Likewise.
(dis tables): Replace XX with BND for near branch and call
instructions.
(prefix_table): Add new entries.
(mod_table): Likewise.
(names_bnd): New.
(intel_names_bnd): New.
(att_names_bnd): New.
(BND_PREFIX): New.
(prefix_name): Handle BND_PREFIX.
(print_insn): Initialize names_bnd.
(intel_operand_size): Handle new modes.
(OP_E_register): Likewise.
(OP_E_memory): Likewise.
(OP_G): Likewise.
* i386-gen.c (cpu_flag_init): Add CpuMPX.
(cpu_flags): Add CpuMPX.
(operand_type_init): Add RegBND.
(opcode_modifiers): Add BNDPrefixOk.
(operand_types): Add RegBND.
* i386-init.h: Regenerate.
* i386-opc.h (CpuMPX): New.
(CpuUnused): Comment out.
(i386_cpu_flags): Add cpumpx.
(BNDPrefixOk): New.
(i386_opcode_modifier): Add bndprefixok.
(RegBND): New.
(i386_operand_type): Add regbnd.
* i386-opc.tbl: Add BNDPrefixOk to near jumps, calls and rets.
Add MPX instructions and bnd prefix.
* i386-reg.tbl: Add bnd0-bnd3 registers.
* i386-tbl.h: Regenerate.
2013-07-24 15:47:25 +00:00
Corinna Vinschen
5709fcbfe5
Fix copyright date
2013-07-24 14:21:13 +00:00
Corinna Vinschen
9f7d1ba43d
*** empty log message ***
2013-07-24 13:02:15 +00:00
Corinna Vinschen
16efa64721
* ntdll.h (struct _SEMAPHORE_BASIC_INFORMATION): Define.
...
(enum _SEMAPHORE_INFORMATION_CLASS): Define.
(NtQuerySemaphore): Declare.
* thread.h (class semaphore): Add member startvalue.
(semaphore::fixup_before_fork): New inline method.
(semaphore::_fixup_before_fork): Declare.
* thread.cc (MTinterface::fixup_before_fork): Additionally call
semaphore::fixup_before_fork.
(semaphore::semaphore): Set currentvalue to -1. Set startvalue to
incoming initializer value.
(semaphore::_getvalue): Just query semaphore using NtQuerySemaphore
rather then using WFSO/Release.
(semaphore::_post): Drop setting currentvalue. It's not thread-safe.
(semaphore::_trywait): Ditto.
(semaphore::_timedwait): Ditto.
(semaphore::_wait): Ditto.
(semaphore::_fixup_before_fork): New method, setting currentvalue from
actual windows semaphore right before fork.
(semaphore::_fixup_after_fork): Drop kludge from 2013-07-10. Drop
FIXME comment.
2013-07-23 14:15:20 +00:00
Corinna Vinschen
6c1f4d7d64
* cygtls.cc (well_known_dlls): Add kernelbase.dll.
2013-07-23 12:46:02 +00:00
Corinna Vinschen
2635a8d6df
* microblaze/_exception_handler.S: Adjust to be weak.
...
* microblaze/Makefile.in: Add LINUX_BSP.
* microblaze/elf-gloss-linux.ld: New file.
* microblaze/elf-gloss-linux.specs: Likewise.
* microblaze/linux-crt0.S: Likewise.
* microblaze/linux-inbyte.c: Likewise.
* microblaze/linux-outbyte.c: Likewise.
* microblaze/linux-syscalls-wrap.c: Likewise.
* microblaze/linux-syscalls.S: Likewise.
* microblaze/linux-syscalls.h: Likewise.
2013-07-23 09:11:18 +00:00
Corinna Vinschen
b143d094ee
* libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c,
...
libc/sys/linux/net/getnameinfo.c: Add restrict keyword to getnameinfo()
and getaddrinfo() to increase standards compliance and match glibc.
* libc/include/string.h, libc/string/memccpy.c, libc/string/memcpy.c,
libc/string/stpcpy.c, libc/string/stpncpy.c, libc/string/strcat.c,
libc/string/strncat.c, libc/string/strncpy.c, libc/string/strtok.c,
libc/string/strtok_r.c, libc/string/strxfrm.c
libc/machine/microblaze/strcpy.c, libc/machine/xscale/memcpy.c,
libc/machine/cris/memcpy.c: Add __restrict to prototype to
increase standards compliance.
2013-07-23 07:05:31 +00:00
Joel Brobecker
9cb407b524
src-release: Fix VER computation for TOOL=gdb
...
Without this patch, the DATE marker in gdb/version.in does not get
replaced by the source packaging date, causing the name of the
tarball being created to: have the DATE marker in the tarball
name and the name of the directory the sources unpack to (Eg:
gdb-7.6.50-DATE-cvs.tar instead of gdb-7.6.50-20130710-cvs.tar).
ChangeLog:
* src-release (VER): Use $(TOOL)/common/create-version.sh
if it exists.
2013-07-22 15:17:20 +00:00
Corinna Vinschen
3fdddd7d77
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 23.
2013-07-22 15:08:54 +00:00
Corinna Vinschen
463cca40bd
* new-features.sgml (ov-new1.7.22): Add GetCommandLine and regcomp
...
changes.
2013-07-21 19:30:19 +00:00
Corinna Vinschen
e6ff6a18d4
* regex/regcomp.c (wgetnext): Add a kludge to be more glibc compatible.
...
Add comment to explain.
2013-07-21 19:28:45 +00:00
Corinna Vinschen
ca5eb1cba5
* Makefile.in (cygwin-ug-net/cygwin-ug-net.html): Add dependency to
...
cygwin.xsl.
(cygwin-api/cygwin-api.html): Ditto.
(cygwin-ug-net/cygwin-ug-net.pdf): Add dependency to fo.xsl.
(cygwin-api/cygwin-api.pdf): Ditto.
(cygwin-api.xml): Drop "." path component from doctool dependency.
Change Makefile to Makefile.in dep.
(doctool): Drop "." path component from target.
2013-07-21 10:16:53 +00:00
Christopher Faylor
d31805a14c
* exceptions.cc (signal_exit): Remove comment. Use __builtin_frame_address.
2013-07-20 17:11:44 +00:00
Christopher Faylor
5ce53ae0ea
* exceptions.cc (signal_exit): Nope. Nevermind. Dump core unconditionally.
2013-07-20 16:19:51 +00:00
Corinna Vinschen
198d56529a
* Makefile.in (cygwin-ug-net/cygwin-ug-net.pdf): Process input via
...
xsltproc and fop.
(cygwin-api/cygwin-api.pdf): Ditto.
* fo.xsl: New file.
2013-07-20 10:44:50 +00:00
Christopher Faylor
efe8407eca
reword comment
2013-07-19 23:19:27 +00:00
Christopher Faylor
fb6cf945f9
* exceptions.cc (signal_exit): Add a FIXME comment.
2013-07-19 23:13:58 +00:00
Christopher Faylor
3a4dab46c3
* exceptions.cc (signal_exit): Only dump core when it's a "kernel" signal.
...
Only use RtlCaptureContext on x86_64. It doesn't seem to do what's expected on
x86.
2013-07-19 23:04:32 +00:00
Christopher Faylor
bbdd6c47c9
* spawn.cc (child_info_spawn::worker): Reinstate using temp buffer for wide
...
character command-line storage. Use wcs method to convert command line.
* winf.h (lb_wcs): Delete.
(linebuf::wcs): Implement new single-argument method.
2013-07-19 22:44:02 +00:00
Christopher Faylor
132e0f0182
* lib/libcmain.c (main): Don't point to last quoted character if the only thing
...
in the buffer is the program name.
2013-07-19 19:04:13 +00:00
Christopher Faylor
4741932459
.
2013-07-19 17:45:18 +00:00
Christopher Faylor
efef69e738
fix comment typo
2013-07-19 17:44:08 +00:00
Christopher Faylor
f53c4d6921
.
2013-07-19 17:29:01 +00:00
Christopher Faylor
521953a83a
* common.din: Export GetCommandLine{A,W}.
...
* kernel32.cc: Add includes needed for GetCommandLine functions.
(ucmd): New function.
(cygwin_GetCommandLineW): Ditto.
(cygwin_GetCommandLineA): Ditto.
* spawn.cc (child_info_spawn::worker): Rename one_line -> cmd. Use lb_wcs
macro to generate a wide character version of the line buffer. Remove
duplicate printing of command line. Don't access members of linebuf directly.
* winf.h: Use pragma once.
(linebuf): Make storage private.
(linebuf::operator size_t): New operator. Return size of buf.
(linebuf::operator wchar_t): New operator.
(linebuf::wcs): New function.
(lb_wcs): New macro.
* include/cygwin/version.h: Bump API minor number to 268.
* strfuncs.cc: Clarify descriptive file comment.
2013-07-19 17:28:34 +00:00
Corinna Vinschen
4b25516b5d
*** empty log message ***
2013-07-19 12:13:21 +00:00
Corinna Vinschen
78cefca9fc
* cygtls.cc (_cygtls::remove): Close cw_timer handle, thus avoiding
...
handle leak.
2013-07-19 11:54:51 +00:00
Corinna Vinschen
000235c38d
* cygserver_ipc.h (ipc_retval::ipc_retval): Take ssize_t as argument
...
to make sure entire ipc_retval union is initialized on all supported
platforms.
2013-07-19 11:32:54 +00:00
Corinna Vinschen
320a1e7412
* libc/sys/arm/syscalls.c (do_AngelSWI): Delete.
...
* libc/sys/arm/libcfuncs.c (do_AngelSWI): Delete.
* libc/sys/arm/swi.h: Copy over from libgloss.
2013-07-19 09:57:51 +00:00
Nick Clifton
8eeeb65f41
PR binutils/15728
...
* basic-ops.h: (SUBWORDSIQI) Make declaration static.
* (SUBWORDSIHI): Likewise.
* (SUBWORDDIQI): Likewise.
* (SUBWORDDIHI): Likewise.
* (SUBWORDDISI): Likewise.
2013-07-18 13:53:04 +00:00
Corinna Vinschen
aff6ef0db4
* path.cc (normalize_posix_path): Start checking path before ".." at
...
dst, rather than at dst_start, otherwise suffer loss of one leading
slash in case of UNC paths.
2013-07-18 10:11:33 +00:00
Christopher Faylor
e6f4f3f7ee
* winsup.h (cygbench): Fix declaration to match definition.
...
* dcrt0.cc (initial_env): Remove unused variable.
2013-07-17 17:46:10 +00:00
Jeff Johnston
d1b5846f29
2013-07-17 Janis Johnson <janisjo@codesourcery.com>
...
* libc/machine/powerpc/configure.in: Remove extra_sources; fix
extra_objs for powerpc*-*altivec.
* libc/machine/powerpc/Makefile.am: Define EXTRA_lib_a_SOURCES.
* libc/machine/powerpc/configure: Regenerated.
* libc/machine/powerpc/Makefile.in: Regenerated.
2013-07-17 16:38:04 +00:00
Yaakov Selkowitz
38f2cb2c41
* lm32/configure: Regenerate.
...
* moxie/configure: Ditto.
* spu/configure: Ditto.
2013-07-17 06:14:27 +00:00
Corinna Vinschen
971a6c70a3
* microblaze/Makefile.in: Add GENOBJS and target_makefile_frag.
...
* microblaze/configure.in: Add target_makefile_frag.
* microblaze/configure: Regenerate.
* microblaze/xil_printf.c: Add new file.
2013-07-16 07:55:45 +00:00
Corinna Vinschen
6041792ec6
* configure.host: Change to microblaze*.
...
* libc/include/machine/ieeefp.h: Add __MICROBLAZEEL__.
* libc/machine/microblaze/mb_endian.h: New file.
* newlib/libc/machine/microblaze/strcmp.c: Add little endian support.
* newlib/libc/machine/microblaze/strcpy.c: Likewise.
* newlib/libc/machine/microblaze/strlen.c: Likewise.
* configure.in: Change to microblaze*.
* configure: Regenerate.
* microblaze/xilinx.ld: Remove OUTPUT_FORMAT.
2013-07-16 07:48:53 +00:00
Maciej W. Rozycki
f6ddaa2a29
include/elf/
...
* mips.h (Tag_GNU_MIPS_ABI_FP): Remove comment.
(Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE,
Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT,
Val_GNU_MIPS_ABI_FP_64): New enum.
bfd/
* elfxx-mips.c (mips_elf_merge_obj_attributes): Replace hardcoded
magic numbers with enum values.
binutils/
* readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
numbers with enum values.
gdb/
* mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
numbers with enum values.
2013-07-15 15:07:30 +00:00
Corinna Vinschen
f7180e5eac
* new-features.sgml (ov-new1.7.22): New section. Document dropped
...
support for /dev/mem, /dev/kmem, /dev/port.
* specialnames.xml (pathnames-posixdevices): Drop description of
/dev/mem, /dev/kmem, /dev/port.
2013-07-15 14:00:32 +00:00