This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[google/main] Add -fno-section-anchors for powerpc, workround for Google ref b/6663281 (issue6443071)
- From: simonb at google dot com (Simon Baldwin)
- To: reply at codereview dot appspotmail dot com,gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Aug 2012 05:49:09 -0500 (CDT)
- Subject: [google/main] Add -fno-section-anchors for powerpc, workround for Google ref b/6663281 (issue6443071)
Workround for Google ref b/6663281
Appends -fno-section-anchors to -fprofile-{generate,use} -fripa, for powerpc
targets only. No-op for other targets.
For google/main. Tested for bootstrap and regression.
2012-08-01 Simon Baldwin <simonb@google.com>
* gcc/testsuite/gcc.dg/tree-prof/lipo/lipo.exp: Append
-fno-section-anchors to profile_option and feedback_option for
powerpc targets. Workround for Google ref b/6663281.
* gcc/testsuite/g++.dg/tree-prof/lipo/lipo.exp: Likewise
Index: gcc/testsuite/gcc.dg/tree-prof/lipo/lipo.exp
===================================================================
--- gcc/testsuite/gcc.dg/tree-prof/lipo/lipo.exp (revision 190013)
+++ gcc/testsuite/gcc.dg/tree-prof/lipo/lipo.exp (working copy)
@@ -45,6 +45,12 @@ load_lib profopt.exp
set profile_option "-fprofile-generate -fripa -D_PROFILE_GENERATE"
set feedback_option "-fprofile-use -fripa -D_PROFILE_USE"
+# Add -fno-section-anchors for powerpc. Workround for Google ref b/6663281
+if {[istarget powerpc*-*-*]} {
+ set profile_option "$profile_option -fno-section-anchors"
+ set feedback_option "$feedback_option -fno-section-anchors"
+}
+
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*_0.c]] {
# If we're only testing specific files and this isn't one of them, skip it.
if ![runtest_file_p $runtests $src] then {
Index: gcc/testsuite/g++.dg/tree-prof/lipo/lipo.exp
===================================================================
--- gcc/testsuite/g++.dg/tree-prof/lipo/lipo.exp (revision 190013)
+++ gcc/testsuite/g++.dg/tree-prof/lipo/lipo.exp (working copy)
@@ -45,6 +45,12 @@ load_lib profopt.exp
set profile_option "-fprofile-generate -fripa"
set feedback_option "-fprofile-use -fripa"
+# Add -fno-section-anchors for powerpc. Workround for Google ref b/6663281
+if {[istarget powerpc*-*-*]} {
+ set profile_option "$profile_option -fno-section-anchors"
+ set feedback_option "$feedback_option -fno-section-anchors"
+}
+
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*_0.C]] {
# If we're only testing specific files and this isn't one of them, skip it.
if ![runtest_file_p $runtests $src] then {
--
This patch is available for review at http://codereview.appspot.com/6443071