]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
13 years agolibgloss: bfin: sync headers to VDSP 5.0 Update 8
Michael Frysinger [Sun, 17 Oct 2010 23:52:49 +0000 (23:52 +0000)]
libgloss: bfin: sync headers to VDSP 5.0 Update 8

A new release of VDSP means syncing random updates to the libgloss headers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agofix dates
Christopher Faylor [Sat, 16 Oct 2010 17:58:48 +0000 (17:58 +0000)]
fix dates

13 years agolibgloss: bfin: add support for bf592 processors
Michael Frysinger [Sat, 16 Oct 2010 17:06:55 +0000 (17:06 +0000)]
libgloss: bfin: add support for bf592 processors

Import the headers from VisualDSP and add a linker script for them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agolibgloss: bfin: add support for bf50x processors
Michael Frysinger [Fri, 15 Oct 2010 20:32:11 +0000 (20:32 +0000)]
libgloss: bfin: add support for bf50x processors

Import the headers from VisualDSP and add linker scripts for them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agochangelogs for previous blackfin commits
Michael Frysinger [Fri, 15 Oct 2010 05:43:16 +0000 (05:43 +0000)]
changelogs for previous blackfin commits

13 years agolibgloss: bfin: handle L1 sections in linker scripts
Michael Frysinger [Fri, 15 Oct 2010 05:41:53 +0000 (05:41 +0000)]
libgloss: bfin: handle L1 sections in linker scripts

Make sure gcc L1 attributes work with the default Blackfin linker scripts.

Signed-off-by: Stuart Henderson <stuart.henderson@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agolibgloss: bfin: drop BF541 headers
Michael Frysinger [Fri, 15 Oct 2010 05:38:51 +0000 (05:38 +0000)]
libgloss: bfin: drop BF541 headers

The BF541 never actually existed, so punt it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago2010-10-14 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Thu, 14 Oct 2010 20:14:33 +0000 (20:14 +0000)]
2010-10-14  Craig Howland <howland@LGSInnovations.com>

        * libc/include/math.h:  Delete cabs() and cabs() prototypes
        (c.f. 2010-10-08 change by Corinna).

13 years agoApplied patch series for LD plugin interface (six parts).
Dave Korn [Thu, 14 Oct 2010 01:31:28 +0000 (01:31 +0000)]
Applied patch series for LD plugin interface (six parts).

[PATCH] Add infrastructure for plugin API; functionality to follow.

    include/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 1/6).
* plugin-api.h (LDPT_GNU_LD_VERSION): New ld_plugin_tag enum member.

    ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 1/6).
* configure.in: Add AC_CHECKs for file io and dlfcn headers and
functions and AC_SEARCH for -ldl.
(enable_plugins): New shell variable set if above tests find dlopen
functionality.
(ENABLE_PLUGINS): Add related automake conditional.
* configure: Regenerate.
* config.in: Likewise.
* Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
on ENABLE_PLUGINS being defined.
(PLUGIN_H): Likewise for header file.
(PLUGIN_OBJECT): Likewise for object file.
(PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
(AM_CPPFLAGS): Use PLUGIN_CFLAGS.
(CFILES): Use PLUGIN_C.
(HFILES): Use PLUGIN_H.
(OFILES): Use PLUGIN_OBJECT.
(ld_new_SOURCES): Use PLUGIN_C.
(noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
(libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
for test plugin.
(libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
(libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
* Makefile.in: Regenerate.
* sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
sys/file.h where available.  Include dlfcn.h when ENABLE_PLUGINS.
(O_RDONLY): Supply default definition likewise to bfd's sysdep.h
(O_WRONLY): Likewise.
(O_RDWR): Likewise.
(O_ACCMODE): Likewise.
(O_BINARY): Likewise.
(SEEK_SET): Likewise.
(SEEK_CUR): Likewise.
(SEEK_END): Likewise.
* ldmisc.c (vfinfo): Make non-static.  Add %p format char.
* ldmisc.h (vfinfo): Declare extern prototype.
* lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
OPTION_PLUGIN and OPTION_PLUGIN_OPT.
(ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
(parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
option parsing is complete.
* ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
after lang_finish.
* plugin.c: New source file.
* plugin.h: Likewise new header.
* testplug.c: New source file.

    ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 1/6).
* ld-bootstrap/bootstrap.exp: Skip static tests also if LD plugins
are enabled.
* lib/ld-lib.exp (proc regexp_diff): Extend verbose debug output.
(proc set_file_contents): Write a file with the supplied content.
(run_ld_link_tests): Add new 'ld' action to test linker output.
(proc check_plugin_api_available): Return true if linker under test
supports the plugin API.
* ld-plugin/func.c: New test source file.
* ld-plugin/main.c: Likewise.
* ld-plugin/text.c: Likewise.
* ld-plugin/plugin-1.d: New dump test output pattern script.
* ld-plugin/plugin-2.d: Likewise.
* ld-plugin/plugin-3.d: Likewise.
* ld-plugin/plugin-4.d: Likewise.
* ld-plugin/plugin-5.d: Likewise.
* ld-plugin/plugin.exp: New test control script.
---
[PATCH] Implement claim file and all symbols read hooks and add symbols callback.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 2/6).
* ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
during compat checks if they pass, instead offer any successfully
opened and accepted file to the plugin claim file hooks chain.  Create
a dummy bfd to accept symbols added by the plugin, if the plugin
claims the file.
* ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
read hook chain before ldemul_after_open.
* ldlang.h (struct lang_input_statement_struct): Add new single-bit
'claimed' flag.
* plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
(IRONLY_SUFFIX_LEN): Length of the above string.
(plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
to store symbols for ir-only files.
(is_ir_dummy_bfd): New function to check if a bfd is ir-only.
(asymbol_from_plugin_symbol): New function converts symbol formats.
(add_symbols): Call it to convert plugin syms to bfd syms and add
them to the dummy bfd.
* plugin.h: Add missing include guards.
(plugin_get_ir_dummy_bfd): Add prototype.
(is_ir_dummy_bfd): Likewise.
* testplug.c (TV_MESSAGE): New helper macro.
(struct claim_file): New struct.
(claim_file_t): New typedef.
(tag_names[]): Make static and const.
(claimfiles_list): New variable.
(claimfiles_tail_chain_ptr): Likewise.
(last_claimfile): Likewise.
(record_claim_file): Record a file to claim on a singly-linked list.
(parse_symdefstr): Parse an ASCII representation of a symbol from a
plugin option into the fields of a struct ld_plugin_symbol.
(record_claimed_file_symbol):  Use it to parse plugin option for
adding a symbol.
(parse_option): Parse claim file and add symbol options.
(dump_tv_tag): Use TV_MESSAGE.
(onload): Likewise.
(onclaim_file): Make static.  Use TV_MESSAGE.  Scan list of files to
claim and claim this file if required, adding any symbols specified.
(onall_symbols_read): Make static and use TV_MESSAGE.
(oncleanup): Likewise.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 2/6).
* ld-plugin/plugin-3.d: Enable regexes for new functionality.
* ld-plugin/plugin-5.d: Likewise.
* ld-plugin/plugin-6.d: New testcase.
* ld-plugin/plugin-7.d: Likewise.
* ld-plugin/plugin.exp: Use 'nm' on compiled test objects to determine
whether symbols in plugin arguments need an underscore prefix.  Add
new plugin-6.d and plugin-7.d testcases.
---
[PATCH] Implement get symbols callback.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 3/6).
* ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
* plugin.c (non_ironly_hash): Add new bfd hash table.
(plugin_load_plugins): Exit early if no plugins to load.  If plugins
do load successfully, set notice_all flag in link info.
(get_symbols): Implement.
(plugin_load_plugins): Exit early if no plugins to load, else after
loading plugins successfully enable notice_all mode.
(init_non_ironly_hash): Lazily init non_ironly_hash table.
(plugin_notice): Record symbols referenced from non-IR files in the
non_ironly_hash.  Suppress tracing, cref generation and nocrossrefs
tracking for symbols from dummy IR bfds.
* plugin.h: Fix formatting.
(plugin_notice): Add prototype.
* testplug.c (dumpresolutions): New global var.
(parse_options): Accept "dumpresolutions".
(onall_symbols_read): Get syms and dump resolutions if it was given.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 3/6).
* ld-plugin/plugin-8.d: New testcase.
* ld-plugin/plugin.exp: Invoke it.
---
[PATCH] Implement add input file, add input lib and set extra lib path callbacks.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 4/6).
* ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
plugin_call_all_symbols_read to before setting of gc_sym_list, and
open any new input files that may have been added during it.
* ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
plugin_multiple_definition and let it have first say over what to do
with the clashing definitions.
* plugin.c (no_more_claiming): New boolean variable.
(plugin_cached_allow_multiple_defs): Likewise.
(add_input_file): Implement.
(add_input_library): Likewise.
(set_extra_library_path): Likewise.
(plugin_call_claim_file): Don't do anything when no_more_claiming set.
(plugin_call_all_symbols_read): Set it.  Disable link info
"allow_multiple_definition" flag, but cache its value.
(plugin_multiple_definition): New function.
* plugin.h (plugin_multiple_definition): Add prototype.
* testplug.c (addfile_enum_t): New enumerated typedef.
(add_file_t): New struct typedef.
(addfiles_list): New variable.
(addfiles_tail_chain_ptr): Likewise.
(record_add_file): New function.
(parse_option): Parse "add:", "lib:" and "dir:" options and call it.
(onall_symbols_read): Iterate the list of new files, libs and dirs,
adding them.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 4/6).
* ld-plugin/plugin-9.d: New testcase.
* ld-plugin/plugin.exp: Invoke it.
---
[PATCH] Add ELF symbol visibility support to plugin interface.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 5/6).
* plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
find the elf symbol data and set the visibility in the st_other field.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 5/6).
* ld-plugin/plugin-ignore.d: New dump test control script.
* ld-plugin/plugin-vis-1.d: Likewise.
* ld-plugin/plugin.exp: Add list of ELF-only tests and run them if
testing on an ELF target.
---
[PATCH] Add archive support to plugin interface.

  bfd/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 6/6).
* aoutx.h (aout_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(aout_link_check_archive_element): Handle substitute bfd if it
was set during add_archive_element callback in the above.
* cofflink.c (coff_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(coff_link_check_archive_element): Handle substitute bfd if it
was set during add_archive_element callback in the above.
* ecoff.c (read_ext_syms_and_strs): New function holds symbol-reading
code factored-out from ecoff_link_check_archive_element.
(reread_ext_syms_and_strs): Clear old symbols and call it.
(ecoff_link_check_archive_element):  Use the above.  Handle substitute
BFD if one is set by add_archive_element callback.
(ecoff_link_add_archive_symbols): Likewise allow bfd substitution.
* elflink.c (elf_link_add_archive_symbols): Likewise.
* linker.c (generic_link_check_archive_element): Likewise.
* pdp11.c (aout_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(aout_link_check_archive_element): Handle substitute bfd if it was
set during add_archive_element callback in the above.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Handle substitute
BFD if one is set by add_archive_element callback.
* xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Take new "subsbfd"
reference parameter and pass it when invoking add_archive_element
callback.
(xcoff_link_check_ar_symbols): Likewise.
(xcoff_link_check_archive_element): Handle bfd substitution if it was
set by callback in the above.

  include/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 6/6).
* bfdlink.h (struct_bfd_link_callbacks): Document new argument
to add_archive_element callback used to return a replacement bfd which
is to be added to the hash table in place of the original element.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 6/6).
* ldlang.c (load_symbols): Handle bfd subsitution when calling the
add_archive_element callback.
* ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
member to the plugins and if claimed set "subsbfd" output parameter to
point to the dummy IR-only BFD.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 6/6).
* ld-plugin/plugin-10.d: New dump test control script.
* ld-plugin/plugin-11.d: Likewise.
* ld-plugin/plugin.exp: Run them.
---

13 years ago*** empty log message ***
Corinna Vinschen [Sat, 9 Oct 2010 11:01:03 +0000 (11:01 +0000)]
*** empty log message ***

13 years ago * new-features.sgml (ov-new1.7.8): Document reinstantiation of the
Corinna Vinschen [Sat, 9 Oct 2010 11:00:47 +0000 (11:00 +0000)]
* new-features.sgml (ov-new1.7.8): Document reinstantiation of the
original 1.7 CWD handling.

13 years ago * cygheap.h (cwdstuff::override_win32_cwd): Declare.
Corinna Vinschen [Sat, 9 Oct 2010 10:54:13 +0000 (10:54 +0000)]
* cygheap.h (cwdstuff::override_win32_cwd): Declare.
* ntdll.h (struct _PEB): Add members accessed by the fast cwd method
starting with Vista.
(struct _KUSER_SHARED_DATA): Define with only the DismountCount.
(RtlAllocateHeap): Declare.
(RtlEnterCriticalSection): Declare.
(RtlFreeHeap): Declare.
(RtlLeaveCriticalSection): Declare.
* path.cc (get_user_proc_parms): Remove.
(struct _FAST_CWD): New structure.
(fast_cwd_ptr): Define.
(SharedUserData): Define.
(peek32): Define.
(find_fast_cwd_pointers): New function to find the global pointer
to the current FAST_CWD structure.
(copy_cwd_str): New helper function.
(cwdstuff::override_win32_cwd): New method to set the Win32 CWD.
(cwdstuff::init): Just call override_win32_cwd from here when
started from native Win32 parent.
(cwdstuff::set): Access Win32 CWD via PEB reference instead of using
get_user_proc_parms function.  Memorize old DismountCount before
opening directory handle.  Call override_win32_cwd to set up Win32 CWD.
Be more verbose in comments.
* wincap.h (wincaps::has_fast_cwd): New element.
* wincap.cc: Implement has_fast_cwd element throughout.

13 years agocgen/
Alan Modra [Sat, 9 Oct 2010 06:50:21 +0000 (06:50 +0000)]
cgen/
* utils-cgen.scm (gen-attr-accessors): Rename bool attribute to bool_.
* cpu/mep.opc (mep_cgen_insn_supported): Ditto.
include/opcode/
* cgen.h (CGEN_ATTR, CGEN_ATTR_TYPE): Rename bool attribute to bool_.
(CGEN_ATTR_BOOLS, CGEN_ATTR_CGEN_INSN_ALIAS_VALUE): Likewise.

opcodes/
* fr30-desc.h: Regenerate.
* frv-desc.h: Regenerate.
* ip2k-desc.h: Regenerate.
* iq2000-desc.h: Regenerate.
* lm32-desc.h: Regenerate.
* m32c-desc.h: Regenerate.
* m32r-desc.h: Regenerate.
* mep-desc.h: Regenerate.
* mep-opc.c: Regenerate.
* mt-desc.h: Regenerate.
* openrisc-desc.h: Regenerate.
* xc16x-desc.h: Regenerate.
* xstormy16-desc.h: Regenerate.

13 years ago2010-10-08 Bernd Schmidt <bernds@codesourcery.com>
Jeff Johnston [Sat, 9 Oct 2010 02:33:30 +0000 (02:33 +0000)]
2010-10-08  Bernd Schmidt  <bernds@codesourcery.com>
        Joseph Myers  <joseph@codesourcery.com>

        * configure.host: Handle tic6x targets.
        * libc/include/machine/ieeefp.h: Define endianness for C6X.
        * libc/include/machine/setjmp.h: Add __TMS320C6X__ case.
        * libc/machine/configure.in: Handle tic6x targets.
        * libc/machine/configure: Regenerate.
        * libc/machine/tic6x/Makefile.am, libc/machine/tic6x/configure.in,
        libc/machine/tic6x/setjmp.S: New.
        * libc/machine/tic6x/Makefile.in, libc/machine/tic6x/aclocal.m4,
        libc/machine/tic6x/configure: New (generated).

13 years ago2010-10-08 Bernd Schmidt <bernds@codesourcery.com>
Jeff Johnston [Sat, 9 Oct 2010 02:31:22 +0000 (02:31 +0000)]
2010-10-08  Bernd Schmidt  <bernds@codesourcery.com>
        Joseph Myers  <joseph@codesourcery.com>

        * configure.in: Handle tic6x targets.
        * configure: Regenerate.
        * tic6x/Makefile.in, tic6x/configure.in, tic6x/crt0.S,
        tic6x/getpid.c, tic6x/kill.c, tic6x/sbrk.c, tic6x/syscalls.c: New.
        * tic6x/configure: New (generated).

13 years ago2010-10-08 Bernd Schmidt <bernds@codesourcery.com>
Jeff Johnston [Sat, 9 Oct 2010 02:29:34 +0000 (02:29 +0000)]
2010-10-08  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

        * COPYING.LIBGLOSS: Add National Semiconductor and CodeSourcery
        notices.
        * COPYING.NEWLIB: Add Texas Instruments notice.

13 years ago * libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
Corinna Vinschen [Fri, 8 Oct 2010 15:28:49 +0000 (15:28 +0000)]
* libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.

13 years ago * libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts
Corinna Vinschen [Fri, 8 Oct 2010 15:24:56 +0000 (15:24 +0000)]
* libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts
to __uint32_t to avoid overflows on implicit casts.

13 years ago * libm/complex/complex.tex: Add empty stub.
Corinna Vinschen [Fri, 8 Oct 2010 15:01:14 +0000 (15:01 +0000)]
* libm/complex/complex.tex: Add empty stub.

13 years ago * new-features.sgml (ov-new1.7.8): Document new C99 complex API.
Corinna Vinschen [Fri, 8 Oct 2010 10:56:14 +0000 (10:56 +0000)]
* new-features.sgml (ov-new1.7.8): Document new C99 complex API.

13 years ago * cygwin.din: Export new complex math functions from newlib.
Corinna Vinschen [Fri, 8 Oct 2010 10:51:17 +0000 (10:51 +0000)]
* cygwin.din: Export new complex math functions from newlib.
* posix.sgml: Move newly exported complex functions to implemented
SUSv4 functions.
* include/cygwin/version.h: Bump API minor version.

13 years ago * libm/math/w_cabs.c: Delete.
Corinna Vinschen [Fri, 8 Oct 2010 10:49:28 +0000 (10:49 +0000)]
* libm/math/w_cabs.c: Delete.
* libm/math/wf_cabs.c: Delete.
* libm/math/Makefile.am (src): Remove w_cabs.c.
(fsrc): Remove wf_cabs.c.
* libm/math/Makefile.in: Regenerate.

13 years ago * libc/include/complex.h: New complex header.
Corinna Vinschen [Fri, 8 Oct 2010 10:35:14 +0000 (10:35 +0000)]
* libc/include/complex.h: New complex header.
* libm/common/fdlibm.h: Added ifdef _COMPLEX_H.
* libm/complex/*: New complex functions imported from NetBSD.
* libm/Makefile.am: Added complex subdir.
* libm/Makefile.in: Regenerate.
* libm/configure.in: Added complex subdir.
* libm/configure: Regenerate.

13 years ago * configure.ac (build_lto_plugin): New shell variable.
Dave Korn [Thu, 7 Oct 2010 20:50:02 +0000 (20:50 +0000)]
* configure.ac (build_lto_plugin): New shell variable.
(--enable-lto): Turn on by default for all non-ELF platforms that
have had LTO support added so far.  Set build_lto_plugin appropriately
for both ELF and non-ELF.
(configdirs): Add lto-plugin or not based on build_lto_plugin.
* configure: Regenerate.

13 years agoAdd missing ChangeLog entry for toplevel configure from 2010-07-26.
Ralf Wildenhues [Thu, 7 Oct 2010 19:25:44 +0000 (19:25 +0000)]
Add missing ChangeLog entry for toplevel configure from 2010-07-26.

13 years ago * fhandler.h (fhandler_base::get_stat_access): Delete.
Corinna Vinschen [Thu, 7 Oct 2010 14:03:26 +0000 (14:03 +0000)]
* fhandler.h (fhandler_base::get_stat_access): Delete.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Always check
executable suffix to get x-bits for .exe files also in notexec case.
Always reopen file when checking for file header.
* ntdll.h (wait_pending): Delete.
* path.cc (symlink_info::check_shortcut): Drop call to wait_pending
since file is always opened for sync IO.
(symlink_info::check_sysfile): Ditto.
(MIN_STAT_ACCESS): Remove.
(FULL_STAT_ACCESS): Remove.
(symlink_info::check): Drop access flag.  Revert to open file with
just read attributes access.  Reorder symlink check to check for
reparse points first.  Don't check reparse points for anything else,
even on remote drives.  Open file for GENERIC_READ when trying to
read shortcuts or system-bit symlinks. Accommodate dropped access
flag in call to path_conv_handle::set.
* path.h (class path_conv_handle): Drop access flag and accommodate
all related methods.

13 years agomerge from gcc
DJ Delorie [Wed, 6 Oct 2010 23:01:23 +0000 (23:01 +0000)]
merge from gcc

13 years ago * posix_ipc.cc (ipc_mutex_init): Call NtCreateMutant to make sure the
Corinna Vinschen [Wed, 6 Oct 2010 20:20:01 +0000 (20:20 +0000)]
* posix_ipc.cc (ipc_mutex_init): Call NtCreateMutant to make sure the
access mask is correct.
(ipc_cond_init): Take additional parameter to differ between send and
receive event.  Call NtCreateEvent to make sure the access mask is
correct.
(ipc_cond_timedwait): Reset Event prior to calling WFMO.
(struct mq_info): Split mqi_wait into two events, mqi_waitsend and
mqi_waitrecv.
(mq_open): Calloc mqinfo.  Create mqi_waitsend and mqi_waitrecv events.
Make sure all synchronization objects are closed in case of an error.
(_mq_send): Wait for mqi_waitsend event.  Signal mqi_waitrecv event.
(_mq_receive): Wait for mqi_waitrecv event.  Signal mqi_waitsend event.
(mq_close): Close mqi_waitsend and mqi_waitrecv events.

13 years ago * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
Corinna Vinschen [Wed, 6 Oct 2010 09:29:35 +0000 (09:29 +0000)]
* lib/str-two-way.h (two_way_long_needle): Avoid bug with long
periodic needle having false positive.  Affects memmem, strstr,
strcasestr.

13 years agoreally sync config/ChangeLog
Paolo Bonzini [Wed, 6 Oct 2010 08:48:22 +0000 (08:48 +0000)]
really sync config/ChangeLog

13 years agosync config/ChangeLog
Paolo Bonzini [Wed, 6 Oct 2010 07:41:26 +0000 (07:41 +0000)]
sync config/ChangeLog

13 years ago * path.h (enum pathconv_arg): Remove PC_CHECK_EA.
Corinna Vinschen [Tue, 5 Oct 2010 14:19:17 +0000 (14:19 +0000)]
* path.h (enum pathconv_arg): Remove PC_CHECK_EA.

13 years agoadd missing object files to qemu support library.
Anthony Green [Sat, 2 Oct 2010 19:54:12 +0000 (19:54 +0000)]
add missing object files to qemu support library.

13 years agoMinor crt0 improvement for moxie
Anthony Green [Sat, 2 Oct 2010 19:34:25 +0000 (19:34 +0000)]
Minor crt0 improvement for moxie

13 years ago* dcrt0.cc (dll_crt0_0): Move _main_tls initialization here.
Christopher Faylor [Sat, 2 Oct 2010 19:08:21 +0000 (19:08 +0000)]
* dcrt0.cc (dll_crt0_0): Move _main_tls initialization here.
(__dll_crt0): Only initialize _main_tls if it changes.
* fhandler_console.cc (fhandler_console::write): Fix debugging output.

13 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Simplify.
Corinna Vinschen [Sat, 2 Oct 2010 19:03:44 +0000 (19:03 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Simplify.
Just call nfs_fetch_fattr3 if called via fstat.
* nfs.cc (nfs_fetch_fattr3): New function to fetch NFS fattr3 info from
file handle.
* nfs.h (nfs_fetch_fattr3): Declare.
* path.cc (symlink_info::check): Simplify NFS case.  Just call
nfs_fetch_fattr3.

13 years agoAllow to pass separate configure arguments for build, host and target.
Ralf Wildenhues [Sat, 2 Oct 2010 14:54:06 +0000 (14:54 +0000)]
Allow to pass separate configure arguments for build, host and target.

/:
PR bootstrap/45326
PR bootstrap/45174
* configure.ac: Honor initial values of $build_configargs,
$host_configargs, $target_configargs.  Mark the precious, so
environment settings get recorded.
* configure: Regenerate.

13 years agoSync toplevel and config from GCC.
Ralf Wildenhues [Sat, 2 Oct 2010 14:42:48 +0000 (14:42 +0000)]
Sync toplevel and config from GCC.

/:
Sync from GCC:

2010-09-30  Michael Eager  <eager@eagercon.com>

* configure.ac (microblaze): Add target-libssp to noconfigdirs.
* configure: Regenerate.

2010-09-21  Iain Sandoe  <iains@gcc.gnu.org>

* configure.ac (enable-lto): Add Darwin to the list of supported lto
targets and amend comment.
* configure: Regenerate.

2010-09-03  Jack Howarth <howarth@bromo.med.uc.edu>

* configure.ac: Enable LTO by default on Darwin.
* configure: Regenerate.

2010-07-23  Marc Glisse <marc.glisse@normalesup.org>

PR bootstrap/44455
* configure.ac (extra_mpfr_configure_flags): Copy from
extra_mpc_gmp_configure_flags.
* configure: Re-generated.

config/:
Sync from GCC:

2010-09-10  Jonathan Yong  <jon_y@users.sourceforge.net>

* dfp.m4: Enable decimal float for i?86 cygwin
and mingw, and for x86_64 mingw.

13 years ago * fhandler_procsys.cc (fhandler_procsys::exists): Return virt_none
Corinna Vinschen [Sat, 2 Oct 2010 08:44:08 +0000 (08:44 +0000)]
* fhandler_procsys.cc (fhandler_procsys::exists): Return virt_none
if path is invalid.

13 years ago* autoload.cc (std_dll_init): Add a retry loop.
Christopher Faylor [Fri, 1 Oct 2010 21:53:11 +0000 (21:53 +0000)]
* autoload.cc (std_dll_init): Add a retry loop.

13 years agobuild: info-gcc, dvi-gcc etc work from unbuilt configured tree.
Ralf Wildenhues [Thu, 30 Sep 2010 21:55:13 +0000 (21:55 +0000)]
build: info-gcc, dvi-gcc etc work from unbuilt configured tree.

/:
Sync from GCC:

PR bootstrap/45796
* Makefile.def (info-gcc, dvi-gcc, pdf-gcc, html-gcc):
Depend on all-build-libiberty.
* Makefile.in: Regenerate.

13 years ago * fhandler.cc: Drop including nfs.h.
Corinna Vinschen [Thu, 30 Sep 2010 13:52:34 +0000 (13:52 +0000)]
* fhandler.cc: Drop including nfs.h.
* fhandler_disk_file.cc: Ditto.
(fhandler_base::fstat_by_nfs_ea): Use fattr3 from path_conv member,
unless called from fstat.
* path.cc: Drop including nfs.h.
(symlink_info::check): Rearrange definition of file info buffers.
Fetch fattr3 info for files on NFS and store in conv_hdl for later
use in fhandler_base::fstat_by_nfs_ea.  Use fattr3 file type to
recognize symlink on NFS and try to fetch symlink target only for
actual symlinks.
* path.h: Include nfs.h.
(class path_conv_handle): Change file info storage to union of
FILE_NETWORK_OPEN_INFORMATION and fattr3 structures.
(path_conv_handle::fnoi): Align to aforementioned change.
(path_conv_handle::nfsattr): New method.
(path_conv::nfsattr): New method.

13 years ago * path.cc (symlink_info::check): Remove erroneous assumption about
Corinna Vinschen [Thu, 30 Sep 2010 10:42:34 +0000 (10:42 +0000)]
* path.cc (symlink_info::check): Remove erroneous assumption about
required permissions when reading NFS symlinks.

13 years ago* fhandler_tty.cc (fhandler_tty_slave::init): Revert to using tc->setpgid since
Christopher Faylor [Wed, 29 Sep 2010 15:08:49 +0000 (15:08 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Revert to using tc->setpgid since
previous change broke some use cases.

13 years agoinclude/
Bernd Schmidt [Wed, 29 Sep 2010 10:14:02 +0000 (10:14 +0000)]
include/
* opcode/tic6x-control-registers.h (tscl): Now read_write.

gas/testsuite/
* gas/tic6x/insns-bad-1.s: Remove test for readonly tscl.
* gas/tic6x/insns-bad-1.l: Likewise.
* gas/tic6x/insns-c674x.d: Add test for writeable tscl.
* gas/tic6x/insns-c674x.s: Likewise.

13 years ago* fhandler_tty.cc (fhandler_tty_slave::init): Add debugging. Use tcsetpgrp to
Christopher Faylor [Wed, 29 Sep 2010 03:57:24 +0000 (03:57 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Add debugging.  Use tcsetpgrp to
potentially set pgid since it is smarter about deciding if a process is in the
background.
* include/sys/cygwin.h (PID_ORPHANED): Actually delete as planned.
(PID_NOTCYGWIN): Correctly define.

13 years ago * net.cc (getdomainname): Drop special case for NT4.
Corinna Vinschen [Tue, 28 Sep 2010 16:18:57 +0000 (16:18 +0000)]
* net.cc (getdomainname): Drop special case for NT4.

13 years ago Revert accidental previous login.
Corinna Vinschen [Tue, 28 Sep 2010 14:49:31 +0000 (14:49 +0000)]
Revert accidental previous login.

13 years ago * Makefile.in (DLL_IMPORTS): Remove libadvapi32.a.
Corinna Vinschen [Tue, 28 Sep 2010 14:40:18 +0000 (14:40 +0000)]
* Makefile.in (DLL_IMPORTS): Remove libadvapi32.a.
* autoload.cc: Add all advapi32 entry points.
* mount.cc (mount_info::init): Read user fstab only if we have a
username.
* passwd.cc (pwdgrp::read_passwd): Only use username if we have one.
* shared.cc (user_info::initialize): Set cb last so as not to override
planned behaviour in pwdgrp::read_passwd.
* uinfo.cc (cygheap_user::init): Fetch Windows username from environment
variable $USERNAME.  Don't set name in cygheap if variable is empty.
(internal_getlogin): If we still have no username, try GetUserNameW.

13 years ago * fhandler_tty.cc (fhandler_pty_master::setup): Always create master
Corinna Vinschen [Tue, 28 Sep 2010 10:13:19 +0000 (10:13 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Always create master
thread.

13 years ago * syscalls.cc (gethostid): Use correct path to ProductId registry value.
Corinna Vinschen [Tue, 28 Sep 2010 07:54:52 +0000 (07:54 +0000)]
* syscalls.cc (gethostid): Use correct path to ProductId registry value.

13 years agoFix unportable shell quoting.
Ralf Wildenhues [Mon, 27 Sep 2010 20:22:49 +0000 (20:22 +0000)]
Fix unportable shell quoting.

/:
Sync from GCC:

PR bootstrap/44621
* configure.ac: Fix unportable shell quoting.
* configure: Regenerate.

config/:
* po.m4 (AM_PO_SUBDIRS): Fix unportable shell quoting.

bfd/:
* configure: Regenerate.

gas/:
* configure: Regenerate.

gold/:
* configure: Regenerate.

intl/:
* configure: Regenerate.

ld/:
* configure: Regenerate.

opcodes/:
* configure: Regenerate.

binutils/:
* configure: Regenerate.

gprof/:
* configure: Regenerate.

13 years ago * pathnames.sgml (mount-table): Fix pathnames-mount-ex example. Change
Corinna Vinschen [Mon, 27 Sep 2010 16:46:34 +0000 (16:46 +0000)]
* pathnames.sgml (mount-table): Fix pathnames-mount-ex example.  Change
an expression.

13 years ago * new-features.sgml (ov-new1.7.8): Document dropped NT4 pre-SP4 support.
Corinna Vinschen [Mon, 27 Sep 2010 16:37:57 +0000 (16:37 +0000)]
* new-features.sgml (ov-new1.7.8): Document dropped NT4 pre-SP4 support.
* faq-what.xml (faq.what.supported): Change accordingly.
* ntsec.sgml (ntsec-mapping): Add 2008 R2.

13 years ago * mount.cc (fs_info::update): Remove erroneous NtClose on random handle
Corinna Vinschen [Mon, 27 Sep 2010 16:10:14 +0000 (16:10 +0000)]
* mount.cc (fs_info::update): Remove erroneous NtClose on random handle
value.

13 years ago2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Mon, 27 Sep 2010 13:36:48 +0000 (13:36 +0000)]
2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-mkopc.c (enum s390_opcde_cpu_val): Add S390_OPCODE_Z196.
(main): Recognize the new CPU string.
* s390-opc.c: Add new instruction formats and masks.
* s390-opc.txt: Add new z196 instructions.

2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* opcode/s390.h: Add S390_OPCODE_Z196 to enum s390_opcode_cpu_val.

2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c: (md_parse_option): New option -march=z196.
* doc/c-s390.texi: Document new option.

2010-09-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/s390.exp: Run the zarch-z196 test.
* gas/s390/zarch-z196.d: Add new instructions.
* gas/s390/zarch-z196.s: Likewise.
* gas/s390/zarch-z9-109.d: Likewise.
* gas/s390/zarch-z9-109.s: Likewise.

13 years ago * uinfo.cc (cygheap_user::init): Call GetUserNameW and convert to
Corinna Vinschen [Sun, 26 Sep 2010 15:45:10 +0000 (15:45 +0000)]
* uinfo.cc (cygheap_user::init): Call GetUserNameW and convert to
multibyte here so as not to rely on the current ANSI page.

13 years ago* dcrt0.cc (__main): Force signal synchronization.
Christopher Faylor [Sun, 26 Sep 2010 14:57:12 +0000 (14:57 +0000)]
* dcrt0.cc (__main): Force signal synchronization.

13 years ago * fhandler_socket.cc (fhandler_socket::bind): Drop has_exclusiveaddruse
Corinna Vinschen [Sat, 25 Sep 2010 20:06:21 +0000 (20:06 +0000)]
* fhandler_socket.cc (fhandler_socket::bind): Drop has_exclusiveaddruse
condition.  Fix comment about availability.  Move remaining comment to
the right spot.  Drop has_ip_helper_lib condition.
* net.cc (cygwin_setsockopt): Drop has_disabled_user_tos_setting
condition.  Fix comment.
(get_2k_ifs): Fix comment.
(get_nt_ifs): Remove.
(getifaddrs): Drop call to get_nt_ifs.
(get_ifconf): Ditto.
* wincap.cc: Throughout, drop has_ip_helper_lib,
has_disabled_user_tos_setting, and has_exclusiveaddruse settings from
wincaps.
(wincap_unknown): Remove.
(wincap_nt4): Remove.
(wincap_minimal): New macro, set to wincap_nt4sp4 for now.
(wincapc::init): Drop test for pre-SP4 NT4.  Just imply at least NT SP4.
Replace references to wincap_unknown with references to wincap_minimal.
* wincap.h (struct wincaps): Drop has_ip_helper_lib,
has_disabled_user_tos_setting, and has_exclusiveaddruse flags and
methods.

13 years ago * autoload.cc: Throughout. order entry points alphabetically by DLL
Corinna Vinschen [Sat, 25 Sep 2010 19:57:34 +0000 (19:57 +0000)]
* autoload.cc: Throughout. order entry points alphabetically by DLL
and function name.  Make functions which are available on all supported
systems non-optional.  Fix return value on entry points imported from
secur32.dll.  Add comment.
(std_dll_init): Call fesetenv unconditionally.

13 years ago* autoload.cc (std_dll_init): Move dll_path closer to its use. Use dll_path in
Christopher Faylor [Fri, 24 Sep 2010 19:53:18 +0000 (19:53 +0000)]
* autoload.cc (std_dll_init): Move dll_path closer to its use.  Use dll_path in
fatal error.  Set ret values under lock control.
* lib/minires.c (res_nsend): Fix compilation errors owing to pointer
signedness.

13 years ago * fhandler.cc (fhandler_base::open): Handle query_write_dac flag.
Corinna Vinschen [Fri, 24 Sep 2010 16:22:53 +0000 (16:22 +0000)]
* fhandler.cc (fhandler_base::open): Handle query_write_dac flag.
* fhandler.h (enum query_state): Add query_write_dac flag.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Open file
with query_write_dac instead of query_write_control.

13 years ago * errno.cc (errmap): Map ERROR_BAD_NET_RESP to ENOSYS.
Corinna Vinschen [Fri, 24 Sep 2010 12:41:33 +0000 (12:41 +0000)]
* errno.cc (errmap): Map ERROR_BAD_NET_RESP to ENOSYS.
* fhandler_disk_file.cc (fhandler_disk_file::facl): Handle ENOSYS and
point to  the explanation.
* ntdll.h (STATUS_NOT_IMPLEMENTED): Define.
* path.cc (symlink_info::check): Handle the inability of NT4 to use
FileNetworkOpenInformation on share root dirs in either direction.
* path.h (slash_unc_prefix_p): Remove unused declaration.
* security.cc (get_info_from_sd): Handle ENOSYS from get_file_sd.
Explain when this happens.

13 years ago* autoload.cc (std_dll_init): Use correct format type when displaying dll name
Christopher Faylor [Thu, 23 Sep 2010 20:18:16 +0000 (20:18 +0000)]
* autoload.cc (std_dll_init): Use correct format type when displaying dll name
in error output.

13 years ago * bfd/bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
Matthew Gretton-Dann [Thu, 23 Sep 2010 15:52:19 +0000 (15:52 +0000)]
* bfd/bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
* gas/config/tc-arm.c (arm_ext_virt): New variable.
(arm_reg_type): Add REG_TYPE_RNB for banked registers.
(reg_entry): Allow registers to be larger than a byte.
(reg_alias): Fix type warning.
(parse_operands): Parse banked registers when appropriate.
(do_mrs): Add support for Virtualization Extensions.
(do_hvc): New function.
(do_t_mrs): Add support for Virtualization Extensions.
(do_t_msr): Likewise.
(do_t_hvc): New function.
(SPLRBANK): New define.
(reg_names): Add banked registers.
(insns): Add support for Virtualization Extensions.
(md_apply_fixup): Likewise.
(arm_cpus): -mcpu=cortex-a15 implies the Virtualization Extensions.
(arm_extensions): Add 'virt' extension.
(aeabi_set_public_attributes): Add support for Virtualization
Extensions.
* gas/doc/c-arm.texi: Document 'virt' extension.
* gas/testsuite/gas/arm/armv7-a+virt.d: New test.
* gas/testsuite/gas/arm/armv7-a+virt.s: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Virtualization Extensions.
* gas/testsuite/gas/arm/attr-march-armv7-a+sec+virt.d: New test.
* gas/testsuite/gas/arm/attr-march-armv7-a+virt.d: Likewise.
* include/opcode/arm.h (ARM_EXT_VIRT): New define.
(ARM_ARCH_V7A_IDIV_MP_SEC): Rename...
(ARM_ARCH_V7A_IDIV_MP_SEC_VIRT): ...to this and include Virtualization
Extensions.
* opcodes/arm-dis.c (arm_opcodes): Add Virtualiztion Extensions support.
(thumb32_opcodes): Likewise.
(banked_regname): New function.
(print_insn_arm): Add Virtualization Extensions support.
(print_insn_thumb32): Likewise.

13 years ago * gas/config/tc-arm.c (arm_ext_adiv): New variable.
Matthew Gretton-Dann [Thu, 23 Sep 2010 15:37:45 +0000 (15:37 +0000)]
* gas/config/tc-arm.c (arm_ext_adiv): New variable.
(do_div): New function.
(insns): Accept UDIV and SDIV in ARM state.
(arm_cpus): The cortex-a15 option has all current v7-A extensions.
(arm_extensions): Add 'idiv' extension.
(aeabi_set_public_attributes): Update Tag_DIV_use values for the
Integer Divide extension.
* gas/doc/c-arm.texi: Document the idiv extension.
* gas/testsuite/gas/arm/armv7-a+idiv.d: New test.
* gas/testsuite/gas/arm/armv7-a+idiv.s: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Integer divide extension.
* gas/testsuite/gas/arm/attr-march-armv7-a+idiv.d: New test.
* include/opcode/arm.h (ARM_AEXT_ADIV): New define.
(ARM_ARCH_V7A_IDIV_MP_SEC): Likewise.
* opcodes/arm-dis.c (arm_opcodes): Support disassembly of UDIV and SDIV in
ARM state.

13 years ago * config/tc-arm.c (arm_ext_v6m): New variable.
Matthew Gretton-Dann [Thu, 23 Sep 2010 15:31:34 +0000 (15:31 +0000)]
* config/tc-arm.c (arm_ext_v6m): New variable.
(arm_ext_m): Add support for OS extension.
(arm_ext_os): New variable.
(do_t_swi): In v6-M ensure we have the OS extension.
(arm_cpus): The cortex-m1 and cortex-m0 options have the OS
extension by default.
(arm_archs): Add armv6s-m.
(arm_extensions): Add 'os' extension.
(cpu_arch_ver): Add support for v6S-M.
* gas/doc/c-arm.texi: Document the OS Extension, and v6-m and v6s-m
architecture options.
* gas/testsuite/gas/arm/archv6s-m-bad.d: New test.
* gas/testsuite/gas/arm/archv6s-m-bad.l: Likewise.
* gas/testsuite/gas/arm/archv6s-m.d: Likewise.
* gas/testsuite/gas/arm/archv6s-m.s: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6-m+os.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6s-m.d: Likewise.
* include/opcode/arm.h (ARM_EXT_OS): New define.
(ARM_AEXT_V6SM): Likewise.
(ARM_ARCH_V6SM): Likewise.

13 years ago * gas/config/tc-arm.c (arm_ext_v6z): Remove.
Matthew Gretton-Dann [Thu, 23 Sep 2010 15:26:23 +0000 (15:26 +0000)]
* gas/config/tc-arm.c (arm_ext_v6z): Remove.
(arm_ext_sec): New variable.
(do_t_smc): In Thumb state SMC requires v7-A.
(insns): Make SMC depend on Security Extensions.
(arm_cpus): All -mcpu=cortex-a* options have the Security Extensions.
(arm_extensions): Add 'sec' extension.
(cpu_arch_ver): Reorder.
(aeabi_set_public_attributes): Emit Tag_Virtualization_use as
appropriate.
* gas/doc/c-arm.texi: Document Security Extensions.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Security Extensions..
* gas/testsuite/gas/arm/attr-march-armv6k+sec.d: New test.
* gas/testsuite/gas/arm/attr-march-armv6z.d: Update for Security Extensions.
* gas/testsuite/gas/arm/attr-march-armv6zk.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6zkt2.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6zt2.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv7-a+sec.d: New test.
* gas/testsuite/gas/arm/attr-mcpu.d: Update for Security Extensions.
* gas/testsuite/gas/arm/thumb32.d: Likewise.
* gas/testsuite/gas/arm/thumb32.s: Likewise.
* include/opcode/arm.h (ARM_EXT_V6Z): Remove.
(ARM_EXT_SEC): New define.
(ARM_AEXT_V6Z): Use Security Extensions.
(ARM_AEXT_V6ZK): Likeiwse.
(ARM_AEXT_V6ZT2): Likewise.
(ARM_AEXT_V6ZKT2): Likewise.
(ARM_AEXT_V7_ARM): Base v7 does not have Security Extensions.
(ARM_ARCH_V7A_SEC): New define.
(ARM_ARCH_V7A_MP): Rename...
(ARM_ARCH_V7A_MP_SEC): ...to this and add Security Extensions.
* ld/testsuite/ld-arm/attr-merge-6.attr: Update for Security Extensions.
* ld/testsuite/ld-arm/attr-merge-7.attr: Likewise.
* opcodes/arm-dis.c (arm_opcodes): SMC implies Security Extensions.
(thumb32_opcodes): Likewise.

13 years ago * gas/config/tc-arm.c (arm_ext_mp): Add.
Matthew Gretton-Dann [Thu, 23 Sep 2010 15:18:18 +0000 (15:18 +0000)]
* gas/config/tc-arm.c (arm_ext_mp): Add.
(do_pld): Update comment.
(insns): Add support for pldw.
(arm_cpus): Update cortex-a5, cortex-a9, and cortex-a15 to support
MP extension.
(arm_extensions): Add 'mp' extension.
(aeabi_set_public_attributes): Emit correct build attribute when
MP extension is enabled.
* gas/doc/c-arm.texi: Update for MP extensions.
* gas/testsuite/gas/arm/arch7a-mp.d: Add.
* gas/testsuite/gas/arm/arch7ar-mp.s: Likewise.
* gas/testsuite/gas/arm/arch7r-mp.d: Likewise.
* gas/testsuite/gas/arm/armv2-mp-bad.d: Likewise.
* gas/testsuite/gas/arm/armv2-mp-bad.l: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for MP extension.
* gas/testsuite/gas/arm/attr-march-armv7-a+mp.d: Add.
* gas/testsuite/gas/arm/attr-march-armv7-r+mp.d: Likewise.
* include/opcode/arm.h (ARM_EXT_MP): Add.
(ARM_ARCH_V7A_MP): Likewise.
* opcodes/arm-dis.c (arm_opcodes): Add support for pldw.
(thumb32_opcodes): Likewise.

13 years ago * doc/porting.texi: Fix typos.
Corinna Vinschen [Thu, 23 Sep 2010 08:07:47 +0000 (08:07 +0000)]
* doc/porting.texi: Fix typos.

13 years agolibgloss: add Blackfin to the README
Michael Frysinger [Wed, 22 Sep 2010 22:45:07 +0000 (22:45 +0000)]
libgloss: add Blackfin to the README

13 years agoopcodes/gas: blackfin: support OUTC debug insn
Michael Frysinger [Wed, 22 Sep 2010 20:59:00 +0000 (20:59 +0000)]
opcodes/gas: blackfin: support OUTC debug insn

The disassembler has partial (but incomplete/broken) support already for
the pseudo debug insn OUTC, so let's fix it up and finish it.  And now
that the disassembler can handle it, make sure our assembler can output
it too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago2010-09-21 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Wed, 22 Sep 2010 03:15:07 +0000 (03:15 +0000)]
2010-09-21  Craig Howland <howland@LGSInnovations.com>

        * libc/string/memcpy.c: Do not assign size_t parameter to int.
        Use parameter directly, instead.
        * libc/string/memccpy.c:  Likewise.
        * libc/string/mempcpy.c:  Likewise.
        * libc/string/memmove.c:  Likewise.

13 years ago2010-09-21 Pierre Humblet <Pierre.Humblet@ieee.org>
Pierre Humblet [Tue, 21 Sep 2010 21:41:31 +0000 (21:41 +0000)]
2010-09-21  Pierre Humblet <Pierre.Humblet@ieee.org>

        * libc/minires.c (res_nsend): Use the Windows resolver if appropriate.
        (dn_expand): Only set errno in case of error. Delete old comments.
        (dn_skipname): Fix typo in comment.

13 years ago * path.cc (cwdstuff::set): Replace constant 2 with sizeof(WCHAR) where
Corinna Vinschen [Tue, 21 Sep 2010 16:41:17 +0000 (16:41 +0000)]
* path.cc (cwdstuff::set): Replace constant 2 with sizeof(WCHAR) where
appropriate.

13 years ago * mount.h (class fs_info): Add has_buggy_reopen flag and accessor
Corinna Vinschen [Tue, 21 Sep 2010 16:32:22 +0000 (16:32 +0000)]
* mount.h (class fs_info): Add has_buggy_reopen flag and accessor
methods.
* mount.cc (fs_info::update): Set has_buggy_reopen flag for NWFS.
Add comment.
* path.h (path_conv::get_object_attr) Make inline method.
(path_conv::init_reopen_attr): New inline method.
* path.cc (path_conv::get_object_attr): Remove.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Use
path_conv::init_reopen_attr method to initialize OBJECT_ATTRIBUTE for
reopening file.
(fhandler_disk_file::fchmod): Ditto.
(fhandler_base::utimens_fs): Ditto.
(fhandler_disk_file::rewinddir): Ditto.
* syscalls.cc (unlink_nt): Ditto.

13 years ago * fhandler.cc (fhandler_base::open): Always open NFS files with
Corinna Vinschen [Tue, 21 Sep 2010 16:07:20 +0000 (16:07 +0000)]
* fhandler.cc (fhandler_base::open): Always open NFS files with
FILE_READ_EA, even when opening with O_WRONLY to allow fstat.
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Call
FlushFileBuffers if file has been opened for writing.  Explain why.
(fhandler_base::fstat_by_handle): Renew content of pc.fnoi if called
via fstat.  Explain why.  Fix formatting.
* path.cc (symlink_info::check): Try to open file the second time with
FILE_READ_EA permissions since it's needed in later calls to
fhandler_base::fstat_by_nfs_ea.

13 years agoopcodes: blackfin: strip trailing whitespace
Michael Frysinger [Tue, 21 Sep 2010 06:04:21 +0000 (06:04 +0000)]
opcodes: blackfin: strip trailing whitespace

13 years ago* include/sys/cygwin.h (PID_NOTCYGWIN): New enum.
Christopher Faylor [Mon, 20 Sep 2010 22:28:57 +0000 (22:28 +0000)]
* include/sys/cygwin.h (PID_NOTCYGWIN): New enum.
* spawn.cc (spawn_guts): Set a flag when a process is not a cygwin process.
* fhandler_tty.cc (fhandler_tty_slave::init): Remove previous change.  Try a
different method to determine when we should become the process group owner.
* signal.cc (kill0): Remove archaic code which dealt with never-set flag.

13 years ago* fhandler_tty.cc (fhandler_tty_slave::init): Add additional checks to
Christopher Faylor [Mon, 20 Sep 2010 20:25:50 +0000 (20:25 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Add additional checks to
determine when a process should grab control of a tty's pgid.  Use
being_debugged() for consistency.
* debug.h (being_debugged): Remove vestige of win9x accommodation.

13 years ago* wincap.h (wincaps::has_buggy_thread_startup): Declare.
Christopher Faylor [Sun, 19 Sep 2010 20:18:36 +0000 (20:18 +0000)]
* wincap.h (wincaps::has_buggy_thread_startup): Declare.
(wincapc::has_buggy_thread_startup): Ditto.
* wincap.cc::wincap_*): Accommodate has_buggy_thread_startup.
(wincapc::init): Explicitly turn off has_buggy_thread_startup if not WOW64.
* cygthread.h (cygthread::thread_handle): Declare/define new method.
* dcrt0.cc (_dll_crt0): Don't call __sinit here.
(dll_crt0_0): Don't call sigproc_init during initialization if
wincap.has_buggy_thread_startup().
(dll_crt0_1): Defer sigproc_init to here when
wincap.has_buggy_thread_startup().  Call __sinit after we've determined that
we're not forking.
(__main): Rework comments.  Add potential future reminder.

13 years ago* overview2.sgml: Remove cheerful paragraph which implied that it was ok to
Christopher Faylor [Sat, 18 Sep 2010 15:58:46 +0000 (15:58 +0000)]
* overview2.sgml: Remove cheerful paragraph which implied that it was ok to
casually mix Windows and POSIX.  Add more words about mixing POSIX/Windows.

13 years ago * setup2.sgml (setup-locale-how): Fix typo.
Corinna Vinschen [Sat, 18 Sep 2010 11:29:06 +0000 (11:29 +0000)]
* setup2.sgml (setup-locale-how): Fix typo.

13 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch number
Corinna Vinschen [Wed, 15 Sep 2010 11:26:10 +0000 (11:26 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch number
of links and inode number only if path has good inodes.
(fhandler_base::fstat_by_name): Fetch inode number only if path has
good inodes.

13 years agoFix typo in my most recent ChangeLog entry. Regenerated file is
Kevin Buettner [Tue, 14 Sep 2010 17:09:41 +0000 (17:09 +0000)]
Fix typo in my most recent ChangeLog entry.  Regenerated file is
Makefile.in, not Makefile.

13 years ago * path.cc (symlink_info::check): Make sure AllocationSize and EndOfFile
Corinna Vinschen [Tue, 14 Sep 2010 14:10:39 +0000 (14:10 +0000)]
* path.cc (symlink_info::check): Make sure AllocationSize and EndOfFile
are stored in the right order when fetching the info from the
NtQueryDirectoryFile result.

13 years ago * fhandler_process.cc (get_mem_values): Simplify code. Fix
Corinna Vinschen [Mon, 13 Sep 2010 13:02:19 +0000 (13:02 +0000)]
* fhandler_process.cc (get_mem_values): Simplify code.  Fix
NtQueryVirtualMemory loop so it handles memory allocation gracefully.
Always set errno to a useful value.

13 years ago * fhandler.h (class fhandler_base): Change inheritance of fstat_helper
Corinna Vinschen [Mon, 13 Sep 2010 11:17:36 +0000 (11:17 +0000)]
* fhandler.h (class fhandler_base): Change inheritance of fstat_helper
and fstat_by_...  methods to private.
(fhandler_base::fstat_helper): Drop all redundant arguments.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Drop call
to fstat_by_nfs_ea here.  Drop fetching basic file information.
Drop setting file attributes.  Accommodate change in fstat_helper call.
(fhandler_base::fstat_by_name): Simplify.  Only fetch directory
information to get the inode number.  Drop setting file attributes.
Accommodate change in fstat_helper call.
(fhandler_base::fstat_fs): Call fstat_by_nfs_ea if on NFS.
(fhandler_base::fstat_helper): Drop all redundant arguments.  Use
information already collected in the fhandler.  Move heading comment
into code and drop dwFileAttributes comment.
* mmap.cc (mmap64): Call fstat_fs rather than fstat_by_handle.
* mount.cc (fs_info::update): Note that has_buggy_basic_info is unused.
* path.cc (symlink_info::check_reparse_point): Add comment.
(symlink_info::check): Fetch FileNetworkOpenInformation rather than
FileBasicInformation throughout, except on NFS.  Explain why.  Store
FILE_NETWORK_OPEN_INFORMATION in conv_hdl.  Remove
FILE_ATTRIBUTE_DIRECTORY attribute in conv_hdl for reparse point
symlinks.
* path.h (class path_conv_handle): Add FILE_NETWORK_OPEN_INFORMATION
member _fnoi.
(path_conv_handle::fnoi): New accessor method for _fnoi.
(path_conv::fnoi): New accessor method for cubv_hdl._fnoi.

* fhandler_tty.cc (fhandler_tty_slave::init): Use tty::setpgid method.

13 years ago * sec_acl.cc (acl_worker): Remove.
Corinna Vinschen [Sun, 12 Sep 2010 19:43:55 +0000 (19:43 +0000)]
* sec_acl.cc (acl_worker): Remove.
(acl32): Implement acl_worker functionality here.
(lacl32): Just return -1 with errno set to ENOSYS.
(lacl): Ditto.
* include/cygwin/acl.h (lacl): Remove this call.

13 years ago* sigproc.cc (sig_dispatch_pending): Remove debugging statement.
Christopher Faylor [Sun, 12 Sep 2010 19:13:09 +0000 (19:13 +0000)]
* sigproc.cc (sig_dispatch_pending): Remove debugging statement.
(sigproc_init): Wrap a long line.

13 years ago* cygthread.h (cygthread::cygthread): Reorganize slightly.
Christopher Faylor [Sun, 12 Sep 2010 15:49:30 +0000 (15:49 +0000)]
* cygthread.h (cygthread::cygthread): Reorganize slightly.
* dcrt0.cc (dll_crt0_0): Move sigproc initialization later to ensure everything
we need has been set up.
(dll_crt0_1): Streamline some logic slightly.
* sigproc.cc (no_signals_available): Add back dropped test for macro parameter.
* fhandler_console.cc (fhandler_console::write): Show a little bit of what's
being written to the console in debugging output.

13 years ago * syscalls.cc (start_transaction): Make inline function. Move up to be
Corinna Vinschen [Sun, 12 Sep 2010 11:41:56 +0000 (11:41 +0000)]
* syscalls.cc (start_transaction): Make inline function.  Move up to be
more generally available.
(stop_transaction): Ditto.
(unlink_nt): Potentially start transaction when trying to delete file
with DOS R/O attribute set.  If file is .lnk symlink, check for number
of hardlinks.  Add "out" label and only return via "out".  Rearrange
reversion of DOS R/O attribute and, on success, only revert R/O
attribute if file is .lnk symlink with more than one hardlink.  Add
length comment to explain why.

13 years ago * new-features.sgml: Mention fenv support.
Dave Korn [Sat, 11 Sep 2010 11:42:15 +0000 (11:42 +0000)]
* new-features.sgml: Mention fenv support.

13 years ago * fhandler_disk_file.cc (fhandler_disk_file::rmdir): More thoroughly
Corinna Vinschen [Sat, 11 Sep 2010 10:58:42 +0000 (10:58 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rmdir): More thoroughly
check the existence condition on remote drives.  Enhance comment.

13 years agowinsup/cygwin/ChangeLog:
Dave Korn [Sat, 11 Sep 2010 06:53:28 +0000 (06:53 +0000)]
winsup/cygwin/ChangeLog:

* Makefile.in (DLL_OFILES): Add new fenv.o module.
(fenv_CFLAGS): New flags definition for fenv.o compile.
* autoload.cc (std_dll_init): Use fenv.h functions instead of direct
manipulation of x87 FPU registers.
* crt0.c (mainCRTStartup): Likewise.
* cygwin.din (feclearexcept, fegetexceptflag, feraiseexcept,
fesetexceptflag, fetestexcept, fegetround, fesetround, fegetenv,
feholdexcept, fesetenv, feupdateenv, fegetprec, fesetprec,
feenableexcept, fedisableexcept, fegetexcept, _feinitialise,
_fe_dfl_env, _fe_nomask_env): Export new functions and data items.
* fenv.cc: New file.
* posix.sgml: Update status of newly-implemented APIs.
* include/fenv.h: Likewise related header.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago * syscalls.cc (rename): Limit retry loop in case of sharing violation
Corinna Vinschen [Fri, 10 Sep 2010 19:55:26 +0000 (19:55 +0000)]
* syscalls.cc (rename): Limit retry loop in case of sharing violation
to about a second.

13 years ago * syscalls.cc (fstatat): Call stat_worker directly from here.
Corinna Vinschen [Fri, 10 Sep 2010 18:51:44 +0000 (18:51 +0000)]
* syscalls.cc (fstatat): Call stat_worker directly from here.

13 years ago * flock.cc (allow_others_to_sync): Define MAX_PROCESS_SD_SIZE. Use
Corinna Vinschen [Fri, 10 Sep 2010 14:53:44 +0000 (14:53 +0000)]
* flock.cc (allow_others_to_sync): Define MAX_PROCESS_SD_SIZE.  Use
instead of ACL_DEFAULT_SIZE.
* sec_acl.cc (setacl): Use TLS buffer to allow maximum ACL size.
* security.h (ACL_DEFAULT_SIZE): Drop definition.
(ACL_MAXIMUM_SIZE): Define.
(SD_MAXIMUM_SIZE): Define.
* security.cc (get_file_sd): Allocate security_decscriptor with size
SD_MAXIMUM_SIZE.
(alloc_sd): Use TLS buffer to allow maximum ACL size.

13 years ago * mount.cc (class fs_info_cache): New class to cache filesystem
Corinna Vinschen [Fri, 10 Sep 2010 10:04:28 +0000 (10:04 +0000)]
* mount.cc (class fs_info_cache): New class to cache filesystem
information.
(fs_info::update): Check FileFsVolumeInformation against filesystem
cache and use it, if filesystem is already available.  Add filesystem
to cache, if not.  Only request FileFsObjectIdInformation if
FILE_SUPPORTS_OBJECT_IDS is set in filesystem flags.
* ntdll.h (struct _FILE_FS_VOLUME_INFORMATION): Add pragma pack so the
structure size is matching the OS expectations.  Add __dummy member
used in filesystem cache.

13 years ago * security.cc (get_file_sd): Add bool parameter justcreated. Use
Corinna Vinschen [Fri, 10 Sep 2010 09:32:13 +0000 (09:32 +0000)]
* security.cc (get_file_sd): Add bool parameter justcreated.  Use
GetSecurityInfo only if justcreated is true, NtQuerySecurityObject
otherwise.  Add comment to explain why.  Don't waste time to call
NtQuerySecurityObject twice, just allocate big enough area.
(get_file_attribute): Call get_file_sd with justcreated set to false.
(set_file_attribute): Call get_file_sd with justcreated depending on
S_JUSTCREATED pseudo file attribute.
(check_file_access): Call get_file_sd with justcreated set to false.
* sec_acl.cc (setacl): Ditto.
(getacl): Ditto.
* security.h: Convert many functions to regparm functions.
(get_file_sd): Declare with extra bool parameter.

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