Workround for Google ref b/6663281 Appends -fno-section-anchors to -fprofile-{generate,use} -fripa, for powerpc targets only. No-op ...
12 years, 8 months ago
(2012-08-01 10:49:10 UTC)
#1
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
On 12-08-01 03:49 , Simon Baldwin wrote: > Workround for Google ref b/6663281 > > ...
12 years, 8 months ago
(2012-08-01 13:55:27 UTC)
#2
On 12-08-01 03:49 , Simon Baldwin wrote:
> 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
OK.
Diego.
Issue 6443071: [google/main] Add -fno-section-anchors for powerpc, workround for Google ref b/6663281
Created 12 years, 8 months ago by simonb
Modified 12 years, 8 months ago
Reviewers: Diego Novillo
Base URL: svn+ssh://gcc.gnu.org/svn/gcc/branches/google/main/
Comments: 0