[llvm-commits] [dragonegg] r153830 - in /dragonegg/trunk: include/dragonegg/Trees.h src/Constants.cpp
Duncan Sands
baldrick at free.fr
Sun Apr 1 03:11:05 PDT 2012
Author: baldrick
Date: Sun Apr 1 05:11:05 2012
New Revision: 153830
URL: http://llvm.org/viewvc/llvm-project?rev=153830&view=rev
Log:
Fix compilation when building against gcc-4.5.
Modified:
dragonegg/trunk/include/dragonegg/Trees.h
dragonegg/trunk/src/Constants.cpp
Modified: dragonegg/trunk/include/dragonegg/Trees.h
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/include/dragonegg/Trees.h?rev=153830&r1=153829&r2=153830&view=diff
==============================================================================
--- dragonegg/trunk/include/dragonegg/Trees.h (original)
+++ dragonegg/trunk/include/dragonegg/Trees.h Sun Apr 1 05:11:05 2012
@@ -23,6 +23,11 @@
#ifndef DRAGONEGG_TREES_H
#define DRAGONEGG_TREES_H
+#include "tree.h"
+#if (GCC_MINOR < 7)
+#include "flags.h" // For TYPE_OVERFLOW_UNDEFINED.
+#endif
+
// IMPORTANT: ONLY INCLUDE GCC HEADERS IN THIS FILE! ONLY INCLUDE THIS HEADER
// AMONGST THE STANDARD GCC HEADERS!
Modified: dragonegg/trunk/src/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Constants.cpp?rev=153830&r1=153829&r2=153830&view=diff
==============================================================================
--- dragonegg/trunk/src/Constants.cpp (original)
+++ dragonegg/trunk/src/Constants.cpp Sun Apr 1 05:11:05 2012
@@ -46,8 +46,9 @@
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
+
#if (GCC_MINOR < 7)
-#include "flags.h" // For TYPE_OVERFLOW_UNDEFINED etc.
+#include "flags.h" // For POINTER_TYPE_OVERFLOW_UNDEFINED.
#endif
#include "tm_p.h" // For CONSTANT_ALIGNMENT.
}
More information about the llvm-commits
mailing list