Minor fix to gcc 4.8 release.

This CL includes the following changes -
 - backport rev202712 from gcc-4_8-branch (include a source modification and testcase)
 - x86_64 and arm dejagnu baseline for this branch (baseline only, no analysis yet)
 - missing .gitignore

None of the above modification changes the code gen.

TEST=remote board hwtest (still on going) and 1-1 binary comparison for all ELF files
BUG=None

Change-Id: I6d8f5bff52f201387d7034c448d4cad4fa717b3c
Reviewed-on: https://chromium-review.googlesource.com/181765
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Han Shen <shenhan@google.com>
Commit-Queue: Han Shen <shenhan@chromium.org>
Tested-by: Han Shen <shenhan@chromium.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bda55a3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,42 @@
+*.diff
+*.patch
+*.orig
+*.rej
+
+*~
+.#*
+*#
+
+*.flt
+*.gmo
+*.info
+*.la
+*.lo
+*.o
+*.pyc
+*.tmp
+
+.deps
+.libs
+
+autom4te.cache
+config.cache
+config.h
+config.intl
+config.log
+config.status
+libtool
+POTFILES
+*-POTFILES
+
+TAGS
+TAGS.sub
+
+.gdbinit
+.gdb_history
+
+# ignore core files, but not java/net/protocol/core/
+core
+!core/
+
+lost+found
diff --git a/contrib/testsuite-management/cross-armv7a-cros-linux-gnueabi.xfail b/contrib/testsuite-management/cross-armv7a-cros-linux-gnueabi.xfail
new file mode 100644
index 0000000..37507f1
--- /dev/null
+++ b/contrib/testsuite-management/cross-armv7a-cros-linux-gnueabi.xfail
@@ -0,0 +1,57 @@
+FAIL: c-c++-common/Wunused-local-typedefs.c -std=gnu++98  (test for warnings, line 9)
+FAIL: c-c++-common/Wunused-local-typedefs.c -std=gnu++11  (test for warnings, line 9)
+FAIL: c-c++-common/Wunused-local-typedefs.c -Wc++-compat   (test for warnings, line 9)
+FAIL: g++.dg/ipa/devirt-11.C -std=gnu++98  scan-ipa-dump-times inline "and turned into root of the clone tree" 1
+FAIL: g++.dg/ipa/devirt-11.C -std=gnu++11  scan-ipa-dump-times inline "and turned into root of the clone tree" 1
+FAIL: g++.dg/warn/Wself-assign-2.C -std=gnu++11  (test for warnings, line 12)
+FAIL: g++.dg/warn/Wunused-local-typedefs.C -std=gnu++98  (test for warnings, line 8)
+FAIL: g++.dg/warn/Wunused-local-typedefs.C -std=gnu++98  (test for warnings, line 122)
+FAIL: g++.dg/warn/Wunused-local-typedefs.C -std=gnu++98  (test for warnings, line 142)
+FAIL: g++.dg/warn/Wunused-local-typedefs.C -std=gnu++11  (test for warnings, line 8)
+FAIL: g++.dg/warn/Wunused-local-typedefs.C -std=gnu++11  (test for warnings, line 122)
+FAIL: g++.dg/warn/Wunused-local-typedefs.C -std=gnu++11  (test for warnings, line 142)
+FAIL: gcc.dg/Wunused-local-typedefs.c (test for warnings, line 13)
+FAIL: gcc.dg/Wunused-local-typedefs.c (test for warnings, line 24)
+FAIL: gcc.dg/Wunused-local-typedefs.c (test for warnings, line 35)
+FAIL: gcc.dg/builtin-apply2.c execution test
+FAIL: gcc.dg/c99-stdint-1.c (test for excess errors)
+FAIL: gcc.dg/c99-stdint-7.c (test for excess errors)
+FAIL: gcc.dg/inline_3.c (test for excess errors)
+FAIL: gcc.dg/inline_4.c (test for excess errors)
+FAIL: gcc.dg/ipa/ipcp-agg-7.c scan-ipa-dump-times cp "Clone of foo" 1
+FAIL: gcc.dg/ipa/ipcp-agg-7.c scan-tree-dump-not optimized "->c;"
+FAIL: gcc.dg/tls/pr42894.c (test for excess errors)
+FAIL: gcc.dg/tree-ssa/pr42585.c scan-tree-dump-times optimized "struct _fat_ptr _ans" 0
+FAIL: gcc.dg/tree-ssa/pr42585.c scan-tree-dump-times optimized "struct _fat_ptr _T2" 0
+FAIL: gcc.dg/tree-ssa/pr43491.c scan-tree-dump-times pre "Eliminated: 3" 1
+FAIL: gcc.dg/tree-ssa/sra-12.c scan-tree-dump-times release_ssa "l;" 0
+FAIL: gcc.dg/wself-assign-1.c (test for warnings, line 15)
+FAIL: gcc.dg/wself-assign-1.c (test for warnings, line 19)
+FAIL: gcc.dg/wself-assign-1.c (test for warnings, line 20)
+FAIL: gcc.dg/wself-assign-1.c (test for warnings, line 21)
+FAIL: gcc.dg/wself-assign-1.c (test for warnings, line 22)
+FAIL: gcc.target/arm/builtin-bswap-1.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/builtin-bswap-1.c scan-assembler-not orr[ \t]
+UNRESOLVED: gcc.target/arm/builtin-bswap-1.c scan-assembler-times revsh\\t 2
+UNRESOLVED: gcc.target/arm/builtin-bswap-1.c scan-assembler-times rev16\\t 2
+UNRESOLVED: gcc.target/arm/builtin-bswap-1.c scan-assembler-times rev\\t 4
+FAIL: gcc.target/arm/builtin-bswap16-1.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/builtin-bswap16-1.c scan-assembler-not orr[ \t]
+FAIL: gcc.target/arm/g2.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/g2.c scan-assembler mla[ \t].*
+FAIL: gcc.target/arm/pr40887.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/pr40887.c scan-assembler blx
+FAIL: gcc.target/arm/scd42-1.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/scd42-1.c scan-assembler mov[ \t].*17
+FAIL: gcc.target/arm/scd42-2.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/scd42-2.c scan-assembler mov[ \t].*272
+FAIL: gcc.target/arm/scd42-3.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/scd42-3.c scan-assembler ldr[ \t].*
+FAIL: gcc.target/arm/thumb-ltu.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/thumb-ltu.c scan-assembler-not uxtb
+FAIL: gcc.target/arm/unsigned-extend-1.c scan-assembler-not uxtb
+FAIL: gcc.target/arm/volatile-bitfields-1.c scan-assembler ldrb[\\t ]+[^\n]*,[\\t ]*\\[[^\n]*\\]
+FAIL: gcc.target/arm/xor-and.c (test for excess errors)
+UNRESOLVED: gcc.target/arm/xor-and.c scan-assembler orr
+UNRESOLVED: gcc.target/arm/xor-and.c scan-assembler-not mvn
+UNRESOLVED: gcc.target/arm/xor-and.c scan-assembler-not uxth
diff --git a/contrib/testsuite-management/cross-x86_64-cros-linux-gnu.xfail b/contrib/testsuite-management/cross-x86_64-cros-linux-gnu.xfail
new file mode 100644
index 0000000..6f2d5aa
--- /dev/null
+++ b/contrib/testsuite-management/cross-x86_64-cros-linux-gnu.xfail
@@ -0,0 +1,46 @@
+## Source directory: /usr/local/toolchain_root/gcc
+## Build target:     x86_64-cros-linux-gnu
+## Manifest:         /usr/local/toolchain_root/gcc/contrib/testsuite-management/x86_64-cros-linux-gnu.xfail
+## Getting actual results from build
+## 	/usr/local/toolchain_root/gcc-build-x86_64-cros-linux-gnu/gcc/testsuite/g++/g++.sum
+## 	/usr/local/toolchain_root/gcc-build-x86_64-cros-linux-gnu/gcc/testsuite/gcc/gcc.sum
+## 
+## 
+## Build results not in the manifest
+UNRESOLVED: g++.dg/tree-prof/callgraph-profiles.C scan-file .text.*.main\n.text.*._Z3barv\n.text.*._Z3foov\n.text.*._Z9notcalledv
+UNRESOLVED: g++.dg/tree-prof/callgraph-profiles.C scan-file Callgraph group : main _Z3barv _Z3foov\n
+UNRESOLVED: g++.dg/tree-prof/callgraph-profiles.C scan-file Moving 1 section\\(s\\) to new segment
+FAIL: g++.dg/tree-prof/mversn15.C scan-tree-dump optimized "return 0"
+FAIL: g++.dg/tree-prof/mversn15.C scan-tree-dump optimized "main_clone"
+FAIL: g++.dg/warn/Wself-assign-2.C -std=gnu++11  (test for warnings, line 12)
+FAIL: gcc.dg/thread_annot_lock-23.c (test for warnings, line 10)
+FAIL: gcc.dg/thread_annot_lock-23.c (test for warnings, line 19)
+FAIL: gcc.dg/thread_annot_lock-23.c (test for warnings, line 15)
+FAIL: gcc.dg/thread_annot_lock-23.c (test for warnings, line 13)
+FAIL: gcc.dg/thread_annot_lock-23.c (test for warnings, line 18)
+FAIL: gcc.dg/thread_annot_lock-24.c (test for warnings, line 9)
+FAIL: gcc.dg/thread_annot_lock-24.c (test for warnings, line 10)
+FAIL: gcc.dg/thread_annot_lock-24.c (test for warnings, line 8)
+FAIL: gcc.dg/thread_annot_lock-25.c (test for warnings, line 22)
+FAIL: gcc.dg/thread_annot_lock-25.c (test for warnings, line 30)
+FAIL: gcc.dg/thread_annot_lock-25.c (test for warnings, line 8)
+FAIL: gcc.dg/thread_annot_lock-25.c (test for warnings, line 10)
+FAIL: gcc.dg/thread_annot_lock-25.c (test for warnings, line 9)
+FAIL: gcc.dg/thread_annot_lock-42.c (test for warnings, line 9)
+XPASS: gcc.dg/unroll_2.c (test for excess errors)
+XPASS: gcc.dg/unroll_3.c (test for excess errors)
+XPASS: gcc.dg/unroll_4.c (test for excess errors)
+UNRESOLVED: gcc.target/i386/patch-functions-1.c scan-assembler ret(.*).byte\t0x90(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-1.c scan-assembler .byte\t0xeb,0x09(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-2.c scan-assembler-not ret(.*).byte\t0x90(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-2.c scan-assembler-not .byte\t0xeb,0x09(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-3.c scan-assembler ret(.*).byte\t0x90(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-3.c scan-assembler .byte\t0xeb,0x09(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-4.c scan-assembler-not ret(.*).byte\t0x90(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-4.c scan-assembler-not .byte\t0xeb,0x09(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-5.c scan-assembler .byte\t0xeb,0x09(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-5.c scan-assembler ret(.*).byte\t0x90(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-6.c scan-assembler .byte\t0xeb,0x09(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-6.c scan-assembler ret(.*).byte\t0x90(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-7.c scan-assembler-not ret(.*).byte\t0x90(.*).byte\t0x90
+UNRESOLVED: gcc.target/i386/patch-functions-7.c scan-assembler-not .byte\t0xeb,0x09(.*).byte\t0x90
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index ea321b8..578c92b 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -7508,7 +7508,7 @@
      dependent on overload resolution.  */
   gcc_assert (TREE_CODE (rhs) == ADDR_EXPR
 	      || TREE_CODE (rhs) == COMPONENT_REF
-	      || really_overloaded_fn (rhs)
+	      || is_overloaded_fn (rhs)
 	      || (flag_ms_extensions && TREE_CODE (rhs) == FUNCTION_DECL));
 
   /* This should really only be used when attempting to distinguish
diff --git a/gcc/testsuite/ada/.gitignore b/gcc/testsuite/ada/.gitignore
new file mode 100644
index 0000000..a499072
--- /dev/null
+++ b/gcc/testsuite/ada/.gitignore
@@ -0,0 +1,2 @@
+# In the Ada testsuite, .a is an ada source file, not a library.
+!*.a
diff --git a/gcc/testsuite/g++.dg/parse/using4.C b/gcc/testsuite/g++.dg/parse/using4.C
new file mode 100644
index 0000000..2abe399
--- /dev/null
+++ b/gcc/testsuite/g++.dg/parse/using4.C
@@ -0,0 +1,20 @@
+// PR c++/58457
+
+struct allocator
+{
+  void operator delete (void*);
+  void* operator new (__SIZE_TYPE__, void*);
+};
+
+struct type : public allocator
+{
+  type() {}
+  using allocator::operator new;
+  using allocator::operator delete;
+};
+
+int main()
+{
+  new (0) type;
+  return 0;
+}
diff --git a/libatomic/.gitignore b/libatomic/.gitignore
new file mode 100644
index 0000000..361f15c
--- /dev/null
+++ b/libatomic/.gitignore
@@ -0,0 +1,2 @@
+autom4te.cache
+auto-config.h.in~
diff --git a/libdecnumber/.gitignore b/libdecnumber/.gitignore
new file mode 100644
index 0000000..7e47161
--- /dev/null
+++ b/libdecnumber/.gitignore
@@ -0,0 +1 @@
+/gstdint.h
diff --git a/libiberty/.gitignore b/libiberty/.gitignore
new file mode 100644
index 0000000..ca2fba5cc
--- /dev/null
+++ b/libiberty/.gitignore
@@ -0,0 +1,2 @@
+/required-list
+/xhost-mkfrag