summaryrefslogtreecommitdiff
path: root/clang/NOTES.txt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-14 19:53:48 +0000
committerChris Lattner <sabre@nondot.org>2006-10-14 19:53:48 +0000
commit58360339bd15868ddc921ffdd300fa2634864e69 (patch)
tree53af20acc4ec88546850cddf4bc2502faf1999bc /clang/NOTES.txt
parent02846975daffe893d86969fe794bbcbe9f876097 (diff)
downloadllvm-58360339bd15868ddc921ffdd300fa2634864e69.tar.gz
define extensions
llvm-svn: 38983
Diffstat (limited to 'clang/NOTES.txt')
-rw-r--r--clang/NOTES.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/clang/NOTES.txt b/clang/NOTES.txt
index 323b6278e619..129190403491 100644
--- a/clang/NOTES.txt
+++ b/clang/NOTES.txt
@@ -1,3 +1,28 @@
+//===---------------------------------------------------------------------===//
+// Random Notes
+//===---------------------------------------------------------------------===//
+
+
+//===---------------------------------------------------------------------===//
+Extensions:
+
+ * "#define_target X Y"
+ This preprocessor directive works exactly the same was as #define, but it
+ notes that 'X' is a target-specific preprocessor directive. When used, a
+ diagnostic is emitted indicating that the translation unit is non-portable.
+
+ If a target-define is #undef'd before use, no diagnostic is emitted. If 'X'
+ were previously a normal #define macro, the macro is tainted. If 'X' is
+ subsequently #defined as a non-target-specific define, the taint bit is
+ cleared.
+
+ * "#define_other_target X"
+ The preprocessor directive takes a single identifier argument. It notes
+ that this identifier is a target-specific #define for some target other than
+ the current one. Use of this identifier will result in a diagnostic.
+
+ If 'X' is later #undef'd or #define'd, the taint bit is cleared. If 'X' is
+ already defined, X is marked as a target-specific define.
//===---------------------------------------------------------------------===//