Get a bit further to building for avr:
        * configure.ac [avr-*-*]: Don't use AC_LIBTOOL_DLOPEN.
        * crossconfig.m4: Add avr-*-* settings.
        * configure: Regenerate.
        * include/bits/locale_facets_nonio.h (__tm_small_int): typedef/define.
        (_M_extract_num): Templatize base type of __member argument.
        (_M_extract_name): Change type of __member argument to __tm_small_int&.
        * include/bits/locale_facets_nonio.tcc (_M_extract_via_format) <Z>:
        Change type of __tmp to __tm_small_int.
        (_M_extract_num): Templatize base type of __member argument.
        (_M_extract_name): Change type of __member argument to __tm_small_int&.

Conflicts:
	libstdc++-v3/configure
        * config/avr/avr.c (avr_asm_function_rodata_section):
        When merging something into a function-specific section, always
        add the SECTION_CODE flag.

Conflicts:
	gcc/ChangeLog.AVR
        * config/avr/avr.c (avr_asm_function_rodata_section):
        Distinguish between ".progmem.gcc_sw_table" and "".gnu.linkonce.t.*"
        sections when decide what section flags to set.
        * config/avr/avr.c (TARGET_UNWIND_WORD_MODE): Define.
        (avr_unwind_word_mode): New function.
Merge branch 'avr-gcc-libstdcxx-2014' into avr-gcc-libstdcxx-2014-9

Conflicts:
	gcc/ChangeLog.AVR
	gcc/config/avr/avr.c
	libstdc++-v3/configure
        Allow check-c++ to work on avr:
        * Makefile.tpl (check-target-libgomp-c++): Always provide some rule.
        (check-target-libitm-c++): Likewise.
        * Makefile.in: Regenerate.
        * libstdc++-v3/testsuite/util/io/prog_bar.cc: Qualify size_t.
        * libstdc++-v3/testsuite/util/io/prog_bar.hpp: Likewise.
        * libstdc++-v3/testsuite/util/io/verified_cmd_line_input.hpp: Likewise,
        * testsuite/lib/gdb-test.exp (gdb_batch_check): Don't invoke
        gdb on cross targets.
libstdc++-v3:
        * testsuite/20_util/shared_ptr/creation/58594.cc (dg-options):
        Add -frtti.
        * testsuite/20_util/typeindex/comparison_operators.cc (dg-options):
        Likewise.
        * testsuite/20_util/typeindex/name.cc (dg-options): Likewise.
        * testsuite/23_containers/array/requirements/non_default_constructible.cc (dg-options):
        Likewise.
        * config/avr/avr.h (LIBSTDCXX): Don't define.
        * testsuite/18_support/type_info/hash_code.cc (dg-options): Add -frtti.
        * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc
        (dg-options): Likewise.
        * testsuite/20_util/shared_ptr/creation/private.cc (dg-options):
        Likewise.
        * testsuite/20_util/typeindex/hash.cc (dg-options): Likewise.
        * testsuite/20_util/typeindex/hash_code.cc (dg-options): Likewise.
        * testsuite/experimental/any/observers/type.cc (dg-options): Likewise.
Back out this patch:
	* config/avr/avr.h (POINTERS_EXTEND_UNSIGNED): Define.

And replace it with this:
	* cfgexpand.c (expand_debug_expr): Get address space from
	TARGET_MEM_REF.

Rationale: We don't know which signedness whould be really used for
POINTERS_EXTEND_UNSIGNED.  And for the failing avr2 strftime build,
the problem is really that we try to convert PSImode into HImode in
the first place.  The memory referece uses a 24 bit address, so this
is what we should be using for debugging.
Back out this patch:

2013-05-26  Joern Rennecke <joern.rennecke@embecosm.com>

        * config/avr/avr.h (WCHAR_TYPE, WINT_TYPE): Define to "int".

Rationale:
Reduce divergence from fsf sources.
WCHAR_TYPE is already defined as "int" in defaults.h .
WINT_TYPE is defined there as unsigned int.
This doesn't appear to make a difference in test results.
        * config/avr/genmultilib.awk: Remove Multilib matches processing.
        * config/avr/t-multilib: Regenerate.
As discussed: https://gcc.gnu.org/ml/gcc-patches/2014-10/msg00420.html

2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
            Jeff Law  <law@redhat.com>

        * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
        multiple hard registers, use smaller mode derived from MODE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216243 138bc75d-0d04-0410-961f-82ee72b054a4

Conflicts:
	gcc/ChangeLog
	gcc/caller-save.c
2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

	* config/avr/driver-avr.c (avr_set_current_device): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216932 138bc75d-0d04-0410-961f-82ee72b054a4

Conflicts:
	gcc/ChangeLog
    * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217051 138bc75d-0d04-0410-961f-82ee72b054a4

Conflicts:
	gcc/ChangeLog