Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: test/cctest/test-ostreams.cc

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/test-ostreams.cc
diff --git a/test/cctest/test-ostreams.cc b/test/cctest/test-ostreams.cc
index c83f96d4665eb67e1fbdc8bb9c201d3283b86ed1..eab062e818ce01534d334796cb65d2ffcc585d31 100644
--- a/test/cctest/test-ostreams.cc
+++ b/test/cctest/test-ostreams.cc
@@ -103,6 +103,10 @@ TEST(NumericFormatting) {
}
+#if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ <= 4)
+// Work around bad optimization by GCC 4.4.6 on PPC Linux
+#pragma GCC optimize "O0"
+#endif
TEST(CharacterOutput) {
check<char>("a a", 'a');
check<signed char>("B B", 'B');
@@ -113,6 +117,9 @@ TEST(CharacterOutput) {
os.put('H').write("ello", 4);
CHECK_EQ("Hello", os.c_str());
}
+#if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ <= 4)
+#pragma GCC reset_options
+#endif
TEST(Manipulators) {

Powered by Google App Engine
This is Rietveld 408576698