[llvm-commits] [dragonegg] r139142 - /dragonegg/trunk/src/Backend.cpp

Duncan Sands baldrick at free.fr
Tue Sep 6 08:05:17 PDT 2011


Author: baldrick
Date: Tue Sep  6 10:05:17 2011
New Revision: 139142

URL: http://llvm.org/viewvc/llvm-project?rev=139142&view=rev
Log:
Enable segmented stacks when compiling Go.

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=139142&r1=139141&r2=139142&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Tue Sep  6 10:05:17 2011
@@ -322,6 +322,10 @@
     Args.push_back("--ffunction-sections");
   if (flag_data_sections)
     Args.push_back("--fdata-sections");
+#if (GCC_MINOR > 5)
+  if (flag_split_stack)
+    Args.push_back("--segmented-stacks");
+#endif
 
   // If there are options that should be passed through to the LLVM backend
   // directly from the command line, do so now.  This is mainly for debugging





More information about the llvm-commits mailing list