[dragonegg] r182239 - The plugin won't execute properly with gcc before 4.8 if an rtl pass is used

Duncan Sands baldrick at free.fr
Mon May 20 01:33:41 PDT 2013


Author: baldrick
Date: Mon May 20 03:33:40 2013
New Revision: 182239

URL: http://llvm.org/viewvc/llvm-project?rev=182239&view=rev
Log:
The plugin won't execute properly with gcc before 4.8 if an rtl pass is used
here.

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=182239&r1=182238&r2=182239&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Mon May 20 03:33:40 2013
@@ -2443,7 +2443,11 @@ int __attribute__((visibility("default")
   register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
 
   // Turn off all other rtl passes.
+#if (GCC_MINOR < 8)
+  pass_info.pass = &pass_gimple_null.pass;
+#else
   pass_info.pass = &pass_rtl_null.pass;
+#endif
   pass_info.reference_pass_name = "*rest_of_compilation";
   pass_info.ref_pass_instance_number = 0;
   pass_info.pos_op = PASS_POS_REPLACE;





More information about the llvm-commits mailing list