gcc/gcc ChangeLog.apple-ppc bb-reorder.c cfgcl ...
ctice@gcc.gnu.org
ctice@gcc.gnu.org
Wed May 26 23:49:00 GMT 2004
CVSROOT: /cvs/gcc
Module name: gcc
Branch: apple-ppc-branch
Changes by: ctice@gcc.gnu.org 2004-05-26 20:48:30
Modified files:
gcc : ChangeLog.apple-ppc bb-reorder.c cfgcleanup.c
cfglayout.c cfgrtl.c final.c predict.c varasm.c
gcc/config/rs6000: darwin.h
Log message:
This fixes radar 3610713 (twolf regression with partitioning), as well as some
other minor bugs/problems with hot/cold partitioning.
2004-05-26 Caroline Tice <ctice@apple.com>
* bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
Initialize variable 'has_hot_blocks'.
(fix_up_fall_thru_edges): Initialize variable'cond_jump'.
* cfgcleanup.c (try_forward_edges): Add code/tests to make sure the
optimization is not attempted across section boundaries.
* cfglayout.c (fixup_reorder_chain): Correct comments.
* cfgrtl.c (try_redirect_by_replacing_jump): Fix test to make sure
optimization is not attempted across section boundaries.
* final.c (final_scan_instruction): Replace calls to text_section with
calls to function_section.
* predict.c (probably_never_executed_bb_p): Change criterion to be
basic block count equals zero.
* varasm.c (unlikely_text_section_name): New global variable.
(text_section): Remove call to assemble_align.
(unlikely_text_section): Modify to build & use unlikely_text_section_name
rather than directly using UNLIKELY_EXECUTED_TEXT_SECTION NAME; remove
call to assemble_align; move code to free/initialize
unlikely_section_label to assemble_start_function.
(in_unlikely_text_section): Modify to use unlikely_text_section_name.
(named_section): Add code to initialize unlikely_text_section_name if
appropriate.
(function_section): Reorder clauses in if statement to make sure
functions containing only cold blocks end up in the correct section.
(assemble_start_function): Add code to correctly initialize/free
unlikely_text_section_name. Also make sure the cold label is printed
out at the start of cold functions.
(default_section_type_flags_1): Modify to use unlikely_text_section_name.
* config/rs6000/darwin.h (HAS_LONG_UNCOND_BRANCH): Add darwin-specific
definition, based on the TARGET_LONG_BRANCH (-mlongcall) flag.
Approved by Dale Johanessen.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.46&r2=1.1.2.47
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/bb-reorder.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.49.2.9.2.2&r2=1.49.2.9.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cfgcleanup.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.62.2.24.2.1&r2=1.62.2.24.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cfglayout.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.19.2.21.2.3&r2=1.19.2.21.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cfgrtl.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.57.2.33.2.3&r2=1.57.2.33.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/final.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.262.2.26.2.2&r2=1.262.2.26.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/predict.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.71.2.23.2.2&r2=1.71.2.23.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.295.2.47.2.8&r2=1.295.2.47.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/darwin.h.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.21.2.18.2.11&r2=1.21.2.18.2.12
More information about the Gcc-cvs
mailing list