[cfe-commits] r38983 - /cfe/cfe/trunk/NOTES.txt

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:26:30 PDT 2007


Author: sabre
Date: Wed Jul 11 11:26:30 2007
New Revision: 38983

URL: http://llvm.org/viewvc/llvm-project?rev=38983&view=rev
Log:
define extensions

Modified:
    cfe/cfe/trunk/NOTES.txt

Modified: cfe/cfe/trunk/NOTES.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/NOTES.txt?rev=38983&r1=38982&r2=38983&view=diff

==============================================================================
--- cfe/cfe/trunk/NOTES.txt (original)
+++ cfe/cfe/trunk/NOTES.txt Wed Jul 11 11:26:30 2007
@@ -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. 
 
 //===---------------------------------------------------------------------===//
 





More information about the cfe-commits mailing list