Workaround for Chrome crash report missing some symbols.

After the roll of GCC to version 4.9, we found that crash reports
are missing some symbols. We are working on a compiler fix but
in the meantime we will disable the compiler optimization that is
causing the problem (-fno-reorder-blocks-and-partition).

BUG=chromium:434114
TEST=cbuildbot link-release daisy-release freon-release x86-alex-release

Change-Id: Ifa7f2b64c2c59e698744bb6e260bc79ec4c10a5f
Reviewed-on: https://chromium-review.googlesource.com/231114
Reviewed-by: Dharani Govindan <dharani@chromium.org>
Tested-by: Dharani Govindan <dharani@chromium.org>
diff --git a/sys-devel/gcc/files/sysroot_wrapper.hardened b/sys-devel/gcc/files/sysroot_wrapper.hardened
index c6fd5da..beb8442 100755
--- a/sys-devel/gcc/files/sysroot_wrapper.hardened
+++ b/sys-devel/gcc/files/sysroot_wrapper.hardened
@@ -47,8 +47,10 @@
 
 # Full hardening. Some/all of these may be discarded depending on
 # other flags.
+# Temporarily disable function splitting because of chromium:434751.
 flags_to_add = set(['-fstack-protector-strong', '-fPIE', '-pie',
-                    '-D_FORTIFY_SOURCE=2', '-frecord-gcc-switches'])
+                    '-D_FORTIFY_SOURCE=2', '-frecord-gcc-switches',
+                    '-fno-reorder-blocks-and-partition'])
 x86_disable_flags = set(['-mno-movbe'])
 
 # Only FORTIFY_SOURCE hardening flag is applicable for clang.
diff --git a/sys-devel/gcc/gcc-4.9.1-r78.ebuild b/sys-devel/gcc/gcc-4.9.1-r79.ebuild
similarity index 100%
rename from sys-devel/gcc/gcc-4.9.1-r78.ebuild
rename to sys-devel/gcc/gcc-4.9.1-r79.ebuild