This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r205594 - in /branches/google/gcc-4_8/gcc: cfgc...
- From: tejohnson at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 02 Dec 2013 18:28:19 -0000
- Subject: r205594 - in /branches/google/gcc-4_8/gcc: cfgc...
Author: tejohnson
Date: Mon Dec 2 18:28:19 2013
New Revision: 205594
URL: http://gcc.gnu.org/viewcvs?rev=205594&root=gcc&view=rev
Log:
Backport the last few fixes for -freorder-blocks-and-partition from
trunk to google/4_8: r204985, r205057 and r205243
------------------------------------------------------------------------
r204985 | tejohnson | 2013-11-18 14:38:51 -0800 (Mon, 18 Nov 2013) | 15 lines
This patch fixes an lto profiledbootstrap failure with
-freorder-blocks-and-partition enabled. Currently compgotos
is the only pass that goes into cfglayout mode after bb reordering,
which is undesireable (and in the case of -freorder-blocks-and-partition
can cause illegal partitioning) because of the optimizations performed
on the cfg when going into cfglayout mode. Moved compgoto before
bb reordering to avoid these problems.
2013-11-18 Teresa Johnson <tejohnson@google.com>
* gcc/cfgrtl.c (cfg_layout_initialize): Assert if we
try to go into cfglayout after bb reordering.
* gcc/passes.def: Move compgotos before bb reordering
since it goes into cfglayout.
------------------------------------------------------------------------
------------------------------------------------------------------------
r205057 | tmsriram | 2013-11-19 14:12:21 -0800 (Tue, 19 Nov 2013) | 7 lines
Emit a label for the split cold function part. Label name is formed by
suffixing the original function name with "cold".
Patch tested for bootstrap on all default languages on x86_64 and
regression testsuite checked for parity with RUNTESTFLAGS -m32 and m64.
2013-11-19 Sriraman Tallam <tmsriram@google.com>
* final.c (final_scan_insn): Emit a label for the split
cold function part. Label name is formed by suffixing
the original function name with "cold".
2013-11-19 Sriraman Tallam <tmsriram@google.com>
* gcc.dg/tree-prof/cold_partition_label.c: New testcase.
------------------------------------------------------------------------
------------------------------------------------------------------------
r205243 | tejohnson | 2013-11-21 20:16:47 -0800 (Thu, 21 Nov 2013) | 6 lines
2013-11-21 Teresa Johnson <tejohnson@google.com>
* cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
not understood by old_insns_match_p.
------------------------------------------------------------------------
Added:
branches/google/gcc-4_8/gcc/testsuite/gcc.dg/tree-prof/cold_partition_label.c
Modified:
branches/google/gcc-4_8/gcc/cfgcleanup.c
branches/google/gcc-4_8/gcc/cfgrtl.c
branches/google/gcc-4_8/gcc/final.c
branches/google/gcc-4_8/gcc/passes.c