]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
11 years ago Adapt to changes in newlib's sys/cdefs.h:
Corinna Vinschen [Mon, 22 Apr 2013 10:33:09 +0000 (10:33 +0000)]
Adapt to changes in newlib's sys/cdefs.h:
* include/sys/sysinfo.h (struct sysinfo): Rename __unused member to __f.
* libc/fts.c (__FBSDID): Drop definition.
* regex/regexec.c (__unused): Drop definition.

11 years ago * libc/include/sys/cdefs.h: Align with latest FreeBSD file header.
Corinna Vinschen [Mon, 22 Apr 2013 10:28:05 +0000 (10:28 +0000)]
* libc/include/sys/cdefs.h: Align with latest FreeBSD file header.
* libc/include/sys/features.h (__GNUC_PREREQ__): Define.

11 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 19.
Corinna Vinschen [Mon, 22 Apr 2013 10:13:30 +0000 (10:13 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 19.

11 years ago2013-04-19 Steve Ellcey <sellcey@imgtec.com>
Steve Ellcey [Fri, 19 Apr 2013 22:06:34 +0000 (22:06 +0000)]
2013-04-19  Steve Ellcey  <sellcey@imgtec.com>

* mips/cfe_api.h (int64_t): Remove define.
(uint64_t): Remove define.
(intptr_t): Remove define.
(uintptr_t): Remove define.
(sys/types.h): Remove include.
(_ansi.h): Remove include.

11 years ago[AArch64] Honour CFLAGS.
Marcus Shawcroft [Fri, 19 Apr 2013 14:24:45 +0000 (14:24 +0000)]
[AArch64] Honour CFLAGS.

2013-04-19  Yufeng Zhang  <yufeng.zhang@arm.com>

* aarch64/Makefile.in (rdimon-crt0.o, rdimon-trap.o)
(rdimon-_exit.o, rdimon-_kill.o, rdimon-syscalls.o)
(rdimon-libcfunc.o): Add $(CFLAGS) to the compiler command line.
* aarch64/cpu-init/Makefile.in (${CPU_INIT_OBJS}): Add $(CFLAGS)
to the compiler command line.

11 years ago * newlib/libc/search/hash.c: Revert patch from 2012-08-08.
Corinna Vinschen [Fri, 19 Apr 2013 09:13:27 +0000 (09:13 +0000)]
* newlib/libc/search/hash.c: Revert patch from 2012-08-08.

11 years ago * libc/sys/rtems/sys/queue.h: Delete file.
Corinna Vinschen [Tue, 16 Apr 2013 10:25:16 +0000 (10:25 +0000)]
* libc/sys/rtems/sys/queue.h: Delete file.
* libc/include/sys/cdefs.h (__containerof): New define.
(__DEQUALIFY): Likewise.
* libc/include/sys/queue.h (TRACEBUF_INITIALIZER): Likewise.
(TRACEBUF): Likewise.
(LIST_FOREACH_SAFE): Likewise.
(LIST_PREV): Likewise.
(LIST_SWAP): Likewise.
(QMD_LIST_CHECK_HEAD): Likewise.
(QMD_LIST_CHECK_NEXT): Likewise.
(QMD_LIST_CHECK_PREV): Likewise.
(QMD_SAVELINK): Likewise.
(QMD_TAILQ_CHECK_HEAD): Likewise.
(QMD_TAILQ_CHECK_NEXT): Likewise.
(QMD_TAILQ_CHECK_PREV): Likewise.
(QMD_TAILQ_CHECK_TAIL): Likewise.
(QMD_TRACE_ELEM): Likewise.
(QMD_TRACE_HEAD): Likewise.
(SLIST_FOREACH_PREVPTR): Likewise.
(SLIST_FOREACH_SAFE): Likewise.
(SLIST_REMOVE_AFTER): Likewise.
(SLIST_SWAP): Likewise.
(STAILQ_FOREACH_SAFE): Likewise.
(STAILQ_REMOVE_AFTER): Likewise.
(STAILQ_SWAP): Likewise.
(TAILQ_FOREACH_REVERSE_SAFE): Likewise.
(TAILQ_FOREACH_SAFE): Likewise.
(TAILQ_SWAP): Likewise.
(TRASHIT): Likewise.
(SLIST_REMOVE): Use SLIST_REMOVE_AFTER().
(STAILQ_LAST): Use __containerof().
(STAILQ_REMOVE): Use STAILQ_REMOVE_AFTER().

11 years ago * glob.cc: Include winsup.h before anything else.
Corinna Vinschen [Tue, 16 Apr 2013 10:20:25 +0000 (10:20 +0000)]
* glob.cc: Include winsup.h before anything else.

11 years ago2013-04-12 Will Newton <will.newton@linaro.org>
Jeff Johnston [Fri, 12 Apr 2013 22:12:29 +0000 (22:12 +0000)]
2013-04-12  Will Newton  <will.newton@linaro.org>

        * libc/machine/arm/memcpy-stub.c: Use generic memcpy if unaligned
        access is not enabled.
        * libc/machine/arm/memcpy.S: Faster memcpy implementation for
        Cortex A15 cores using NEON and VFP if available.

11 years ago * acconfig.h (_WCHAR_ORIENT): Undef
Corinna Vinschen [Fri, 12 Apr 2013 12:05:31 +0000 (12:05 +0000)]
* acconfig.h (_WCHAR_ORIENT): Undef
* newlib.hin (_WCHAR_ORIENT): Undef
* configure.in (--enable-newlib-wchar-orient): New option.
* configure: Regenerated.
* libc/configure.in (--enable-newlib-wchar-orient): New option.
* libc/configure: Regenerated.
* libc/stdio/Makefile.am (NEWLIB_WIDE_ORIENT): Use.
* libc/stdio/Makefile.in: Regenerated.
* libc/stdio/local.h (ORIENT): Use _WCHAR_ORIENT to control
the definition. Add alternative definition.
* libc/stdio/vfprintf.c (__sfputs_r, __sprint_r): Use _WCHAR_ORIENT
to control the wide char output.

11 years ago * path.cc (symlink_info::check): Drop PC_KEEP_HANDLE flag for
Corinna Vinschen [Fri, 12 Apr 2013 08:30:47 +0000 (08:30 +0000)]
* path.cc (symlink_info::check): Drop PC_KEEP_HANDLE flag for
unrecognized reparse points as well.  Reorganize code and comments
handling reparse points for better readability.

11 years ago * hires.h (hires_ns::nsecs): Declare with bool parameter.
Corinna Vinschen [Thu, 11 Apr 2013 19:49:58 +0000 (19:49 +0000)]
* hires.h (hires_ns::nsecs): Declare with bool parameter.
* times.cc (hires_ns::nsecs): Take bool parameter.  If set to true,
don't use prime value (== return system wide absolute value).

11 years agoRevert to original patch
Corinna Vinschen [Thu, 11 Apr 2013 13:01:08 +0000 (13:01 +0000)]
Revert to original patch

11 years ago * libc/include/stdlib.h (strtof, strtoll, strtoull, strtold): Also
Corinna Vinschen [Thu, 11 Apr 2013 10:23:05 +0000 (10:23 +0000)]
* libc/include/stdlib.h (strtof, strtoll, strtoull, strtold): Also
prototype if C++11 or later.

11 years ago2013-04-10 Bin Cheng <bin.cheng@arm.com>
Jeff Johnston [Wed, 10 Apr 2013 18:47:46 +0000 (18:47 +0000)]
2013-04-10  Bin Cheng  <bin.cheng@arm.com>
        * acconfig.h (_FSEEK_OPTIMIZATION): Undef
        * newlib.hin (_FSEEK_OPTIMIZATION): Undef
        * configure.in (--disable-newlib-fseek-optimization): New option.
        * configure: Regenerated.
        * libc/stdio/fflush.c (__sflush_r): Use _FSEEK_OPTIMIZATION to
        control fseek optimization.
        * libc/stdio/fseeko.c (_fseeko_r): Ditto.
        * libc/stdio/makebuf.c (__smakebuf_r): Ditto.
        * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.

11 years agofix YA typo
Christopher Faylor [Tue, 9 Apr 2013 01:23:41 +0000 (01:23 +0000)]
fix YA typo

11 years ago* cygtls.h (_cygtls::reset_signal_arrived): Actually reset the signal_arrived
Christopher Faylor [Tue, 9 Apr 2013 01:01:19 +0000 (01:01 +0000)]
* cygtls.h (_cygtls::reset_signal_arrived): Actually reset the signal_arrived
event.
(_cygtls::handle_SIGCONT): Declare ew function.
* cygwait.cc (is_cw_sig_handle): Delete.
(is_cw_sig_cont): New convenience define.
(cygwait): Clear signal if is_cw_sig_cont and we got a SIGCONT.
* cygwait.h (cw_wait_mask): Add cw_sig_cont.
* exceptions.cc (sig_handle_tty_stop): Tighten "incyg" region.  Use cw_sig_cont
param for cygwait.  Don't zero signal here outside of lock.
(sigpacket::setup_handler): Don't check for in_forkee since we will now never
get here in that state.
(_cygtls::handle_SIGCONT): Define new function.
(sigpacket::process): Call handle_SIGCONT early to deal with SIGCONT.  Nuke
continue_now handling.  Allow SIGKILL to kill a suspended process.  Delete a
couple of now-unneeded labels.
(_cygtls::call_signal_handler): Reorganize setting of incyg within lock.
* sigproc.cc (pending_signals): Simplify.
(pending_signals::clear): New method.
(_cygtls::remove_wq): Reorganize to always close wq.thread_ev if it exists to
avoid handle leaks.
(sig_clear): Simplify by just calling sigq.clear().
(sig_dispatch_pending): Always call sigq.pending even in signal thread to force
another loop in wait_sig.
(sig_send): Remove a "goto out" just before out: label.
(pending_signals::add): Simplify.
(pending_signals::del): Delete.
(pending_signals::next): Delete.
(wait_sig): Define variable q to be the start of the signal queue.  Just
iterate through sigq queue, deleting processed or zeroed signals.  Only set
clearwait when the current signal is SIGCHLD.
* sigproc.h: Add a comment about an unused enum.

11 years agofix typo
Christopher Faylor [Mon, 8 Apr 2013 17:55:57 +0000 (17:55 +0000)]
fix typo

11 years ago * fhandler_socket.cc (get_inet_addr): Handle abstract AF_LOCAL socket.
Corinna Vinschen [Mon, 8 Apr 2013 17:34:34 +0000 (17:34 +0000)]
* fhandler_socket.cc (get_inet_addr): Handle abstract AF_LOCAL socket.
(fhandler_socket::recv_internal): Create abstract socket name for
AF_LOCAL datagram sockets.  Explain why we do that.

11 years ago * libc/stdio/vfieeefp.h (ldieee): Fix typo.
Matthew Gretton-Dann [Mon, 8 Apr 2013 09:34:35 +0000 (09:34 +0000)]
* libc/stdio/vfieeefp.h (ldieee): Fix typo.

11 years ago* cygheap.cc (init_cygheap::find_tls): Add a comment.
Christopher Faylor [Sun, 7 Apr 2013 23:53:00 +0000 (23:53 +0000)]
* cygheap.cc (init_cygheap::find_tls): Add a comment.
* dcrt0.cc (parent_sigmask): Delete.
(dll_crt0_1): Use spawn_info->moreinfo->sigmask rather than saved parent signal
mask.
* thread.cc (pthread::thread_init_wrapper): Add comment stressing the
importance of maintaining ordering of statements.

11 years agoIncrease the accuracy of sparc instruction aliases.
David S. Miller [Sat, 6 Apr 2013 22:22:03 +0000 (22:22 +0000)]
Increase the accuracy of sparc instruction aliases.

Make current with UA2011 specification.

Add an F_PREFERRED opcode flag that indicates a preferred alias
when multiple aliases for the same opcode exists.

For 'lzd':

Add 'lzcnt' as primary instruction, and make 'lzd' an alias.

Add 'ldtw', 'ldtwa', 'sttw', 'sttwa':

The modern opcode for for 'ldd', 'ldda', 'std', and 'stda' on
integer registers.  Mark the latter now as aliases.

For 'flush':

Support "[address]" syntax as well as plain "address".

Rework 'mov' aliases for 'wr':

Eliminate bogus three operand moves, and encode the
instructions properly for the "mov REG, %ASR" cases,
specifically we should encode the register in rs2 not rs1 as
per The SPARC V8 Architecture Manual.

Add missing cbcond aliases:

c{w,x}bz, c{w,x}blu, c{w,x}bnz, c{w,x}bgeu

Add 'd' suffix VIS logical ops:

The primary opcode for 'fzero' is now 'fzerod' (compare with
'fzeros'), for example.  And thus 'fzero' is now an alias.

Add modern opcodes for condition code setting edge instructions:

They are now edgeN{,l}cc instead of plain edgeN{,l}.

Add modern opcodes for VIS comparisons:

All VIS comparisons now start with prefix "fp", retain the
older variants as aliases.

The signed variants for equal and not-equal have "u" aliases
to show that these comparisons are equally suited for unsigned
compares.

Update existing test cases as needed, and add several new ones.

include/opcode/

* sparc.h (F_PREFERRED): Define.
(F_PREF_ALIAS): Define.

opcodes/

* sparc-dis.c (compare_opcodes): When encountering multiple aliases
of an opcode, prefer the one with F_PREFERRED set.
* sparc-opc.c (sparc_opcodes): Add ldtw, ldtwa, sttw, sttwa,
lzcnt, flush with '[address]' syntax, and missing cbcond pseudo
ops.  Make 64-bit VIS logical ops have "d" suffix in their names,
mark existing mnenomics as aliases.  Add "cc" suffix to edge
instructions generating condition codes, mark existing mnenomics
as aliases.  Add "fp" prefix to VIS compare instructions, mark
existing mnenomics as aliases.

gas/testsuite/

* gas/sparc/cbcond.s: Add tests for new opcode aliases.
* gas/sparc/cbcond.d: Updated.
* gas/sparc/hpcvis3.s: Add tests for new opcode aliases.
* gas/sparc/hpcvis3.d: Updated.
* gas/sparc/v8-movwr-imm.d: Fix expected disassembly.
* gas/sparc/edge.s: New test.
* gas/sparc/edge.d: Expected disassembly.
* gas/sparc/flush.s: New test.
* gas/sparc/flush.d: Expected disassembly.
* gas/sparc/ldd_std.s: New test.
* gas/sparc/ldd_std.d: Expected disassembly.
* gas/sparc/ldtw_sttw.s: New test.
* gas/sparc/ldtw_sttw.d: Expected disassembly.
* gas/sparc/sparc.exp: Run new tests.

11 years ago * mmap.cc (is_mmapped_region): Call LIST_UNLOCK on premature return.
Corinna Vinschen [Fri, 5 Apr 2013 20:25:39 +0000 (20:25 +0000)]
* mmap.cc (is_mmapped_region): Call LIST_UNLOCK on premature return.

11 years ago * fhandler_proc.cc (format_proc_loadavg): Raise too small buffer size
Corinna Vinschen [Wed, 3 Apr 2013 19:54:58 +0000 (19:54 +0000)]
* fhandler_proc.cc (format_proc_loadavg): Raise too small buffer size
to avoid overwriting unrelated cygheap memory.

11 years agomerge from gcc
DJ Delorie [Wed, 3 Apr 2013 18:21:40 +0000 (18:21 +0000)]
merge from gcc

11 years ago * elf32-v850.c (v850_elf_is_target_special_symbol): New function.
Nick Clifton [Wed, 3 Apr 2013 14:42:10 +0000 (14:42 +0000)]
* elf32-v850.c (v850_elf_is_target_special_symbol): New function.
(bfd_elf32_bfd_is_target_special_symbol): Define.

* v850.h (V850_INVERSE_PCREL): Define.

* v850-dis.c (print_value): With V850_INVERSE_PCREL compute the
destination address by subtracting the operand from the current
address.
* v850-opc.c (insert_u16_loop): Disallow negative offsets.  Store
a positive value in the insn.
(extract_u16_loop): Do not negate the returned value.
(D16_LOOP): Add V850_INVERSE_PCREL flag.

(ceilf.sw): Remove duplicate entry.
(cvtf.hs): New entry.
(cvtf.sh): Likewise.
(fmaf.s): Likewise.
(fmsf.s): Likewise.
(fnmaf.s): Likewise.
(fnmsf.s): Likewise.
(maddf.s): Restrict to E3V5 architectures.
(msubf.s): Likewise.
(nmaddf.s): Likewise.
(nmsubf.s): Likewise.

11 years ago * path.cc (class suffix_scan): Add member namelen.
Corinna Vinschen [Wed, 3 Apr 2013 11:20:36 +0000 (11:20 +0000)]
* path.cc (class suffix_scan): Add member namelen.
(suffix_scan::name_len): New method.
(suffix_scan::has): Store namelen since we have it already anyway.
Add a bit of explanation and a FIXME to comment.
(suffix_scan::next): Never attach extra .lnk suffix if resulting
filename length exceeds NAME_LEN.
(symlink_info::check): Bail out immediately with ENAMETOOLONG if
filename length exceeds NAME_LEN.

11 years ago * libc/posix/scandir.c (DIRSIZ): Use offsetof instead of magic
Corinna Vinschen [Tue, 2 Apr 2013 11:38:12 +0000 (11:38 +0000)]
* libc/posix/scandir.c (DIRSIZ): Use offsetof instead of magic
number.

11 years ago.
Christopher Faylor [Mon, 1 Apr 2013 11:04:41 +0000 (11:04 +0000)]
.

11 years agowhitespace
Christopher Faylor [Sun, 31 Mar 2013 12:37:45 +0000 (12:37 +0000)]
whitespace

11 years ago* child_info.h (cygheap_exec_info::sigmask): Declare new field.
Christopher Faylor [Sun, 31 Mar 2013 12:35:44 +0000 (12:35 +0000)]
* child_info.h (cygheap_exec_info::sigmask): Declare new field.
* cygheap.cc (init_cygheap::find_tls): Rename threadlist_ix -> ix.  Only take
one pass through thread list, looking for eligible threads to signal.  Set a
new param indicating that function has found a sigwait* mask.
* cygheap.h (init_cygheap::find_tls): Reflect new parameter.
* dcrt0.cc (parent_sigmask): New variable.
(child_info_spawn::handle_spawn): Save parent's signal mask here.
(dll_crt0_1): Restore parent's signal mask to tls sigmask as appropriate.  Call
sig_dispatch_pending to flush signal queue when we can finally do something
with signals.
* exceptions.cc (sigpacket::process): Avoid attempting to handle signals if we
haven't finished initializing.  Rely on the fact that find_tls will do mask
checking and don't do it again.  Delete ill-named 'dummy' variable.
* sigproc.cc (cygheap_exec_info::alloc): Save calling thread's signal mask in
new sigmask field.
(wait_sig): Try to debug when WFSO fails and DEBUGGING is defined.
* thread.cc (pthread::set_tls_self_pointer): Make this a true automatic method
rather than inexplicably relying on a thread parameter.
(pthread::thread_init_wrapper): Accommodate set_tls_self_pointer change to
non-static.  Initialize sigmask before setting tid or suffer signal races.
* ehread.h (pthread::set_tls_self_pointer): Make non-static, delete parameter.

11 years agowhitespace
Christopher Faylor [Sun, 31 Mar 2013 11:05:35 +0000 (11:05 +0000)]
whitespace

11 years ago * cygthread.cc (cygthread::terminate_thread): Only try to free
Corinna Vinschen [Fri, 29 Mar 2013 17:00:36 +0000 (17:00 +0000)]
* cygthread.cc (cygthread::terminate_thread): Only try to free
thread stack on systems not freeing it by themselves.
* wincap.h (wincaps::terminate_thread_frees_stack): New element.
* wincap.cc: Implement above element throughout.

11 years ago* pinfo.h (pinfo::status_exit): Rename from former static function in pinfo.cc.
Christopher Faylor [Fri, 29 Mar 2013 16:19:11 +0000 (16:19 +0000)]
* pinfo.h (pinfo::status_exit): Rename from former static function in pinfo.cc.
(pinfo::operator == (char *)): Remove unused operator.
* pinfo.cc (pinfo::status_exit): Move this function info pinfo class.  Use
progname from the pinfo rather than myself.  Be defensive when inspecting
procinfo.

11 years ago* sigproc.cc (wait_sig): Avoid uninitialized use of nb when retrying.
Christopher Faylor [Fri, 29 Mar 2013 13:18:25 +0000 (13:18 +0000)]
* sigproc.cc (wait_sig): Avoid uninitialized use of nb when retrying.
Consolidate two error messages into one.

11 years ago* sigproc.cc (pending_signals::retry): Declare new element.
Christopher Faylor [Fri, 29 Mar 2013 01:22:14 +0000 (01:22 +0000)]
* sigproc.cc (pending_signals::retry): Declare new element.
(pending_signals::pending): Force an additional loop through wait_sig by
setting retry whenever this function is called.
(sig_send): Reorganize to wait for SIGHOLD at bottom.  Always add signal to
pending queue and work on whole queue rather than just the one signal.  Loop
when sigq.retry is set.  Fix long-broken check for SIGCHLD after queued
signals.

11 years ago* exceptions.cc (exception::handle): Generalize comment.
Christopher Faylor [Thu, 28 Mar 2013 16:14:53 +0000 (16:14 +0000)]
* exceptions.cc (exception::handle): Generalize comment.

11 years ago PR binutils/15068
Nick Clifton [Thu, 28 Mar 2013 09:25:11 +0000 (09:25 +0000)]
PR binutils/15068
* tic6x-opcode-table.h: Fix patterns for add, ldnw and xor.
* gas/tic6x/insns16-lsd-unit.s: Correct bit patterns for mvk, add
and xor.
* gas/tic6x/insns16-lsd-unit.d: Update expected output.

11 years ago * faq-what.xml (faq.what.supported): Mention Windows 8 and Server 2012.
Corinna Vinschen [Wed, 27 Mar 2013 16:12:30 +0000 (16:12 +0000)]
* faq-what.xml (faq.what.supported): Mention Windows 8 and Server 2012.
Change sentence on native 64 bit version.

11 years ago PR binutils/15068
Nick Clifton [Wed, 27 Mar 2013 11:43:37 +0000 (11:43 +0000)]
PR binutils/15068
* tic6x-dis.c: Add support for displaying 16-bit insns.
* tic6xc-insn-formats.h (FLD): Add use of bitfield array.
Add 16-bit opcodes.
* tic6xc-opcode-table.h: Add 16-bit insns.
* tic6x.h: Add support for 16-bit insns.
* config/tc-tic6x.c (tic6x_try_encode): Add use of bitfields array.
* gas/tic6x/insns16-d-unit.s: New test.
* gas/tic6x/insns16-d-unit.d: Expected disassembly.
* gas/tic6x/insns16-ddec.s: New test.
* gas/tic6x/insns16-ddec.d: Expected disassembly.
* gas/tic6x/insns16-dinc.s: New test.
* gas/tic6x/insns16-dinc.d: Expected disassembly.
* gas/tic6x/insns16-dind.s: New test.
* gas/tic6x/insns16-dind.d: Expected disassembly.
* gas/tic6x/insns16-doff4.s: New test.
* gas/tic6x/insns16-doff4.d: Expected disassembly.
* gas/tic6x/insns16-l-unit.s: New test.
* gas/tic6x/insns16-l-unit.d: Expected disassembly.
* gas/tic6x/insns16-lsd-unit.s: New test.
* gas/tic6x/insns16-lsd-unit.d: Expected disassembly.
* gas/tic6x/insns16-m-unit.s: New test.
* gas/tic6x/insns16-m-unit.d: Expected disassembly.
* gas/tic6x/insns16-s-unit-pcrel.s: New test.
* gas/tic6x/insns16-s-unit-pcrel.d: Expected disassembly.
* gas/tic6x/insns16-s-unit: New test.
* gas/tic6x/insns16-s-unit.d: Expected disassembly.

11 years ago * acconfig.h (_FVWRITE_IN_STREAMIO): Undefine.
Corinna Vinschen [Wed, 27 Mar 2013 09:38:39 +0000 (09:38 +0000)]
* acconfig.h (_FVWRITE_IN_STREAMIO): Undefine.
* newlib.hin (_FVWRITE_IN_STREAMIO): Undefine.
* configure.in (--disable-newlib-fvwrite-in-streamio): New option.
* configure: Regenerated.
* libc/stdio/fputs.c (_fputs_r): Use _FVWRITE_IN_STREAMIO to
control __sfvwrite_r.  Add alternative implementation.
* libc/stdio/fputws.c (_fputws_r): Ditto.
* libc/stdio/fwrite.c (_fwrite_r): Ditto.
* libc/stdio/puts.c (_puts_r): Ditto.
* libc/stdio/vfprintf.c (__ssputs_r, __sfputs_r): New function.
(_VFPRINTF_R): Use _FVWRITE_IN_STREAMIO to control vector buffer.
(__SPRINT): Use _FVWRITE_IN_STREAMIO to control macro definition.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use _FVWRITE_IN_STREAMIO
to control vector buffer.

11 years ago2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill [Tue, 26 Mar 2013 16:07:55 +0000 (16:07 +0000)]
2013-03-26  Sebastian Huber <sebastian.huber@embedded-brains.de>

* libc/stdio/local.h (_STDIO_WITH_THREAD_CANCELLATION_SUPPORT):
New define.
* libc/stdio/fclose.c: Use
_STDIO_WITH_THREAD_CANCELLATION_SUPPORT.
* libc/stdio/freopen.c: Likewise.
* libc/stdio64/freopen64.c: Likewise.

11 years agosrc-release: fix version look up for bfd based projects
Michael Frysinger [Fri, 22 Mar 2013 23:16:40 +0000 (23:16 +0000)]
src-release: fix version look up for bfd based projects

11 years ago * elf32-h8300 (h8_relax_section): Add new relaxation of mov
Nick Clifton [Thu, 21 Mar 2013 16:08:06 +0000 (16:08 +0000)]
* elf32-h8300 (h8_relax_section): Add new relaxation of mov
@(disp:32,ERx) to mov @(disp:16,ERx).
(R_H8_DISP32A16): New reloc.
Comments added and corrected.
* reloc.c (BFD_RELOC_H8_DISP32A16): New reloc.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

* ld.texinfo (H8/300): Add description of relaxation of
mov @(disp:32,ERx) to mov @(disp:16,ERx).

* ld-h8300/h8300.exp: Add new relax-7 test on ELF.
* ld-h8300/relax-2.s: Add other direction and .w/.l variants of
mov insns.
* ld-h8300/relax-2.d: Update expected disassembly.
* ld-h8300/relax-7a.s: New: tests for mov @(disp:32,ERx) -> mov
@(disp:16,ERx).
* ld-h8300/relax-7b.s: New: Likewise.
* ld-h8300/relax-7.d: New: expected disassembly.

* config/tc-h8300.c (do_a_fix_imm): Add relaxation of mov
@(disp:32,ERx) to mov @(disp:16,ERx) insns by new reloc
R_H8_DISP32A16.
* config/tc-h8300.h: Remove duplicated defines.

11 years ago PR gas/15082
Nick Clifton [Wed, 20 Mar 2013 16:56:34 +0000 (16:56 +0000)]
PR gas/15082
* tic6x-opcode-table.h: Rename mpydp's specific operand type macro
from ORREGD1324 to ORXREGD1324 and make it cross-path-able through
tic6x_operand_xregpair operand coding type.
Make mpydp instruction cross-path-able, ie: remove the FIXed 'x'
opcode field, usu ORXREGD1324 for the src2 operand and remove the
TIC6X_FLAG_NO_CROSS.

* gas/tic6x/insns-bad-1.s: Remove test-case for mpydp with
cross-path.
* gas/tic6x/insns-bad-1.l: Update expected output.
* gas/tic6x/insns-c674x.s: Add a test-case for mpydp with
cross-path.
* gas/tic6x/insns-c674x.d: Update expected output.

11 years ago* include/opcode/tic6x.h: add tic6x_coding_dreg_(msb|lsb) field coding type in
Nick Clifton [Wed, 20 Mar 2013 16:36:34 +0000 (16:36 +0000)]
* include/opcode/tic6x.h: add tic6x_coding_dreg_(msb|lsb) field coding type in
order to encode separately the msb and lsb of a register pair ; this will be
needed to encode the opcodes the same
way as Ti assembler does.

* gas/config/tc-tic6x.c: handle tic6x_coding_dreg_(msb|lsb)  field coding types
and use it to encode register pair numbers when required.

* opcodes/tic6x-dis.c: decodes opcodes that have individual msb and lsb halves
in src1 & src2 fields ; discard the src1 (lsb) value and only use src2 (msb),
discarding bit 0, to follow what Ti SDK does in that case as any value in the
src1 field yields the same output with SDK disassembler.

* include/opcode/tic6x-opcode-table.h: modify absdp, dpint, dpsp, dptrunc,
rcpdp and rsqrdp opcodes to use the new field coding types.

* gas/testsuite/gas/tic6x/insns-c674x.d, gas/testsuite/gas/tic6x/insns-c674x.s
: add test case for the newly generated opcode but keep the old ones as they
seem legit as per Ti disassembler output.

11 years agotest checkin
Christopher Faylor [Tue, 19 Mar 2013 16:41:42 +0000 (16:41 +0000)]
test checkin

11 years agogdb:
Steve Ellcey [Fri, 15 Mar 2013 17:53:41 +0000 (17:53 +0000)]
gdb:

2013-03-15  Steve Ellcey  <sellcey@mips.com>

* remote-sim.c (sim_command_completer): Make char arguments const.

include:

2013-03-15  Steve Ellcey  <sellcey@mips.com>

* gdb/remote-sim.h (sim_command_completer): Make char arguments const.

sim:

2013-03-15  Steve Ellcey  <sellcey@mips.com>

* arm/wrapper.c (sim_complete_command): Make char arguments const.
* avr/interp.c (sim_complete_command): Ditto.
* common/sim-options.c (sim_complete_command): Ditto.
* cr16/interp.c (sim_complete_command): Ditto.
* erc32/interf.c (sim_complete_command): Ditto.
* m32c/gdb-if.c (sim_complete_command): Ditto.
* microblaze/interp.c (sim_complete_command): Ditto.
* ppc/sim_calls.c (sim_complete_command): Ditto.
* rl78/gdb-if.c (sim_complete_command): Ditto.
* rx/gdb-if.c (sim_complete_command): Ditto.
* sh/interp.c (sim_complete_command): Ditto.

11 years ago * newlib/libc/stdio/findfp.c (glue_with_file): New.
Corinna Vinschen [Fri, 15 Mar 2013 13:19:29 +0000 (13:19 +0000)]
* newlib/libc/stdio/findfp.c (glue_with_file): New.
(__sfmoreglue): Use glue_with_file to avoid alignment problems.

11 years ago2013-03-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
Sandra Loosemore [Tue, 12 Mar 2013 19:18:57 +0000 (19:18 +0000)]
2013-03-12  Sebastian Huber <sebastian.huber@embedded-brains.de>

include/
* opcode/nios2.h: Edit comment.

gas/
* config/tc-nios2.c (nios2_consume_arg): Delete 'k' case.  Add 'o'
case.  Add default BAD_CASE to switch.

gas/testsuite/
* gas/nios2/break.d: Check instruction values.

11 years ago2013-03-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
Sandra Loosemore [Tue, 12 Mar 2013 02:41:26 +0000 (02:41 +0000)]
2013-03-11  Sebastian Huber <sebastian.huber@embedded-brains.de>

include/
* opcode/nios2.h (OPX_WRPRS): New define.
(OP_MATCH_WRPRS): Likewise.

opcodes/
* nios2-opc.c (nios2_builtin_opcodes): Add entry for wrprs.

gas/
* config/tc-nios2.c (nios2_assemble_args_ds): New function.
(nios2_arg_info_structs): Add "d,s" and "d,s,E" entries.

gas/testsuite/
* gas/nios2/nios2.exp: Run wrprs.
* gas/nios2/wrprs.d: New file.
* gas/nios2/wrprs.s: Likewise.

11 years ago2013-03-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
Sandra Loosemore [Tue, 12 Mar 2013 02:20:08 +0000 (02:20 +0000)]
2013-03-11  Sebastian Huber <sebastian.huber@embedded-brains.de>

include/
* opcode/nios2.h (OP_RDPRS): New define.
(OP_MATCH_RDPRS): Likewise.

opcodes/
* nios2-opc.c (nios2_builtin_opcodes): Add entry for rdprs.

gas/testsuite/
* gas/nios2/nios2.exp: Run rdprs.
* gas/nios2/rdprs.d: New file.
* gas/nios2/rdprs.s: Likewise.

11 years agoAdd support for AArch32 CRC instruction in ARMv8.
Kyrylo Tkachov [Mon, 11 Mar 2013 11:09:32 +0000 (11:09 +0000)]
Add support for AArch32 CRC instruction in ARMv8.

gas/ChangeLog
2013-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/tc-arm.c (crc_ext_armv8): New feature set.
(UNPRED_REG): New macro.
(do_crc32_1): New function.
(do_crc32b, do_crc32h, do_crc32w, do_crc32cb,
do_crc32ch, do_crc32cw): Likewise.
(TUEc): New macro.
(insns): Add entries for crc32 mnemonics.
(arm_extensions): Add entry for crc.

include/opcode/ChangeLog
2013-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* arm.h (CRC_EXT_ARMV8): New constant.
(ARCH_CRC_ARMV8): New macro.

opcodes/ChangeLog
2013-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* arm-dis.c (arm_opcodes): Add entries for CRC instructions.
(thumb32_opcodes): Likewise.
(print_insn_thumb32): Handle 'S' control char.

gas/testsuite/ChangeLog
2013-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* gas/arm/crc32-bad.d: New file.
* gas/arm/crc32-bad.l: Likewise.
* gas/arm/crc32-bad.s: Likewise.
* gas/arm/crc32.d: Likewise.
* gas/arm/crc32.s: Likewise.

11 years agoadd news
Christopher Faylor [Sat, 9 Mar 2013 21:58:54 +0000 (21:58 +0000)]
add news

11 years ago* cygtls.h (_cygtls::signal_debugger): Change argument type.
Christopher Faylor [Sat, 9 Mar 2013 21:55:18 +0000 (21:55 +0000)]
* cygtls.h (_cygtls::signal_debugger): Change argument type.
(_cygtls::copy_context): Delete declaration.
* exceptions.cc (exception::handle): Don't call copy_context() here.  Move
signal_handler call earlier and always call it.
(_cygtls::copy_context): Delete definition.
(_cygtls::signal_debugger): Move copy_context logic here.  Suspend thread
receiving signal before gathering context information.

11 years ago* spawn.cc (child_info_spawn::worker): Save and restore my_wr_proc_pipe around
Christopher Faylor [Sat, 9 Mar 2013 00:11:31 +0000 (00:11 +0000)]
* spawn.cc (child_info_spawn::worker): Save and restore my_wr_proc_pipe around
non-execing operations to avoid handle leak seen in
http://cygwin.com/ml/cygwin/2013-03/msg00152.html .

11 years ago * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
Nick Clifton [Fri, 8 Mar 2013 17:13:31 +0000 (17:13 +0000)]
* elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
* elf.c (elfcore_write_s390_tdb): New function.
(elfcore_write_register_note): Call it.
(elfcore_grok_s390_tdb): New function.
(elfcore_grok_note): Call it.

* readelf.c (get_note_type): Add NT_S390_TDB.

11 years ago * include/sys/un.h (UNIX_PATH_MAX): Rename from UNIX_PATH_LEN to
Corinna Vinschen [Thu, 7 Mar 2013 15:39:35 +0000 (15:39 +0000)]
* include/sys/un.h (UNIX_PATH_MAX): Rename from UNIX_PATH_LEN to
follow Linux.
* fhandler_socket.cc: Change UNIX_PATH_LEN to UNIX_PATH_MAX throughout.
(fhandler_socket::recv_internal): Don't return prematurely in case of
successful return.  For AF_LOCAL sockets, overwrite returned AF_INET
name with AF_LOCAL name.

11 years ago * fhandler_socket.cc (fhandler_socket::bind): Fix check for AF_LOCAL
Corinna Vinschen [Thu, 7 Mar 2013 11:04:28 +0000 (11:04 +0000)]
* fhandler_socket.cc (fhandler_socket::bind): Fix check for AF_LOCAL
filename length to allow non-NUL terminated strings within namelen
bytes.  Copy over sun_path to local array sun_path to have a
NUL-terminated string for subsequent function calls.  Move path_conv
check before OS bind call to not bind the socket before being sure
the file doesn't exist.  Add and fix comments.

11 years ago * mount.cc (fs_names): Add trailing NULL element to avoid potential
Corinna Vinschen [Wed, 6 Mar 2013 14:10:23 +0000 (14:10 +0000)]
* mount.cc (fs_names): Add trailing NULL element to avoid potential
SEGV in format_proc_filesystems.

11 years ago * faq-using.xml: Fix expression and uppercase Samba.
Corinna Vinschen [Wed, 6 Mar 2013 11:28:29 +0000 (11:28 +0000)]
* faq-using.xml: Fix expression and uppercase Samba.

11 years agoRestore patch lost in last merge from GCC.
Cary Coutant [Fri, 1 Mar 2013 23:40:38 +0000 (23:40 +0000)]
Restore patch lost in last merge from GCC.

include/
* dwarf2.h (enum dwarf_sect): New enum type.

11 years agomerge from gcc
DJ Delorie [Fri, 1 Mar 2013 23:00:18 +0000 (23:00 +0000)]
merge from gcc

11 years agoinclude/
Cary Coutant [Fri, 1 Mar 2013 19:23:33 +0000 (19:23 +0000)]
include/
* dwarf2.h (enum dwarf_sect): New enum type.

11 years agoRemove now-inappropriate comment.
Christopher Faylor [Fri, 1 Mar 2013 16:28:09 +0000 (16:28 +0000)]
Remove now-inappropriate comment.

11 years agofix latest changelog description
Christopher Faylor [Fri, 1 Mar 2013 15:55:39 +0000 (15:55 +0000)]
fix latest changelog description

11 years ago* exceptions.cc (exception::handle): Eliminate buggy recursed value and just
Christopher Faylor [Fri, 1 Mar 2013 15:48:14 +0000 (15:48 +0000)]
* exceptions.cc (exception::handle): Eliminate buggy recursed value and just
check if we're exiting.

11 years agoinclude/opcode/
Yufeng Zhang [Thu, 28 Feb 2013 19:18:40 +0000 (19:18 +0000)]
include/opcode/

* aarch64.h (AARCH64_FEATURE_CRC): New macro.

opcodes/

* aarch64-tbl.h (QL_I3SAMEW, QL_I3WWX): New macros.
(aarch64_feature_crc): New static.
(CRC): New macro.
(aarch64_opcode_table): Add entries for the crc32b, crc32h, crc32w,
crc32x, crc32cb, crc32ch, crc32cw and crc32cx instructions.
* aarch64-asm-2.c: Re-generate.
* aarch64-dis-2.c: Ditto.
* aarch64-opc-2.c: Ditto.

gas/

* config/tc-aarch64.c (aarch64_features): Add the 'crc' option.

gas/testsuite/

* gas/aarch64/crc32.s: New test.
* gas/aarch64/crc32.d: Ditto.

11 years ago * libc/include/machine/setjmp.h (sigjmp_buf): Fix definition of
Corinna Vinschen [Thu, 28 Feb 2013 16:42:21 +0000 (16:42 +0000)]
* libc/include/machine/setjmp.h (sigjmp_buf): Fix definition of
sigjmp_buf size if _JBTYPE is defined.

11 years ago * libc/include/malloc.h (struct mallinfo): Convert type of all members
Corinna Vinschen [Tue, 26 Feb 2013 14:25:13 +0000 (14:25 +0000)]
* libc/include/malloc.h (struct mallinfo): Convert type of all members
to size_t to match all targets.

11 years ago * include/pthread.h (pthread_atfork): Add missing declaration.
Corinna Vinschen [Tue, 26 Feb 2013 10:32:36 +0000 (10:32 +0000)]
* include/pthread.h (pthread_atfork): Add missing declaration.

11 years ago * libc/include/sys/_types.h (_ssize_t): Define as signed equivalent of
Corinna Vinschen [Thu, 21 Feb 2013 12:27:11 +0000 (12:27 +0000)]
* libc/include/sys/_types.h (_ssize_t): Define as signed equivalent of
size_t with GCC.

11 years ago* include/error.h (error_message_count): Declare as dllimport.
Yaakov Selkowitz [Thu, 21 Feb 2013 03:15:47 +0000 (03:15 +0000)]
* include/error.h (error_message_count): Declare as dllimport.
(error_one_per_line): Ditto.
(error_print_progname): Ditto.

11 years ago* Makefile.in (CYGWIN_LDFLAGS): Replace -static-lib* with -static.
Yaakov Selkowitz [Thu, 21 Feb 2013 02:13:17 +0000 (02:13 +0000)]
* Makefile.in (CYGWIN_LDFLAGS): Replace -static-lib* with -static.
(MINGW_LDFLAGS): Ditto.
(ZLIB): Simplify accordingly.

11 years ago * libc/machine/mips/memcpy.S: Fix USE_PREFETCH check.
Corinna Vinschen [Tue, 19 Feb 2013 07:31:04 +0000 (07:31 +0000)]
* libc/machine/mips/memcpy.S: Fix USE_PREFETCH check.

11 years agoinclude/
Alan Modra [Mon, 18 Feb 2013 23:50:26 +0000 (23:50 +0000)]
include/
* bfdlink.h (struct bfd_link_info): Delete emit_note_gnu_build_id.
bfd/
* configure.in: Bump version to 2.23.52.
* elf-bfd.h (struct elf_build_id_info): New.
(struct elf_obj_tdata): Delete after_write_object_contents,
after_write_object_contents_info and build_id_size.  Make build_id
a pointer to struct elf_build_id_info.
* elf.c (_bfd_elf_write_object_contents): Style.  Update
after_write_ibject_contents invocation.
(elfobj_grok_gnu_build_id): Update for new build_id struct.  Don't
allow zero size notes.
* configure: Regenerate.
gdb/
* elfread.c (struct build_id): Delete.  Use struct elf_build_id
throughout file instead.
(build_id_bfd_get): Update to use new elf_tdata build_id field.
Don't xmalloc return value.
(build_id_verify): Similarly.  Don't xfree.
(build_id_to_debug_filename): Update.
(find_separate_debug_file_by_buildid): Update, don't xfree.
ld/
* emultempl/elf32.em (emit_note_gnu_build_id): New static var.
Replace all info->emit_note_gnu_build_id refs.
(id_note_section_size): Rename from
gld${EMULATION_NAME}_id_note_section_size.
(struct build_id_info): Delete.
(write_build_id): Rename from
gld${EMULATION_NAME}_write_build_id_section.
Update elf_tdata usage.  Style, formatting.
(setup_build_id): New function.
(gld${EMULATION_NAME}_after_open): Use setup_build_id.

11 years ago * configure.ac: Sync with GCC repo.
Yufeng Zhang [Fri, 15 Feb 2013 17:55:25 +0000 (17:55 +0000)]
* configure.ac: Sync with GCC repo.
* configure: Ditto.

11 years ago* pathnames.sgml: Remove stray '@'.
Christopher Faylor [Wed, 13 Feb 2013 18:07:24 +0000 (18:07 +0000)]
* pathnames.sgml: Remove stray '@'.

11 years ago* pathnames.sgml: Clarify '@' processing.
Christopher Faylor [Wed, 13 Feb 2013 17:57:19 +0000 (17:57 +0000)]
* pathnames.sgml: Clarify '@' processing.

11 years agoFix wrongly applied patch
Corinna Vinschen [Tue, 12 Feb 2013 15:26:30 +0000 (15:26 +0000)]
Fix wrongly applied patch

11 years agoThis patch assigns explicit integers to enum values corresponding
Sriraman Tallam [Mon, 11 Feb 2013 19:36:56 +0000 (19:36 +0000)]
This patch assigns explicit integers to enum values corresponding
to the plugin API.  This patch helps preventing problems while
cherry-picking plugin-api.h changes from trunk gold to local branches.
For instance, a linker plugin compiled with a cherry-picked
plugin-api.h header with some enum values missing will behave
strangely when used with a linker built with the up to date header.

* plugin-api.h (enum ld_plugin_level): Assign integers
explicitly for all values.

11 years ago * libgloss/rx/Makefile.in: Respect DESTDIR when installing
Corinna Vinschen [Mon, 11 Feb 2013 08:28:46 +0000 (08:28 +0000)]
* libgloss/rx/Makefile.in: Respect DESTDIR when installing

11 years ago * arm/elf-rdimon.specs (-lrdimon): Change link to lib.
Corinna Vinschen [Sun, 10 Feb 2013 11:57:51 +0000 (11:57 +0000)]
* arm/elf-rdimon.specs (-lrdimon): Change link to lib.

11 years ago * child_info.h (CURR_CHILD_INFO_MAGIC): Update.
Corinna Vinschen [Fri, 8 Feb 2013 20:15:05 +0000 (20:15 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Update.
(class child_info_fork): Drop extraneous semicolon.

11 years ago2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Wed, 6 Feb 2013 23:22:18 +0000 (23:22 +0000)]
2013-02-06  Sandra Loosemore  <sandra@codesourcery.com>
            Andrew Jenner <andrew@codesourcery.com>

Based on patches from Altera Corporation.

bfd/
* Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
(ALL_MACHINES_CFILES): Add cpu-nios2.c.
(BFD_BACKENDS): Add elf32-nios2.lo.
(BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
* Makefile.in: Regenerated.
* configure.in: Add entries for bfd_elf32_bignios2_vec and
bfd_elf32_littlenios2_vec.
* configure: Regenerated.
* config.bfd: Add cases for nios2.
* archures.c (enum bfd_architecture): Add bfd_arch_nios2.
(bfd_mach_nios2): Define.
(bfd_nios2_arch): Declare.
(bfd_archures_list): Add bfd_nios2_arch.
* targets.c (bfd_elf32_bignios2_vec): Declare.
(bfd_elf32_littlenios2_vec): Declare.
(_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
bfd_elf32_littlenios2_vec.
* elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
* reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
* bfd-in2.h: Regenerated.
* libbfd.h: Regenerated.
* cpu-nios2.c: New file.
* elf32-nios2.c: New file.

opcodes/
* Makefile.am (TARGET_LIBOPCODES_CFILES): Add nios2-dis.c and
nios2-opc.c.
* Makefile.in: Regenerated.
* configure.in: Add case for bfd_nios2_arch.
* configure: Regenerated.
* disassemble.c (ARCH_nios2): Define.
(disassembler): Add case for bfd_arch_nios2.
* nios2-dis.c: New file.
* nios2-opc.c: New file.

include/
* dis-asm.h (print_insn_big_nios2): Declare.
(print_insn_little_nios2): Declare.

include/elf
* nios2.h: New file.

include/opcode/
* nios2.h: New file.

gas/
* Makefile.am (TARGET_CPU_CFILES): Add config/tc-nios2.c.
(TARGET_CPU_HFILES): Add config/tc-nios2.h.
* Makefile.in: Regenerated.
* configure.tgt: Add case for nios2*-linux*.
* config/obj-elf.c: Conditionally include elf/nios2.h.
* config/tc-nios2.c: New file.
* config/tc-nios2.h: New file.
* doc/Makefile.am (CPU_DOCS): Add c-nios2.texi.
* doc/Makefile.in: Regenerated.
* doc/all.texi: Set NIOSII.
* doc/as.texinfo (Overview): Add Nios II options.
(Machine Dependencies): Include c-nios2.texi.
* doc/c-nios2.texi: New file.
* NEWS: Note Altera Nios II support.

gas/testsuite/
* gas/nios2/add.d: New.
* gas/nios2/add.s: New.
* gas/nios2/align_fill.d: New.
* gas/nios2/align_fill.s: New.
* gas/nios2/align_text.d: New.
* gas/nios2/align_text.s: New.
* gas/nios2/and.d: New.
* gas/nios2/and.s: New.
* gas/nios2/branch.d: New.
* gas/nios2/branch.s: New.
* gas/nios2/break.d: New.
* gas/nios2/break.s: New.
* gas/nios2/bret.d: New.
* gas/nios2/bret.s: New.
* gas/nios2/cache.d: New.
* gas/nios2/cache.s: New.
* gas/nios2/call26.d: New.
* gas/nios2/call26.s: New.
* gas/nios2/call.d: New.
* gas/nios2/call.s: New.
* gas/nios2/cmp.d: New.
* gas/nios2/cmp.s: New.
* gas/nios2/comments.d: New.
* gas/nios2/comments.s: New.
* gas/nios2/complex.d: New.
* gas/nios2/complex.s: New.
* gas/nios2/ctl.d: New.
* gas/nios2/ctl.s: New.
* gas/nios2/custom.d: New.
* gas/nios2/custom.s: New.
* gas/nios2/etbt.d: New.
* gas/nios2/etbt.s: New.
* gas/nios2/flushda.d: New.
* gas/nios2/flushda.s: New.
* gas/nios2/illegal.l: New.
* gas/nios2/illegal.s: New.
* gas/nios2/jmp.d: New.
* gas/nios2/jmp.s: New.
* gas/nios2/ldb.d: New.
* gas/nios2/ldb.s: New.
* gas/nios2/ldh.d: New.
* gas/nios2/ldh.s: New.
* gas/nios2/ldw.d: New.
* gas/nios2/ldw.s: New.
* gas/nios2/lineseparator.d: New.
* gas/nios2/lineseparator.s: New.
* gas/nios2/mov.d: New.
* gas/nios2/movia.d: New.
* gas/nios2/movia.s: New.
* gas/nios2/movi.d: New.
* gas/nios2/movi.s: New.
* gas/nios2/mov.s: New.
* gas/nios2/mul.d: New.
* gas/nios2/mul.s: New.
* gas/nios2/nios2.exp: New.
* gas/nios2/nor.d: New.
* gas/nios2/nor.s: New.
* gas/nios2/or.d: New.
* gas/nios2/or.s: New.
* gas/nios2/ret.d: New.
* gas/nios2/ret.s: New.
* gas/nios2/rol.d: New.
* gas/nios2/rol.s: New.
* gas/nios2/rotate.d: New.
* gas/nios2/rotate.s: New.
* gas/nios2/stb.d: New.
* gas/nios2/stb.s: New.
* gas/nios2/sth.d: New.
* gas/nios2/sth.s: New.
* gas/nios2/stw.d: New.
* gas/nios2/stw.s: New.
* gas/nios2/sub.d: New.
* gas/nios2/sub.s: New.
* gas/nios2/sync.d: New.
* gas/nios2/sync.s: New.
* gas/nios2/trap.d: New.
* gas/nios2/trap.s: New.
* gas/nios2/tret.d: New.
* gas/nios2/tret.s: New.
* gas/nios2/warn_noat.l: New.
* gas/nios2/warn_noat.s: New.
* gas/nios2/warn_nobreak.l: New.
* gas/nios2/warn_nobreak.s: New.
* gas/nios2/xor.d: New.
* gas/nios2/xor.s: New.

ld/
* Makefile.am (enios2elf.c): New rule.
* Makefile.in: Regenerated.
* configure.tgt: Add case for nios2*-*-*.
* emulparams/nios2elf.sh: New file.
* NEWS: Note Altera Nios II support.

ld/testsuite/
* ld-nios2/emit-relocs-1a.s: New.
* ld-nios2/emit-relocs-1b.s: New.
* ld-nios2/emit-relocs-1.d: New.
* ld-nios2/emit-relocs-1.ld: New.
* ld-nios2/gprel.d: New.
* ld-nios2/gprel.s: New.
* ld-nios2/hilo16.d: New.
* ld-nios2/hilo16.s: New.
* ld-nios2/hilo16_symbol.s: New.
* ld-nios2/imm5.d: New.
* ld-nios2/imm5.s: New.
* ld-nios2/imm5_symbol.s: New.
* ld-nios2/nios2.exp: New.
* ld-nios2/pcrel16.d: New.
* ld-nios2/pcrel16_label.s: New.
* ld-nios2/pcrel16.s: New.
* ld-nios2/relax_callr.d: New.
* ld-nios2/relax_callr.ld: New.
* ld-nios2/relax_callr.s: New.
* ld-nios2/relax_cjmp.d: New.
* ld-nios2/relax_cjmp.s: New.
* ld-nios2/relax_jmp.ld: New.
* ld-nios2/relax_section.d: New.
* ld-nios2/relax_section.s: New.
* ld-nios2/relax_ujmp.d: New.
* ld-nios2/relax_ujmp.s: New.
* ld-nios2/reloc.d: New.
* ld-nios2/reloc.s: New.
* ld-nios2/reloc_symbol.s: New.
* ld-nios2/s16.d: New.
* ld-nios2/s16.s: New.
* ld-nios2/s16_symbol.s: New.
* ld-nios2/u16.d: New.
* ld-nios2/u16.s: New.
* ld-nios2/u16_symbol.s: New.
* ld-elf/indirect.exp: Skip on targets that don't support
-shared -fPIC.
* ld-elfcomm/elfcomm.exp: Build with -G0 for nios2.
* ld-plugin/lto.exp: Skip shared library tests on targets that
don't support them.  Skip execution tests on non-native targets.

binutils/
* readelf.c: Include elf/nios2.h.
(dump_relocations): Add case for EM_ALTERA_NIOS2.
(get_nios2_dynamic_type): New.
(get_dynamic_type): Add case for EM_ALTERA_NIOS2.
(is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
(is_16bit_abs_reloc): Likewise.
(is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
* NEWS: Note Altera Nios II support.
* MAINTAINERS: Add Nios II maintainers.

11 years ago PR go/55969
Ian Lance Taylor [Tue, 5 Feb 2013 22:39:30 +0000 (22:39 +0000)]
PR go/55969
* configure.ac: Disable libgo on some systems where it does not
work.
* configure: Rebuild.

11 years ago * configure: Regenerate after syncing config/.
Alan Modra [Mon, 4 Feb 2013 23:31:16 +0000 (23:31 +0000)]
* configure: Regenerate after syncing config/.

11 years ago * fhandler_socket.cc (fhandler_socket::bind): Fix error code for
Corinna Vinschen [Mon, 4 Feb 2013 12:21:56 +0000 (12:21 +0000)]
* fhandler_socket.cc (fhandler_socket::bind): Fix error code for
empty filename.

11 years ago * fhandler_socket.cc (fhandler_socket::bind): Fix length check of
Corinna Vinschen [Mon, 4 Feb 2013 12:04:20 +0000 (12:04 +0000)]
* fhandler_socket.cc (fhandler_socket::bind): Fix length check of
AF_LOCAL filename so it never accesses memory beyond namelen.  Also
make sure filename is NUL-terminated.

11 years agoinclude/coff/
Alan Modra [Mon, 4 Feb 2013 05:25:41 +0000 (05:25 +0000)]
include/coff/
* ti.h (SWAP_OUT_RELOC_EXTRA): Define.
bfd/
* coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
* coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.

11 years ago * crt0.S: Add recognition of the e3v5 architecture variant.
Nick Clifton [Fri, 1 Feb 2013 08:29:04 +0000 (08:29 +0000)]
* crt0.S: Add recognition of the e3v5 architecture variant.

11 years ago* DevNotes: Add entry cgf-000022.
Christopher Faylor [Thu, 31 Jan 2013 05:26:47 +0000 (05:26 +0000)]
* DevNotes: Add entry cgf-000022.
* cygtls.h (_cygtls::func): Define as a sa_sigaction style function.
* exceptions.cc (sig_handle_tty_stop): Ditto.
(_cygtls::interrupt_setup): Fix coercion to accommodate 'func' change.
(ctrl_c_handler): Use tty kill_pgrp to send a signal.
(sigpacket::process): Don't process sigflush here.
(_cygtls::call_signal_handler): Reorganize to avoid a race.  Always call
sa_sigaction style function.
* fhandler_termios.cc (is_flush_sig): Define new function.
(tty_min::kill_pgrp): Handle tty flush when signal detected.
(fhandler_termios::bg_check): Be slightly more paranoid about checking for
valid tty.
(fhandler_termios::sigflush): Don't flush unless tty owner.
* fhandler_tty.cc (fhandler_pty_slave::ioctl): Use tty kill_pgrp to send
signal.
(fhandler_pty_master::ioctl): Ditto.
* signal.cc (killsys): Delete definition.
* sigproc.h (killsys): Delete declaration.
* include/cygwin/signal.h (siginfo_t): Simplify union/struct nesting slightly.
Implement mechanism to allow cygwin data passing.

11 years ago PR other/54620
Kai Tietz [Wed, 30 Jan 2013 16:52:35 +0000 (16:52 +0000)]
PR other/54620
PR target/39064
* md5.h (md5_uintptr, md5_uint32): Define as uintptr_t/uint32_t if
stdint.h and sys/types.h headers are present.
* sha1.h (sha1_uintptr, sha1_uint32): Likewise.

11 years agoinclude/opcode/
Yufeng Zhang [Wed, 30 Jan 2013 15:43:31 +0000 (15:43 +0000)]
include/opcode/

2013-01-30  Yufeng Zhang  <yufeng.zhang@arm.com>

* aarch64.h (aarch64_op): Add OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2.

opcodes/

2013-01-30  Yufeng Zhang  <yufeng.zhang@arm.com>

* aarch64-tbl.h (aarch64_opcode_table): Flag sshll, sshll2, ushll and
ushll2 with F_HAS_ALIAS.  Add entries for sxtl, sxtl2, uxtl and uxtl2.
* aarch64-asm.c (convert_xtl_to_shll): New function.
(convert_to_real): Handle OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2 by
calling convert_xtl_to_shll.
* aarch64-dis.c (convert_shll_to_xtl): New function.
(convert_to_alias): Handle OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2 by
calling convert_shll_to_xtl.
* aarch64-gen.c: Update copyright year.
* aarch64-asm-2.c: Re-generate.
* aarch64-dis-2.c: Re-generate.
* aarch64-opc-2.c: Re-generate.

gas/testsuite/

2013-01-30  Yufeng Zhang  <yufeng.zhang@arm.com>

* gas/aarch64/alias.s: Add new tests.
* gas/aarch64/alias.d: Update.
* gas/aarch64/no-aliases.d: Update.

11 years ago PR gas/15069
Nick Clifton [Mon, 28 Jan 2013 15:28:38 +0000 (15:28 +0000)]
PR gas/15069
* tic6x-opcode-table.h: Fix encoding of BNOP instruction.

* gas/tic6x/insns-c674x-pcrel.s: Add test of BNOP instruction
within header based fetch packet.
* gas/tic6x/insns-c674x-pcrel.d: Update expected disassembly.

11 years ago * v850.h: Add e3v5 support.
Nick Clifton [Thu, 24 Jan 2013 16:51:56 +0000 (16:51 +0000)]
* v850.h: Add e3v5 support.

11 years agoAdd support for V850E3V5 architecture
Nick Clifton [Thu, 24 Jan 2013 11:14:01 +0000 (11:14 +0000)]
Add support for V850E3V5 architecture

11 years ago* faq-programming.xml: Remove reference to "make check".
Christopher Faylor [Wed, 23 Jan 2013 16:54:35 +0000 (16:54 +0000)]
* faq-programming.xml: Remove reference to "make check".

11 years ago* miscfuncs.cc (__import_address): Check if malloc field points directly at
Christopher Faylor [Wed, 23 Jan 2013 14:24:34 +0000 (14:24 +0000)]
* miscfuncs.cc (__import_address): Check if malloc field points directly at
'malloc'.

11 years ago* miscfuncs.cc (__import_address): On second thought, the chance that this
Christopher Faylor [Wed, 23 Jan 2013 14:06:06 +0000 (14:06 +0000)]
* miscfuncs.cc (__import_address): On second thought, the chance that this
pointer could be NULL is very low so don't bother checking for it.

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