[llvm-commits] [dragonegg] r153510 - /dragonegg/trunk/src/Backend.cpp
Duncan Sands
baldrick at free.fr
Tue Mar 27 05:32:54 PDT 2012
Author: baldrick
Date: Tue Mar 27 07:32:53 2012
New Revision: 153510
URL: http://llvm.org/viewvc/llvm-project?rev=153510&view=rev
Log:
Disable the same-body alias code when targetting gcc-4.7 for the moment.
With this, the plugin builds against gcc-4.7.
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=153510&r1=153509&r2=153510&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Tue Mar 27 07:32:53 2012
@@ -57,7 +57,7 @@
#undef HAVE_DECL_GETOPT
#include "system.h"
#include "coretypes.h"
-#include "target.h"
+#include "tm.h"
#include "tree.h"
#include "debug.h"
@@ -71,6 +71,7 @@
#ifndef DISABLE_VERSION_CHECK
#include "plugin-version.h"
#endif
+#include "target.h" // For targetm.
#include "toplev.h"
#include "tree-flow.h"
#include "tree-pass.h"
@@ -1582,6 +1583,8 @@
InitializeBackend();
+// FIXME: Work out what needs to be done here for gcc-4.7.
+#if (GCC_MINOR < 7)
// Emit any same-body aliases in the order they were created.
SmallPtrSet<tree, 32> Visited;
for (cgraph_node_set_iterator csi = csi_start(set); !csi_end_p(csi);
@@ -1598,6 +1601,7 @@
emit_same_body_alias(alias, node);
}
}
+#endif
}
/// pass_emit_aliases - IPA pass that converts same-body aliases and file-scope
More information about the llvm-commits
mailing list