]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/newlib-tumbl.git/log
fpga/lx-cpu1/newlib-tumbl.git
11 years ago2012-12-17 Stuart Henderson <shenders@gcc.gnu.org>
Jeff Johnston [Mon, 17 Dec 2012 17:44:34 +0000 (17:44 +0000)]
2012-12-17  Stuart Henderson  <shenders@gcc.gnu.org>

* bfin/Makefile.in: Add BF60x support.
* bfin/basiccrt.S: Add core1 support.
* bfin/bf606.ld: New file.
* bfin/bf606c0.ld: New file.
* bfin/bf606c1.ld: New file.
* bfin/bf606m.ld: New file.
* bfin/bf607.ld: New file.
* bfin/bf607c0.ld: New file.
* bfin/bf607c1.ld: New file.
* bfin/bf607m.ld: New file.
* bfin/bf608.ld: New file.
* bfin/bf608c0.ld: New file.
* bfin/bf608c1.ld: New file.
* bfin/bf608m.ld: New file.
* bfin/bf609.ld: New file.
* bfin/bf609c0.ld: New file.
* bfin/bf609c1.ld: New file.
* bfin/bf609m.ld: New file.
* bfin/bfin-common-mc0.ld: New file.
* bfin/include/cdefBF606.h : New file.
* bfin/include/cdefBF607.h : New file.
* bfin/include/cdefBF608.h : New file.
* bfin/include/cdefBF609.h : New file.
* bfin/include/defBF606.h : New file.
* bfin/include/defBF607.h : New file.
* bfin/include/defBF608.h : New file.
* bfin/include/defBF609.h : New file.
* bfin/include/sys/_adi_platform.h: Add BF60x support.
* bfin/include/sys/anomaly_macros_rtl.h : Clean up.

11 years ago * configure.ac (ENABLE_GOLD): Consider *-*-gnu* targets ELF.
tschwinge [Sun, 16 Dec 2012 07:10:07 +0000 (07:10 +0000)]
* configure.ac (ENABLE_GOLD): Consider *-*-gnu* targets ELF.
* configure: Regenerate.

11 years ago2012-12-14 Yufeng Zhang <yufeng.zhang@arm.com>
Jeff Johnston [Fri, 14 Dec 2012 20:45:48 +0000 (20:45 +0000)]
2012-12-14  Yufeng Zhang  <yufeng.zhang@arm.com>

        * libc/machine/aarch64/machine/_types.h: New file; define _ssize_t
        as long.

11 years agoAdd --with-build-config=bootstrap-asan support
hjl [Wed, 12 Dec 2012 13:52:55 +0000 (13:52 +0000)]
Add --with-build-config=bootstrap-asan support

* Makefile.def (target_modules): Add bootstrap=true and
raw_cxx=true to libsanitizer.
* configure.ac (bootstrap_target_libs): Add libsanitizer.
* Makefile.in: Regenerated.
* configure: Likewise.

11 years agoAdd libstdc++-raw-cxx.m4
hjl [Wed, 12 Dec 2012 13:47:14 +0000 (13:47 +0000)]
Add libstdc++-raw-cxx.m4

* libstdc++-raw-cxx.m4: New file.

11 years agoAdd bootstrap-asan.mk
hjl [Wed, 12 Dec 2012 13:45:36 +0000 (13:45 +0000)]
Add bootstrap-asan.mk

* bootstrap-asan.mk: New file.

11 years ago2012-12-11 Steve Ellcey <sellcey@mips.com>
Jeff Johnston [Tue, 11 Dec 2012 21:37:59 +0000 (21:37 +0000)]
2012-12-11  Steve Ellcey  <sellcey@mips.com>

* libc/machine/mips/memcpy.c: Remove.
* libc/machine/mips/memcpy.S: New.
* libc/machine/mips/Makefile.am (lib_a_CCASFLAGS): Add
-D_COMPILING_NEWLIB.
(lib_a_CFLAGS): Ditto.

11 years ago * config.sub: Merge from config repo.
jbglaw [Sat, 8 Dec 2012 00:02:31 +0000 (00:02 +0000)]
* config.sub: Merge from config repo.

11 years ago2012-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Jeff Johnston [Thu, 6 Dec 2012 17:33:44 +0000 (17:33 +0000)]
2012-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

        * configure.host: Define libm_machine_dir value for arm.
        * libm/machine/configure.in: Add arm to libm machines list.
        * libm/machine/configure: Regenerate.
        * libm/machine/arm/Makefile.am: New file.
        * libm/machine/arm/Makefile.in: Generated.
        * libm/machine/arm/aclocal.m4: Generated.
        * libm/machine/arm/configure: Generated.
        * libm/machine/arm/configure.in: New file.
        * libm/machine/arm/s_ceil.c: Likewise.
        * libm/machine/arm/s_floor.c: Likewise.
        * libm/machine/arm/s_nearbyint.c: Likewise.
        * libm/machine/arm/s_rint.c: Likewise.
        * libm/machine/arm/s_round.c: Likewise.
        * libm/machine/arm/s_trunc.c: Likewise.
        * libm/machine/arm/sf_ceil.c: Likewise.
        * libm/machine/arm/sf_floor.c: Likewise.
        * libm/machine/arm/sf_nearbyint.c: Likewise.
        * libm/machine/arm/sf_rint.c: Likewise.
        * libm/machine/arm/sf_round.c: Likewise.
        * libm/machine/arm/sf_trunc.c: Likewise.

11 years ago2012-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Jeff Johnston [Tue, 4 Dec 2012 21:43:20 +0000 (21:43 +0000)]
2012-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

        * configure.host: Define libm_machine_dir value for arm.
        * libm/machine/configure.in: Add arm to libm machines list.
        * libm/machine/configure: Regenerate.
        * libm/machine/arm/Makefile.am: New file.
        * libm/machine/arm/Makefile.in: Generated.
        * libm/machine/arm/aclocal.m4: Generated.
        * libm/machine/arm/configure: Generated.
        * libm/machine/arm/configure.in: New file.
        * libm/machine/arm/s_ceil.c: Likewise.
        * libm/machine/arm/s_floor.c: Likewise.
        * libm/machine/arm/s_nearbyint.c: Likewise.
        * libm/machine/arm/s_rint.c: Likewise.
        * libm/machine/arm/s_round.c: Likewise.
        * libm/machine/arm/s_trunc.c: Likewise.
        * libm/machine/arm/sf_ceil.c: Likewise.
        * libm/machine/arm/sf_floor.c: Likewise.
        * libm/machine/arm/sf_nearbyint.c: Likewise.
        * libm/machine/arm/sf_rint.c: Likewise.
        * libm/machine/arm/sf_round.c: Likewise.
        * libm/machine/arm/sf_trunc.c: Likewise.

11 years agoMerge g++/xg++ changes from GCC
jbglaw [Fri, 30 Nov 2012 15:02:38 +0000 (15:02 +0000)]
Merge g++/xg++ changes from GCC

* configure.ac: Merge from GCC.
* Makefile.tpl: Dito.
* Makefile.in: Dito.
* configure: Dito.

11 years ago * libc/machine/arm/strcmp.S (compute_return_value): Fix return value.
Corinna Vinschen [Fri, 30 Nov 2012 09:31:38 +0000 (09:31 +0000)]
* libc/machine/arm/strcmp.S (compute_return_value): Fix return value.
* testsuite/newlib.string/strcmp-1.c (main): Add new test cases.

11 years ago * libc/include/sys/reent.h (__sFILE): Change type of _offset
Corinna Vinschen [Thu, 29 Nov 2012 16:28:29 +0000 (16:28 +0000)]
* libc/include/sys/reent.h (__sFILE): Change type of _offset
from int to _off_t.
* libc/stdio/ftell.c: Use _ftello_r().
* libc/stdio/ftello.c: Copy implementation from previous
_ftell_r().
* libc/stdio/fseek.c: Use _fseeko_r().
* libc/stdio/fseeko.c: Copy implementation from previous
_fseek_r().

11 years agoDisable libsanitizer for non-C++ builds.
jbglaw [Wed, 28 Nov 2012 11:43:47 +0000 (11:43 +0000)]
Disable libsanitizer for non-C++ builds.

* configure.ac (noconfigdirs): Merge from GCC.
* configure: Regenerate.

11 years ago * libc/include/inttypes.h: Add and use __INTTYPES_EXP().
Corinna Vinschen [Mon, 26 Nov 2012 16:26:06 +0000 (16:26 +0000)]
* libc/include/inttypes.h: Add and use __INTTYPES_EXP().

11 years ago * libm/machine/aarch64/configure.in: Change comment to say libm
Corinna Vinschen [Fri, 23 Nov 2012 10:48:11 +0000 (10:48 +0000)]
* libm/machine/aarch64/configure.in: Change comment to say libm
instead of libc.

11 years ago * aarch64/configure.in: Replace the direct generation of
Corinna Vinschen [Fri, 23 Nov 2012 10:43:31 +0000 (10:43 +0000)]
* aarch64/configure.in: Replace the direct generation of
cpu-init/Makefile.in with AC_CONFIG_SUBDIRS(cpu-init).
* aarch64/configure: Re-generate.
* aarch64/cpu-init/Makefile.in (objtype): Remove.
(Makefile, config.status): Update the rules.
* aarch64/cpu-init/aclocal.m4: New file (generated).
* aarch64/cpu-init/configure.in: New file.
* aarch64/cpu-init/configure: New file (generated).

11 years ago2012-11-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
jbglaw [Mon, 19 Nov 2012 22:03:01 +0000 (22:03 +0000)]
2012-11-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config.sub (arm): Merge from upstream: Handle armv[6-8] targets.

11 years agoRestore "Consider *-*-nacl* targets ELF for gold"
hjl [Thu, 15 Nov 2012 14:10:39 +0000 (14:10 +0000)]
Restore "Consider *-*-nacl* targets ELF for gold"

* configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF.
* configure: Regenerate.

11 years agoSync toplevel files with GCC
hjl [Thu, 15 Nov 2012 00:16:42 +0000 (00:16 +0000)]
Sync toplevel files with GCC

2012-11-13  Richard Henderson  <rth@redhat.com>

* configure.ac: Move libsanitizer logic to subdirectory.
* configure: Regenerate.

2012-11-13  Dodji Seketeli  <dodji@redhat.com>

* configure.ac: Enable libsanitizer just on x86 linux for now.
* configure: Re-generate.

2012-11-13  David Edelsohn  <dje.gcc@gmail.com>

* configure.ac: Merge libquadmath sections.
* configure: Regenerate.

2012-11-12  Wei Mi <wmi@google.com>

* configure.ac: Add libsanitizer to target_libraries.
* Makefile.def: Ditto.
* configure: Regenerate.
* Makefile.in: Regenerate.

11 years ago2012-11-12 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Mon, 12 Nov 2012 23:49:55 +0000 (23:49 +0000)]
2012-11-12  Steve Ellcey  <sellcey@mips.com>

* libc/machine/mips/machine/asm.h: New.
* libc/machine/mips/machine/regdef.h: Update register definitions
for different ABI's.

11 years ago* libc/include/sys/time.h: Avoid guarding other than timeval declaration with
Christopher Faylor [Mon, 12 Nov 2012 15:57:35 +0000 (15:57 +0000)]
* libc/include/sys/time.h: Avoid guarding other than timeval declaration with
_TIMEVAL_DEFINED.  Move timeval related macros under _TIMEVAL_DEFINED control.

11 years agoMerge from GCC.
tschwinge [Sun, 11 Nov 2012 10:59:50 +0000 (10:59 +0000)]
Merge from GCC.

config/
* dfp.m4 (enable_decimal_float): Enable for i?86*-*-gnu*.

libdecnumber/
* configure: Regenerate.

11 years agoAdd --disable-libstdcxx configure option
hjl [Sun, 4 Nov 2012 00:09:53 +0000 (00:09 +0000)]
Add --disable-libstdcxx configure option

2012-11-03  H.J. Lu  <hongjiu.lu@intel.com>

* configure: Regenerated.

2012-11-03  Robert Mason  <rbmj@verizon.net>

* configure.ac: add --disable-libstdcxx configure option
and handle defaulted state only for VxWorks, ARM-wince-pe and AVR.

11 years agoAdd gthr.m4
hjl [Sat, 3 Nov 2012 23:53:02 +0000 (23:53 +0000)]
Add gthr.m4

2012-10-15  Pavel Chupin  <pavel.v.chupin@intel.com>

* gthr.m4: New. Define GCC_AC_THREAD_HEADER.

11 years ago * libc/include/locale.h (NULL): Fetch definition via stddef.h.
Corinna Vinschen [Thu, 1 Nov 2012 11:51:11 +0000 (11:51 +0000)]
* libc/include/locale.h (NULL): Fetch definition via stddef.h.
* libc/include/stdio.h (NULL): Ditto.
* libc/include/stdlib.h (NULL): Ditto.
* libc/include/string.h (NULL): Ditto.
* libc/include/wchar.h (NULL): Ditto.
* libc/include/rpc/types.h (NULL): Ditto.
* libc/include/time.h (NULL): Ditto.  Include stddef.h earlier.

11 years agoMinor debugging aid for the moxie port.
Stan Cox [Sat, 27 Oct 2012 19:41:18 +0000 (19:41 +0000)]
Minor debugging aid for the moxie port.

11 years agoMinor optimization and bug fix for moxie.
Stan Cox [Sat, 27 Oct 2012 15:57:12 +0000 (15:57 +0000)]
Minor optimization and bug fix for moxie.

11 years ago * libc/include/sys/signal.h (sigset_t): Don't define when building
Corinna Vinschen [Fri, 26 Oct 2012 09:23:46 +0000 (09:23 +0000)]
* libc/include/sys/signal.h (sigset_t): Don't define when building
for Cygwin.

11 years ago2012-10-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 24 Oct 2012 21:01:37 +0000 (21:01 +0000)]
2012-10-24  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.in: Comment out the --enable-newlib-fp-hw option
        as the mathfp library is inaccurate and should not be used.
        * Makefile.am: Add comment regarding the mathfp directory.
        * configure: Regenerated.
        * Makefile.in: Ditto.
        * libm/mathfp/README: New file that details why the mathfp
        directory is not used.

11 years ago * configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for building
Corinna Vinschen [Wed, 24 Oct 2012 13:41:35 +0000 (13:41 +0000)]
* configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for building
against Mingw64 w32api.
* configure: Regenerate.

11 years ago PR bootstrap/54820
ebotcazou [Tue, 23 Oct 2012 23:02:33 +0000 (23:02 +0000)]
PR bootstrap/54820
* configure.ac (have_static_libs): Force 'no' for GCC version < 4.5.
* configure: Regenerate.

11 years ago * libc/include/string.h (strdup, strndup): Declare if not
Corinna Vinschen [Mon, 22 Oct 2012 15:16:48 +0000 (15:16 +0000)]
* libc/include/string.h (strdup, strndup): Declare if not
__STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.

11 years ago * libc/include/stdlib.h (strtof, strtoll, strtoull, strtold):Prototype
Corinna Vinschen [Mon, 22 Oct 2012 15:15:20 +0000 (15:15 +0000)]
* libc/include/stdlib.h (strtof, strtoll, strtoull, strtold):Prototype
if not __STRICT_ANSI__ or stdc version C99 or greater.

11 years ago PR bootstrap/54820
ebotcazou [Mon, 22 Oct 2012 07:32:02 +0000 (07:32 +0000)]
PR bootstrap/54820
* Makefile.tpl (STAGE1_FLAGS_TO_PASS): New variable.
(all-[+prefix+][+module+]): Pass stage1_args to sub-makes.
(all-stage[+id+]-[+prefix+][+module+]): Likewise, if prev is false.
(clean-stage[+id+]-[+prefix+][+module+]): Likewise, if prev is false.
(host_modules): Set stage1_args to STAGE1_FLAGS_TO_PASS.
* Makefile.in: Regenerate.
* configure.ac (have_static_libs): New variable and associated check.
(stage1-ldflags): Move to after stage1_libs and set to -static-libstdc++
-static-libgcc if stage1_libs is empty and have_static_libs is yes.
* configure: Regenerate.

11 years ago * libc/sys/mmixware/sbrk.c (_sbrk): Drop unused extern declaration
Hans-Peter Nilsson [Sun, 21 Oct 2012 03:41:42 +0000 (03:41 +0000)]
* libc/sys/mmixware/sbrk.c (_sbrk): Drop unused extern declaration
of "end".  Mark allocated memory by applying PRELD.

11 years ago * libc/stdlib/getopt.c (getopt_internal): Align handling of colon to
Corinna Vinschen [Tue, 16 Oct 2012 19:11:47 +0000 (19:11 +0000)]
* libc/stdlib/getopt.c (getopt_internal): Align handling of colon to
SUSv4 requirements.
(__getopt_long_r): Fix formatting.

11 years ago * libc/stdio/vfprintf.c (__sbprintf): Fix comment.
Corinna Vinschen [Tue, 16 Oct 2012 19:03:01 +0000 (19:03 +0000)]
* libc/stdio/vfprintf.c (__sbprintf): Fix comment.

11 years ago * libc/include/assert.h (static_assert): Define.
Corinna Vinschen [Tue, 16 Oct 2012 19:00:29 +0000 (19:00 +0000)]
* libc/include/assert.h (static_assert): Define.

11 years ago * libc/include/sys/features.h (__GNUC_PREREQ): Define. Use
Corinna Vinschen [Tue, 16 Oct 2012 18:45:22 +0000 (18:45 +0000)]
* libc/include/sys/features.h (__GNUC_PREREQ): Define.  Use
throughout in place of explicit GNUC version checks.
* libc/include/_ansi.h (_NOINLINE): Define.
(_NOINLINE_STATIC): Define.
* libc/stdio/vfprintf.c (__sbprintf): Define _NOINLINE_STATIC.

11 years agoconfig.{guess,sub}: update from upstream config-patches repo
Ralf Corsepius [Thu, 11 Oct 2012 16:04:17 +0000 (16:04 +0000)]
config.{guess,sub}: update from upstream config-patches repo

From: David Holsgrove <david.holsgrove@xilinx.com>

Adds microblaze little endian support.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years ago * libc/posix/wordfree.c (wordfree): The wrong words are freed
Corinna Vinschen [Tue, 9 Oct 2012 12:05:50 +0000 (12:05 +0000)]
* libc/posix/wordfree.c (wordfree): The wrong words are freed
when WRDE_DOOFFS is in use. Restructure the code so that the memory
needed to be freed is instead kept in an internal linked list...
* libc/posix/wordexp2.h: ...as defined here...
* libc/posix/wordexp.c (wordexp): ...and build this internal
linked list here, avoiding wasteful strdup calls in the process.

11 years ago * libc/posix/wordexp.c (wordexp): Return WRDE_NOSPACE on resource
Corinna Vinschen [Tue, 9 Oct 2012 09:26:14 +0000 (09:26 +0000)]
* libc/posix/wordexp.c (wordexp): Return WRDE_NOSPACE on resource
allocation failure. Cleanup leftover resources when failing.

11 years ago * libc/posix/wordexp.c (wordexp): Handle expanded words longer
Corinna Vinschen [Tue, 9 Oct 2012 09:20:46 +0000 (09:20 +0000)]
* libc/posix/wordexp.c (wordexp): Handle expanded words longer
than 500 bytes.

11 years ago * libc/posix/wordexp.c (wordexp): Don't leak file streams.
Corinna Vinschen [Tue, 9 Oct 2012 09:09:19 +0000 (09:09 +0000)]
* libc/posix/wordexp.c (wordexp): Don't leak file streams.

11 years ago* libc/machine/rl78/setjmp.S: Convert from CPP macros to GAS
DJ Delorie [Wed, 3 Oct 2012 20:24:49 +0000 (20:24 +0000)]
* libc/machine/rl78/setjmp.S: Convert from CPP macros to GAS
macros, to avoid dependence on the line separation character.

* rl78/crt0.S (_interrupt_vector_table): Convert from CPP macros
to GAS macros, to avoid dependence on the line separation
character.

11 years ago* libc/sys/sysnecv850/sbrk.c (_sbrk): Change heap_start to be an
DJ Delorie [Tue, 2 Oct 2012 22:55:09 +0000 (22:55 +0000)]
* libc/sys/sysnecv850/sbrk.c (_sbrk): Change heap_start to be an
array of undefined size, to avoid problems when compiled with
-msda=4.

* v850/sbrk.c (_sbrk): Change heap_start to be an array of
undefined size, to avoid problems when compiled with -msda=4.

11 years ago2012-10-02 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Tue, 2 Oct 2012 20:14:15 +0000 (20:14 +0000)]
2012-10-02  Steve Ellcey  <sellcey@mips.com>

* mips/configure.in: Add new linker scripts to script list.
* mips/configure: Regenerate.
* mips/mti32.ld: New.
* mips/mti64.ld: New.
* mips/mti64_n32.ld: New.
* mips/mti64_64.ld: New.
* mips/sde32.ld: New.
* mips/sde64.ld: New.

11 years ago2012-10-01 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 1 Oct 2012 21:57:54 +0000 (21:57 +0000)]
2012-10-01  Jeff Johnston  <jjohnstn@redhat.com>

        * README: replace sources.redhat.com with sourceware.org.
        * HOWTO: Ditto.

11 years agoSync toplevel files with GCC tree
hjl [Sat, 29 Sep 2012 15:35:50 +0000 (15:35 +0000)]
Sync toplevel files with GCC tree

2012-09-28  Ian Lance Taylor  <iant@google.com>

* Makefile.def: Make all-target-libgo depend on
all-target-libbacktrace.
* Makefile.in: Rebuild.

2012-09-26  Ian Lance Taylor  <iant@google.com>

* Makefile.def: Make all-gcc depend on all-libbacktrace.
* Makefile.in: Rebuild.

2012-09-06  Diego Novillo  <dnovillo@google.com>

* configure.ac: Bump minimum GMP version to 4.2.3.
* configure: Re-generate.

2012-09-05  Georg-Johann Lay  <avr@gjlay.de>

PR target/54461
* configure.ac (noconfigdirs,target=avr-*-*): Add target-newlib,
target-libgloss if not configured --with-avrlibc=no.
* configure: Regenerate.

2012-09-04  Jason Merrill  <jason@redhat.com>

* configure.ac: Fix --enable-languages=all.

2012-09-03  Richard Guenther  <rguenther@suse.de>

PR bootstrap/54138
* configure.ac: Re-organize ISL / CLOOG checks to allow
disabling with either --without-isl or --without-cloog.
* configure: Regenerated.

2012-09-03  Georg-Johann Lay  <avr@gjlay.de>

* configure.ac (noconfigdirs,target=avr): Add target-libquadmath.
* configure: Regenerate.

11 years agoSync config with GCC
hjl [Sat, 29 Sep 2012 15:22:16 +0000 (15:22 +0000)]
Sync config with GCC

2012-09-03  Richard Guenther  <rguenther@suse.de>

PR bootstrap/54138
* config/cloog.m4: Adjust for toplevel reorg.
* config/isl.m4: Adjust.

11 years ago2012-09-26 Ian Bolton <ian.bolton@arm.com>
Jeff Johnston [Wed, 26 Sep 2012 20:11:53 +0000 (20:11 +0000)]
2012-09-26  Ian Bolton  <ian.bolton@arm.com>
        Jim MacArthur  <jim.macarthur@arm.com>
        Marcus Shawcroft  <marcus.shawcroft@arm.com>
        Nigel Stephens  <nigel.stephens@arm.com>
        Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
        Richard Earnshaw  <rearnsha@arm.com>
        Sofiane Naci  <sofiane.naci@arm.com>
        Tejas Belagod  <tejas.belagod@arm.com>
        Yufeng Zhang  <yufeng.zhang@arm.com>

        * aarch64/Makefile.in: New file.
        * aarch64/_exit.c: New file.
        * aarch64/_kill.c: New file.
        * aarch64/aclocal.m4: Generated.
        * aarch64/configure: Generated.
        * aarch64/configure.in: New file.
        * aarch64/cpu-init/Makefile.in: New file.
        * aarch64/cpu-init/rdimon-aem-el3.S: New file.
        * aarch64/crt0.S: New file.
        * aarch64/elf-rdimon.specs: New file.
        * aarch64/libcfunc.c: New file.
        * aarch64/svc.h: New file.
        * aarch64/syscalls.c: New file.
        * configure.in: Add AArch64.
        * configure: Re-generated.

11 years ago2012-09-26 Ian Bolton <ian.bolton@arm.com>
Jeff Johnston [Wed, 26 Sep 2012 20:06:46 +0000 (20:06 +0000)]
2012-09-26  Ian Bolton  <ian.bolton@arm.com>
        Jim MacArthur  <jim.macarthur@arm.com>
        Marcus Shawcroft  <marcus.shawcroft@arm.com>
        Nigel Stephens  <nigel.stephens@arm.com>
        Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
        Richard Earnshaw  <rearnsha@arm.com>
        Sofiane Naci  <sofiane.naci@arm.com>
        Tejas Belagod  <tejas.belagod@arm.com>
        Yufeng Zhang  <yufeng.zhang@arm.com>

        * configure.host: Add AArch64.
        * libc/include/machine/ieeefp.h: Add AArch64.
        * libc/include/machine/setjmp.h: Add AArch64.
        * libc/include/machine/time.h: Add AArch64.
        * libc/include/sys/config.h: Add AArch64.
        * libc/machine/aarch64/Makefile.am: New file.
        * libc/machine/aarch64/Makefile.in: Generated.
        * libc/machine/aarch64/aclocal.m4: Generated.
        * libc/machine/aarch64/configure: Generated.
        * libc/machine/aarch64/configure.in: New file.
        * libc/machine/aarch64/setjmp.S: New file.
        * libc/machine/configure.in: Add AArch64.
        * libc/machine/configure: Re-generated.
        * libm/machine/aarch64/Makefile.am: New file.
        * libm/machine/aarch64/Makefile.in: Generated.
        * libm/machine/aarch64/aclocal.m4: Generated.
        * libm/machine/aarch64/configure: Generated.
        * libm/machine/aarch64/configure.in: New file.
        * libm/machine/aarch64/s_ceil.c: New file.
        * libm/machine/aarch64/s_floor.c: New file.
        * libm/machine/aarch64/s_fma.c: New file.
        * libm/machine/aarch64/s_fmax.c: New file.
        * libm/machine/aarch64/s_fmin.c: New file.
        * libm/machine/aarch64/s_llrint.c: New file.
        * libm/machine/aarch64/s_llround.c: New file.
        * libm/machine/aarch64/s_lrint.c: New file.
        * libm/machine/aarch64/s_lround.c: New file.
        * libm/machine/aarch64/s_nearbyint.c: New file.
        * libm/machine/aarch64/s_rint.c: New file.
        * libm/machine/aarch64/s_round.c: New file.
        * libm/machine/aarch64/s_trunc.c: New file.
        * libm/machine/aarch64/sf_ceil.c: New file.
        * libm/machine/aarch64/sf_floor.c: New file.
        * libm/machine/aarch64/sf_fma.c: New file.
        * libm/machine/aarch64/sf_fmax.c: New file.
        * libm/machine/aarch64/sf_fmin.c: New file.
        * libm/machine/aarch64/sf_llrint.c: New file.
        * libm/machine/aarch64/sf_llround.c: New file.
        * libm/machine/aarch64/sf_lrint.c: New file.
        * libm/machine/aarch64/sf_lround.c: New file.
        * libm/machine/aarch64/sf_nearbyint.c: New file.
        * libm/machine/aarch64/sf_rint.c: New file.
        * libm/machine/aarch64/sf_round.c: New file.
        * libm/machine/aarch64/sf_trunc.c: New file.
        * libm/machine/configure.in: Add AArch64.
        * libm/machine/configure: Re-generated.

11 years ago2012-09-26 Michael Hope <michael.hope@linaro.org>
Jeff Johnston [Wed, 26 Sep 2012 19:11:40 +0000 (19:11 +0000)]
2012-09-26  Michael Hope  <michael.hope@linaro.org>

        * doc/makedoc.c (dup_): Rename to avoid colliding with dup(2).

11 years ago2012-09-21 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Fri, 21 Sep 2012 15:16:59 +0000 (15:16 +0000)]
2012-09-21  Steve Ellcey  <sellcey@mips.com>

* configure.ac: Add mips*-mti-elf* target.
* configure: Regenerate.

11 years ago * configure.ac (host_libs): Add libbacktrace.
Ian Lance Taylor [Thu, 20 Sep 2012 00:04:25 +0000 (00:04 +0000)]
* configure.ac (host_libs): Add libbacktrace.
(target_libraries): Add libbacktrace.
* Makefile.def (host_modules): Add libbacktrace.
(target_modules): Likewise.
* configure, Makefile.in: Rebuild.

11 years ago2012-09-19 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Wed, 19 Sep 2012 21:22:33 +0000 (21:22 +0000)]
2012-09-19  Steve Ellcey  <sellcey@mips.com>

* mt-sde: Change -mcode-xonly to -mcode-readable=pcrel.

11 years agoMoved the Changelog entries for breakpoint.c and remote.c out of Changelog
wrighton [Mon, 17 Sep 2012 20:39:12 +0000 (20:39 +0000)]
Moved the Changelog entries for breakpoint.c and remote.c out of Changelog
and into gdb/Changelog.

11 years agoAdd support for tilegx in gold.
walt [Sat, 15 Sep 2012 17:11:26 +0000 (17:11 +0000)]
Add support for tilegx in gold.
* configure.ac (ENABLE_GOLD): support tilegx*
* configure: rebuild
elfcpp:
* tilegx.h: New file.
* elfcpp.h: add EM_TILEGX.
gold:
* tilegx.cc: New file.
* Makefile.am (TARGETSOURCES): Add tilegx.cc
(ALL_TARGETOBJS): Add tilegx.$(OBJEXT)
* configure.tgt: Add entries for tilegx*.
* configure.ac: Likewise.
* Makefile.in: Rebuild.
* configure: Likewise.
* testsuite/icf_safe_test.sh (arch_specific_safe_fold): Handle
tilegx.

11 years ago PR target/38607
dje [Fri, 14 Sep 2012 23:55:22 +0000 (23:55 +0000)]
    PR target/38607
        Merge upstream change.
        * libtool.m4 (_LT_COMPILER_PIC): Add -fPIC to GCC and GXX for AIX.

        * configure.ac: Add target-libquadmath to noconfigdirs for AIX.
        Add libgomp*.o to compare_exclusions for AIX.
        * configure: Regenerate.

11 years agobi-endian support for moxie.
Stan Cox [Thu, 13 Sep 2012 23:57:32 +0000 (23:57 +0000)]
bi-endian support for moxie.

11 years ago* gdb/remote.c (remote_insert_hw_breakpoint): Throw exception if
wrighton [Wed, 12 Sep 2012 20:01:10 +0000 (20:01 +0000)]
* gdb/remote.c (remote_insert_hw_breakpoint): Throw exception if
there is an error inserting hardware breakpoints and use the
error message from the target.

* gdb/breakpoint.c (insert_bp_location, insert_breakpoint_locations):
Catch this exception and print the error message contained within. Do not
print the default hardware error breakpoint message in this case.

11 years ago* rx/rx.ld: Add W_* sections to .rodata.
DJ Delorie [Thu, 30 Aug 2012 21:08:13 +0000 (21:08 +0000)]
* rx/rx.ld: Add W_* sections to .rodata.
* rx/rx-sim.ld: Likewise.

11 years agolibgloss: cr16: add custom syscall list
Ralf Corsepius [Thu, 30 Aug 2012 07:04:41 +0000 (07:04 +0000)]
libgloss: cr16: add custom syscall list

11 years agoDon't set HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes
hjl [Sun, 26 Aug 2012 14:41:28 +0000 (14:41 +0000)]
Don't set HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes

PR binutils/4970
* Makefile.def (host_modules): Rmove lib_path=.libs from bfd
and opcodes.
* Makefile.in: Regenerated.

11 years agoSync toplevel files with GCC tree
hjl [Sun, 26 Aug 2012 14:34:38 +0000 (14:34 +0000)]
Sync toplevel files with GCC tree

2012-08-14   Diego Novillo  <dnovillo@google.com>

Merge from cxx-conversion branch.

* Makefile.tpl (STAGE[+id+]_CXXFLAGS): Remove
POSTSTAGE1_CONFIGURE_FLAGS.
* Makefile.in: Regenerate.
* configure.ac (ENABLE_BUILD_WITH_CXX): Remove.  Update all users.
Force C++ when bootstrapping.
* configure: Regenerate.

2012-07-06  Richard Guenther  <rguenther@suse.de>

* Makefile.def (cloog): Pass $(HOST_GMPINC) and $(HOST_ISLINC)
as CPPFLAGS, pass path to built gmp as LDFLAGS, always use
--with-gmp=system.
* Makefile.in: Regenerated.
* configure: Likewise.

2012-07-06  Richard Guenther  <rguenther@suse.de>

* configure.ac (extra_isl_gmp_configure_flags): Initialize and subst.
* Makefile.def (isl): Use extra_isl_gmp_configure_flags and
supply V=1 as extra_make_flags.
* configure: Regenerated.
* Makefile.in: Likewise.

2012-07-03  Richard Guenther  <rguenther@suse.de>

* Makfile.def (isl): Remove not necessary extra_exports and
extra_make_flags.
(cloog): Use $$CPPFLAGS instead of ${CPPFLAGS}.
* Makefile.in: Regenerated.

2012-07-03  Richard Guenther  <rguenther@suse.de>

* Makefile.def (cloog): Add V=1 to extra_make_flags.
* configure.ac: If either the ISL or the CLooG check failed
do not try to build in-tree versions.
* Makefile.in: Regenerated.
* configure: Regenerated.

2012-07-02  Richard Guenther  <rguenther@suse.de>
Michael Matz  <matz@suse.de>
Tobias Grosser <tobias@grosser.es>
Sebastian Pop <sebpop@gmail.com>

* Makefile.def: Add ISL host module, remove PPL host module.
Adjust ClooG host module to use the proper ISL.
* Makefile.tpl: Pass ISL include flags instead of PPL ones.
* configure.ac: Include config/isl.m4.  Add ISL host library,
remove PPL.  Remove PPL configury, add ISL configury, adjust
ClooG configury.
* Makefile.in: Regenerated.
* configure: Likewise.

2012-07-02  Richard Guenther  <rguenther@suse.de>

Merge from graphite branch
2011-07-21  Tobias Grosser  <tobias@grosser.es>

* configure: Regenerated.
* config/cloog.m4: Remove support for CLooG-ppl and CLooG-parma,
both cloog.org and legacy versions. The only supported version will
be CLooG with the isl backend.

2011-07-21  Tobias Grosser  <tobias@grosser.es>

* configure: Regenerated.
* configure.ac: Require cloog isl 0.17.0

2011-07-21  Tobias Grosser  <tobias@grosser.es>

* configure: Regenerated.
* config/cloog.m4: Do not define CLOOG_ORG

2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>

* configure.ac: Skip C if explicitly selected.
* configure: Regenerate.

2012-06-28  Christophe Lyon <christophe.lyon@st.com>

* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure
they contain -O2.
* configure: Regenerate.

2012-06-20  Jason Merrill  <jason@redhat.com>

* Makefile.tpl (check-target-libgomp-c++): New.
(check-target-libitm-c++): New.
* Makefile.def (c++): Add them.
* Makefile.in: Regenerate.

2012-05-16  Olivier Hainque  <hainque@adacore.com>

* Makefile.tpl (gcc-no-fixedincludes): Rename into ...
(gcc-install-no-fixedincludes): Now forwarder to local target in gcc/
(install-no-fixedincludes): Adjust accordingly.
* Makefile.in: Regenerate.

2012-05-09  Nick Clifton  <nickc@redhat.com>
    Paul Smith  <psmith@gnu.org>

PR bootstrap/50461
* configure.ac (mpfr-dir): When using in-tree MPFR sources
allow for the fact that from release v3.1.0 of MPFR the source
files were moved into a src sub-directory.
* configure: Regenerate.

2012-05-07  Janne Blomqvist  <jb@gcc.gnu.org>

* configure.ac: Bump minimum MPFR version to 2.4.0.
* configure: Regenerated.

2012-05-01  Richard Henderson  <rth@redhat.com>

* Makefile.def (libatomic): New target_module.
* configure.ac (target_libraries): Add libatomic.
(noconfigdirs): Check if libatomic is supported.
* Makefile.in, configure: Rebuild.

config/

2012-08-26  Art Haas <ahaas@impactweather.com>

* cloog.m4 (CLOOG_INIT_FLAGS): Use = instead of == in test.

2012-07-04  Tristan Gingold  <gingold@adacore.com>

* isl.m4 (ISL_CHECK_VERSION): Set to yes if cross-compiling.
Fix comments.

2012-07-03  Richard Guenther  <rguenther@suse.de>

* cloog.m4: Remove debugging print.

2012-07-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* isl.m4 (ISL_CHECK_VERSION): Add -lisl to LIBS, not LDFLAGS.

2012-07-02  Richard Guenther  <rguenther@suse.de>

* isl.m4 (_ISL_CHECK_CT_PROG): Omit main function header/footer.
Fix version test.

2012-07-02  Richard Guenther  <rguenther@suse.de>
Michael Matz  <matz@suse.de>
Tobias Grosser <tobias@grosser.es>
Sebastian Pop <sebpop@gmail.com>

* cloog.m4: Set up to work against ISL only.
* isl.m4: New file.

11 years agoSync libtool.m4 with GCC tree
hjl [Sun, 26 Aug 2012 14:09:07 +0000 (14:09 +0000)]
Sync libtool.m4 with GCC tree

2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>

Merge upstream change
* libtool.m4 (_LT_ENABLE_LOCK): Support x32.

2011-11-21  Andreas Tobler  <andreast@fgznet.ch>

* libtool.m4: Additional FreeBSD 10 fixes.

11 years ago* libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems which
Christopher Faylor [Thu, 23 Aug 2012 04:19:58 +0000 (04:19 +0000)]
* libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems which
do not provide it.

11 years ago* libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode flags to
Christopher Faylor [Tue, 21 Aug 2012 14:51:50 +0000 (14:51 +0000)]
* libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode flags to
just loop over more allowed flags.  Support glibc 'e' flag on systems defining
_GLIBC_EXTENSION.  Support C11 'x' flag.

11 years ago * libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.
Corinna Vinschen [Fri, 10 Aug 2012 15:21:55 +0000 (15:21 +0000)]
* libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.
* libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid
compiler warning.
* libc/stdio/fgets.c (_fgets_r): Ditto.
* libc/time/strftime.c (strftime): Ditto.

11 years agoFix date
Corinna Vinschen [Fri, 10 Aug 2012 11:49:19 +0000 (11:49 +0000)]
Fix date

11 years ago * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to
Corinna Vinschen [Fri, 10 Aug 2012 09:37:31 +0000 (09:37 +0000)]
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to
allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.

11 years ago * libc/posix/engine.c(dissect): Guard diagnostic pragma for right
Corinna Vinschen [Wed, 8 Aug 2012 14:05:53 +0000 (14:05 +0000)]
* libc/posix/engine.c(dissect): Guard diagnostic pragma for right
versions of GCC only.
* libc/string/strcasestr.c: Ditto.

Fix typo in previous ChangeLog entry.

11 years ago Throughout, run newlib with -Wall -Werror option and fix bugs and
Corinna Vinschen [Wed, 8 Aug 2012 11:04:16 +0000 (11:04 +0000)]
Throughout, run newlib with -Wall -Werror option and fix bugs and
compiler warnings found this way.

* libc/stdio/freopen.c (_freopen_r): Fix bug setting _flags.

* libc/include/stdio.h (_rename): Define when building newlib.
* libc/include/sys/signal.h (_kill): Ditto.
* libc/include/sys/stat.h (_mkdir): Ditto.
* libc/include/sys/time.h (_gettimeofday): Ditto.
* libc/include/sys/times.h (_times): Ditto.
* libc/include/sys/wait.h (_wait): Ditto.
* libc/locale/lmessages.c (empty): Don't define for Cygwin.
* libc/locale/lmonetary.c (cnv): Ditto.
* libc/locale/nl_langinfo.c (nl_langinfo): Ditto for variable s.
* libc/posix/collate.c: Throughout cast to avoid compiler warning.
* libc/posix/engine.c (matcher): Initialize dp to avoid compiler
warning.
* libc/posix/glob.c: Disable on Cygwin.  Explain why.
* libc/posix/regcomp.c: Fix "uninitialized" compiler warnings.
(dissect): Deliberately silence gcc compiler warning.  Add comment to
explain why.
* libc/posix/wordexp.c (wordexp): Remove num_bytes variable since result
is never used.
* libc/posix/popen.c (popen): Ditto for variable last.
* libc/reent/mkdirr.c: Include sys/stat.h.
* libc/reent/renamer.c: Include stdio.h.
* libc/search/hash.c:  Throughout use underscored variants of the stat
function family.
(init_hash): Add missing definition for the __USE_INTERNAL_STAT64 case.
* libc/search/hash_bigkey.c (__big_insert): Add parenthesis to avoid
compiler warning.
* libc/search/hash_page.c (overflow_page): Initalize freep to NULL to
avoid compiler warning.
* libc/stdio/asiprintf.c (_asiprintf_r): Cast unsigned char * to char *
to avoid compiler warning.
(asiprintf): Ditto.
* libc/stdio/asprintf.c (_asprintf_r): Ditto.
(asprintf): Ditto.
* libc/stdio/vasiprintf.c (_vasiprintf_r): Ditto.
* libc/stdio/vasprintf.c (_vasprintf_r): Ditto.
* libc/stdio/mktemp.c (_gettemp): Cast to unsigned char in call to
isdigit to avoid compiler warning.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Initialize variables used for
grouping to avoid compiler warning.  Only define and set nseps and
nrepeats if they are really used.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Ditto.  Only define state if
it is really used.
* libc/stdio/vfscanf.c (u_char): Revert to be defined as unsigned char.
(__SVFSCANF_R): Cast fmt in call to __mbtowc.
* libc/stdlib/mbtowc_r.c (JIS_state_table): Disable when building
Cygwin.
(JIS_action_table): Ditto.
* libc/stdlib/wctomb_r.c (__utf8_wctomb): Add parenthesis to avoid
compiler warning.
* libc/string/strcasestr.c: Deliberately silence gcc compiler warning.
Add comment to explain why.
* libc/time/strptime.c (strptime): Cast to unsigned char in calls to
isspace to avoid compiler warning.
* libm/math/e_atan2.c (__ieee754_atan2): Add parenthesis to avoid
compiler warning.
* libm/math/e_exp.c (__ieee754_exp): Initialize k to 0 to avoid
compiler warning.  Drop setting it to 0 later.
* libm/math/ef_exp.c (__ieee754_expf): Ditto.
* libm/math/e_pow.c (__ieee754_pow): Add braces to avoid compiler
warning.
* libm/math/ef_pow.c (__ieee754_powf): Ditto.
* libm/math/er_lgamma.c (__ieee754_lgamma_r): Initialize nadj to 0 to
avoid compiler warning.
* libm/math/erf_lgamma.c (__ieee754_lgammaf_r): Ditto.
* libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Ditto for variable z.
* libm/common/sf_round.c (roundf): Remove signbit variable since result
is never used.

11 years ago * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compiler
Corinna Vinschen [Tue, 7 Aug 2012 17:52:49 +0000 (17:52 +0000)]
* libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compiler
warning.

11 years ago * libc/sys/sysnecv850/crt0.S (_start): Use v850e-specific
Kevin Buettner [Mon, 30 Jul 2012 23:03:47 +0000 (23:03 +0000)]
* libc/sys/sysnecv850/crt0.S (_start): Use v850e-specific
start up code for v850e2 and v850e2v3 too.

11 years agoreaddir: drop bogus code
Eric Blake [Fri, 20 Jul 2012 16:55:18 +0000 (16:55 +0000)]
readdir: drop bogus code

* libc/posix/readdir.c (readdir): Drop bogus attempt to catch
bogus pointers.

11 years ago2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsépius [Wed, 18 Jul 2012 15:22:45 +0000 (15:22 +0000)]
2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/sys/rtems/machine/_types.h (_ssize_t): Use signed int for
__v850__, __851__.

11 years ago2012-07-17 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsépius [Tue, 17 Jul 2012 16:56:44 +0000 (16:56 +0000)]
2012-07-17  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/search/hcreate_r.c (hdestroy_r): #ifdef 0 unused vars ie, idx.

11 years ago2012-07-16 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsépius [Mon, 16 Jul 2012 17:03:49 +0000 (17:03 +0000)]
2012-07-16  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/posix/telldir.c: Conditionally build dd_hash_lock.

11 years ago2012-07-13 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsépius [Fri, 13 Jul 2012 09:21:44 +0000 (09:21 +0000)]
2012-07-13  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/sys/rtems/machine/_types.h (_ssize_t): Add __ARM_EABI__,
__v850__, __851__.

11 years ago Fix copy-paste error
Corinna Vinschen [Fri, 13 Jul 2012 07:57:14 +0000 (07:57 +0000)]
Fix copy-paste error

11 years ago * libc/stdio/fileno.c (fileno): Check if f is a valid stream. If not,
Corinna Vinschen [Mon, 9 Jul 2012 12:13:11 +0000 (12:13 +0000)]
* libc/stdio/fileno.c (fileno): Check if f is a valid stream.  If not,
return -1 and set errno to EBADF per POSIX.

11 years ago Allow building of Cygwin using Mingw64 SDK headers:
Corinna Vinschen [Fri, 6 Jul 2012 10:41:21 +0000 (10:41 +0000)]
Allow building of Cygwin using Mingw64 SDK headers:
* libc/include/sys/time.h: Drop _WINSOCK_H guard.  Just use
_TIMEVAL_DEFINED instead.
* libc/include/sys/types.h: Check for _WINSOCKAPI_ along with
_WINSOCK_H.
* libc/include/sys/unistd.h: Ditto.

11 years ago* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure
Alexandre Oliva [Thu, 28 Jun 2012 11:50:52 +0000 (11:50 +0000)]
* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure
they contain -O2.
* configure: Regenerate.

11 years ago * doc/Makefile.am (makedoc): Use LDFLAGS_FOR_BUILD not LDFLAGS.
Corinna Vinschen [Thu, 28 Jun 2012 08:25:48 +0000 (08:25 +0000)]
* doc/Makefile.am (makedoc): Use LDFLAGS_FOR_BUILD not LDFLAGS.
* doc/Makefile.in: Regenerate.

11 years ago* libc/include/sys/types.h: Don't use the same preprocessor guard for time_t,
Christopher Faylor [Tue, 26 Jun 2012 16:03:12 +0000 (16:03 +0000)]
* libc/include/sys/types.h: Don't use the same preprocessor guard for time_t,
timespec, and itimerspec.  Add a separate guard specifically for timespec and
always unconditionally define itimerspec.

12 years ago * libc/stdio/findfp.c (__sinit): Avoid infinite recursion on
Corinna Vinschen [Tue, 5 Jun 2012 16:17:15 +0000 (16:17 +0000)]
* libc/stdio/findfp.c (__sinit): Avoid infinite recursion on
_REENT_SMALL targets.  Add comment to explain.

12 years agoFix typo.
Corinna Vinschen [Thu, 31 May 2012 09:18:58 +0000 (09:18 +0000)]
Fix typo.

12 years ago * libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread
Corinna Vinschen [Thu, 31 May 2012 07:33:59 +0000 (07:33 +0000)]
* libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread
version.

12 years ago * libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than
Corinna Vinschen [Wed, 30 May 2012 14:42:52 +0000 (14:42 +0000)]
* libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than
_mbsrtowcs_r and restrict number of wide chars to n - 1.

12 years ago * libc/stdio/local.h (_newlib_flockfile_start): New macro to
Corinna Vinschen [Wed, 30 May 2012 08:58:41 +0000 (08:58 +0000)]
* libc/stdio/local.h (_newlib_flockfile_start): New macro to
secure stream related critical section against thread cancellation.
(_newlib_flockfile_exit): Ditto.
(_newlib_sfp_lock_end): Ditto.
(_newlib_sfp_lock_start): Ditto for the list of streams.
(_newlib_sfp_lock_exit): Ditto.
(_newlib_sfp_lock_end): Ditto.
Use aforementioned macros in place of _flockfile/_funlockfile
and __sfp_lock_acquire/__sfp_lock_release throughout the code.
* libc/stdio/fclose.c: Explicitely disable and re-enable thread
cancellation.  Explain why.
* libc/stdio/freopen.c: Ditto.
* libc/stdio64/freopen64.c: Ditto.

12 years agoResync config/ from GCC.
Joseph Myers [Tue, 29 May 2012 15:58:14 +0000 (15:58 +0000)]
Resync config/ from GCC.

12 years ago * libc/machine/cr16/asm.h: Added some missing instructions
Corinna Vinschen [Mon, 21 May 2012 11:55:14 +0000 (11:55 +0000)]
* libc/machine/cr16/asm.h: Added some missing instructions
and removed few unsupported instructions of cr16 target.

12 years agoAdd support for PowerPC VLE.
jwlemke [Mon, 14 May 2012 19:45:12 +0000 (19:45 +0000)]
Add support for PowerPC VLE.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

* NEWS:  Mention PowerPC VLE port.

2012-05-14  James Lemke <jwlemke@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>

bfd/
* bfd.c (bfd_lookup_section_flags): Add section parm.
* ecoff.c (bfd_debug_section): Remove flag_info initializer.
* elf-bfd.h (bfd_elf_section_data): Move in section_flag_info.
(bfd_elf_lookup_section_flags): Add section parm.
* elf32-ppc.c (is_ppc_vle): New function.
(ppc_elf_modify_segment_map): New function.
(elf_backend_modify_segment_map): Define.
(has_vle_insns): New define.
* elf32-ppc.h (ppc_elf_modify_segment_map): Declare.
* elflink.c (bfd_elf_lookup_section_flags): Add return value & parm.
Move in logic to omit / include a section.
* libbfd-in.h (bfd_link_info): Add section parm.
(bfd_generic_lookup_section_flags): Likewise.
* reloc.c (bfd_generic_lookup_section_flags): Likewise.
* section.c (bfd_section): Move out section_flag_info.
(BFD_FAKE_SECTION): Remove flag_info initializer.
* targets.c (_bfd_lookup_section_flags): Add section parm.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

bfd/
* archures.c (bfd_mach_ppc_vle): New.
* bfd-in2.h: Regenerated.
* cpu-powerpc.c (bfd_powerpc_archs): New entry for vle.
* elf32-ppc.c (split16_format_type): New enumeration.
(ppc_elf_vle_split16): New function.
(HOWTO): Add entries for R_PPC_VLE relocations.
(ppc_elf_reloc_type_lookup): Handle PPC_VLE relocations.
(ppc_elf_section_flags): New function.
(ppc_elf_lookup_section_flags): New function.
(ppc_elf_section_processing): New function.
(ppc_elf_check_relocs): Handle PPC_VLE relocations.
(ppc_elf_relocation_section): Likewise.
(elf_backend_lookup_section_flags_hook): Define.
(elf_backend_section_flags): Define.
(elf_backend_section_processing): Define.
* elf32-ppc.h (ppc_elf_section_processing): Declare.
* libbfd.h: Regenerated.
* reloc.c (BFD_RELOC_PPC_VLE_REL8, BFD_RELOC_PPC_VLE_REL15,
BFD_RELOC_PPC_VLE_REL24, BFD_RELOC_PPC_VLE_LO16A,
BFD_RELOC_PPC_VLE_LO16D, BFD_RELOC_PPC_VLE_HI16A,
BFD_RELOC_PPC_VLE_HI16D, BFD_RELOC_PPC_VLE_HA16A,
BFD_RELOC_PPC_VLE_HA16D, BFD_RELOC_PPC_VLE_SDA21,
BFD_RELOC_PPC_VLE_SDA21_LO, BFD_RELOC_PPC_VLE_SDAREL_LO16A,
BFD_RELOC_PPC_VLE_SDAREL_LO16D, BFD_RELOC_PPC_VLE_SDAREL_HI16A,
BFD_RELOC_PPC_VLE_SDAREL_HI16D, BFD_RELOC_PPC_VLE_SDAREL_HA16A,
BFD_RELOC_PPC_VLE_SDAREL_HA16D): New bfd relocations.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

gas/
* config/tc-ppc.c (insn_validate): New func of existing code to call..
(ppc_setup_opcodes): ..from 2 places here.
Revise for second (VLE) opcode table.
Add #ifdef'd code to print opcode tables.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

gas/
* config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
for the VLE conditional branches.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
    Rhonda Wittels  <rhonda@codesourcery.com>

gas/
* config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
(PPC_VLE_SPLIT16D): New macro.
(PPC_VLE_LO16A): New macro.
(PPC_VLE_LO16D): New macro.
(PPC_VLE_HI16A): New macro.
(PPC_VLE_HI16D): New macro.
(PPC_VLE_HA16A): New macro.
(PPC_VLE_HA16D): New macro.
(PPC_APUINFO_VLE): New definition.
(md_chars_to_number): New function.
(md_parse_option): Check for combinations of little
endian and -mvle.
(md_show_usage): Document -mvle.
(ppc_arch): Recognize VLE.
(ppc_mach): Recognize bfd_mach_ppc_vle.
(ppc_setup_opcodes): Print the opcode table if
* config/tc-ppc.h (ppc_frag_check): Declare.
* doc/c-ppc.texi: Document -mvle.
* NEWS:  Mention PowerPC VLE port.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

gas/
* config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
(DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
* config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
* dwarf2dbg.c (scale_addr_delta): Handle values of 1
for DWARF2_LINE_MIN_INSN_LENGTH.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
    Rhonda Wittels  <rhonda@codesourcery.com>

gas/testsuite/
* gas/ppc/ppc.exp: Run new tests.
* gas/ppc/vle-reloc.d: New test.
* gas/ppc/vle-reloc.s: New test.
* gas/ppc/vle-simple-1.d: New test.
* gas/ppc/vle-simple-1.s: New test.
* gas/ppc/vle-simple-2.d: New test.
* gas/ppc/vle-simple-2.s: New test.
* gas/ppc/vle-simple-3.d: New test.
* gas/ppc/vle-simple-3.s: New test.
* gas/ppc/vle-simple-4.d: New test.
* gas/ppc/vle-simple-4.s: New test.
* gas/ppc/vle-simple-5.d: New test.
* gas/ppc/vle-simple-5.s: New test.
* gas/ppc/vle-simple-6.d: New test.
* gas/ppc/vle-simple-6.s: New test.
* gas/ppc/vle.d: New test.
* gas/ppc/vle.s: New test.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>
include/elf/
* ppc.h (SEC_PPC_VLE): Remove.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
    James Lemke  <jwlemke@codesourcery.com>

include/elf/
* ppc.h (R_PPC_VLE_REL8): New reloction.
(R_PPC_VLE_REL15): Likewise.
(R_PPC_VLE_REL24): Likewise.
(R_PPC_VLE_LO16A): Likewise.
(R_PPC_VLE_LO16D): Likewise.
(R_PPC_VLE_HI16A): Likewise.
(R_PPC_VLE_HI16D): Likewise.
(R_PPC_VLE_HA16A): Likewise.
(R_PPC_VLE_HA16D): Likewise.
(R_PPC_VLE_SDA21): Likewise.
(R_PPC_VLE_SDA21_LO): Likewise.
(R_PPC_VLE_SDAREL_LO16A): Likewise.
(R_PPC_VLE_SDAREL_LO16D): Likewise.
(R_PPC_VLE_SDAREL_HI16A): Likewise.
(R_PPC_VLE_SDAREL_HI16D): Likewise.
(R_PPC_VLE_SDAREL_HA16A): Likewise.
(R_PPC_VLE_SDAREL_HA16D): Likewise.
(SEC_PPC_VLE): Remove.
(PF_PPC_VLE): New program header flag.
(SHF_PPC_VLE): New section header flag.
(vle_opcodes, vle_num_opcodes): New.
(VLE_OP): New macro.
(VLE_OP_TO_SEG): New macro.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
    Rhonda Wittels  <rhonda@codesourcery.com>

include/opcode/
* ppc.h (PPC_OPCODE_VLE): New definition.
(PPC_OP_SA): New macro.
(PPC_OP_SE_VLE): New macro.
(PPC_OP): Use a variable shift amount.
(powerpc_operand): Update comments.
(PPC_OPSHIFT_INV): New macro.
(PPC_OPERAND_CR): Replace with...
(PPC_OPERAND_CR_BIT): ...this and
(PPC_OPERAND_CR_REG): ...this.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

ld/
* ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
Pass it to callback.
(walk_wild_section_general): Pass section_flag_list to callback.
(lang_add_section): Add sflag_list parm.
Move out logic to keep / omit a section & call bfd_lookup_section_flags.
(output_section_callback_fast): Add sflag_list parm.
Add new parm to lang_add_section calls.
(output_section_callback): Likewise.
(check_section_callback): Add sflag_list parm.
(lang_place_orphans): Add new parm to lang_add_section calls.
(gc_section_callback): Add sflag_list parm.
(find_relro_section_callback): Likewise.
* ldlang.h (callback_t): Add flag_info parm.
(lang_add_section): Add sflag_list parm.
* emultempl/armelf.em (elf32_arm_add_stub_section):
Add lang_add_section parm.
* emultempl/beos.em (gld*_place_orphan): Likewise.
* emultempl/elf32.em (gld*_place_orphan): Likewise.
* emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
* emultempl/mipself.em (mips_add_stub_section): Likewise.
* emultempl/mmo.em (mmo_place_orphan): Likewise.
* emultempl/pe.em (gld_*_place_orphan): Likewise.
* emultempl/pep.em (gld_*_place_orphan): Likewise.
* emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
* emultempl/spuelf.em (spu_place_special_section): Likewise.
* emultempl/vms.em (vms_place_orphan): Likewise.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

ld/testsuite/
* ld-powerpc/powerpc.exp: Create ppceabitests.
* ld-powerpc/vle-multiseg.s: New.
* ld-powerpc/vle-multiseg-1.d: New.
* ld-powerpc/vle-multiseg-1.ld: New.
* ld-powerpc/vle-multiseg-2.d: New.
* ld-powerpc/vle-multiseg-2.ld: New.
* ld-powerpc/vle-multiseg-3.d: New.
* ld-powerpc/vle-multiseg-3.ld: New.
* ld-powerpc/vle-multiseg-4.d: New.
* ld-powerpc/vle-multiseg-4.ld: New.
* ld-powerpc/vle-multiseg-5.d: New.
* ld-powerpc/vle-multiseg-5.ld: New.
* ld-powerpc/vle-multiseg-6.d: New.
* ld-powerpc/vle-multiseg-6.ld: New.
* ld-powerpc/vle-multiseg-6a.s: New.
* ld-powerpc/vle-multiseg-6b.s: New.
* ld-powerpc/vle-multiseg-6c.s: New.
* ld-powerpc/vle-multiseg-6d.s: New.
* ld-powerpc/powerpc.exp: Run new tests.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

ld/
* NEWS:  Mention PowerPC VLE port.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

ld/testsuite/
* ld-powerpc/apuinfo.rd: Update for VLE.
* ld-powerpc/vle-reloc-1.d: New.
* ld-powerpc/vle-reloc-1.s: New.
* ld-powerpc/vle-reloc-2.d: New.
* ld-powerpc/vle-reloc-2.s: New.
* ld-powerpc/vle-reloc-3.d: New.
* ld-powerpc/vle-reloc-3.s: New.
* ld-powerpc/vle-reloc-def-1.s: New.
* ld-powerpc/vle-reloc-def-2.s: New.
* ld-powerpc/vle-reloc-def-3.s: New.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

opcodes/
* ppc-dis.c (get_powerpc_dialect): Use is_ppc_vle.
(PPC_OPCD_SEGS, VLE_OPCD_SEGS): New defines.
(vle_opcd_indices): New array.
(lookup_vle): New function.
(disassemble_init_powerpc): Revise for second (VLE) opcode table.
(print_insn_powerpc): Likewise.
* ppc-opc.c: Likewise.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
    Rhonda Wittels  <rhonda@codesourcery.com>
    Nathan Froyd <froydnj@codesourcery.com>

opcodes/
* ppc-opc.c (insert_arx, extract_arx): New functions.
(insert_ary, extract_ary): New functions.
(insert_li20, extract_li20): New functions.
(insert_rx, extract_rx): New functions.
(insert_ry, extract_ry): New functions.
(insert_sci8, extract_sci8): New functions.
(insert_sci8n, extract_sci8n): New functions.
(insert_sd4h, extract_sd4h): New functions.
(insert_sd4w, extract_sd4w): New functions.
(insert_vlesi, extract_vlesi): New functions.
(insert_vlensi, extract_vlensi): New functions.
(insert_vleui, extract_vleui): New functions.
(insert_vleil, extract_vleil): New functions.
  (BI_MASK, BB_MASK, BT): Use PPC_OPERAND_CR_BIT.
  (BI16, BI32, BO32, B8): New.
(B15, B24, CRD32, CRS): New.
  (CRD, OBF, BFA, CR, CRFS): Use PPC_OPERAND_CR_REG.
(DB, IMM20, RD, Rx, ARX, RY, RZ): New.
(ARY, SCLSCI8, SCLSCI8N, SE_SD, SE_SDH): New.
(SH6_MASK): Use PPC_OPSHIFT_INV.
(SI8, UI5, OIMM5, UI7, BO16): New.
(VLESIMM, VLENSIMM, VLEUIMM, VLEUIMML): New.
(XT6, XA6, XB6, XB6S, XC6): Use PPC_OPSHIFT_INV.
(ALLOW8_SPRG): New.
(insert_sprg, extract_sprg): Check ALLOW8_SPRG.
(OPVUP, OPVUP_MASK OPVUP): New
(BD8, BD8_MASK, BD8IO, BD8IO_MASK): New.
(EBD8IO, EBD8IO1_MASK, EBD8IO2_MASK, EBD8IO3_MASK): New.
(BD15, BD15_MASK, EBD15, EBD15_MASK, EBD15BI, EBD15BI_MASK): New.
(BD24,BD24_MASK, C_LK, C_LK_MASK, C, C_MASK): New.
  (IA16, IA16_MASK, I16A, I16A_MASK, I16L, I16L_MASK): New.
(IM7, IM7_MASK, LI20, LI20_MASK, SCI8, SCI8_MASK): New.
(SCI8BF, SCI8BF_MASK, SD4, SD4_MASK): New.
(SE_IM5, SE_IM5_MASK): New.
(SE_R, SE_R_MASK, SE_RR, SE_RR_MASK): New.
(EX, EX_MASK, BO16F, BO16T, BO32F, BO32T): New.
(BO32DNZ, BO32DZ): New.
(NO371, PPCSPE, PPCISEL, PPCEFS, MULHW): Include PPC_OPCODE_VLE.
(PPCVLE): New.
(powerpc_opcodes): Add new VLE instructions.  Update existing
instruction to include PPCVLE if supported.
* ppc-dis.c (ppc_opts): Add vle entry.
(get_powerpc_dialect): New function.
(powerpc_init_dialect): VLE support.
(print_insn_big_powerpc): Call get_powerpc_dialect.
(print_insn_little_powerpc): Likewise.
(operand_value_powerpc): Handle negative shift counts.
(print_insn_powerpc): Handle 2-byte instruction lengths.

12 years agoMAINTAINERS: clarify policy with config/ (and other top level files)
Ralf Corsepius [Sat, 12 May 2012 03:10:17 +0000 (03:10 +0000)]
MAINTAINERS: clarify policy with config/ (and other top level files)

Rather than copy & paste more text, just merge the existing config/
section with the existing intl/ section.  This ends up clarifying
the policy with that subdir (and top level files) that any commit
made to gcc's repo is allowed to be merged with the sourceware tree
without pre-approval.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago PR bootstrap/50461
Nick Clifton [Thu, 10 May 2012 13:42:02 +0000 (13:42 +0000)]
PR bootstrap/50461
* configure.ac (mpfr-dir): When using in-tree MPFR sources
allow for the fact that from release v3.1.0 of MPFR the source
files were moved into a src sub-directory.
* configure: Regenerate.

12 years ago * libc/include/string.h (memrchr): Declare.
Corinna Vinschen [Thu, 10 May 2012 08:34:05 +0000 (08:34 +0000)]
* libc/include/string.h (memrchr): Declare.
* libc/string/Makefile.am (ELIX_4_SOURCES): Add memrchr.c.
(CHEWOUT_FILES): Add memrchr.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/memrchr.c: New file.

12 years ago * libc/sys/rtems/machine/_types.h: Add Microblaze.
Corinna Vinschen [Thu, 10 May 2012 06:59:58 +0000 (06:59 +0000)]
* libc/sys/rtems/machine/_types.h: Add Microblaze.

12 years ago * libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),
Corinna Vinschen [Wed, 9 May 2012 09:03:05 +0000 (09:03 +0000)]
* libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),
_getpid_r(), geteuid(), getgid, _getgid_r, getpid(), getppid(),
and _getpid_r().