]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
15 years ago* setup2.sgml: Clarify heap allocation.
Christopher Faylor [Mon, 22 Sep 2008 16:55:30 +0000 (16:55 +0000)]
* setup2.sgml: Clarify heap allocation.

15 years ago * plugin-api.h (ld_plugin_status): Remove comma from the last item.
Ian Lance Taylor [Mon, 22 Sep 2008 16:37:41 +0000 (16:37 +0000)]
* plugin-api.h (ld_plugin_status): Remove comma from the last item.
Use C style comment.
(ld_plugin_api_version, ld_plugin_output_file_type,
ld_plugin_symbol_kind, ld_plugin_symbol_visibility,
ld_plugin_symbol_resolution, ld_plugin_level, ld_plugin_tag): Remove
comma from the last item.

15 years ago2008-09-21 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sun, 21 Sep 2008 16:56:45 +0000 (16:56 +0000)]
2008-09-21  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * incude/sspi.h: include subauth.h to fix issue of UNICODE_STRING being
        undefined.

15 years ago* errno.cc (_sys_errlist): Add ECANCELED, ENOTRECOVERABLE, EOWNERDEAD.
Eric Blake [Fri, 19 Sep 2008 23:29:24 +0000 (23:29 +0000)]
* errno.cc (_sys_errlist): Add ECANCELED, ENOTRECOVERABLE, EOWNERDEAD.

15 years agoAdd plugin functionality for link-time optimization (LTO).
Cary Coutant [Fri, 19 Sep 2008 22:54:57 +0000 (22:54 +0000)]
Add plugin functionality for link-time optimization (LTO).

include/:
* plugin-api.h: New file.

gold/:
* configure.ac (plugins): Add --enable-plugins option.
* configure: Regenerate.
* config.in: Regenerate.
* Makefile.am (LIBDL): New variable.
(CCFILES): Add plugin.cc.
(HFILES): Add plugin.h.
(ldadd_var): Add LIBDL.
* Makefile.in: Regenerate.

* archive.cc: Include "plugin.h".
(Archive::setup): Don't preread archive symbols when using a plugin.
(Archive::get_file_and_offset): Add memsize parameter.  Change callers.
(Archive::get_elf_object_for_member): Call plugin hooks for claiming
files.
(Archive::include_member): Add symbols from plugin objects.
* archive.h (Archive::get_file_and_offset): Add memsize parameter.
* descriptors.cc (Descriptors::open): Check for file descriptors
abandoned by plugins.
(Descriptors::claim_for_plugin): New function.
* descriptors.h (Descriptors::claim_for_plugin): New function.
(Open_descriptor::is_claimed): New field.
(claim_descriptor_for_plugin): New function.
* fileread.cc (File_read::claim_for_plugin): New function.
* fileread.h (File_read::claim_for_plugin): New function.
(File_read::descriptor): New function.
* gold.cc: Include "plugin.h".
(queue_initial_tasks): Add task to call plugin hooks for generating
new object files.
* main.cc: Include "plugin.h".
(main): Load plugin libraries.
* object.h (Pluginobj): Declare.
(Object::pluginobj): New function.
(Object::do_pluginobj): New function.
(Object::set_target): New function.
* options.cc: Include "plugin.h".
(General_options::parse_plugin): New function.
(General_options::General_options): Initialize plugins_ field.
(General_options::add_plugin): New function.
* options.h (Plugin_manager): Declare.
(General_options): Add --plugin option.
(General_options::has_plugins): New function.
(General_options::plugins): New function.
(General_options::add_plugin): New function.
(General_options::plugins_): New field.
* plugin.cc: New file.
* plugin.h: New file.
* readsyms.cc: Include "plugin.h".
(Read_symbols::do_read_symbols): Check for archive before checking
for ELF file.  Call plugin hooks to claim files.
* resolve.cc (Symbol_table::resolve): Record when symbol is referenced
from a real object file; force override when processing replacement
files.
* symtab.cc (Symbol::init_fields): Initialize in_real_elf_ field.
(Symbol::init_base_object): Likewise.
(Symbol::init_base_output_data): Likewise.
(Symbol::init_base_output_segment): Likewise.
(Symbol::init_base_constant): Likewise.
(Symbol::init_base_undefined): Likewise.
(Symbol::output_section): Assert that object is not a plugin.
(Symbol_table::add_from_pluginobj): New function.
(Symbol_table::sized_finalize_symbol): Treat symbols from plugins as
undefined.
(Symbol_table::sized_write_globals): Likewise.
(Symbol_table::add_from_pluginobj): Instantiate template.
* symtab.h (Sized_pluginobj): Declare.
(Symbol::in_real_elf): New function.
(Symbol::set_in_real_elf): New function.
(Symbol::in_real_elf_): New field.
(Symbol_table::add_from_pluginobj): New function.

* testsuite/Makefile.am (AM_CFLAGS): New variable.
(LIBDL): New variable.
(LDADD): Add LIBDL.
(check_PROGRAMS): Add plugin_test_1 and plugin_test_2.
(check_SCRIPTS): Add plugin_test_1.sh and plugin_test_2.sh.
(check_DATA): Add plugin_test_1.err and plugin_test_2.err.
(MOSTLYCLEANFILES): Likewise.
* testsuite/Makefile.in: Regenerate.
* testsuite/plugin_test.c: New file.
* testsuite/plugin_test_1.sh: New file.
* testsuite/plugin_test_2.sh: New file.

15 years agoFix MinGW-Bug [2119504].
Keith Marshall [Fri, 19 Sep 2008 22:41:01 +0000 (22:41 +0000)]
Fix MinGW-Bug [2119504].

15 years agoFix MinGW-Bug [2117379].
Keith Marshall [Fri, 19 Sep 2008 21:32:42 +0000 (21:32 +0000)]
Fix MinGW-Bug [2117379].

15 years ago2008-09-19 Eric Blake <ebb9@byu.net>
Jeff Johnston [Fri, 19 Sep 2008 16:11:35 +0000 (16:11 +0000)]
2008-09-19  Eric Blake  <ebb9@byu.net>

        Supply missing POSIX errno values.
        * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
        * libc/string/strerror.c (strerror): Decode them, and ECANCELED.

15 years ago* cygtls.h (unionent): Move from net.cc.
Christopher Faylor [Tue, 16 Sep 2008 02:04:27 +0000 (02:04 +0000)]
* cygtls.h (unionent): Move from net.cc.
(unionent::struct_type): Move enum here.
(_local_storage::hostent_buf): Define as unionent.
(_local_storage::protoent_buf): Ditto.
(_local_storage::servent_buf): Ditto.
* net.cc (unionent): Move to cygtls.h.
(struct_type): Ditto.
(dup_ent): Define one function per {host,proto,serv}ent type.
(cygwin_getprotobyname): Simplify dup_ent call.  Removed now-unneeded return
type coercion.
(cygwin_getprotobynumber): Ditto.
(cygwin_getservbyname): Ditto.
(cygwin_getservbyport): Ditto.
(cygwin_gethostbyname): Ditto.
(cygwin_gethostbyaddr): Ditto.  tlsoffsets.h: Regenerate.

15 years ago2008-09-13 mega-squall <mega-squall@users.sf.net>
Chris Sutcliffe [Sat, 13 Sep 2008 12:03:26 +0000 (12:03 +0000)]
2008-09-13  mega-squall  <mega-squall@users.sf.net>

        * include/winnt.h (SUBLANG_BENGALI_INDIA, SUBLANG_PUNJABI_INDIA,
        SUBLANG_ROMANIAN_ROMANIA): Correct definition.
        (SUBLANG_BENGALI_BANGLADESH, SUBLANG_PUNJABI_PAKISTAN,
        SUBLANG_ROMANIAN_MOLDOVA): Define.

15 years ago* cygcheck.cc (pathlike::check_existence): Remove class name from declaration.
Christopher Faylor [Fri, 12 Sep 2008 22:43:10 +0000 (22:43 +0000)]
* cygcheck.cc (pathlike::check_existence): Remove class name from declaration.
(display_internet_error): Use proper format specifier for DWORD.
(environ): Remove unneeded declaration.
(main): Use brace around nested if to avoid an overly-helpful compiler warning.
* dump_setup.cc (parse_filename): Reorganize nested if to avoid an
overly-helpful compiler warning.
* path.cc (GUID_shortcut): Use braces around part of initializer which needs
them.
(conv_fstab_spaces): Parenthesize assignment in while loop to avoid a compiler
warning.
(struct opt): Make static.
* ps.cc (main): Reorganize nested if to avoid an overly-helpful compiler
warning.
* regtool.cc: Make some anonymous structs static to avoid a compiler warning.
* ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential
uninitialized use.
* strace.cc (add_child): Use proper format specifier for DWORD.
(remove_child): Ditto.
(proc_child): Ditto.

15 years ago* Makefile.in: Add -c option which is now removed from COMPILE_C*.
Christopher Faylor [Fri, 12 Sep 2008 22:32:07 +0000 (22:32 +0000)]
* Makefile.in: Add -c option which is now removed from COMPILE_C*.
* cygwin.din (cfmakeraw): Export.
* termios.cc (cfmakeraw): Implement.
* include/sys/termios.h (cfmakeraw): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

15 years ago2008-09-11 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Fri, 12 Sep 2008 01:47:03 +0000 (01:47 +0000)]
2008-09-11  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/shlwapi.h (ASSOCSTR): Update enum.

15 years ago* cygwin.din (sys_sigabbrev): Add this here.
Christopher Faylor [Thu, 11 Sep 2008 06:22:31 +0000 (06:22 +0000)]
* cygwin.din (sys_sigabbrev): Add this here.
* dcrt0.cc (__argc,__argv,_check_for_executable): Remove dllexport decoration
since it is already handled in cygwin.din.
* errno.cc (_sys_errlist): Ditto.
* strsig.cc (sys_sigabbrev): Ditto.
* include/cygwin/signal.h: Protect use of dllimport when __INSIDE_CYGWIN__.
* libc/getopt.c: Revert previous changes.  Define __INSIDE_CYGWIN__.

15 years ago* localtime.cc (increment_overflow): Mark as non-inline to prevent compiler
Christopher Faylor [Thu, 11 Sep 2008 05:43:11 +0000 (05:43 +0000)]
* localtime.cc (increment_overflow): Mark as non-inline to prevent compiler
from complaining about the very thing we're trying to test.
* ntea.cc (read_ea): Reorganize to avoid a new compiler warning/error.
* sched.cc (sched_rr_get_interval): Ditto.
* select.cc (peek_serial): Ditto.
* libc/rexec.cc (ruserpass): Ditto.
* posix_ipc.cc (ipc_names): Make static to avoid a compiler warning
(and it's the right thing to do anyway).

15 years ago* net.cc (in6addr_any, in6addr_loopback): Add appropriate number of braces
Christopher Faylor [Thu, 11 Sep 2008 04:58:45 +0000 (04:58 +0000)]
* net.cc (in6addr_any, in6addr_loopback): Add appropriate number of braces
around initializer.
(dup_ent): Try harder to coerce the first argument to deal with more stringent
compiler.
(get_2k_ifs): Remove extraneous typedef.
(get_2k_ifs): Reorganize expression to avoid a compiler warning.
(get_xp_ifs): Ditto.
(get_nt_ifs): Ditto.

15 years ago* fhandler.h (fhandler_pipe::raw_read): Remove __stdcall decoration.
Christopher Faylor [Thu, 11 Sep 2008 04:41:24 +0000 (04:41 +0000)]
* fhandler.h (fhandler_pipe::raw_read): Remove __stdcall decoration.
* pipe.cc (fhandler_pipe::raw_read): Ditto.

15 years ago* cygheap.cc (creturn): Reorganize to avoid a new compiler warning/error.
Christopher Faylor [Thu, 11 Sep 2008 04:34:24 +0000 (04:34 +0000)]
* cygheap.cc (creturn): Reorganize to avoid a new compiler warning/error.
* dtable.cc (handle_to_fn): Ditto.
* fhandler_console.cc (fhandler_console::read): Ditto.
(fhandler_console::scroll_screen): Ditto.
(dev_console::set_color): Ditto.
* fhandler_dsp.cc (fhandler_dev_dsp::write): Ditto.
(fhandler_dev_dsp::read): Ditto.
* fhandler_tape.cc (mtinfo_drive::get_status): Ditto.
* hookapi.cc (find_first_notloaded_dll): Ditto.
* mmap.cc (msync): Ditto.
* pipe.cc (pipesync::pipesync): Ditto.
* sec_acl.cc (getace): Ditto.
* sec_auth.cc (create_token): Ditto.
(lsaauth): Ditto.
* select.cc (peek_pipe): Ditto.
* spawn.cc (av::fixup): Ditto.
* syscalls.cc (popen): Ditto.
* tty.cc (tty::init_session): Ditto.
* uinfo.cc (pwdgrp::load): Ditto.
* fhandler.cc (fhandler_base::setup_overlapped): Ditto.
(fhandler_base::wait_overlapped): Rename second use of res variable to wres or
errors are not returned correctly.
* dcrt0.cc: Remove obsolete variable.
* dll_init.cc (release_upto): Fix typo involving incorrect use of '|'.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Avoid a compiler
warning regarding coercing type-punned variables.
(fhandler_base::fstat_by_name): Ditto.  fhandler_fifo.cc
(fhandler_fifo::open_nonserver): Fix = vs.  == typo.
(fhandler_fifo::wait): Add all conditions to switch statement to avoid a
compiler warning.
* fhandler_process.cc: Avoid unneeded initialization of variables to zero.
(fhandler_socket::listen): Add braces around initializer.
* flock.cc (inode_t::get_all_locks_list): Reorganize to avoid a compiler
warning.  Fix problem with EWOULDBLOCK error return.
* path.cc (GUID_shortcut): Use braces around struct initializer.
(cygwin_conv_path): Reorganize to avoid a compiler warning.
* random.cc (dummy): Mark variable as volatile to avoid a "used uninitialized"
warning.
* libc/getopt.c: Mark some variables as dllexport although gcc doesn't seem to
do the right thing with them.
* libc/minires-os-if.c (get_registry_dns_items): Coerce some function arguments
to avoid a compiler warning.

15 years ago2008-09-10 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 11 Sep 2008 00:33:58 +0000 (00:33 +0000)]
2008-09-10  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/strcpy.h: Add missing header.
        * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
        * libm/machine/spu/headers/lgammaf4.h: Add type cast.

15 years ago2008-09-10 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 11 Sep 2008 00:30:32 +0000 (00:30 +0000)]
2008-09-10  Ken Werner  <ken.werner@de.ibm.com>

        * spu/dirfuncs.c: Avoid warnings.
        * spu/kill.c: Likewise.

15 years agomerge from gcc
DJ Delorie [Tue, 9 Sep 2008 18:21:42 +0000 (18:21 +0000)]
merge from gcc

15 years agoRemove bogus entry.
Ben Elliston [Tue, 9 Sep 2008 04:43:43 +0000 (04:43 +0000)]
Remove bogus entry.

15 years ago008-09-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 8 Sep 2008 22:25:14 +0000 (22:25 +0000)]
008-09-08  Jeff Johnston  <jjohnstn@redhat.com>

* libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm statement to use "m" instead of "0".
(atomic_add): Ditto.
* libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
* libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
* libc/sys/linux/stdlib/glob.c: Ditto.

15 years ago2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sun, 7 Sep 2008 21:35:38 +0000 (21:35 +0000)]
2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.15.

15 years ago2008-09-07 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sun, 7 Sep 2008 20:49:43 +0000 (20:49 +0000)]
2008-09-07  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/w32api.h: Increment version to 3.12.
        * Makefile.in: Ditto.

15 years ago2008-09-07 Michael Hentschel <mikeh42@users.sourceforge.net>
Chris Sutcliffe [Sun, 7 Sep 2008 17:12:46 +0000 (17:12 +0000)]
2008-09-07  Michael Hentschel  <mikeh42@users.sourceforge.net>

        * include/shlwapi.h (STIF_DEFAULT, STIF_SUPPORT_HEX): Define.

15 years ago2008-09-07 alsemm <alsemm@users.sourceforge.net>
Chris Sutcliffe [Sun, 7 Sep 2008 17:11:49 +0000 (17:11 +0000)]
2008-09-07  alsemm  <alsemm@users.sourceforge.net>

        * include/mlang.h (IMLangFontLink2::MapFont): Fix definition.

15 years agoCommitted as obvious.
Danny Smith [Sun, 7 Sep 2008 08:03:11 +0000 (08:03 +0000)]
Committed as obvious.

* include/ws2tcpip.h (IPV6_MREQ): Fix typo.
Thanks to Richard Hughes for report.

15 years ago2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sun, 7 Sep 2008 02:07:29 +0000 (02:07 +0000)]
2008-09-06  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
        naming standard for Cygwin.

15 years ago2008-09-04 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 4 Sep 2008 20:26:18 +0000 (20:26 +0000)]
2008-09-04  Ken Werner  <ken.werner@de.ibm.com>

        * spu/Makefile.in: Fix missing linux_syscalls.o.
        * spu/linux_syscalls.c: Remove extraneous "3D" sequences.

15 years ago2008-09-04 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 4 Sep 2008 17:50:56 +0000 (17:50 +0000)]
2008-09-04  Ken Werner  <ken.werner@de.ibm.com>

        * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
        * libm/machine/spu/headers/acosf4.h: Likewise.
        * libm/machine/spu/headers/acoshd2.h: Likewise.
        * libm/machine/spu/headers/acoshf4.h: Likewise.
        * libm/machine/spu/headers/asind2.h: Likewise.
        * libm/machine/spu/headers/asinf4.h: Likewise.
        * libm/machine/spu/headers/asinhd2.h: Likewise.
        * libm/machine/spu/headers/asinhf4.h: Likewise.
        * libm/machine/spu/headers/atan2d2.h: Likewise.
        * libm/machine/spu/headers/atan2f4.h: Likewise.
        * libm/machine/spu/headers/atand2.h: Likewise.
        * libm/machine/spu/headers/atanf4.h: Likewise.
        * libm/machine/spu/headers/atanhd2.h: Likewise.
        * libm/machine/spu/headers/atanhf4.h: Likewise.
        * libm/machine/spu/headers/cos_sin.h: Likewise.
        * libm/machine/spu/headers/cosd2.h: Likewise.
        * libm/machine/spu/headers/cosf4.h: Likewise.
        * libm/machine/spu/headers/coshd2.h: Likewise.
        * libm/machine/spu/headers/coshf4.h: Likewise.
        * libm/machine/spu/headers/divd2.h: Likewise.
        * libm/machine/spu/headers/divf4.h: Likewise.
        * libm/machine/spu/headers/erf_utils.h: Likewise.
        * libm/machine/spu/headers/erfcd2.h: Likewise.
        * libm/machine/spu/headers/erfcf4.h: Likewise.
        * libm/machine/spu/headers/erfd2.h: Likewise.
        * libm/machine/spu/headers/erff4.h: Likewise.
        * libm/machine/spu/headers/exp2d2.h: Likewise.
        * libm/machine/spu/headers/exp2f4.h: Likewise.
        * libm/machine/spu/headers/expd2.h: Likewise.
        * libm/machine/spu/headers/expf4.h: Likewise.
        * libm/machine/spu/headers/expm1d2.h: Likewise.
        * libm/machine/spu/headers/expm1f4.h: Likewise.
        * libm/machine/spu/headers/floord2.h: Likewise.
        * libm/machine/spu/headers/floorf4.h: Likewise.
        * libm/machine/spu/headers/hypotd2.h: Likewise.
        * libm/machine/spu/headers/hypotf4.h: Likewise.
        * libm/machine/spu/headers/isnand2.h: Likewise.
        * libm/machine/spu/headers/isnanf4.h: Likewise.
        * libm/machine/spu/headers/ldexpd2.h: Likewise.
        * libm/machine/spu/headers/ldexpf4.h: Likewise.
        * libm/machine/spu/headers/lgammad2.h: Likewise.
        * libm/machine/spu/headers/lgammaf4.h: Likewise.
        * libm/machine/spu/headers/log10d2.h: Likewise.
        * libm/machine/spu/headers/log1pd2.h: Likewise.
        * libm/machine/spu/headers/log1pf4.h: Likewise.
        * libm/machine/spu/headers/log2d2.h: Likewise.
        * libm/machine/spu/headers/log2f4.h: Likewise.
        * libm/machine/spu/headers/logbf4.h: Likewise.
        * libm/machine/spu/headers/logd2.h: Likewise.
        * libm/machine/spu/headers/logf4.h: Likewise.
        * libm/machine/spu/headers/nearbyintf4.h: Likewise.
        * libm/machine/spu/headers/nextafterd2.h: Likewise.
        * libm/machine/spu/headers/nextafterf4.h: Likewise.
        * libm/machine/spu/headers/powd2.h: Likewise.
        * libm/machine/spu/headers/powf4.h: Likewise.
        * libm/machine/spu/headers/recipd2.h: Likewise.
        * libm/machine/spu/headers/recipf4.h: Likewise.
        * libm/machine/spu/headers/rintf4.h: Likewise.
        * libm/machine/spu/headers/scalbnf4.h: Likewise.
        * libm/machine/spu/headers/signbitd2.h: Likewise.
        * libm/machine/spu/headers/sincosd2.h: Likewise.
        * libm/machine/spu/headers/sincosf4.h: Likewise.
        * libm/machine/spu/headers/sind2.h: Likewise.
        * libm/machine/spu/headers/sinf4.h: Likewise.
        * libm/machine/spu/headers/sinhd2.h: Likewise.
        * libm/machine/spu/headers/sinhf4.h: Likewise.
        * libm/machine/spu/headers/sqrtd2.h: Likewise.
        * libm/machine/spu/headers/sqrtf4.h: Likewise.
        * libm/machine/spu/headers/tand2.h: Likewise.
        * libm/machine/spu/headers/tanf4.h: Likewise.
        * libm/machine/spu/headers/tanhd2.h: Likewise.
        * libm/machine/spu/headers/tanhf4.h: Likewise.
        * libm/machine/spu/headers/tgammad2.h: Likewise.
        * libm/machine/spu/headers/tgammaf4.h: Likewise.
        * libm/machine/spu/headers/truncd2.h: Likewise.
        * libm/machine/spu/headers/truncf4.h: Likewise.
        * libm/machine/spu/headers/simdmath.h: Likewise.

15 years ago2008-09-04 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 4 Sep 2008 17:46:14 +0000 (17:46 +0000)]
2008-09-04  Ken Werner  <ken.werner@de.ibm.com>

        * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
        * libm/machine/spu/headers/asinhd2.h: Likewise.
        * libm/machine/spu/headers/atanhd2.h: Likewise.
        * libm/machine/spu/headers/atanhf4.h: Likewise.
        * libm/machine/spu/headers/erff4.h: Likewise.
        * libm/machine/spu/headers/expd2.h: Likewise.
        * libm/machine/spu/headers/ldexpd2.h: Likewise.
        * libm/machine/spu/headers/lgammaf4.h: Likewise.
        * libm/machine/spu/headers/logbf4.h: Likewise.
        * libm/machine/spu/headers/nextafterd2.h: Likewise.
        * libm/machine/spu/headers/nextafterf4.h: Likewise.
        * libm/machine/spu/headers/recipd2.h: Likewise.
        * libm/machine/spu/headers/simdmath.h: Likewise.
        * libm/machine/spu/headers/acoshd2.: Likewise.

15 years ago2008-09-04 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 4 Sep 2008 17:27:49 +0000 (17:27 +0000)]
2008-09-04  Ken Werner  <ken.werner@de.ibm.com>

        * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
        * libm/machine/spu/headers/cbrtf.h: Likewise.

15 years ago2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
Aaron W. LaFramboise [Thu, 4 Sep 2008 02:18:16 +0000 (02:18 +0000)]
2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>

* configure.ac (RPATH_ENVVAR): Use PATH on Windows.
(GCC_SHLIB_SUBDIR): New.
* Makefile.tpl (HOST_LIB_PATH_gcc): Use GCC_SHLIB_SUBDIR.
* configure: Regenerate.
* Makefile.in: Regenerate.

15 years ago2008-09-01 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Tue, 2 Sep 2008 16:48:48 +0000 (16:48 +0000)]
2008-09-01  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
        * libc/machine/spu/spu_timebase.c: New file.
        * libc/machine/spu/Makefile.am: Add new file.
        * libc/machine/spu/Makefile.in: Regenerated.

15 years agoReimplement getopt.c to add getopt_long_only() function.
Keith Marshall [Sun, 31 Aug 2008 22:27:58 +0000 (22:27 +0000)]
Reimplement getopt.c to add getopt_long_only() function.

15 years agoErase all file content, preparatory to rewrite.
Keith Marshall [Sun, 31 Aug 2008 22:26:52 +0000 (22:26 +0000)]
Erase all file content, preparatory to rewrite.

15 years ago2008-08-30 Bo Yang <techrazy@users.sourceforge.net>
Chris Sutcliffe [Sat, 30 Aug 2008 23:19:14 +0000 (23:19 +0000)]
2008-08-30 Bo Yang <techrazy@users.sourceforge.net>

        * include/sspi.h: Fix PSecurityFunctionTableW structure.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 23:14:26 +0000 (23:14 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>
        * include/ddk/scsi.h: Define READ_TOC formats.

        * lib/ddk/scsiport.def (ScsiPortGetDeviceBase): Fix export.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 23:08:11 +0000 (23:08 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>

        * include/ddk/ndis.h (NDIS_MINIPORT_MAJOR_VERSION, NDIS_MINIPORT_MINOR_VERSION,
        struct NDIS_TASK_OFFLOAD_HEADER, PROTOCOL_RESERVED_SIZE_IN_PACKET,
        NdisGetFirstBufferFromPacketSafe, NdisMIndicateReceivePacket,
        NdisSetPacketPoolProtocolId, NdisMInitializeTimer, NdisMSetPeriodicTimer,
        NdisMCancelTimer): Define.
        (enum NDIS_ENCAPSULATION, struct NDIS_ENCAPSULATION_FORMAT): move in file.
        (struct _NDIS_PACKET): Define using _ANONYMOUS_UNION and ANONYMOUS_STRUCT to
        eliminate warnings.
        (NdisReinitializePacket): Rename from NdisReinitializePacketCounts.
        * lib/ddk/ndis.def (NdisInitAnsiString, NdisInitUnicodeString, NdisMCancelTimer,
        NdisMInitializeTimer, NdisMSetPeriodicTimer, NdisSetPacketPoolProtocolId):
        Export.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 23:03:37 +0000 (23:03 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>

        * include/ddk/winddk.h (RtlStringCbCopyA, RtlStringCbPrintfA,
        RtlStringCbVPrintfA): define in terms of POSIX string functions.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 22:58:51 +0000 (22:58 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>

        * include/ddk/winddk.h (KeRaiseIrql): Define.
        (KfRaiseIrql, KfLowerIrql): remove incorrect definitions.

15 years agoImplement conditional replacement for printf() family functions.
Keith Marshall [Sat, 30 Aug 2008 17:27:18 +0000 (17:27 +0000)]
Implement conditional replacement for printf() family functions.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 02:16:11 +0000 (02:16 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>

        * include/ddk/winddk.h (KeFlushQueuedDpcs, KeMemoryBarrier): Define.
        (KeGetCurrentProcessorNumber): Fix incorrect member reference.
        (InterlockedIncrement, InterlockedDecrement): fix warning.
        * lib/ddk/ntoskrnl.def (KeFlushQueuedDpcs, KeMemoryBarrier): Export.
        (KeNumberProcessors): Export.

15 years ago2008-08-28 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Thu, 28 Aug 2008 18:18:12 +0000 (18:18 +0000)]
2008-08-28  Craig Howland  <howland@LGSInnovations.com>

        * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
        any positive value from user (per std) rather than depending
        upon 1).

15 years ago2008-08-28 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston [Thu, 28 Aug 2008 17:36:49 +0000 (17:36 +0000)]
2008-08-28  Corinna Vinschen  <corinna@vinschen.de>

        * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
        for accepting a converted character.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 16:04:18 +0000 (16:04 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* stab.def: Add BNSYM, ENSYM, OSO for darwin.

15 years agogas/
H.J. Lu [Thu, 28 Aug 2008 14:07:48 +0000 (14:07 +0000)]
gas/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-ia64.c (CR_IIB0): New.
(CR_IIB1): Likewise.
(cr): Add cr.iib0 and cr.iib1.
(specify_resource): Handle IA64_RS_CR_IIB and CR_IIB0/CR_IIB1.

gas/testsuite/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* gas/ia64/dv-raw-err.s: Add tests for cr.iib0 and cr.iib1.
* gas/ia64/dv-waw-err.s: Likewise.
* gas/ia64/regs.s: Likewise.

* gas/ia64/dv-raw-err.l: Updated.
* gas/ia64/dv-waw-err.l: Likewise.
* gas/ia64/regs.d: Likewise.

include/opcode/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* ia64.h (ia64_resource_specifier): Add IA64_RS_CR_IIB.  Update
IA64_RS_CR.

opcodes/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* ia64-dis.c (print_insn_ia64): Handle cr.iib0 and cr.iib1.
* ia64-gen.c (lookup_specifier): Likewise.

* ia64-ic.tbl: Add support for cr.iib0 and cr.iib1.
* ia64-raw.tbl: Likewise.
* ia64-waw.tbl: Likewise.
* ia64-asmtab.c: Regenerated.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 10:44:31 +0000 (10:44 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* configure.ac (powerpc-*-darwin*, i?86-*-darwin*,x86_64-*-darwin9):
Enable bfd, binutils and opcodes.
* configure: Regenerate.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 10:20:05 +0000 (10:20 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* configure.ac (powerpc-*-darwin*, i?86-*-darwin*,x86_64-*-darwin9):
Enable bfd, binutils and opcodes.
* configure: Regenerate.

15 years ago* fhandler_tty.cc (close_maybe): Check for both types of invalid handle before
Christopher Faylor [Wed, 27 Aug 2008 21:55:19 +0000 (21:55 +0000)]
* fhandler_tty.cc (close_maybe): Check for both types of invalid handle before
attempting CloseHandle.
(fhandler_pty_master::setup): Only set inheritance on pty handles, not tty
handles.

15 years ago2008-08-27 Sandra Loosemore <sandra@codesourcery.com>
Jeff Johnston [Wed, 27 Aug 2008 21:32:02 +0000 (21:32 +0000)]
2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>

        * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
        from building pdfs.
        * libm/libm.texinfo: Likewise.

15 years agoAvoid access violations, passing NULL to printf( "...%s..." ).
Keith Marshall [Wed, 27 Aug 2008 20:23:42 +0000 (20:23 +0000)]
Avoid access violations, passing NULL to printf( "...%s..." ).

15 years ago* cygcheck.cc (nuke): Use malloc rather than alloca for environment variables.
Christopher Faylor [Wed, 27 Aug 2008 20:11:11 +0000 (20:11 +0000)]
* cygcheck.cc (nuke): Use malloc rather than alloca for environment variables.
(load_cygwin): Ditto.
* dump_setup.cc (parse_filename): Cosmetic changes.
(get_packages): Ditto.

15 years ago2008-08-27 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston [Wed, 27 Aug 2008 18:31:04 +0000 (18:31 +0000)]
2008-08-27  Corinna Vinschen  <corinna@vinschen.de>

        * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
        accepting a converted character and continuing the loop.

15 years ago* shared_info.h (shared_info::create_root_entry): Remove extraneous
Christopher Faylor [Tue, 26 Aug 2008 16:56:30 +0000 (16:56 +0000)]
* shared_info.h (shared_info::create_root_entry): Remove extraneous
mount_info:: from declaration.

15 years ago * fhandler.h (class fhandler_pipe): Rename read and write
Corinna Vinschen [Tue, 26 Aug 2008 15:39:17 +0000 (15:39 +0000)]
* fhandler.h (class fhandler_pipe): Rename read and write
declarations to raw_read and raw_write.
* pipe.cc (fhandler_pipe::raw_read): Rename from read.
(fhandler_pipe::raw_write): Rename from write.

15 years ago2008-08-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 26 Aug 2008 03:34:10 +0000 (03:34 +0000)]
2008-08-22  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/shlwapi.h (ASSOCF_INIT_NOREMAPCLSID, ASSOCF_INIT_BYEXENAME,
        ASSOCF_OPEN_BYEXENAME, ASSOCF_INIT_DEFAULTTOSTAR,
        ASSOCF_INIT_DEFAULTTOFOLDER, ASSOCF_NOUSERSETTINGS, ASSOCF_NOTRUNCATE,
        ASSOCF_VERIFY, ASSOCF_REMAPRUNDLL, ASSOCF_NOFIXUPS, ASSOCF_IGNOREBASECLASS,
        ASSOCF_INIT_IGNOREUNKNOWN): Define.

15 years agoadd comments
Christopher Faylor [Mon, 25 Aug 2008 17:27:06 +0000 (17:27 +0000)]
add comments

15 years agoMerge from gcc:
DJ Delorie [Mon, 25 Aug 2008 17:26:06 +0000 (17:26 +0000)]
Merge from gcc:
2008-08-16  Nicolas Roche  <roche@adacore.com>
* Makefile.tpl: Add BOOT_ADAFLAGS.
* Makefile.in: Regenerate.

15 years agoMerge from gcc.
DJ Delorie [Mon, 25 Aug 2008 17:07:33 +0000 (17:07 +0000)]
Merge from gcc.

15 years ago * mkgroup.c (enum_local_groups): Don't skip printing groups when
Corinna Vinschen [Mon, 25 Aug 2008 09:38:14 +0000 (09:38 +0000)]
* mkgroup.c (enum_local_groups): Don't skip printing groups when
print_current is set and group SID is not curr_pgrp.
(enum_groups): Ditto.
(main): Fix condition when SYSTEM group gets printed.
* mkpasswd.c (enum_users): Don't skip printing users when print_current
is set and user SID is not curr_user.
(main): Allow printing standard accounts even when print_current is set.

15 years ago * binary-io.h: New file, imported from gnulib, but don't
Alan Modra [Mon, 25 Aug 2008 04:36:03 +0000 (04:36 +0000)]
* binary-io.h: New file, imported from gnulib, but don't
#include <fcntl.h> or <stdio.h>.

15 years ago2008-08-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Fri, 22 Aug 2008 23:54:47 +0000 (23:54 +0000)]
2008-08-22  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

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

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

15 years ago2008-08-22 Bo Yang <techrazy@users.sourceforge.net>
Chris Sutcliffe [Fri, 22 Aug 2008 23:02:50 +0000 (23:02 +0000)]
2008-08-22 Bo Yang <techrazy@users.sourceforge.net>

        * include/winnt.h (OWNER_SECURITY_INFORMATION, GROUP_SECURITY_INFORMATION,
        DACL_SECURITY_INFORMATION, SACL_SECURITY_INFORMATION): Correct.
        * include/winnt.h (OWNER_SECURITY_INFORMATION, GROUP_SECURITY_INFORMATION,
        DACL_SECURITY_INFORMATION, SACL_SECURITY_INFORMATION,
        LABEL_SECURITY_INFORMATION, UNPROTECTED_SACL_SECURITY_INFORMATION,
        UNPROTECTED_DACL_SECURITY_INFORMATION, PROTECTED_SACL_SECURITY_INFORMATION,
        PROTECTED_DACL_SECURITY_INFORMATION): Define.

15 years ago* fhandler.cc (fhandler_base::wait_overlapped): Reorganize again to accommodate
Christopher Faylor [Fri, 22 Aug 2008 04:06:01 +0000 (04:06 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Reorganize again to accommodate
what appears to be an MSDN hint about not resetting the overlapped event prior
to calling GetOverlappedResult.

15 years ago2008-08-20 Bob Wilson <bob.wilson@acm.org>
Bob Wilson [Wed, 20 Aug 2008 23:28:58 +0000 (23:28 +0000)]
2008-08-20  Bob Wilson  <bob.wilson@acm.org>
bfd/
        * elf-bfd.h (elf_object_id): Add XTENSA_ELF_TDATA.
        * elf32-xtensa.c (elf_howto_table): Add TLS relocations.
        (elf_xtensa_reloc_type_lookup): Likewise.
        (TCB_SIZE): Define.
        (elf_xtensa_link_hash_entry): New.
        (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE, GOT_TLS_ANY): Define.
        (elf_xtensa_hash_entry): Define.
        (elf_xtensa_obj_tdata): New.
        (elf_xtensa_tdata): Define.
        (elf_xtensa_local_got_tls_type): Define.
        (elf_xtensa_local_tlsfunc_refcounts): Define.
        (is_xtensa_elf): Define.
        (elf_xtensa_mkobject): New.
        (elf_xtensa_link_hash_table): Add tlsbase field.
        (elf_xtensa_link_hash_newfunc): New.
        (elf_xtensa_link_hash_table_create): Use elf_xtensa_link_hash_newfunc.
        Create an entry for "_TLS_MODULE_BASE_" and save it in tlsbase field.
        (elf_xtensa_copy_indirect_symbol): New.
        (elf_xtensa_check_relocs): Rewrite to handle TLS relocations.
        (elf_xtensa_gc_sweep_hook): Likewise.
        (elf_xtensa_allocate_dynrelocs): Optimize away GOT entries for
        TLSDESC_FN relocations when an IE reference is seen.
        (elf_xtensa_allocate_local_got_size): Likewise.
        (elf_xtensa_always_size_sections): New.
        (dtpoff_base, tpoff): New.
        (elf_xtensa_do_reloc): Handle TLS relocations.
        (replace_tls_insn): New.
        (IS_XTENSA_TLS_RELOC): Define.
        (elf_xtensa_relocate_section): Handle TLS relocations.
        (get_indirect_call_dest_reg): New.
        (bfd_elf32_mkobject): Define.
        (elf_backend_always_size_sections): New.
        (elf_backend_copy_indirect_symbol): New.
        * reloc.c (BFD_RELOC_XTENSA_TLSDESC_FN, BFD_RELOC_XTENSA_TLSDESC_ARG)
        (BFD_RELOC_XTENSA_TLS_DTPOFF, BFD_RELOC_XTENSA_TLS_TPOFF)
        (BFD_RELOC_XTENSA_TLS_FUNC, BFD_RELOC_XTENSA_TLS_ARG)
        (BFD_RELOC_XTENSA_TLS_CALL): New.
        * bfd-in2.h: Regenerate.
        * libbfd.h: Regenerate.
gas/
        * config/tc-xtensa.c (O_tlsfunc, O_tlsarg, O_tlscall): Define.
        (O_tpoff, O_dtpoff): Define.
        (suffix_relocs): Add entries for TLS suffixes.
        (xtensa_elf_cons): Check for invalid use of TLS relocations.
        (map_operator_to_reloc): Add is_literal parameter and use it to
        control translating TLS instruction relocations to the corresponding
        literal relocations.
        (xg_valid_literal_expression): Allow TLS operators.
        (xg_build_to_insn): Copy TLS operators from pseudo-instruction
        operands to generated literals.
        (xg_assemble_literal): Handle TLS operators.  Update call to
        map_operator_to_reloc.
        (md_assemble): Handle CALLXn.TLS pseudo-instruction.
        (md_apply_fix): Handle TLS relocations.
        (emit_single_op): Handle TLS operators.
        (convert_frag_immed): Update call to map_operator_to_reloc.
        (vinsn_to_insnbuf): Emit relocations for TLS-related instructions.
        * config/xtensa-istack.h (tinsn_struct): Add tls_reloc field.
        * config/xtensa-relax.c (append_literal_op): Add src_op parameter
        to initialize the op_data field of the BuildOp.
        (build_transition): Use it here to record the source operand
        corresponding to a generated literal.
        * config/xtensa-relax.h (build_op): Comment op_data use for literals.
include/elf/
        * xtensa.h (R_XTENSA_TLSDESC_FN, R_XTENSA_TLSDESC_ARG)
        (R_XTENSA_TLS_DTPOFF, R_XTENSA_TLS_TPOFF, R_XTENSA_TLS_FUNC)
        (R_XTENSA_TLS_ARG, R_XTENSA_TLS_CALL): New.
ld/testsuite/
        * ld-xtensa/tlsbin.dd, ld-xtensa/tlsbin.rd, ld-xtensa/tlsbin.s,
        ld-xtensa/tlsbin.sd, ld-xtensa/tlsbin.td, ld-xtensa/tlslib.s,
        ld-xtensa/tlspic.dd, ld-xtensa/tlspic.rd, ld-xtensa/tlspic.sd,
        ld-xtensa/tlspic.td, ld-xtensa/tlspic1.s, ld-xtensa/tlspic2.s: New.
        * ld-xtensa/xtensa.exp: Run them.

15 years ago * path.cc (symlink_info::check_shortcut): If file can't be opened,
Corinna Vinschen [Wed, 20 Aug 2008 10:53:54 +0000 (10:53 +0000)]
* path.cc (symlink_info::check_shortcut): If file can't be opened,
treat it as non-symlink rather than generating an EIO error.
(symlink_info::check_sysfile): Ditto.

15 years ago2008-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Wed, 20 Aug 2008 02:30:05 +0000 (02:30 +0000)]
2008-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/wtsapi32.h (_WTS_INFO_CLASS, _WTS_CONNECTSTATE_CLASS,
        WTSQuerySessionInformation, WTSFreeMemory): Define.

15 years ago* fhandler.cc (fhandler_base::wait_overlapped): Always assume that bytes will
Christopher Faylor [Wed, 20 Aug 2008 02:25:06 +0000 (02:25 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Always assume that bytes will
be non-NULL.  Distinguish input result from result derived from WFMO and
GetOverlappedResult or res can never be -1.  Only raise SIGPIPE when writing.
* fhandler.h (fhandler_base::wait_overlapped): Pass first argument by value.
* fhandler_fifo.cc (fhandler_fifo::wait): Pass in dummy byte count to
wait_overlapped.
* pipe.cc (DEFAULT_PIPEBUFSIZE): Define to 65536 explicitly.

15 years ago * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Drop fattr variable
Corinna Vinschen [Tue, 19 Aug 2008 09:46:31 +0000 (09:46 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Drop fattr variable
and use FILE_ATTRIBUTE_DIRECTORY directly in call to NtCreateFile.
* posix_ipc.cc (ipc_mutex_init): Fix format string when creating IPC
object name.
(ipc_cond_init): Ditto.
* security.cc (alloc_sd): Add parentheses to fix setting initial
owner_allow value.

15 years ago* fhandler.cc (fhandler_base::wait_overlapped): Don't treat ERROR_BROKEN_PIPE
Christopher Faylor [Tue, 19 Aug 2008 02:56:28 +0000 (02:56 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Don't treat ERROR_BROKEN_PIPE
as a non-error.  Do raise SIGPIPE when it is detected.

15 years ago * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
Corinna Vinschen [Mon, 18 Aug 2008 12:56:59 +0000 (12:56 +0000)]
* mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
if a group exists, rather than just allocating a buffer and going ahead.

15 years ago * mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
Corinna Vinschen [Mon, 18 Aug 2008 12:42:44 +0000 (12:42 +0000)]
* mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
as argument when LookupAccountXXX failed.
(enum_groups): Ditto.

15 years ago * mkgroup.c (enum_local_groups): Return failure if looking for a single
Corinna Vinschen [Mon, 18 Aug 2008 08:58:21 +0000 (08:58 +0000)]
* mkgroup.c (enum_local_groups): Return failure if looking for a single
group succeeded.  Add comment.

15 years ago * mkgroup.c (main): Keep correctly track of optional arguments.
Corinna Vinschen [Mon, 18 Aug 2008 08:52:49 +0000 (08:52 +0000)]
* mkgroup.c (main): Keep correctly track of optional arguments.
* mkpasswd.c (main): Ditto.

15 years ago * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
Corinna Vinschen [Mon, 18 Aug 2008 08:33:48 +0000 (08:33 +0000)]
* mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
Keep track of optional argumnts and fix up optind afterwards.
* mkpasswd.c (main): Ditto.

15 years ago* cygcheck.cc (print_version): Update copyright dates.
Christopher Faylor [Sun, 17 Aug 2008 17:15:41 +0000 (17:15 +0000)]
* cygcheck.cc (print_version): Update copyright dates.

15 years ago* mkpasswd.c (main): Avoid printing system accounts when a single user name has
Christopher Faylor [Sun, 17 Aug 2008 17:00:50 +0000 (17:00 +0000)]
* mkpasswd.c (main): Avoid printing system accounts when a single user name has
been requested.

15 years ago* Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet ld
Christopher Faylor [Sun, 17 Aug 2008 16:45:44 +0000 (16:45 +0000)]
* Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet ld
warnings.
* mkgroup.c: Change all global variables and most functions to static.
(enum_local_groups): Add a print_current parameter to control whether entries
for everything should be printed or just the current user.
(enum_groups): Ditto.
(main): Move call fetch_current_pgrp_sid earlier to avoid a NULL deference when
no command line arguments are specified.  Accommodate argument changes to above
functions.  Avoid printing SYSTEM account when print_current is specified.
Issue error when extra stuff is found on the command line.
* mkpasswd.c: Change all global variables and most functions to static.
(enum_users): Add a print_current parameter to control whether entries for
everything should be printed or just the current user.
(main): Move call fetch_current_user_sid earlier to avoid a NULL deference when
no command line arguments are specified.  Accommodate argument change to above
function.  Avoid printing standard accounts when print_current is specified.
Issue error when extra stuff is found on the command line.

15 years agobfd/
Alan Modra [Sun, 17 Aug 2008 03:12:50 +0000 (03:12 +0000)]
bfd/
* bfd.c (struct _bfd): Correct outsymbols comment.
* bfd-in2.h: Regenerate.
* linker.c (bfd_generic_link_read_symbols): Renamed from..
(generic_link_read_symbols): ..this, and made global.

include/
* bfdlink.h (bfd_generic_link_read_symbols): Declare.
ld/
PR 6478
* ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
Don't free symbol pointer array.
(check_refs): Likewise.
* ldmain.c (warning_callback): Likewise.
* ldmisc.c (vfinfo): Likewise.
* pe-dll.c (process_def_file): Likewise.
(pe_walk_relocs_of_symbol, generate_reloc): Likewise.
* emultempl/pe.em (pe_find_data_imports): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* emultempl/pep.em (pep_find_data_imports): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
passive_position, closed.
* ldlang.c (new_afile): Don't set asymbols and symbol_count.
* ldmain.c (add_archive_element): xcalloc lang_input_statement_type.

15 years ago * configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
Richard Sandiford [Sat, 16 Aug 2008 06:47:17 +0000 (06:47 +0000)]
* configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
* configure: Regenerate.

config/
* mt-mips16-compat: New file, taken from mt-mips-elfoabi.
* mt-mips-elfoabi: Include mt-mips16-compat.
* mt-mips-gnu: New file.

15 years ago * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
Corinna Vinschen [Fri, 15 Aug 2008 13:08:47 +0000 (13:08 +0000)]
* mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
group SID from user token.
(current_group): Move up in file.  Move fetching primary group SID to
fetch_current_pgrp_sid.
(enum_local_groups): Check if current SID is the same as current user's
primary group SID.
(enum_groups): Ditto.
(main): Call fetch_current_pgrp_sid before enumerating groups.  Call
current_group only if current group hasn't been enumerated already.
* mkpasswd.c (fetch_current_user_sid): New function to fetch current
user SID from user token.
(current_user): Move fetching current user SID to
fetch_current_user_sid.
(enum_users): Check if current SID is the same as current user's SID.
(main): Call fetch_current_user_sid before enumerating users.  Call
current_user only if current user hasn't been enumerated already.

15 years ago * mount.cc (mount_info::get_mounts_here): Don't subtract 2 from
Corinna Vinschen [Fri, 15 Aug 2008 12:33:26 +0000 (12:33 +0000)]
* mount.cc (mount_info::get_mounts_here): Don't subtract 2 from
Length if it's 0 anyway.

15 years ago * mount.cc (mount_info::create_root_entry): Create default cygdrive
Corinna Vinschen [Fri, 15 Aug 2008 12:06:38 +0000 (12:06 +0000)]
* mount.cc (mount_info::create_root_entry): Create default cygdrive
prefix with MOUNT_NOPOSIX flag.

15 years ago * path.cc (symlink_info::check): Don't use eabuf when trying to open
Corinna Vinschen [Fri, 15 Aug 2008 10:19:12 +0000 (10:19 +0000)]
* path.cc (symlink_info::check): Don't use eabuf when trying to open
file a second time.  Call NtOpenFile instead of NtCreateFile in this
case.

15 years ago2008-08-14 Jie Zhang <jie.zhang@analog.com>
Jeff Johnston [Thu, 14 Aug 2008 22:00:47 +0000 (22:00 +0000)]
2008-08-14  Jie Zhang  <jie.zhang@analog.com>

        * bfin/Makefile.in: (top_srcdir): Define.
        (mkinstalldirs): Define.
        (BOARD_SCRIPTS): Define.
        (BOARD_LDFLAGS): Define.
        (BOARD_BSP): Define.
        (BOARD_CRT0S): Define.
        (BOARD_OBJS): Define.
        (BOARD_TEST): Define.
        (BOARD_INSTALL): Define.
        (INCLUDES): Add -I$(srcdir)/include.
        (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}.
        (.c.S): Remove target.
        (crt0.o): New target.
        (basiccrt.o): Likewise.
        (basiccrtb.o): Likewise.
        (basiccrts.o): Likewise.
        (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise
        (clean mostlyclean): Remove ${BOARD_BSP}.
        (install): Depend on ${BOARD_INSTALL}.
        (install-sim): Reformat.
        (install-board): New target.
        * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in
        workaround code for 05000229.
        * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of
        `RAISE 0' for syscall.
        * bfin/basiccrt.S: New file.
        * bfin/bf5*ld: New file.
        * bfin/bfin-common-mc.ld: New file.
        * bfin/bfin-common-sc.ld: New file.
        * bfin/include/blackfin.h: New file.
        * bfin/include/cdefBF5*.h: New file.
        * bfin/include/cdef_LPBlackfin.h: New file.
        * bfin/include/cdefblackfin.h: New file.
        * bfin/include/cplb.h: New file.
        * bfin/include/cplbtab.h: New file.
        * bfin/include/defBF5*.h: New files.
        * bfin/include/def_LPBlackfin.h: New files.
        * bfin/include/defblackfin.h: New file.
        * bfin/include/sys/_adi_platform.h: New file.
        * bfin/include/sys/anomaly_macros_rtl.h: New file.
        * bfin/include/sys/excause.h: New file.
        * bfin/include/sys/exception.h: New file.
        * bfin/include/sys/mc_typedef.h: New file.
        * bfin/include/sys/platform.h: New file.
        * bfin/include/sys/pll.h: New file.
        * bfin/include/sysreg.h: New file.
        * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define
        for bfin.
        * libnosys/configure: Regenerate.

15 years agoAdd missing dependencies for building libmingwex.a.
Keith Marshall [Thu, 14 Aug 2008 15:13:18 +0000 (15:13 +0000)]
Add missing dependencies for building libmingwex.a.

15 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Fix linking
Corinna Vinschen [Thu, 14 Aug 2008 15:00:52 +0000 (15:00 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Fix linking
against symlinks.

15 years ago * external.cc (cygwin_internal): Call set_security_attribute with
Corinna Vinschen [Thu, 14 Aug 2008 14:05:04 +0000 (14:05 +0000)]
* external.cc (cygwin_internal): Call set_security_attribute with
additional path_conv argument.
* fhandler.cc (fhandler_base::open): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Never set DOS
R/O attribute when using ACLs.
(fhandler_disk_file::mkdir): Ditto.  Set
security descriptor on remote dirs after creating the dir, same as in
fhandler_base::open.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for remote AF_LOCAL
socket files.
* path.cc (symlink_worker): Ditto. for remote symlinks.
* security.cc (alloc_sd): Take additional path_conv argument.
Accommodate throughout.  Drop setting FILE_WRITE_EA/FILE_READ_EA
flags unconditionally (was only necessary for "ntea"). Don't set
FILE_READ_ATTRIBUTES and FILE_WRITE_ATTRIBUTES unconditionally on
Samba.  Add comment to explain.  Drop useless setting of
STANDARD_RIGHTS_WRITE, it's in FILE_GENERIC_WRITE anyway.
Remove FILE_READ_ATTRIBUTES bit from FILE_GENERIC_EXECUTE so as not
to enforce read permissions on Samba.
(set_security_attribute): Take additional path_conv argument.
* security.h (set_security_attribute): Change prototype accordingly.

15 years ago * mount.cc (NT_MAX_PATH): Define.
Corinna Vinschen [Wed, 13 Aug 2008 16:35:04 +0000 (16:35 +0000)]
* mount.cc (NT_MAX_PATH): Define.
(longopts): Rename mount-commands option to mount-entries.
(opts): Remove removed options.
(struct opt): Move up in file to allow using it in usage.
(usage): Change text for --mount-entries option.  Remove
-X option.  Add valid options output.
(main): Remove handling -b option.
(convert_spaces): New static function to convert spaces to "\040"
string.
(mount_entries): Renamed from mount_commands.  Rewrite to emit
/etc/fstab compatible output.
(show_cygdrive_info): Print "nouser" rather than "system".
* umount.cc (longopts): Remove remove-all-mounts,
remove-cygdrive-prefix, remove-system-mounts, system and user options.
(opts): Remove A, c, s, S, u options.
(usage): Remove text for all removed options.
(main): Remove handling for all removed options.
(remove_all_mounts): Remove.
(remove_all_system_mounts): Remove.
(remove_cygdrive_prefix): Remove.
* utils.sgml: Fix mount and umount documentation.  Move description
of (cyg,not)exec options to mount table section.

15 years ago * pathnames.sgml: Move description for (cyg,not)exec mount options
Corinna Vinschen [Wed, 13 Aug 2008 16:34:49 +0000 (16:34 +0000)]
* pathnames.sgml: Move description for (cyg,not)exec mount options
from utils.sgml here.  Clarify nouser mount points.

15 years ago * mount.cc (fillout_mntent): Always print noumount option last.
Corinna Vinschen [Wed, 13 Aug 2008 15:30:52 +0000 (15:30 +0000)]
* mount.cc (fillout_mntent): Always print noumount option last.

15 years ago * mount.cc (fillout_mntent): Print options as taken in fstab and mount.
Corinna Vinschen [Wed, 13 Aug 2008 15:11:25 +0000 (15:11 +0000)]
* mount.cc (fillout_mntent): Print options as taken in fstab and mount.

15 years ago * cyglsa-config: Copy the DLL instead of moving.
Corinna Vinschen [Wed, 13 Aug 2008 11:05:25 +0000 (11:05 +0000)]
* cyglsa-config: Copy the DLL instead of moving.

15 years ago * dll_init.cc: Throughout convert to use long pathnames.
Corinna Vinschen [Wed, 13 Aug 2008 08:25:44 +0000 (08:25 +0000)]
* dll_init.cc: Throughout convert to use long pathnames.
* dll_init.h (struct dll): Change name to WCHAR, change operator [] to
take PWCHAR argument.

15 years agoAdd replacements for remaining members of printf() family.
Keith Marshall [Mon, 11 Aug 2008 22:41:55 +0000 (22:41 +0000)]
Add replacements for remaining members of printf() family.

15 years ago * syscalls.cc (rename): If newpath doesn't exist, check if .exe suffix
Corinna Vinschen [Mon, 11 Aug 2008 15:05:25 +0000 (15:05 +0000)]
* syscalls.cc (rename): If newpath doesn't exist, check if .exe suffix
in oldpath has been omitted before appending .exe to newpath.

15 years ago * fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't set
Corinna Vinschen [Sat, 9 Aug 2008 11:09:02 +0000 (11:09 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't set
eom_detected when EOF is detected, thus returning 0 instead of
setting errno to ENOSPC.

15 years agoAdd AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
Eric Weddington [Sat, 9 Aug 2008 05:35:13 +0000 (05:35 +0000)]
Add AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
bfd/
* archures.c (bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35,
bfd_mach_avr51): New.
* bfd-in2.h: Regenerate.
* cpu-avr.c (arch_info_struct): Add avr25, avr31, avr35, and avr51
architectures. Change comments to match architecture comments in GCC.
(compatible): Add test for new AVR architectures.
* elf32-avr.c (bfd_elf_avr_final_write_processing): Recognize
bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35 and bfd_mach_avr51.
(elf32_avr_object_p): Recognize E_AVR_MACH_AVR25, E_AVR_MACH_AVR31,
E_AVR_MACH_AVR35 and E_AVR_MACH_AVR51.

gas/
* config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51
architectures. Reorganize list to put mcu types in correct architectures
and to order list same as in GCC. Use new ISA definitions in
include/opcode/avr.h.
* doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture
descriptions. Reorganize descriptions to put mcu types in correct
architectures and to order lists same as in GCC.

include/
* elf/avr.h (E_AVR_MACH_AVR25, E_AVR_MACH_AVR31,
E_AVR_MACH_AVR35, E_AVR_MACH_AVR51): Define.
(EF_AVR_MACH): Redefine to 0x7F.
* opcode/avr.h (AVR_ISA_TINY3, AVR_ISA_ALL, AVR_ISA_USB162): Remove.
(AVR_ISA_AVR3): Redefine.
(AVR_ISA_AVR1, AVR_ISA_AVR2, AVR_ISA_AVR31, AVR_ISA_AVR35,
AVR_ISA_AVR3_ALL, AVR_ISA_AVR4, AVR_ISA_AVR5, AVR_ISA_AVR51,
AVR_ISA_AVR6): Define.

ld/
* Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
and eavr51.o.
Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
* Makefile.in: Regenerate.
* configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
and avr51.
* emulparams/avr25.sh: New file.
* emulparams/avr31.sh: New file.
* emulparams/avr35.sh: New file.
* emulparams/avr51.sh: New file.

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