]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
11 years ago bfd/
Maciej W. Rozycki [Mon, 24 Jun 2013 23:55:45 +0000 (23:55 +0000)]
bfd/
* elfxx-mips.h (_bfd_mips_elf_get_synthetic_symtab): New
prototype.
* elf32-mips.c (elf_backend_plt_sym_val): Remove macro.
(bfd_elf32_get_synthetic_symtab): New macro.
* elfxx-mips.c (plt_entry): New structure.
(mips_elf_link_hash_entry): Add use_plt_entry member.
(mips_elf_link_hash_table): Rename plt_entry_size member to
plt_mips_entry_size.  Add plt_comp_entry_size, plt_mips_offset,
plt_comp_offset, plt_got_index entries and plt_header_is_comp
members.
(STUB_LW_MICROMIPS, STUB_MOVE_MICROMIPS): New macros.
(STUB_LUI_MICROMIPS, STUB_JALR_MICROMIPS): Likewise.
(STUB_ORI_MICROMIPS, STUB_LI16U_MICROMIPS): Likewise.
(STUB_LI16S_MICROMIPS): Likewise.
(MICROMIPS_FUNCTION_STUB_NORMAL_SIZE): Likewise.
(MICROMIPS_FUNCTION_STUB_BIG_SIZE): Likewise.
(micromips_o32_exec_plt0_entry): New variable.
(mips16_o32_exec_plt_entry): Likewise.
(micromips_o32_exec_plt_entry): Likewise.
(mips_elf_link_hash_newfunc): Initialize use_plt_entry.
(mips_elf_output_extsym): Update to use gotplt_union's plist
member rather than offset.
(mips_elf_gotplt_index): Likewise.  Remove the VxWorks
restriction.  Use MIPS_ELF_GOT_SIZE to calculate GOT address.
(mips_elf_count_got_symbols): Update to use gotplt_union's plist
member rather than offset.
(mips_elf_calculate_relocation): Handle MIPS16/microMIPS PLT
entries.
(_bfd_mips_elf_create_dynamic_sections): Don't set PLT sizes
here.
(mips_elf_make_plt_record): New function.
(_bfd_mips_elf_check_relocs): Update comment.  Record occurences
of JAL relocations that might need a PLT entry.
(_bfd_mips_elf_adjust_dynamic_symbol): Update to use
gotplt_union's plist member rather than offset.  Set individual
PLT entry sizes here.  Handle MIPS16/microMIPS PLT entries.
Don't set the symbol's value in the symbol table for PLT
references here.  Don't set the PLT or PLT GOT section sizes
here.
(mips_elf_estimate_stub_size): Handle microMIPS stubs.
(mips_elf_allocate_lazy_stub): Likewise.
(mips_elf_lay_out_lazy_stubs): Likewise.  Define a _MIPS_STUBS_
magic symbol.
(mips_elf_set_plt_sym_value): New function.
(_bfd_mips_elf_size_dynamic_sections): Set PLT header size and
PLT and PLT GOT section sizes here.  Set the symbol values in
the symbol table for PLT references here.  Handle microMIPS
annotation of the _PROCEDURE_LINKAGE_TABLE_ magic symbol.
(_bfd_mips_elf_finish_dynamic_symbol): Update to use
gotplt_union's plist member rather than offset.  Handle
MIPS16/microMIPS PLT entries.  Handle microMIPS stubs.
(_bfd_mips_vxworks_finish_dynamic_symbol): Update to use
gotplt_union's plist member rather than offset.  Use
MIPS_ELF_GOT_SIZE to calculate GOT address.
(mips_finish_exec_plt): Handle microMIPS PLT.  Return status.
(_bfd_mips_elf_finish_dynamic_sections): Handle result from
mips_finish_exec_plt.
(_bfd_mips_elf_link_hash_table_create): Update to use
gotplt_union's plist member rather than offset.
(_bfd_mips_elf_get_synthetic_symtab): New function.

include/elf/
* mips.h (ELF_ST_IS_MIPS_PLT): Respect STO_MIPS16 setting.
(ELF_ST_SET_MIPS_PLT): Likewise.

gdb/
* mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
microMIPS synthetic symbols.

ld/
* emulparams/elf32btsmip.sh: Arrange for .got.plt to be placed
as close to .plt as possible.
* scripttempl/elf.sc: Handle $INITIAL_READWRITE_SECTIONS and
$PLT_NEXT_DATA variables.

ld/testsuite/
* ld-mips-elf/jalx-2.dd: Update for microMIPS PLT support.
* ld-mips-elf/pic-and-nonpic-3a.dd: Update for the _MIPS_STUBS_
magic symbol.
* ld-mips-elf/pic-and-nonpic-3b.dd: Likewise.
* ld-mips-elf/pic-and-nonpic-6-n32.dd: Likewise.
* ld-mips-elf/pic-and-nonpic-6-n64.dd: Likewise.
* ld-mips-elf/pic-and-nonpic-6-o32.dd: Likewise.
* ld-mips-elf/stub-dynsym-1-10000.d: Likewise.
* ld-mips-elf/stub-dynsym-1-2fe80.d: Likewise.
* ld-mips-elf/stub-dynsym-1-7fff.d: Likewise.
* ld-mips-elf/stub-dynsym-1-8000.d: Likewise.
* ld-mips-elf/stub-dynsym-1-fff0.d: Likewise.
* ld-mips-elf/tlslib-o32.d: Likewise.

opcodes/
* mips-dis.c (is_mips16_plt_tail): New function.
(print_insn_mips16): Handle MIPS16 PLT entry's GOT slot address
word.
(is_compressed_mode_p): Handle MIPS16/microMIPS PLT entries.

11 years ago* new-features.sgml (ov-new1.7.21): New section. Document rawmemchr.
Yaakov Selkowitz [Mon, 24 Jun 2013 15:30:49 +0000 (15:30 +0000)]
* new-features.sgml (ov-new1.7.21): New section. Document rawmemchr.

11 years ago* common.din (rawmemchr): Export.
Yaakov Selkowitz [Mon, 24 Jun 2013 15:12:40 +0000 (15:12 +0000)]
* common.din (rawmemchr): Export.
* posix.sgml (std-gnu): Add rawmemchr.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

11 years ago* libc/include/string.h (rawmemchr): Declare.
Yaakov Selkowitz [Mon, 24 Jun 2013 15:11:24 +0000 (15:11 +0000)]
* libc/include/string.h (rawmemchr): Declare.
* libc/string/Makefile.am (ELIX_4_SOURCES): Add rawmemchr.c.
(CHEWOUT_FILES): Add rawmemchr.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/rawmemchr.c: New file.

11 years ago * libc/reent/reent.c (_reclaim_reent): Free also _misc and
Corinna Vinschen [Mon, 24 Jun 2013 11:34:03 +0000 (11:34 +0000)]
* libc/reent/reent.c (_reclaim_reent): Free also _misc and
_signal_buf.

11 years ago * libc/include/sys/reent.h (_ATEXIT_INIT_PTR): Remove.
Corinna Vinschen [Mon, 24 Jun 2013 09:28:32 +0000 (09:28 +0000)]
* libc/include/sys/reent.h (_ATEXIT_INIT_PTR): Remove.
(_REENT_INIT_ATEXIT_PTR): Remove.
(_REENT_INIT_PTR): Reduce code size if _REENT_SMALL.

11 years agoinclude/opcode/
Richard Sandiford [Sun, 23 Jun 2013 20:12:52 +0000 (20:12 +0000)]
include/opcode/
* mips.h: Fix comment typo: "G" is _RS rather than _RD for microMIPS.

gas/
* config/tc-mips.c (mips_ip): Fix swapped bit numbers in comments.

11 years ago * configure.ac (mips*-*-bsd*, mips*-*-ultrix*, mips*-*-osf*)
Richard Sandiford [Sat, 22 Jun 2013 16:44:14 +0000 (16:44 +0000)]
* configure.ac (mips*-*-bsd*, mips*-*-ultrix*, mips*-*-osf*)
(mips*-*-ecoff*, mips*-*-pe*, mips*-*-irix* [v4 and earlier])
(mips*-*-lnews*, mips*-*-riscos*): Add gas and ld to noconfigdirs.
* configure: Regenerate.

gas/
* NEWS: Note removal of ECOFF support.
* doc/as.texinfo (--emulation): Update for the removal of MIPS ECOFF.
* Makefile.am (TARG_ENV_HFILES): Remove config/te-lnews.h.
(MULTI_CFILES): Remove config/e-mipsecoff.c.
* Makefile.in: Regenerate.
* configure.in: Remove MIPS ECOFF references.
(mips-sony-bsd*, mips-*-bsd*, mips-*-lnews*-ecoff, mips-*-*-ecoff):
Delete cases.
(mips-*-irix5*-*, mips*-*-linux*-*, mips*-*-freebsd*)
(mips*-*-kfreebsd*-gnu, mips-*-*-elf): Fold into...
(mips-*-*): ...this single case.
(mipsbecoff, mipslecoff, mipsecoff): Remove emulations.  Expect
MIPS emulations to be e-mipself*.
* configure: Regenerate.
* configure.tgt (mips-sony-bsd*, mips-*-ultrix*, mips-*-osf*)
(mips-*-ecoff*, mips-*-pe*, mips-*-irix*, ips-*-lnews*, mips-*-riscos*)
(mips-*-sysv*): Remove coff and ecoff cases.
* as.c (mipsbecoff, mipslecoff, mipsecoff): Remove.
* ecoff.c: Remove reference to MIPS ECOFF.
* config/e-mipsecoff.c, config/te-lnews.h: Delete files.
* config/tc-mips.c (ECOFF_LITTLE_FORMAT): Delete.
(RDATA_SECTION_NAME, mips_target_form): Remove COFF and ECOFF cases.
(mips_hi_fixup): Tweak comment.
(append_insn): Require a howto.
(mips_after_parse_args): Remove OBJ_MAYBE_ECOFF code.

gas/testsuite/
* gas/all/gas.exp: Remove reference to mips-ecoff.
* gas/mips/branch-misc-1.d, gas/mips/branch-misc-2.d,
gas/mips/branch-misc-2-64.d, gas/mips/branch-misc-2pic.d,
gas/mips/branch-misc-2pic-64.d, gas/mips/branch-swap.d: Remove
skips for mips-*-ecoff.

ld/
* NEWS: Document the removal of MIPS ECOFF targets.
* ld.texinfo (--gpsize=@var{value}): Use MIPS ELF rather than
MIPS ECOFF as an example of a target that supports small data.
* ldmain.c (g_switch_value): Likewise.
* configure.tgt (mips*-*-pe, mips*-dec-ultrix*, mips*-dec-osf*)
(mips*-sgi-irix* [v4 and earlier], mips*el-*-ecoff*, mips*-*-ecoff*)
(mips*-*-bsd*, mips*-*-lnews*): Remove cases.
* Makefile.am (ALL_EMULATION_SOURCES): Remove emipsbig.c, emipsbsd.c,
emipsidt.c, emipsidtl.c, emipslit.c, emipslnews.c and emipspe.c.
(emipsbig.c, emipsbsd.c, emipsidt.c, emipsidtl.c, emipslit.c)
(emipslnews.c, emipspe.c): Delete rules.
* Makefile.in: Regenerate.
* emulparams/mipsbig.sh, emulparams/mipsbsd.sh, emulparams/mipsidt.sh,
emulparams/mipsidtl.sh, emulparams/mipslit.sh, emulparams/mipslnews.sh,
emulparams/mipspe.sh, emultempl/mipsecoff.em: Delete.
* emultempl/m68kcoff.em: Update comment to say that MIPS ECOFF support
has now been removed.
* emultempl/pe.em: Remove TARGET_IS_mipspe checks.

11 years ago * msp430-decode.opc: New.
Nick Clifton [Fri, 21 Jun 2013 15:01:56 +0000 (15:01 +0000)]
* msp430-decode.opc: New.
* msp430-decode.c: New/generated.
* Makefile.am (TARGET_LIBOPCODES_CFILES): Add msp430-decode.c.
(MAINTAINER_CLEANFILES): Likewise.
Add rule to build msp430-decode.c frommsp430decode.opc
        using the opc2c program.
* Makefile.in: Regenerate.
* configure.in: Add msp430-decode.lo to msp430 architecture files.
* configure: Regenerate.

* msp430-decode.h: New.

11 years agostrlen-armv7.S: Import latest strlen cortex-strings code.
Will Newton [Fri, 21 Jun 2013 09:10:37 +0000 (09:10 +0000)]
strlen-armv7.S: Import latest strlen cortex-strings code.

Import the latest version of strlen from the Linaro cortex-strings
package. This version is faster across a variety of block size and
alignments on ARMv7.

newlib/ChangeLog:

2013-06-21  Will Newton  <will.newton@linaro.org>

* libc/machine/arm/strlen-armv7.S: Import latest strlen
code from Linaro cortex-strings.

11 years agonewlib/MAINTAINERS: Add myself to Write After Approval.
Will Newton [Fri, 21 Jun 2013 08:17:38 +0000 (08:17 +0000)]
newlib/MAINTAINERS: Add myself to Write After Approval.

2013-06-21  Will Newton  <will.newton@linaro.org>

* MAINTAINERS: Add Will Newton to Write After Approval.

11 years ago * path.cc (cygwin_conv_path): Handle NULL "from" path gracefully.
Corinna Vinschen [Fri, 21 Jun 2013 08:14:26 +0000 (08:14 +0000)]
* path.cc (cygwin_conv_path): Handle NULL "from" path gracefully.
* path.sgml (func-cygwin-conv-path): Document returning EINVAL if
"from" is NULL.

11 years ago * faq-using.xml (faq.using.private-cygwin): Drop.
Corinna Vinschen [Wed, 19 Jun 2013 17:34:07 +0000 (17:34 +0000)]
* faq-using.xml (faq.using.private-cygwin): Drop.

11 years ago* winf.h (av::unshift): Make __reg2.
Christopher Faylor [Wed, 19 Jun 2013 17:21:25 +0000 (17:21 +0000)]
* winf.h (av::unshift): Make __reg2.

11 years agoFix ChangeLog entry
Corinna Vinschen [Wed, 19 Jun 2013 16:43:12 +0000 (16:43 +0000)]
Fix ChangeLog entry

11 years ago*** empty log message ***
Corinna Vinschen [Wed, 19 Jun 2013 16:05:04 +0000 (16:05 +0000)]
*** empty log message ***

11 years ago* spawn.cc (child_info_spawn::worker): Eliminate call to newargv.set() in favor
Christopher Faylor [Wed, 19 Jun 2013 16:00:43 +0000 (16:00 +0000)]
* spawn.cc (child_info_spawn::worker): Eliminate call to newargv.set() in favor
of conglomerated newargv.setup().  Let newargv.setup() decide when to call
dup_all().  Only set argc and argv for cygwin processes.
(av::setup): Rename from av::fixup.  Accept argc and argv parameters.  Fill out
argv and argc here.  Duplicate whole argv structure when this is a Cygwin
executable.
* winf.cc (linebuf::fromargv): Don't bother duplicating argv elements since
they will never be used.
* winf.h (av::set): Delete.
(av::setup): Rename from av::fixup.  Add two parameters.
(av::replace0_maybe): Assign calloced to 1 rather than 'true' for clarity.
(av::dup_maybe): Delete.
(av::dup_all): Set calloced to show that we have duplicated all of the
arguments in the list.

11 years ago * acconfig.h (_UNBUF_STREAM_OPT): Undefine.
Corinna Vinschen [Wed, 19 Jun 2013 15:58:50 +0000 (15:58 +0000)]
* acconfig.h (_UNBUF_STREAM_OPT): Undefine.
* newlib.hin (_UNBUF_STREAM_OPT): Undefine.
* configure.in (--enable-newlib-unbuf-stream-opt): New option.
* configure: Regenerate.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Don't do optimization on
unbuffered stream files.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Likewise.
* README: Add description about the option.
* newlib.hin (_UNBUF_STREAM_OPT): Undefine.
* configure.in (--enable-newlib-unbuf-stream-opt): New option.
* configure: Regenerate.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Don't do optimization on
unbuffered stream files.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Likewise.
* README: Add description about the option.

11 years ago * libc/posix/readdir_r.c: Fix potential read past dirp->dd_buf.
Corinna Vinschen [Wed, 19 Jun 2013 15:54:20 +0000 (15:54 +0000)]
* libc/posix/readdir_r.c: Fix potential read past dirp->dd_buf.

11 years ago * nlsfuncs.cc (__collate_range_cmp): Convert input to wchar_t and call
Corinna Vinschen [Wed, 19 Jun 2013 15:24:48 +0000 (15:24 +0000)]
* nlsfuncs.cc (__collate_range_cmp): Convert input to wchar_t and call
wcscoll since all calling functions are using wide chars.  Explain in
preceeding comment.

11 years ago* spawn.cc (child_info_spawn::worker): Eliminate wascygexec.
Christopher Faylor [Wed, 19 Jun 2013 14:39:00 +0000 (14:39 +0000)]
* spawn.cc (child_info_spawn::worker): Eliminate wascygexec.

11 years agoaarch64: Revert AArch64 ifunc changes.
Will Newton [Wed, 19 Jun 2013 10:30:56 +0000 (10:30 +0000)]
aarch64: Revert AArch64 ifunc changes.

The AArch64 ifunc patch introduced a regression caused by incorrect
PLT layout. Revert it until a fix is verified.

bfd/ChangeLog:

2013-06-19  Will Newton  <will.newton@linaro.org>

* configure: Regenerated.
* configure.in: Remove aarch64 dependency on elf-ifunc.c.
* elf64-aarch64.c: Remove objalloc.h include.
(elf64_aarch64_howto_dynrelocs): Remove R_AARCH64_IRELATIVE howto.
(struct elf64_aarch64_link_hash_table): Remove ifunc related
members. (elf_aarch64_local_htab_hash): Remove function.
(elf_aarch64_local_htab_eq): Remove function.
(elf_aarch64_get_local_sym_hash): Remove function.
(elf64_aarch64_link_hash_table_create): Remove local hash
table initialization.
(elf64_aarch64_final_link_relocate): Remove sym argument and
handling of ifunc symbols.
(elf64_aarch64_relocate_section): Don't pass sym argument to
elf64_aarch64_final_link_relocate.
(elf64_aarch64_gc_sweep_hook): Remove handling of ifunc symbols.
(elf64_aarch64_adjust_dynamic_symbol): Likewise.
(elf64_aarch64_check_relocs): Likewise.
(elf64_aarch64_post_process_headers): Remove call to
_bfd_elf_set_osabi.
(elf64_aarch64_is_function_type): New function.
(elf64_aarch64_allocate_dynrelocs): Remove handling of ifunc
symbols. (elf_aarch64_allocate_local_dynrelocs): Remove function.
(elf64_aarch64_size_dynamic_sections): Remove call to
elf_aarch64_allocate_local_dynrelocs.
(elf64_aarch64_create_small_pltn_entry): Remove info argument.
Remove creation of R_AARCH64_IRELATIVE dynamic relocs.
(elf64_aarch64_finish_dynamic_symbol): Remove handling of ifunc
symbols. (elf_aarch64_finish_local_dynamic_symbol): Remove
function. (elf64_aarch64_finish_dynamic_sections): Remove call to
elf_aarch64_finish_local_dynamic_symbol.
(elf64_aarch64_add_symbol_hook): Remove function.

include/elf/ChangeLog:

2013-06-19  Will Newton  <will.newton@linaro.org>

* aarch64.h: Remove R_AARCH64_IRELATIVE.

ld/ChangeLog:

2013-06-19  Will Newton  <will.newton@linaro.org>

* emulparams/aarch64elf.sh: Remove IREL_IN_PLT.

ld/testsuite/ChangeLog:

2013-06-19  Will Newton  <will.newton@linaro.org>

* ld-aarch64/aarch64-elf.exp: Remove ifunc tests.
* ld-ifunc/ifunc.exp: Disable ifunc tests on AArch64.
* ld-aarch64/ifunc-1-local.d: Remove.
* ld-aarch64/ifunc-1-local.s: Likewise.
* ld-aarch64/ifunc-1.d: Likewise.
* ld-aarch64/ifunc-1.s: Likewise.
* ld-aarch64/ifunc-10.d: Likewise.
* ld-aarch64/ifunc-10.s: Likewise.
* ld-aarch64/ifunc-11.d: Likewise.
* ld-aarch64/ifunc-11.s: Likewise.
* ld-aarch64/ifunc-12.d: Likewise.
* ld-aarch64/ifunc-12.s: Likewise.
* ld-aarch64/ifunc-13.d: Likewise.
* ld-aarch64/ifunc-13a.s: Likewise.
* ld-aarch64/ifunc-13b.s: Likewise.
* ld-aarch64/ifunc-14a.d: Likewise.
* ld-aarch64/ifunc-14a.s: Likewise.
* ld-aarch64/ifunc-14b.d: Likewise.
* ld-aarch64/ifunc-14b.s: Likewise.
* ld-aarch64/ifunc-14c.d: Likewise.
* ld-aarch64/ifunc-14c.s: Likewise.
* ld-aarch64/ifunc-14d.d: Likewise.
* ld-aarch64/ifunc-14e.d: Likewise.
* ld-aarch64/ifunc-14f.d: Likewise.
* ld-aarch64/ifunc-15.d: Likewise.
* ld-aarch64/ifunc-15.s: Likewise.
* ld-aarch64/ifunc-16.d: Likewise.
* ld-aarch64/ifunc-16.s: Likewise.
* ld-aarch64/ifunc-17a.d: Likewise.
* ld-aarch64/ifunc-17a.s: Likewise.
* ld-aarch64/ifunc-17b.d: Likewise.
* ld-aarch64/ifunc-17b.s: Likewise.
* ld-aarch64/ifunc-18a.d: Likewise.
* ld-aarch64/ifunc-18a.s: Likewise.
* ld-aarch64/ifunc-18b.d: Likewise.
* ld-aarch64/ifunc-18b.s: Likewise.
* ld-aarch64/ifunc-19a.d: Likewise.
* ld-aarch64/ifunc-19a.s: Likewise.
* ld-aarch64/ifunc-19b.d: Likewise.
* ld-aarch64/ifunc-19b.s: Likewise.
* ld-aarch64/ifunc-2-local.d: Likewise.
* ld-aarch64/ifunc-2-local.s: Likewise.
* ld-aarch64/ifunc-2.d: Likewise.
* ld-aarch64/ifunc-2.s: Likewise.
* ld-aarch64/ifunc-20.d: Likewise.
* ld-aarch64/ifunc-20.s: Likewise.
* ld-aarch64/ifunc-3.s: Likewise.
* ld-aarch64/ifunc-3a.d: Likewise.
* ld-aarch64/ifunc-3b.d: Likewise.
* ld-aarch64/ifunc-4.d: Likewise.
* ld-aarch64/ifunc-4.s: Likewise.
* ld-aarch64/ifunc-4a.d: Likewise.
* ld-aarch64/ifunc-5-local.s: Likewise.
* ld-aarch64/ifunc-5.s: Likewise.
* ld-aarch64/ifunc-5a-local.d: Likewise.
* ld-aarch64/ifunc-5a.d: Likewise.
* ld-aarch64/ifunc-5b-local.d: Likewise.
* ld-aarch64/ifunc-5b.d: Likewise.
* ld-aarch64/ifunc-5r-local.d: Likewise.
* ld-aarch64/ifunc-6.s: Likewise.
* ld-aarch64/ifunc-6a.d: Likewise.
* ld-aarch64/ifunc-6b.d: Likewise.
* ld-aarch64/ifunc-7.s: Likewise.
* ld-aarch64/ifunc-7a.d: Likewise.
* ld-aarch64/ifunc-7b.d: Likewise.
* ld-aarch64/ifunc-7c.d: Likewise.
* ld-aarch64/ifunc-8.d: Likewise.
* ld-aarch64/ifunc-8a.s: Likewise.
* ld-aarch64/ifunc-8b.s: Likewise.
* ld-aarch64/ifunc-9.d: Likewise.
* ld-aarch64/ifunc-9.s: Likewise.

11 years ago * faq-using.xml (faq.using.multiple-copies): Modernize to reflect
Corinna Vinschen [Wed, 19 Jun 2013 08:42:48 +0000 (08:42 +0000)]
* faq-using.xml (faq.using.multiple-copies): Modernize to reflect
installation separation since Cygwin 1.7.
(faq.using.third-party.multiple-copies): Ditto.

11 years ago* dcrt0.cc (child_info_fork::alloc_stack): Don't subtract 4096 from stack
Christopher Faylor [Wed, 19 Jun 2013 05:06:35 +0000 (05:06 +0000)]
* dcrt0.cc (child_info_fork::alloc_stack): Don't subtract 4096 from stack
pointer since getstack() already does that.

11 years ago*** empty log message ***
Corinna Vinschen [Tue, 18 Jun 2013 10:12:16 +0000 (10:12 +0000)]
*** empty log message ***

11 years ago * gmon.c: Drop gratuitous inclusion of strings.h. Remove __MINGW32__
Corinna Vinschen [Tue, 18 Jun 2013 10:01:33 +0000 (10:01 +0000)]
* gmon.c: Drop gratuitous inclusion of strings.h.  Remove __MINGW32__
around definition of bzero.

11 years ago * Makefile.in (VPATH): Drop CONFIG_DIR.
Corinna Vinschen [Tue, 18 Jun 2013 09:45:37 +0000 (09:45 +0000)]
* Makefile.in (VPATH): Drop CONFIG_DIR.
(EXTRA_DLL_OFILES): Remove.
(DLL_OFILES): Remove EXTRA_DLL_OFILES.
(ASFLAGS): Define as -D_WIN64 on x86_64.
(GMON_OFILES): Add mcountFunc.o.
($(srcdir)/$(TLSOFFSETS_H)): Use target_cpu rather than CONFIG_DIR.
* configure.ac (CONFIG_DIR): Remove definition.
* configure: Regenerate.
* gcrt0.c: Use latest version from Mingw-w64 project.
* gmon.c: Ditto.
* gmon.h: Ditto.
* mcount.c: Ditto.
* mcountFunc.S: Ditto, new file.
* profil.c: Ditto.
* profil.h: Ditto.
* config: Remove entire directory.

11 years ago * Makefile.common: Add rule to build assembler code.
Corinna Vinschen [Tue, 18 Jun 2013 09:45:16 +0000 (09:45 +0000)]
* Makefile.common: Add rule to build assembler code.
(.SUFFIXES): Add .S.

11 years ago2013-06-17 Catherine Moore <clm@codesourcery.com>
Catherine Moore [Mon, 17 Jun 2013 22:59:10 +0000 (22:59 +0000)]
2013-06-17  Catherine Moore  <clm@codesourcery.com>
    Maciej W. Rozycki  <macro@codesourcery.com>
    Chao-Ying Fu  <fu@mips.com>

gas/testsuite/
* gas/mips/mips.exp: Run new tests.
* gas/mips/eva.d: New.
* gas/mips/eva.s: New.
* gas/mips/micromips@eva.d: New.

gas/
* config/tc-mips.c (mips_set_options): Add ase_eva.
(mips_set_options mips_opts): Add ase_eva.
(file_ase_eva): Declare.
(ISA_SUPPORTS_EVA_ASE): Define.
(IS_SEXT_9BIT_NUM): Define.
(MIPS_CPU_ASE_EVA): Define.
(is_opcode_valid): Add support for ase_eva.
(macro_build): Likewise.
(macro): Likewise.
(validate_mips_insn): Likewise.
(validate_micromips_insn): Likewise.
(mips_ip): Likewise.
(options): Add OPTION_EVA and OPTION_NO_EVA.
(md_longopts): Add -meva and -mno-eva.
(md_parse_option): Process new options.
(mips_after_parse_args): Check for valid EVA combinations.
(s_mipsset): Likewise.

include/
* opcode/mips.h (OP_SH_EVAOFFSET): Define.
(OP_MASK_EVAOFFSET): Define.
(INSN_ASE_MASK): Delete.
(ASE_EVA): Define.
(M_CACHEE_AB, M_CACHEE_OB): New.
(M_LBE_OB, M_LBE_AB): New.
(M_LBUE_OB, M_LBUE_AB): New.
(M_LHE_OB, M_LHE_AB): New.
(M_LHUE_OB, M_LHUE_AB): New.
(M_LLE_AB, M_LLE_OB): New.
(M_LWE_OB, M_LWE_AB): New.
(M_LWLE_AB, M_LWLE_OB): New.
(M_LWRE_AB, M_LWRE_OB): New.
(M_PREFE_AB, M_PREFE_OB): New.
(M_SCE_AB, M_SCE_OB): New.
(M_SBE_OB, M_SBE_AB): New.
(M_SHE_OB, M_SHE_AB): New.
(M_SWE_OB, M_SWE_AB): New.
(M_SWLE_AB, M_SWLE_OB): New.
(M_SWRE_AB, M_SWRE_OB): New.
(MICROMIPSOP_SH_EVAOFFSET): Define.
(MICROMIPSOP_MASK_EVAOFFSET): Define.

opcodes/
* micromips-opc.c (EVA): Define.
(TLBINV): Define.
(micromips_opcodes): Add EVA opcodes.
* mips-dis.c (mips_arch_choices): Update for ASE_EVA.
(print_insn_args): Handle EVA offsets.
(print_insn_micromips): Likewise.
* mips-opc.c (EVA): Define.
(TLBINV): Define.
(mips_builtin_opcodes): Add EVA opcodes.

11 years ago * path.cc (cnt_bs): New inline function.
Corinna Vinschen [Mon, 17 Jun 2013 12:37:09 +0000 (12:37 +0000)]
* path.cc (cnt_bs): New inline function.
(symlink_native): Fix creating relative native symlink.

11 years ago * fhandler_clipboard.cc (fhandler_dev_clipboard::read): Fix buffer
Corinna Vinschen [Mon, 17 Jun 2013 10:11:54 +0000 (10:11 +0000)]
* fhandler_clipboard.cc (fhandler_dev_clipboard::read): Fix buffer
read access overrun when pos > 0.

11 years ago * times.cc (GetSystemTimePreciseAsFileTime): Add comment to declaration.
Corinna Vinschen [Mon, 17 Jun 2013 08:33:41 +0000 (08:33 +0000)]
* times.cc (GetSystemTimePreciseAsFileTime): Add comment to declaration.
(__to_clock_t): Remove a debug_printf.
(times): Align syscall_printf to debug output of other system calls.

11 years ago * cygwinenv.xml: Fix link to FAQ.
Corinna Vinschen [Mon, 17 Jun 2013 08:29:34 +0000 (08:29 +0000)]
* cygwinenv.xml: Fix link to FAQ.

11 years ago * autoload.cc (GetSystemTimePreciseAsFileTime): Define.
Corinna Vinschen [Fri, 14 Jun 2013 15:41:17 +0000 (15:41 +0000)]
* autoload.cc (GetSystemTimePreciseAsFileTime): Define.
* times.cc (GetSystemTimePreciseAsFileTime): Temporarily declare here
to workaround missing definition in 32 bit w32api headers.
(get_system_time): New always inline function to call either
GetSystemTimePreciseAsFileTime or GetSystemTimeAsFileTime on a per OS
basis.  Call throughout instead of GetSystemTimeAsFileTime.
* wincap.h (wincaps::has_precise_system_time): New element.
* wincap.cc: Implement above element throughout.

11 years ago Streamline time/times functionality. Remove last remains of former
Corinna Vinschen [Fri, 14 Jun 2013 09:09:41 +0000 (09:09 +0000)]
Streamline time/times functionality.  Remove last remains of former
Windows 9x compatibility.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Drop now unneeded
casts in calls to_timestruc_t.
(fhandler_base::utimens_fs): Ditto for timespec_to_filetime.
* fhandler_proc.cc (format_proc_stat): Ditto for to_time_t.
* hires.h (class hires_ms): Remove unused member initime_ns.
Remove declarations for timeGetTime_ns and prime.
(hires_ms::uptime): Remove.
* posix_ipc.cc (ipc_cond_timedwait): Ditto for timespec_to_filetime.
* fhandler_registry.cc (fhandler_registry::fstat): Add cast.
* resource.cc (fill_rusage): Call NtQueryInformationProcess rather than
GetProcessTimes to deal with LARGE_INTEGER rather than FILETIME.
* times.cc: Simplify time handling.  Throughout, use LARGE_INTEGER
rather than FILETIME to simplify computations.  Throughout use
{u}int64_t rather than {unsigned} long long.  Drop unneeded casts since
NSPERSEC is 64 bit anyway.
(systime_ns): Remove.
(times): Call NtQuerySystemInformation to fetch boot time.  Call
NtQueryInformationProcess rather than GetProcessTimes to deal with
LARGE_INTEGER rather than FILETIME.  Call GetSystemTimeAsFileTime.
(totimeval): Use constant 1000000 as in other functions.
(time_t_to_filetime): Remove.
(to_time_t): Change return type to time_t.
(time_as_timestruc_t): Rename filetime to systime.
(time): Ditto. Add cast.
(hires_ns::nsecs): Fix return type cast.
(hires_ms::timeGetTime_ns): Remove.
(hires_ns::prime): Remove.
(hires_ms::nsecs): Drop call to prime.  Call GetSystemTimeAsFileTime
directly.  Subtract FACTOR here since it's the only function needing
to do so.
(minperiod): Cosmetically change to ULONG.
(hires_ns::resolution): Fix return type cast.
(hires_ms::resolution): Simplify, rely on NtQueryTimerResolution.
* winsup.h: Align time related prototypes to above changes.

11 years ago * net.cc (gen_old_if_name): New function to generate short interface
Corinna Vinschen [Thu, 13 Jun 2013 19:37:14 +0000 (19:37 +0000)]
* net.cc (gen_old_if_name): New function to generate short interface
names for old pre-1.7 applications.
(get_ifs): Call gen_old_if_name for said old applications.

11 years ago * posix.sgml (fcntl, flock, lockf): Point to implementation notes.
Corinna Vinschen [Thu, 13 Jun 2013 12:50:28 +0000 (12:50 +0000)]
* posix.sgml (fcntl, flock, lockf): Point to implementation notes.

11 years ago * README: Add description for NEWLIB's feature customizing
Corinna Vinschen [Thu, 13 Jun 2013 11:43:44 +0000 (11:43 +0000)]
* README: Add description for NEWLIB's feature customizing
configuration options.

11 years ago2013-06-12 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Wed, 12 Jun 2013 23:03:20 +0000 (23:03 +0000)]
2013-06-12  Sandra Loosemore  <sandra@codesourcery.com>

include/opcode/
* nios2.h (OP_MATCH_ERET): Correct eret encoding.

gas/testsuite/
* gas/nios2/tret.d: Correct eret encoding.

11 years ago * path.cc (normalize_posix_path): Fix long-standing problem which
Corinna Vinschen [Wed, 12 Jun 2013 17:45:42 +0000 (17:45 +0000)]
* path.cc (normalize_posix_path): Fix long-standing problem which
allows to access files via ".." using an invalid POSIX path.

11 years ago * winver.rc (FileDescription): Remove (R).
Corinna Vinschen [Tue, 11 Jun 2013 07:46:40 +0000 (07:46 +0000)]
* winver.rc (FileDescription): Remove (R).

11 years ago * sec_auth.cc (get_user_groups): Don't handle ERROR_ACCESS_DENIED as
Corinna Vinschen [Mon, 10 Jun 2013 15:33:12 +0000 (15:33 +0000)]
* sec_auth.cc (get_user_groups): Don't handle ERROR_ACCESS_DENIED as
error.  Explain why.

11 years ago * libc/stdlib/gdtoa-gethex.c (__hexdig): Constify.
Corinna Vinschen [Mon, 10 Jun 2013 15:27:43 +0000 (15:27 +0000)]
* libc/stdlib/gdtoa-gethex.c (__hexdig): Constify.
(hexdig_init): Remove.
(__hexdig_fun): New function.
hexdig_init, added __hexdig_fun
(gethex): Call __get_hexdig macro rather than hexdig.
* libc/stdlib/gdtoa-hexnan.c (hexnan): Constify fpi argument.
Call __get_hexdig macro rather than hexdig.
* libc/stdlib/ldtoa.c: Throughout constify functions arguments where
required by constifying the following arrays.
(ezero): Constify.
(eone): Constify.
(ermsg): Constify.
(etens): Constify.
(emtens): Constify.
(nan113): Constify.
(nan64): Constify.
(nan53): Constify.
(nan24): Constify.
* libc/stdlib/mprec.h (__get_hexdig): Define.
(gethex): Constify args in declaration where appropriate.
(hexnan): Ditto.
(hexdig_init): Remove declaration.
(__hexdig_fun): Declare.
* libc/stdlib/strtod.c (fpi): Constify.
(fpinan): Constify.

11 years agoclarify entry
Christopher Faylor [Sat, 8 Jun 2013 16:55:29 +0000 (16:55 +0000)]
clarify entry

11 years ago* exceptions.cc (try_to_debug): Don't use yield() when waiting for another
Christopher Faylor [Sat, 8 Jun 2013 16:54:41 +0000 (16:54 +0000)]
* exceptions.cc (try_to_debug): Don't use yield() when waiting for another
process.
(sigpacket::setup_handler): Fix long-standing problem where loop could exit
with lock held.

11 years ago* miscfuncs.cc (yield): Revert (after researching) to calling SleepEx with 0.
Christopher Faylor [Sat, 8 Jun 2013 16:39:52 +0000 (16:39 +0000)]
* miscfuncs.cc (yield): Revert (after researching) to calling SleepEx with 0.
We don't want to actually sleep when calling this function.

11 years agorevert accidentally checked in files
Christopher Faylor [Sat, 8 Jun 2013 14:42:44 +0000 (14:42 +0000)]
revert accidentally checked in files

11 years ago* cygwait.cc (cygwait): Remove lock around sig retrieval since this code is
Christopher Faylor [Sat, 8 Jun 2013 14:38:20 +0000 (14:38 +0000)]
* cygwait.cc (cygwait): Remove lock around sig retrieval since this code is
essentially guarded by thread-specific signal_arrived.
* exceptions.cc (_cygtls::handle_SIGCONT): Simplify.  Eliminate lock/unlock
since code is guarded by signal_arrived.

11 years agogas/
Richard Sandiford [Sat, 8 Jun 2013 10:22:55 +0000 (10:22 +0000)]
gas/
2013-06-08  Catherine Moore  <clm@codesourcery.com>

* config/tc-mips.c (is_opcode_valid):  Build ASE mask.
(is_opcode_valid_16): Pass ase value to opcode_is_member.
(append_insn): Change INSN_xxxx to ASE_xxxx.

include/
2013-06-08  Catherine Moore  <clm@codesourcery.com>

* opcode/mips.h (mips_opcode): Add ase field.
(INSN_ASE_MASK): Delete.
(INSN_DSP): Rename to ASE_DSP.  Provide new value.
(INSN_DSPR2): Rename to ASE_DSPR2.  Provide new value.
(INSN_MCU): Rename to ASE_MCU.  Provide new value.
(INSN_MDMX): Rename to ASE_MDMX.  Provide new value.
(INSN_MIPS3d): Rename to ASE_MIPS3D.  Provide new value.
(INSN_MT): Rename to ASE_MT.  Provide new value.
(INSN_SMARTMIPS): Rename to ASE_SMARTMIPS.  Provide new value.
(INSN_VIRT): Rename to ASE_VIRT.  Provide new value.
(INSN_VIRT64): Rename to ASE_VIRT64.  Provide new value.
(opcode_is_member): Add ase argument.  Check ase.

opcodes/
2013-06-08  Catherine Moore  <clm@codesourcery.com>
    Richard Sandiford  <rdsandiford@googlemail.com>

* micromips-opc.c (D32, D33, MC): Update definitions.
  (micromips_opcodes):  Initialize ase field.
* mips-dis.c (mips_arch_choice): Add ase field.
(mips_arch_choices): Initialize ase field.
(set_default_mips_dis_options): Declare and setup mips_ase.
* mips-opc.c (M3D, SMT, MX, IVIRT, IVIRT64, D32, D33, D64,
MT32, MC): Update definitions.
(mips_builtin_opcodes): Initialize ase field.

11 years ago * winver.rc (LegalCopyright): Belatedly bump to 2013.
Corinna Vinschen [Fri, 7 Jun 2013 19:07:05 +0000 (19:07 +0000)]
* winver.rc (LegalCopyright): Belatedly bump to 2013.

11 years agoaarch64: Add support for GNU indirect functions.
Will Newton [Fri, 7 Jun 2013 18:57:00 +0000 (18:57 +0000)]
aarch64: Add support for GNU indirect functions.

Add support for STT_GNU_IFUNC symbols to the AArch64 bfd backend. The tests
are ported from the ld-ifunc tests but are enabled for cross builds so can
be run easily without hardware or a simulator.

bfd/ChangeLog:

2013-06-07  Will Newton  <will.newton@linaro.org>

* configure: Regenerate.
* configure.in: Build elf-ifunc.o for AArch64.
* elf64-aarch64.c: Include objalloc.h.
(elf64_aarch64_howto_dynrelocs): Add R_AARCH64_IRELATIVE howto.
(struct elf64_aarch64_link_hash_table): Add members for handling
R_AARCH64_IRELATIVE relocations.
(elf_aarch64_local_htab_hash): New function.
(elf_aarch64_local_htab_eq): New function.
(elf_aarch64_get_local_sym_hash): New function.
(elf64_aarch64_link_hash_table_create): Initialize local STT_GNU_IFUNC
symbol hash.
(elf64_aarch64_hash_table_free): Free local STT_GNU_IFUNC symbol hash.
(elf64_aarch64_final_link_relocate): Add sym argument.  Add support
for handling STT_GNU_IFUNC symbols.
(elf64_aarch64_gc_sweep_hook): Add support for garbage collecting
references to STT_GNU_IFUNC symbols.
(elf64_aarch64_adjust_dynamic_symbol): Add support for handling
STT_GNU_IFUNC symbols.
(elf64_aarch64_check_relocs): Add support for handling STT_GNU_IFUNC
symbols.  Ensure we don't increase plt.refcount from -1 to 0.
(elf64_aarch64_post_process_headers): Call _bfd_elf_set_osabi.
(elf64_aarch64_is_function_type): Remove function.
(elf64_aarch64_allocate_dynrelocs): Call
_bfd_elf_allocate_ifunc_dyn_relocs for STT_GNU_IFUNC symbols.
(elf_aarch64_allocate_local_dynrelocs): New function.
(elf64_aarch64_size_dynamic_sections): Call
elf_aarch64_allocate_local_dynrelocs.  Initialize next_irelative_index.
(elf64_aarch64_create_small_pltn_entry): Add info argument.
Add support for creating .iplt entries for STT_GNU_IFUNC symbols.
(elf64_aarch64_finish_dynamic_symbol): Add support for handling
STT_GNU_IFUNC symbols and .iplt.
(elf_aarch64_finish_local_dynamic_symbol): New function.
(elf64_aarch64_finish_dynamic_sections): Call
elf_aarch64_finish_local_dynamic_symbol.
(elf64_aarch64_add_symbol_hook): New function.

include/elf/ChangeLog:

2013-06-07  Will Newton  <will.newton@linaro.org>

* aarch64.h: Add R_AARCH64_IRELATIVE reloc.

ld/ChangeLog:

2013-06-07  Will Newton  <will.newton@linaro.org>

* emulparams/aarch64elf.sh: Add IREL_IN_PLT.

ld/testsuite/ChangeLog:

2013-06-07  Will Newton  <will.newton@linaro.org>

* ld-ifunc/ifunc.exp: Enable ifunc tests for AArch64.
* ld-aarch64/aarch64-elf.exp: Add ifunc tests.
* ld-aarch64/ifunc-1-local.d: New file.
* ld-aarch64/ifunc-1-local.s: Likewise.
* ld-aarch64/ifunc-1.d: Likewise.
* ld-aarch64/ifunc-1.s: Likewise.
* ld-aarch64/ifunc-10.d: Likewise.
* ld-aarch64/ifunc-10.s: Likewise.
* ld-aarch64/ifunc-11.d: Likewise.
* ld-aarch64/ifunc-11.s: Likewise.
* ld-aarch64/ifunc-12.d: Likewise.
* ld-aarch64/ifunc-12.s: Likewise.
* ld-aarch64/ifunc-13.d: Likewise.
* ld-aarch64/ifunc-13a.s: Likewise.
* ld-aarch64/ifunc-13b.s: Likewise.
* ld-aarch64/ifunc-14a.d: Likewise.
* ld-aarch64/ifunc-14a.s: Likewise.
* ld-aarch64/ifunc-14b.d: Likewise.
* ld-aarch64/ifunc-14b.s: Likewise.
* ld-aarch64/ifunc-14c.d: Likewise.
* ld-aarch64/ifunc-14c.s: Likewise.
* ld-aarch64/ifunc-14d.d: Likewise.
* ld-aarch64/ifunc-14e.d: Likewise.
* ld-aarch64/ifunc-14f.d: Likewise.
* ld-aarch64/ifunc-15.d: Likewise.
* ld-aarch64/ifunc-15.s: Likewise.
* ld-aarch64/ifunc-16.d: Likewise.
* ld-aarch64/ifunc-16.s: Likewise.
* ld-aarch64/ifunc-17a.d: Likewise.
* ld-aarch64/ifunc-17a.s: Likewise.
* ld-aarch64/ifunc-17b.d: Likewise.
* ld-aarch64/ifunc-17b.s: Likewise.
* ld-aarch64/ifunc-18a.d: Likewise.
* ld-aarch64/ifunc-18a.s: Likewise.
* ld-aarch64/ifunc-18b.d: Likewise.
* ld-aarch64/ifunc-18b.s: Likewise.
* ld-aarch64/ifunc-19a.d: Likewise.
* ld-aarch64/ifunc-19a.s: Likewise.
* ld-aarch64/ifunc-19b.d: Likewise.
* ld-aarch64/ifunc-19b.s: Likewise.
* ld-aarch64/ifunc-2-local.d: Likewise.
* ld-aarch64/ifunc-2-local.s: Likewise.
* ld-aarch64/ifunc-2.d: Likewise.
* ld-aarch64/ifunc-2.s: Likewise.
* ld-aarch64/ifunc-20.d: Likewise.
* ld-aarch64/ifunc-20.s: Likewise.
* ld-aarch64/ifunc-3.s: Likewise.
* ld-aarch64/ifunc-3a.d: Likewise.
* ld-aarch64/ifunc-3b.d: Likewise.
* ld-aarch64/ifunc-4.d: Likewise.
* ld-aarch64/ifunc-4.s: Likewise.
* ld-aarch64/ifunc-4a.d: Likewise.
* ld-aarch64/ifunc-5-local.s: Likewise.
* ld-aarch64/ifunc-5.s: Likewise.
* ld-aarch64/ifunc-5a-local.d: Likewise.
* ld-aarch64/ifunc-5a.d: Likewise.
* ld-aarch64/ifunc-5b-local.d: Likewise.
* ld-aarch64/ifunc-5b.d: Likewise.
* ld-aarch64/ifunc-5r-local.d: Likewise.
* ld-aarch64/ifunc-6.s: Likewise.
* ld-aarch64/ifunc-6a.d: Likewise.
* ld-aarch64/ifunc-6b.d: Likewise.
* ld-aarch64/ifunc-7.s: Likewise.
* ld-aarch64/ifunc-7a.d: Likewise.
* ld-aarch64/ifunc-7b.d: Likewise.
* ld-aarch64/ifunc-8.d: Likewise.
* ld-aarch64/ifunc-8a.s: Likewise.
* ld-aarch64/ifunc-8b.s: Likewise.
* ld-aarch64/ifunc-9.d: Likewise.
* ld-aarch64/ifunc-9.s: Likewise.

11 years ago* exceptions.cc (_cygtls::handle_SIGCONT): Reinstate previous behavior but make
Christopher Faylor [Fri, 7 Jun 2013 17:09:56 +0000 (17:09 +0000)]
* exceptions.cc (_cygtls::handle_SIGCONT): Reinstate previous behavior but make
sure that yield() isn't called when signal stack is locked.

11 years ago* exceptions.cc (exception::handle): Add comment explaining si_addr behavior.
Christopher Faylor [Fri, 7 Jun 2013 16:05:12 +0000 (16:05 +0000)]
* exceptions.cc (exception::handle): Add comment explaining si_addr behavior.

11 years ago* DevNotes: Add entry cgf-000023.
Christopher Faylor [Fri, 7 Jun 2013 15:37:11 +0000 (15:37 +0000)]
* DevNotes: Add entry cgf-000023.
* sigproc.cc (exit_thread): Remove now-unneeded sleep code.

11 years agoFix typos
Corinna Vinschen [Fri, 7 Jun 2013 14:21:53 +0000 (14:21 +0000)]
Fix typos

11 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 21.
Corinna Vinschen [Fri, 7 Jun 2013 09:21:53 +0000 (09:21 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 21.

11 years ago * libc/include/cdefs.h (__has_extension): New define.
Corinna Vinschen [Fri, 7 Jun 2013 09:14:39 +0000 (09:14 +0000)]
* libc/include/cdefs.h (__has_extension): New define.
(__has_feature): Likewise.
(__has_include): Likewise.
(__has_builtin): Likewise.
* libc/include/stdatomic.h: New.

11 years ago * posix.sgml (std-notes): Fix typo.
Corinna Vinschen [Fri, 7 Jun 2013 08:43:01 +0000 (08:43 +0000)]
* posix.sgml (std-notes): Fix typo.

11 years ago * fhandler_disk_file.cc (fhandler_disk_file::pread): Skip to non-atomic
Corinna Vinschen [Fri, 7 Jun 2013 08:28:25 +0000 (08:28 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::pread): Skip to non-atomic
code if mandatory locking is used on this descriptor.  Explain why.
(fhandler_disk_file::pwrite): Ditto.
* posix.sgml (std-notes): Extend description of file locking.

11 years ago * mips.h (ELF_ST_SET_MIPS_PIC): Clear any STO_MIPS16 setting.
Maciej W. Rozycki [Thu, 6 Jun 2013 22:09:07 +0000 (22:09 +0000)]
* mips.h (ELF_ST_SET_MIPS_PIC): Clear any STO_MIPS16 setting.

11 years ago*** empty log message ***
Corinna Vinschen [Thu, 6 Jun 2013 15:31:15 +0000 (15:31 +0000)]
*** empty log message ***

11 years ago * exceptions.cc (_cygtls::handle_SIGCONT): Simplify loop waiting for
Corinna Vinschen [Thu, 6 Jun 2013 15:29:41 +0000 (15:29 +0000)]
* exceptions.cc (_cygtls::handle_SIGCONT): Simplify loop waiting for
sig_handle_tty_stop to wake up.  Make sure to unlock before calling
yield to avoid starvation of sig_handle_tty_stop.  Add comments.
* miscfuncs.cc (yield): Explain why yield should never be called under
_cygtls::lock conditions.  Call SleepEx with 1ms timeout.  Explain why.

11 years ago * libc/machine/arm/strcmp.S: Use local labels.
Corinna Vinschen [Wed, 5 Jun 2013 09:41:21 +0000 (09:41 +0000)]
* libc/machine/arm/strcmp.S: Use local labels.

11 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 20.
Corinna Vinschen [Wed, 5 Jun 2013 09:37:53 +0000 (09:37 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 20.

11 years ago * faq-copyright.xml: Fix link to license.
Corinna Vinschen [Wed, 5 Jun 2013 09:36:58 +0000 (09:36 +0000)]
* faq-copyright.xml: Fix link to license.
* faq-using.xml: Ditto.
* faq-what.xml: Ditto.

11 years ago * faq-programming.xml: Convert url to refer to new flat faq.html file.
Corinna Vinschen [Wed, 5 Jun 2013 07:57:39 +0000 (07:57 +0000)]
* faq-programming.xml: Convert url to refer to new flat faq.html file.
* faq-setup.xml: Ditto.
* faq-using.xml: Ditto.
* highlights.xml: Ditto.

11 years ago * new-features.xml (ov-new1.7.19): Revert mandatory locking support to
Corinna Vinschen [Wed, 5 Jun 2013 07:23:07 +0000 (07:23 +0000)]
* new-features.xml (ov-new1.7.19): Revert mandatory locking support to
"preliminary".

11 years ago*** empty log message ***
Corinna Vinschen [Wed, 5 Jun 2013 07:21:56 +0000 (07:21 +0000)]
*** empty log message ***

11 years ago * Makefile.in: Add rule to rebuild Makefile if Makefile.in changes.
Corinna Vinschen [Tue, 4 Jun 2013 11:50:41 +0000 (11:50 +0000)]
* Makefile.in: Add rule to rebuild Makefile if Makefile.in changes.
Include Makefile.dep last.
(Makefile.dep): Run xidepend within source dir.  Temporarily drop
faq.xml from dependencies.
* xidepend: Fix creating base filename to accommodate VPATH.

11 years ago * new-features.xml (ov-new1.7.19): Align mandatory locking text to
Corinna Vinschen [Tue, 4 Jun 2013 11:14:34 +0000 (11:14 +0000)]
* new-features.xml (ov-new1.7.19): Align mandatory locking text to
today's changes.

11 years ago * fhandler.cc (fhandler_base::lock): Move to flock.cc.
Corinna Vinschen [Tue, 4 Jun 2013 10:24:43 +0000 (10:24 +0000)]
* fhandler.cc (fhandler_base::lock): Move to flock.cc.
(fhandler_base::fixup_after_exec): Reset mandatory_locking.
* fhandler.h (class fhandler_base): Add mandatory_locking status flag.
Add mandatory_locking accessor methods.  Accommodate change throughout.
(fhandler_base::mand_lock): Declare.
(class fhandler_disk_file): Drop in favor of new status flag.
* (fhandler_disk_file::fcntl): Call need_fork_fixup if mandatory_locking
flag gets set.
* flock.cc (fhandler_base::lock): Define here.
(flock): Handle mandatory_locking.
(lockf): Ditto.
(fhandler_base::mand_lock): Define.

11 years ago2013-06-03 Joey Ye <joey.ye@arm.com>
Richard Earnshaw [Mon, 3 Jun 2013 14:02:10 +0000 (14:02 +0000)]
2013-06-03  Joey Ye  <joey.ye@arm.com>

* libc/machine/arm/Makefile.am (MEMCPY_DEP): New define.
($(lpfx)memcpy.o, $(lpfx)memcpy.obj): Depend on MEMCPY_DEP.
* libc/machine/arm/Makefile.in: Regenerated.
* newlib/libc/machine/arm/memcpy-stub.c: Exclude armv7-m/armv7e-m.
* newlib/libc/machine/arm/memcpy-armv7m.S: New.
* newlib/libc/machine/arm/memcpy.S: Replace with wrapper code.  Old
code moved to ...
* newlib/libc/machine/arm/memcpy-armv7a.S: ... here.  Remove
redundant architecture check.

11 years ago*** empty log message ***
Corinna Vinschen [Mon, 3 Jun 2013 10:40:41 +0000 (10:40 +0000)]
*** empty log message ***

11 years ago * sigproc.cc (exit_thread): Allow to exit the thread while running
Corinna Vinschen [Mon, 3 Jun 2013 09:48:54 +0000 (09:48 +0000)]
* sigproc.cc (exit_thread): Allow to exit the thread while running
global dtors.  Explain why.

11 years agoFix typo
Corinna Vinschen [Sun, 2 Jun 2013 10:50:57 +0000 (10:50 +0000)]
Fix typo

11 years ago * new-features.xml (ov-new1.7.19): Add mandatory locking.
Corinna Vinschen [Sun, 2 Jun 2013 10:22:56 +0000 (10:22 +0000)]
* new-features.xml (ov-new1.7.19): Add mandatory locking.

11 years ago * autoload.cc (CancelSynchronousIo): Define.
Corinna Vinschen [Sun, 2 Jun 2013 10:22:14 +0000 (10:22 +0000)]
* autoload.cc (CancelSynchronousIo): Define.
* fcntl.cc (fcntl64): Drop handling of locking commands.
* fhandler.h (class fhandler_disk_file): Add mandatory_locking.
(fhandler_disk_file::fcntl): Declare.
(fhandler_disk_file::mand_lock): Declare.
* fhandler_disk_file.cc (fhandler_disk_file::fhandler_disk_file):
Initialize mandatory_locking.
(fhandler_disk_file::fcntl): New method.  Handle F_LCK_MANDATORY and
locking commands.
(fhandler_disk_file::dup): Duplicate mandatory_locking.  Fix a bug
when duplicating prw_handle failed.
(fhandler_disk_file::fixup_after_fork): Reset mandatory_locking.
* flock.cc (fhandler_disk_file::lock): Add comment.
(struct lock_parms): New struct to pass parameters to blocking_lock_thr
thread function.
(blocking_lock_thr): New thread function.
(fhandler_disk_file::mand_lock): New methof implementing mandatory
locking with Windows semantics.
* ntdll.h (NtLockFile): Declare.
(NtUnlockFile): Declare.
* include/fcntl.h: Fix a comment.
(F_LCK_MANDATORY): Define.  Add lengthy comment to explain.

11 years ago * exceptions.cc (exception::handle): Resurrect accidentally lost
Corinna Vinschen [Sun, 2 Jun 2013 09:11:09 +0000 (09:11 +0000)]
*  exceptions.cc (exception::handle): Resurrect accidentally lost
patch from 2009-07-22: Set si_addr according to POSIX for SIGSEGV.

11 years ago * gas/config/tc-avr.c: Change ISA for devices with USB support to
Denis Chertykov [Sat, 1 Jun 2013 07:14:44 +0000 (07:14 +0000)]
* gas/config/tc-avr.c: Change ISA for devices with USB support to
AVR_ISA_XMEGAU

* include/opcode/avr.h: Rename AVR_ISA_XCH to AVR_ISA_RMW. Remove
from AVR_ISA_XMEGA and add new AVR_ISA_XMEGAU

11 years ago * include/sys/socket.h: Move SHUT_xx definitoins from here...
Corinna Vinschen [Fri, 31 May 2013 18:08:25 +0000 (18:08 +0000)]
* include/sys/socket.h: Move SHUT_xx definitoins from here...
* include/cygwin/socket.h: ...to here.

11 years ago*** empty log message ***
Corinna Vinschen [Fri, 31 May 2013 08:41:39 +0000 (08:41 +0000)]
*** empty log message ***

11 years ago * include/cygwin/if.h: Include cygwin/socket.h rather than sys/socket.h
Corinna Vinschen [Fri, 31 May 2013 08:40:35 +0000 (08:40 +0000)]
* include/cygwin/if.h: Include cygwin/socket.h rather than sys/socket.h
to avoid circular dependency resulting in bogus compile time warnings.

11 years ago2013-05-30 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 30 May 2013 22:44:41 +0000 (22:44 +0000)]
2013-05-30  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/machine/powerpc/times.c: Moved to libgloss/rs6000.
        * libc/machine/powerpc/Makefile.am: Remove times.c.
        * libc/machine/powerpc/Makefile.in: Regenerated.

11 years ago2013-05-30 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 30 May 2013 22:44:04 +0000 (22:44 +0000)]
2013-05-30  Jeff Johnston  <jjohnstn@redhat.com>

        * rs6000/Makefile.in: Add sim-times support.  This file has been
        moved from newlib/libc/machine/powerpc and renamed.
        * rs6000/sim-times.c: New file.

11 years ago2013-05-30 Paul Brook <paul@codesourcery.com>
Catherine Moore [Thu, 30 May 2013 20:27:21 +0000 (20:27 +0000)]
2013-05-30  Paul Brook  <paul@codesourcery.com>

bfd/
* bfd-in2.h: Regenerate.
* elf32-mips.c (elf_mips_eh_howto): New.
(bfd_elf32_bfd_reloc_type_lookup ): Support BFD_RELOC_MIPS_EH.
(bfd_elf32_bfd_reloc_name_lookup): Likewise.
(mips_elf32_rtype_to_howto): Support R_MIPS_EH.
* elf64-mips.c (elf_mips_eh_howto): New.
(bfd_elf64_bfd_reloc_type_lookup): Support BFD_RELOC_MIPS_EH.
(bfd_elf64_bfd_reloc_name_lookup): Likewise.
(mips_elf64_rtype_to_howto): Support R_MIPS_EH.
* libbfd.h: Regenerate.
* reloc.c (BFD_RELOC_MIPS_EH): New.

gas/
* config/tc-mips.c (md_apply_fix): Support BFD_RELOC_MIPS_EH.

include/elf
* mips.h (R_MIPS_EH): New.

11 years ago * configure.in (--enable-newlib-nano-malloc): New option.
Corinna Vinschen [Wed, 29 May 2013 12:37:59 +0000 (12:37 +0000)]
* configure.in (--enable-newlib-nano-malloc): New option.
* configure: Regenerated.
* libc/configure.in (--enable-newlib-nano-malloc): New option.
* libc/configure: Regenerated.
* libc/stdlib/Makefile.am (NEWLIB_NANO_MALLOC): Use.
* libc/stdlib/Makefile.in: Regenerated.
* libc/stdlib/nano-mallocr.c: New file, implementing nano
version malloc family functions.

11 years agoCorrect the relocation names for R_AARCH64_TLSDESC_LD_PREL19 and R_AARCH64_TLSDESC_AD...
Yufeng Zhang [Tue, 28 May 2013 16:39:51 +0000 (16:39 +0000)]
Correct the relocation names for R_AARCH64_TLSDESC_LD_PREL19 and R_AARCH64_TLSDESC_ADR_PAGE21.

11 years ago * fhandler_procsys.cc (fhandler_procsys::read): Just call
Corinna Vinschen [Tue, 28 May 2013 15:07:01 +0000 (15:07 +0000)]
* fhandler_procsys.cc (fhandler_procsys::read): Just call
fhandler_base::raw_read from here.  Drop comment.
(fhandler_procsys::write): Drop comment.

11 years ago* libc/macine/arm/strcpy.S: Explicitly set build attributes when
Richard Earnshaw [Tue, 28 May 2013 12:43:48 +0000 (12:43 +0000)]
* libc/macine/arm/strcpy.S: Explicitly set build attributes when
building for thumb1 targets.

11 years ago*** empty log message ***
Corinna Vinschen [Mon, 27 May 2013 19:41:54 +0000 (19:41 +0000)]
*** empty log message ***

11 years ago * dll_init.cc (dll_list::topsort): Fix early-return condition to
Corinna Vinschen [Mon, 27 May 2013 19:31:04 +0000 (19:31 +0000)]
* dll_init.cc (dll_list::topsort): Fix early-return condition to
accommodate process with all runtime loaded DLLs already dlclosed
at fork time.
* gendef (_sigfe_maybe): Fix code handling early return if we don't
have a tls, broken on 2013-05-21.

11 years ago*** empty log message ***
Corinna Vinschen [Sat, 25 May 2013 09:00:43 +0000 (09:00 +0000)]
*** empty log message ***

11 years ago * Makefile.in (DEFS): Unused, remove.
Corinna Vinschen [Fri, 24 May 2013 21:12:16 +0000 (21:12 +0000)]
* Makefile.in (DEFS): Unused, remove.
(COMPILE.cc): Move -mno-use-libstdc-wrappers flag from here...
($(TEST_DLL_NAME)): ...to here since it's a link time flag.

11 years ago * pinfo.cc (pinfo::status_exit): Enhance comment.
Corinna Vinschen [Fri, 24 May 2013 13:43:26 +0000 (13:43 +0000)]
* pinfo.cc (pinfo::status_exit): Enhance comment.

11 years ago * environ.cc (win_env::add_cache): Set the Windows environment variable
Corinna Vinschen [Fri, 24 May 2013 13:32:10 +0000 (13:32 +0000)]
* environ.cc (win_env::add_cache): Set the Windows environment variable
using wide chars to make sure native chars don't get scrambled.
* environ.h (build_env): Fix formatting in declaration.
* pinfo.cc (pinfo::status_exit): Handle STATUS_NO_MEMORY.  Explain why.

11 years ago * fork.cc (frok::parent): Always set CREATE_UNICODE_ENVIRONMENT flag.
Corinna Vinschen [Fri, 24 May 2013 08:43:43 +0000 (08:43 +0000)]
* fork.cc (frok::parent): Always set CREATE_UNICODE_ENVIRONMENT flag.
Explain why.

11 years ago * fork.cc (frok::parent): Call CreateProcessW with command line set
Corinna Vinschen [Thu, 23 May 2013 20:47:45 +0000 (20:47 +0000)]
* fork.cc (frok::parent): Call CreateProcessW with command line set
to the parent command line.  Change comment to explain why.

11 years ago * dcrt0.cc (child_info_fork::alloc_stack_hard_way): Fix datatype of
Corinna Vinschen [Thu, 23 May 2013 20:10:35 +0000 (20:10 +0000)]
* dcrt0.cc (child_info_fork::alloc_stack_hard_way): Fix datatype of
stacksize to SIZE_T.  Cast to SIZE_T in pointer arithmetic.  Slightly
enhance output in case of a fatal error.
* fork.cc (frok::parent): Always set ch.stackaddr to DeallocationStack
value of current thread to help stack reservation in
child_info_fork::alloc_stack_hard_way along.  Simplify subsequent code
storing stack values in ch.  Print guardsize in hex, too.

11 years ago.
Warren Young [Thu, 23 May 2013 19:03:19 +0000 (19:03 +0000)]
.

11 years agoCreated xidepend mechanism
Warren Young [Thu, 23 May 2013 19:02:46 +0000 (19:02 +0000)]
Created xidepend mechanism

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