[llvm-commits] CVS: llvm/include/llvm/Support/AIXDataTypesFix.h DataTypes.h.in DataTypesFix.h
Misha Brukman
brukman at cs.uiuc.edu
Tue Oct 26 09:15:28 PDT 2004
Changes in directory llvm/include/llvm/Support:
AIXDataTypesFix.h added (r1.1)
DataTypes.h.in updated: 1.14 -> 1.15
DataTypesFix.h (r1.1) removed
---
Log message:
* DataTypesFix.h moved to AIXDataTypesFix.h
* Condition #inclusion of AIXDataTypes.h on the _AIX preprocessor symbol to
prevent extra I/O on non-AIX systems. Thus, no #ifdef in AIXDataTypes.h
---
Diffs of the changes: (+28 -2)
Index: llvm/include/llvm/Support/AIXDataTypesFix.h
diff -c /dev/null llvm/include/llvm/Support/AIXDataTypesFix.h:1.1
*** /dev/null Tue Oct 26 11:15:28 2004
--- llvm/include/llvm/Support/AIXDataTypesFix.h Tue Oct 26 11:15:18 2004
***************
*** 0 ****
--- 1,25 ----
+ //===-- include/Support/AIXDataTypesFix.h - Fix datatype defs ---*- C++ -*-===//
+ //
+ // The LLVM Compiler Infrastructure
+ //
+ // This file was developed by the LLVM research group and is distributed under
+ // the University of Illinois Open Source License. See LICENSE.TXT for details.
+ //
+ //===----------------------------------------------------------------------===//
+ //
+ // This file overrides default system-defined types and limits which cannot be
+ // done in DataTypes.h.in because it is processed by autoheader first, which
+ // comments out any #undef statement
+ //
+ //===----------------------------------------------------------------------===//
+
+ // No include guards desired!
+
+ #ifndef SUPPORT_DATATYPES_H
+ #error "AIXDataTypesFix.h must only be included via DataTypes.h!"
+ #endif
+
+ // GCC is strict about defining large constants: they must have LL modifier.
+ // These will be defined properly at the end of DataTypes.h
+ #undef INT64_MAX
+ #undef INT64_MIN
Index: llvm/include/llvm/Support/DataTypes.h.in
diff -u llvm/include/llvm/Support/DataTypes.h.in:1.14 llvm/include/llvm/Support/DataTypes.h.in:1.15
--- llvm/include/llvm/Support/DataTypes.h.in:1.14 Mon Oct 25 13:39:18 2004
+++ llvm/include/llvm/Support/DataTypes.h.in Tue Oct 26 11:15:18 2004
@@ -49,8 +49,9 @@
#include <stdint.h>
#endif
-// Fix AIX definitions of INT64_{MIN,MAX}
-#include "llvm/Support/DataTypesFix.h"
+#ifdef _AIX
+#include "llvm/Support/AIXDataTypesFix.h"
+#endif
// Handle incorrect definition of uint64_t as u_int64_t
#ifndef HAVE_UINT64_T
More information about the llvm-commits
mailing list