[dragonegg] r182271 - Disable this compile time optimization when using gcc-4.8 since otherwise it
Duncan Sands
baldrick at free.fr
Mon May 20 07:15:15 PDT 2013
Author: baldrick
Date: Mon May 20 09:15:14 2013
New Revision: 182271
URL: http://llvm.org/viewvc/llvm-project?rev=182271&view=rev
Log:
Disable this compile time optimization when using gcc-4.8 since otherwise it
asserts.
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=182271&r1=182270&r2=182271&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Mon May 20 09:15:14 2013
@@ -1189,7 +1189,9 @@ static void emit_global(tree decl) {
assert(SizeOfGlobalMatchesDecl(GV, decl) && "Global has wrong size!");
// Mark the global as written so gcc doesn't waste time outputting it.
+#if (GCC_MINOR < 8)
TREE_ASM_WRITTEN(decl) = 1;
+#endif
// Output any associated aliases.
if (isa<VAR_DECL>(decl))
More information about the llvm-commits
mailing list