]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
11 years ago2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
Jeff Johnston [Mon, 6 May 2013 18:23:09 +0000 (18:23 +0000)]
2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>

        * configure.host (machine_dir, sys_dir, syscall_dir, newlib_cflags):
        Add settings for nios2*.
        * libc/include/machine/ieeefp.h (IEEE_BIG_ENDIAN, IEEE_LITTLE_ENDIAN):
        Likewise.
        * libc/include/machine/setjmp.h (JBLEN, JBTYPE): Likewise.
        * libc/machine/configure.in: Add nios2 subdir.
        * libc/machine/configure: Regenerated.
        * libc/machine/nios2/Makefile.am: New.
        * libc/machine/nios2/Makefile.in: New (autogenerated).
        * libc/machine/nios2/aclocal.m4: New (copied from mips version).
        * libc/machine/nios2/configure.in: New.
        * libc/machine/nios2/configure: New (autogenerated).
        * libc/machine/nios2/setjmp.s: New.

11 years ago2013-05-06 Paul Brook <paul@codesourcery.com>
Catherine Moore [Mon, 6 May 2013 15:25:45 +0000 (15:25 +0000)]
2013-05-06  Paul Brook  <paul@codesourcery.com>

        include/elf/
        * mips.h (R_MIPS_PC32): Update comment.

        * elf64-mips.c (elf_mips_gnu_pcrel32): New.
        (bfd_elf64_bfd_reloc_type_lookup, bfd_elf64_bfd_reloc_name_lookup,
        mips_elf64_rtype_to_howto): Handle R_MIPS_PC32.
        * elfn32-mips.c (elf_mips_gnu_pcrel32): New.
        (bfd_elfn32_bfd_reloc_type_lookup, bfd_elfn32_bfd_reloc_name_lookup,
        mips_elfn32_rtype_to_howto): Handle R_MIPS_PC32.

2013-05-06  Paul Brook  <paul@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>

        gas/
        * config/tc-mips.c (md_pcrel_from): Handle BFD_RELOC_32_PCREL.
        (limited_pcrel_reloc_p): Likewise.
(md_apply_fix): Likewise.
(tc_gen_reloc): Likewise.

11 years ago* Makefile (FAQ_SOURCES): Use wildcard function to find sources in srcdir.
Christopher Faylor [Fri, 3 May 2013 20:41:12 +0000 (20:41 +0000)]
* Makefile (FAQ_SOURCES): Use wildcard function to find sources in srcdir.

11 years ago* spawn.cc (ILLEGAL_SIG_FUNC_PTR): New define.
Christopher Faylor [Fri, 3 May 2013 19:39:01 +0000 (19:39 +0000)]
* spawn.cc (ILLEGAL_SIG_FUNC_PTR): New define.
(system_call_handle): Rename from system_call_cleanup.
(is_system_call): New convenience method.
(system_call_handle::system_call_handle): Use ILLEGAL_SIG_FUNC_PTR rather than
cast.  Call sig_send here rather than in caller.  Initialize oldint.
(system_call_handle::arm): New function pulled from constructor.
(~system_call_handle::system_call_handle): Use is_system_call().
(child_info_spawn::worker): Use system_call_handle to set up for system call
early.  Use arm call prior to waiting for child to properly set up signal
handling.  Move comment closer to code it is commenting on.

11 years ago * archures.c: Add some more MSP430 machine numbers.
Nick Clifton [Thu, 2 May 2013 21:06:14 +0000 (21:06 +0000)]
* archures.c: Add some more MSP430 machine numbers.
* config.bfd (msp430): Define targ_selvecs.
* configure.in: Add bfd_elf32_msp430_ti_vec.
* cpu-msp430.c: Add some more MSP430 machine numbers.
* elf32-msp430.c Add support for MSP430X relocations.
Add support for TI compiler generated relocations.
Add support for sym_diff relocations.
Add support for relaxing out of range short branches into long
branches.
Add support for MSP430 attribute section.
* reloc.c: Add MSP430X relocations.
* targets.c: Add bfd_elf32_msp430_ti_vec.
* bfd-in2.h: Regenerate.
* configure: Regenerate.
* libbfd.h: Regenerate.

* readelf.c: Add support for MSP430X architecture.

* readelf.exp: Expect -wi test to fail for the MSP430.

* config/tc-msp430.c: Add support for the MSP430X architecture.
Add code to insert a NOP instruction after any instruction that
might change the interrupt state.
Add support for the LARGE memory model.
Add code to initialise the .MSP430.attributes section.
* config/tc-msp430.h: Add support for the MSP430X architecture.
* doc/c-msp430.texi: Document the new -mL and -mN command line
options.
* NEWS: Mention support for the MSP430X architecture.

* gas/all/gas.exp: Skip the DIFF1 test for the MSP430.
Expect the FORWARD test to pass for the MSP430.
Skip the REDEF tests for the MSP430.
Expect the 930509A test to fail for the MSP430.
* gas/all/sleb128-4.d: Skip for the MSP430.
* gas/elf/elf.exp: Set target_machine to msp430 for the MSP430.
Skip the EHOPT0 test for the MSP430.
Skip the REDEF and EQU-RELOC tests for the MSP430.
* gas/elf/section2.e-msp430: New file.
* gas/lns/lns-big-delta.d: Remove expectation of 20-bit
addresses.
* gas/lns/lns.exp: Use alternate LNS COMMON test for the MSP430.
* gas/msp430/msp430x.s: New test.
* gas/msp430/msp430x.d: Expected disassembly.
* gas/msp430/msp430.exp: Run new test.
* gas/msp430/opcode.d: Update expected disassembly.

* msp430.h: Add MSP430X relocs.
Add some more MSP430 machine numbers.
Add values used by .MSP430.attributes section.

* msp430.h: Add patterns for MSP430X instructions.

* Makefile.am: Add emsp430X.c
* Makefine.in: Regenerate.
* configure.tgt (msp430): Add msp430X emulation.
* ldmain.c (multiple_definition): Only disable relaxation if it
was enabled by the user.
* ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
* emulparams/msp430all.sh: Add support for MSP430X.
* emultempl/generic.em: (before_parse): Enable relaxation for the
MSP430.
* scripttempl/msp430.sc: Reorganize sections.  Add .rodata
section.
* scripttempl/msp430_3.sc: Likewise.
* NEWS: Mention support for MSP430X.

* ld-elf/flags1.d: Expect this test to pass on the MSP430.
* ld-elf/init-fini-arrays.d: Expect this test to fail on the
MSP430.
* ld-elf/merge.d: Expect this test to pass on the MSP430.
* ld-elf/sec64k.exp: Skip these tests for the MSP430.
* ld-gc/pr13683.d: Expect this test to fail on the MSP430.
* ld-srec/srec.exp: Expect these tests to fail on the MSP430.
* ld-undefined/undefined.exp: Expect the UNDEFINED LINE test to
fail on the MSP430.

* msp430-dis.c: Add support for MSP430X instructions.

11 years agoGenerating faq/faq.body automatically from faq/faq.html whenever latter
Warren Young [Thu, 2 May 2013 00:10:15 +0000 (00:10 +0000)]
Generating faq/faq.body automatically from faq/faq.html whenever latter
is updated, using new bodysnatcher.pl script.

11 years agoInitial; ignoring generated files.
Warren Young [Wed, 1 May 2013 23:34:58 +0000 (23:34 +0000)]
Initial; ignoring generated files.

11 years agoModernized user guide, API reference, and FAQ generation. Overall
Warren Young [Wed, 1 May 2013 23:30:25 +0000 (23:30 +0000)]
Modernized user guide, API reference, and FAQ generation.  Overall
effect is to move away from DocBook SGML and DJ Delorie's doctool and
toward pure DocBook XSL.  (There remains just one use of doctool, and
we have plans for replacing it, too.)  See ChangeLog for details.

11 years ago* resource.cc (setrlimit): Use consistent commenting style. Return EINVAL when
Christopher Faylor [Wed, 1 May 2013 21:19:51 +0000 (21:19 +0000)]
* resource.cc (setrlimit): Use consistent commenting style.  Return EINVAL when
rlim_cur > rlim_max.

11 years agoThroughout, (mainly in fhandler*) fix remaining gcc 4.7 mismatch
Yaakov Selkowitz [Wed, 1 May 2013 01:20:37 +0000 (01:20 +0000)]
Throughout, (mainly in fhandler*) fix remaining gcc 4.7 mismatch
warnings between regparm definitions and declarations.
* smallprint.cc (__small_vswprintf): Conditionalize declaration and
setting of l_opt for only x86_64.
* spawn.cc (child_info_spawn::worker): Remove unused 'pid' variable.
* thread.cc (verifyable_object_isvalid): Temporarily define as
non-inline with gcc 4.7+, regardless of target.

11 years ago* gendef: Fix sigfe.s typo.
Christopher Faylor [Wed, 1 May 2013 01:15:07 +0000 (01:15 +0000)]
* gendef: Fix sigfe.s typo.

11 years ago* spawn.cc (system_call_cleanup): Rename from pthread_cleanup. Extend
Christopher Faylor [Tue, 30 Apr 2013 23:51:08 +0000 (23:51 +0000)]
* spawn.cc (system_call_cleanup): Rename from pthread_cleanup.  Extend
functionality.
(system_call_cleanup::system_call_cleanup): Set up signals like system()
requires.  Unblock previously-blocked signal handling.
(system_call_cleanup::~system_call_cleanup): Restore signal handling after
system().
(child_info_spawn::worker): Put signals on hold and use system_call_cleanup
class to set and restore signals rather than doing it prior to to running the
program.  Remove the ill-conceived pthread_cleanup stuff.

11 years ago* exceptions.cc (cygwin_exception::dumpstack): Guard against wild pointer
Christopher Faylor [Tue, 30 Apr 2013 23:47:01 +0000 (23:47 +0000)]
* exceptions.cc (cygwin_exception::dumpstack): Guard against wild pointer
dereference.
(CYG_EXC_CONTINUE_EXECUTION): Define based on standard Windows definition.
(CYG_EXC_CONTINUE_SEARCH): Ditto.
(exception::handle): Move andreas detection earlier.  Make comment clearer.
(signal_exit): Set core-dumped flag.

11 years agoSigh. Another missing checkin.
Christopher Faylor [Tue, 30 Apr 2013 23:44:06 +0000 (23:44 +0000)]
Sigh.  Another missing checkin.

11 years agomissing checkin
Christopher Faylor [Tue, 30 Apr 2013 23:43:28 +0000 (23:43 +0000)]
missing checkin

11 years ago* i686.din: New file.
Christopher Faylor [Tue, 30 Apr 2013 23:43:08 +0000 (23:43 +0000)]
* i686.din: New file.
* x86_64.din: New file.
* common.din: New file.
* cygwin.din: Delete.
* cygwin64.din: Delete.
* gendef: Rework to take options rather than using positional parameters.
Accept multiple files as input.

11 years ago2013-04-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
Jan-Benedict Glaw [Tue, 30 Apr 2013 12:40:42 +0000 (12:40 +0000)]
2013-04-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

config/
* picflag.m4: Merge from GCC.
* dfp.m4: Ditto.
* bootstrap-asan.mk: Ditto.
* ChangeLog: Ditto.

11 years ago* autoload.cc (CreateSymbolicLinkW): Rename from CreateSymbolicLink.
Christopher Faylor [Tue, 30 Apr 2013 00:52:46 +0000 (00:52 +0000)]
* autoload.cc (CreateSymbolicLinkW): Rename from CreateSymbolicLink.

11 years ago2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jeff Johnston [Mon, 29 Apr 2013 21:06:23 +0000 (21:06 +0000)]
2013-04-29  Sebastian Huber <sebastian.huber@embedded-brains.de>

* libc/stdio/local.h (CHECK_INIT): Evaluate argument only once.
(CHECK_STD_INIT): Likewise.
* libc/stdio/fgetc.c (fgetc): Use local variable for _REENT.
* libc/stdio/fgetwc.c (fwgetc): Likewise.
* libc/stdio/fgetws.c (fgetws): Likewise.
* libc/stdio/fputc.c (fputc): Likewise.
* libc/stdio/fputwc.c (fputwc): Likewise.
* libc/stdio/fputws.c (fputws): Likewise.
* libc/stdio/getc.c (getc): Likewise.
* libc/stdio/getchar.c (_getchar_r): Likewise.
* libc/stdio/putc.c (putc): Likewise.
* libc/stdio/putchar.c (putchar): Likewise.
* libc/stdio/scanf.c (scanf): Likewise.
* libc/stdio/setvbuf.c (setvbuf): Likewise.
* libc/stdio/ungetwc.c (ungetwc): Likewise.
* libc/stdio/vfscanf.c (VFSCANF): Likewise.
* libc/stdio/vfwscanf.c (VFWSCANF): Likewise.
* libc/stdio/viprintf.c (viprintf): Likewise.
* libc/stdio/viscanf.c (viscanf): Likewise.
* libc/stdio/vprintf.c (vprintf): Likewise.
* libc/stdio/vscanf.c (vscanf): Likewise.
* libc/stdio/vwprintf.c (vwprintf): Likewise.
* libc/stdio/vwscanf.c (vwscanf): Likewise.
* libc/stdio/wscanf.c (wscanf): Likewise.
* libc/stdlib/ecvtbuf.c (fcvtbuf): Likewise.
(fcvtbuf): Likewise.
(ecvtbuf): Likewise.
(ecvtbuf): Likewise.
* libc/stdlib/mblen.c (mblen): Likewise.
* libc/stdlib/mbrlen.c (mbrlen): Likewise.
* libc/stdlib/mbrtowc.c (mbrtowc): Likewise.
* libc/stdlib/mbtowc.c (mbtowc): Likewise.
* libc/stdlib/rand.c (srand): Likewise.
(rand): Likewise.
* libc/stdlib/wcrtomb.c (wcrtomb): Likewise.
* libc/stdlib/wctob.c (wctob): Likewise.
* libc/stdlib/wctomb.c (wctomb): Likewise.
* libc/string/strtok.c (strtok): Likewise.
* libc/time/asctime.c (asctime): Likewise.
* libc/time/gmtime.c (gmtime): Likewise.
* libc/time/lcltime.c (lcltime): Likewise.

11 years ago2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jeff Johnston [Mon, 29 Apr 2013 20:56:05 +0000 (20:56 +0000)]
2013-04-29  Sebastian Huber <sebastian.huber@embedded-brains.de>

        * libc/include/sys/reent.h (_REENT_INIT_PTR): Reduce code size.

11 years ago2013-04-29 Freddie Chopin <freddie_chopin@op.pl>
Jeff Johnston [Mon, 29 Apr 2013 20:02:34 +0000 (20:02 +0000)]
2013-04-29  Freddie Chopin  <freddie_chopin@op.pl>

        * libc/libc.texinfo: Fix @ references and change ifinfo to be
        ifnottexinfo.
        * libm/libm.texinfo: Ditto.

11 years ago * config.guess: Update from config repo.
Jan-Benedict Glaw [Mon, 29 Apr 2013 15:13:53 +0000 (15:13 +0000)]
* config.guess: Update from config repo.
* config.sub: Ditto.

11 years ago * fcntl.cc (fcntl): Define as export alias for fcntl64 on x86_64.
Corinna Vinschen [Fri, 26 Apr 2013 18:20:17 +0000 (18:20 +0000)]
* fcntl.cc (fcntl): Define as export alias for fcntl64 on x86_64.

11 years ago2013-04-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill [Thu, 25 Apr 2013 15:29:19 +0000 (15:29 +0000)]
2013-04-25  Sebastian Huber <sebastian.huber@embedded-brains.de>

* libc/stdio/local.h (_STDIO_CLOSE_PER_REENT_STD_STREAMS): New define.
* libc/stdio/findfp.c (_STDIO_CLOSE_PER_REENT_STD_STREAMS): Use define.

11 years ago * faq-programming.xml (faq.programming.64bitporting): Fix typo.
Corinna Vinschen [Thu, 25 Apr 2013 10:16:01 +0000 (10:16 +0000)]
* faq-programming.xml (faq.programming.64bitporting): Fix typo.

11 years ago * faq-programming.xml (faq.programming.64bitporting): Extend entry.
Corinna Vinschen [Thu, 25 Apr 2013 10:14:26 +0000 (10:14 +0000)]
* faq-programming.xml (faq.programming.64bitporting): Extend entry.
(faq.programming.64bitporting-fail): New entry.
(faq.programming.64bitporting-cygwin64): New entry.

11 years ago * faq-programming.xml (faq.programming.64bitporting): Mention the
Corinna Vinschen [Wed, 24 Apr 2013 17:33:30 +0000 (17:33 +0000)]
* faq-programming.xml (faq.programming.64bitporting): Mention the
-Wformat and -Wall gcc options.

11 years ago * faq-programming.xml (faq.programming.64bitporting): New FAQ entry.
Corinna Vinschen [Wed, 24 Apr 2013 16:09:43 +0000 (16:09 +0000)]
* faq-programming.xml (faq.programming.64bitporting): New FAQ entry.
(faq.programming.objective-c): Include gcc4.
(faq.programming.make-execvp): Drop text discouraging usage of -j.
(faq.programming.undeclared-functions): Drop entry.
(faq.programming.x86-assembly): Ditto.
(faq.programming.djgpp): Ditto.

11 years agoFix date in latest ChangeLog entry
Corinna Vinschen [Wed, 24 Apr 2013 16:06:55 +0000 (16:06 +0000)]
Fix date in latest ChangeLog entry

11 years ago * libc/stdlib/strtod.c: Manual update to latest algorithm from NetBSD.
Corinna Vinschen [Wed, 24 Apr 2013 10:21:16 +0000 (10:21 +0000)]
* libc/stdlib/strtod.c: Manual update to latest algorithm from NetBSD.

11 years ago * cygwinenv.sgml (cygwinenv-implemented-options): Change description
Corinna Vinschen [Wed, 24 Apr 2013 10:18:08 +0000 (10:18 +0000)]
* cygwinenv.sgml (cygwinenv-implemented-options): Change description
for winsymlink option to explain new implementation.
* new-features.sgml (ov-new1.7.19): Add support for native symlinks and
AFS.

11 years ago * autoload.cc (CreateSymbolicLink): Define.
Corinna Vinschen [Wed, 24 Apr 2013 10:16:13 +0000 (10:16 +0000)]
* autoload.cc (CreateSymbolicLink): Define.
* environ.cc (set_winsymlinks): Set allow_winsymlinks.
(parse_thing): Change "winsymlinks" to set by function.
* globals.cc (enum winsym_t): Define.
(allow_winsymlinks): Define as winsym_t.
(ro_u_afs): New R/O Unicode string.
* mount.cc (fs_info::update): Fix comment.  Handle AFS.
(fs_names): Add "afs".
* mount.h (enum fs_info_type): Add afs.
(class fs_info): Implement afs.
* path.cc (symlink): Drop third parameter in call to symlink_worker.
(symlink_nfs): New function.
(symlink_native): New function.
(symlink_worker): Drop third argument.  Handle native symlink type by
calling symlink_native.  Move code to handle NFS to symlink_nfs.  Fix
formatting.  Slightly restructure code.
* path.h (class path_conv): Add fs_is_afs method.
(symlink_worker): Declare here.
* security.h: Define privilege constants as unsigned int instead of as
unsigned long.
* syscalls.cc (mknod_worker): Set third parameter in symlink_worker
call to WSYM_lnk.
* winsup.h (symlink_worker): Drop declaration here.

11 years agoForced checkin
Corinna Vinschen [Tue, 23 Apr 2013 19:36:21 +0000 (19:36 +0000)]
Forced checkin

11 years ago * Throughout, eliminate Windows 2000 from the documentation.
Corinna Vinschen [Tue, 23 Apr 2013 15:59:21 +0000 (15:59 +0000)]
* Throughout, eliminate Windows 2000 from the documentation.
* overview.sgml (brief-history): Mention native AMD64 support.

11 years ago * Makefile.in (SGMLDIRS): Accommodate dropping utils_source and
Corinna Vinschen [Tue, 23 Apr 2013 15:49:08 +0000 (15:49 +0000)]
* Makefile.in (SGMLDIRS): Accommodate dropping utils_source and
cygwin_source from ../Makefile.common.
* new-features.sgml (ov-new1.7.19): New section.  Document dropped
support for pre-XP SP3 and added support for 64 bit Cygwin.

11 years ago*** empty log message ***
Corinna Vinschen [Tue, 23 Apr 2013 14:58:20 +0000 (14:58 +0000)]
*** empty log message ***

11 years ago * cygwin64.din (_setjmp): Export.
Corinna Vinschen [Tue, 23 Apr 2013 10:03:39 +0000 (10:03 +0000)]
* cygwin64.din (_setjmp): Export.
(_longjmp): Export.

11 years ago * Merge in cygwin-64bit-branch.
Corinna Vinschen [Tue, 23 Apr 2013 09:44:36 +0000 (09:44 +0000)]
* Merge in cygwin-64bit-branch.

11 years ago Port newlib to x86_64-pc-cygwin.
Corinna Vinschen [Tue, 23 Apr 2013 09:42:25 +0000 (09:42 +0000)]
Port newlib to x86_64-pc-cygwin.
* libc/include/sys/features.h: Redefine compilation environment
definitions for Cygwin to cover 64 bit Cygwin.
* libc/ctype/ctype_.c (_ctype_): Fix definition for 64 bit Cygwin.
* libc/include/machine/setjmp.h: Change definition of _JBLEN to allow
different values for 32 bit and 64 bit Cygwin.
* libc/include/reent.h (stat64): Define as stat under Cygwin, instead
of as __stat64.  Undef stat64 if not building Newlib.
* libc/include/sys/stat.h (stat64): Define as stat under Cygwin.

11 years ago2013-04-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
Jan-Benedict Glaw [Mon, 22 Apr 2013 17:11:22 +0000 (17:11 +0000)]
2013-04-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* Makefile.def: Sync with GCC.
* Makefile.in: Regenerate.

11 years ago2013-04-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
Jan-Benedict Glaw [Mon, 22 Apr 2013 15:25:09 +0000 (15:25 +0000)]
2013-04-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* configure.ac: Sync with GCC.
* configure: Regenerated.

11 years ago * include/sys/queue.h: Delete in favor of more complete newlib file.
Corinna Vinschen [Mon, 22 Apr 2013 10:35:02 +0000 (10:35 +0000)]
* include/sys/queue.h: Delete in favor of more complete newlib file.

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.

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