#pragma O0 fails on GCC 4.4 with an Internal Compiler Error. -- bug 621446, r=honzab

This pragma was only to investigate another crash on Android, but breaks compile
on g++ 4.4 64bit, e.g. on Ubuntu 10.04 64bit.
Thus, enable that pragma only on Android.
This commit is contained in:
Ben Bucksch 2012-04-09 11:11:53 +02:00
parent 6753ab6fd3
commit 410f4e95ea

View File

@ -331,12 +331,15 @@ HttpChannelParent::RecvUpdateAssociatedContentSecurity(const PRInt32& high,
return true;
}
// Bug 621446 investigation, we don't want conditional PR_Aborts bellow to be
// Bug 621446 investigation, we don't want conditional PR_Aborts below to be
// merged to a single address.
#ifdef _MSC_VER
#pragma warning(disable : 4068)
#endif
#ifdef ANDROID
// Compiling this with GCC <= 4.4 fails with an internal compiler error
#pragma GCC optimize ("O0")
#endif
bool
HttpChannelParent::RecvRedirect2Verify(const nsresult& result,