Based on an idea from Christian Ruppert
	<christian.ruppert@abilis.com>

	* build-all.sh: Add --uclibc-defconfig option, setting
	UCLIBC_DEFCFG environment variable.
	* build-uclibc.sh: Use UCLIBC_DEFCFG environment variable to
	specify defconfig for uClibc.
	* build-kernel.sh: Use define-release.sh and associated
	environment variables.

Conflicts (resolved):
	ChangeLog
	* build-elf32.sh: Remove --disable-werror from configuration.
	* build-uclibc.sh: Likewise.
Resolve problem of installed newlib having symbolic links to source tree:

	* build-all.sh: Don't symlink-all newlib, instead just symlink the
	top level directories.
        * build-all.sh: Add --disable-werror and --no-disable-werror options.
        * build-elf32.sh: Add DISABLEWERROR to configure.
        * build-uclibc.sh: Likewise.
	* arc-clone-all.sh: More comprehensive version of the script.
	* README.md: Use HTTPS versions of repository URLs.
Unset some environment variables for example CROSS_COMPILE and ARCH

Tools makefiles recognize these variable and might use them in an undesirable way. For example CROSS_COMPILE has a predence over toolchain we are building and this for example might cause a big endian toolchain to have little endian standard libraries.

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>
Format lines to wrapped at 80 characters

Previous commit had very long lines. This commit wraps them to be no more that 80 characters long.

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>
	* arc-versions.sh: Update branch names to new naming convention.
Fix problem with building kernel and undefined environment variables

	* build-kernel.sh: Move use of all relevant env variables to after
	define-release.sh.
Remove bash dependencies

	* build-all.sh: Eliminate dependency on bash extensions when
	testing for pre-set environment variables.
	* arc-versions.sh: Update uClibc branch name to new naming convention.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
        * dejagnu/baseboards/arc-sim.exp: Comment out inapplicable settings:
        needs_status_wrapper, noargs, noresults, noinferiorio
Only check for linux directory if needed.

	* build-all.sh: Only check for Linux directory with if uClibc is
	being built.
Only use linux in arc-versions.sh if building uClibc

	* arc-versions.sh: Only use Linux if --uclibc is set (new
	argument)
	* build-all.sh: Pass uclibc argument to arc-versions.sh
Add option to auto download GMP, MPFR and MPC

GCC depends on GMP, MPFR and MPC. However on some systems, notably
RHEL/CentOS, those packages are not available in official repositories or
only obsolete versions are available. With this patch arc-versions.sh will
download source tarballs of these dependencies and place them inside gcc
directory. GCC makefiles are smart enough to use those instead of packages
installed on system. Those dependencies will be linked statically inside
GCC.

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>
(cherry picked from commit de1d73b46fdca1f9b513e984574d913902c97e1d)
Merge branch 'arc-4.8-dev' of git://github.com/foss-for-synopsys-dwc-arc-processors/toolchain into arc-4.8-dev

Conflicts:
	ChangeLog
Mention that Git tags should be used to obtain stable releases

Also remove duplicate commands, fix typos and GFM syntax errors.

(cherry picked from commit abc32c27143eecc322ab5ccee8288e792cd3b432)
Do not use testglue for nSIM ELF32 toolchain tests

ARC newlib doesn't have function _exit, however Dejagnu testglue is intended
to wrap around it. Thus function _exit() gets created even though it is
never called. When performing execution tests Dejagnu sets breakpoints at
"exit" functions: abort() and _exit(), if it couldn't set at _exit() then at
exit(). That latter case should be applied to ARC, but instead we get
breakpoint at function created by testglue which is never called.

This patch explicitly request Dejagnu to not use testglue. GCC testsuite
uses `board_info needs_status_wrapper` to define whether testglue is needed.
Upstream binutils doesn't have this change, so binutils testsuite must be
patched for this to work properly.
(cherry picked from commit 928c87d74c83c72aaa1b3979ab4d2ed01ae88acd)
Correct configuration for GDB testsuite in nSIM
(cherry picked from commit 9dd35e1a9e37d3638243f238c6af3a568aade1c0)