On 2010-06-10 12:13, Duncan Sands wrote:
> Author: baldrick
> Date: Thu Jun 10 05:13:58 2010
> New Revision: 105786
>
> URL: http://llvm.org/viewvc/llvm-project?rev=105786&view=rev
> Log:
> Add includes to get ptrdiff_t. This is needed by gcc-4.6 which has
> done some more header trimming, resulting in cstdef being included
> by less header files.
Compiling on my FreeBSD box with gcc 4.6.0 20100605 gave an additional
complaint about NULL not being defined in ARMConstantPoolValue.h, and
another few about ptrdiff_t in clang. These are all fixed by the
attached patches; please review.
Index: lib/Target/ARM/ARMConstantPoolValue.h
===================================================================
--- lib/Target/ARM/ARMConstantPoolValue.h (revision 105933)
+++ lib/Target/ARM/ARMConstantPoolValue.h (working copy)
@@ -15,6 +15,7 @@
#define LLVM_TARGET_ARM_CONSTANTPOOLVALUE_H
#include "llvm/CodeGen/MachineConstantPool.h"
+#include <cstddef>
namespace llvm {
Index: tools/clang/include/clang/Rewrite/RewriteRope.h
===================================================================
--- tools/clang/include/clang/Rewrite/RewriteRope.h (revision 105933)
+++ tools/clang/include/clang/Rewrite/RewriteRope.h (working copy)
@@ -16,6 +16,7 @@
#include <cstring>
#include <cassert>
+#include <cstddef>
#include <iterator>
namespace clang {
Index: tools/clang/include/clang/AST/StmtIterator.h
===================================================================
--- tools/clang/include/clang/AST/StmtIterator.h (revision 105933)
+++ tools/clang/include/clang/AST/StmtIterator.h (working copy)
@@ -16,6 +16,7 @@
#include "llvm/System/DataTypes.h"
#include <cassert>
+#include <cstddef>
#include <iterator>
namespace clang {
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits