[llvm-commits] [llvm-gcc-4.2] r92811 - in /llvm-gcc-4.2/trunk/gcc/cp: ChangeLog.apple semantics.c
Jim Grosbach
grosbach at apple.com
Tue Jan 5 16:27:29 PST 2010
Author: grosbach
Date: Tue Jan 5 18:27:28 2010
New Revision: 92811
URL: http://llvm.org/viewvc/llvm-project?rev=92811&view=rev
Log:
Check for the "unavailable" attribute in C++ and Objective-C++.
Modified:
llvm-gcc-4.2/trunk/gcc/cp/ChangeLog.apple
llvm-gcc-4.2/trunk/gcc/cp/semantics.c
Modified: llvm-gcc-4.2/trunk/gcc/cp/ChangeLog.apple
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/cp/ChangeLog.apple?rev=92811&r1=92810&r2=92811&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/cp/ChangeLog.apple (original)
+++ llvm-gcc-4.2/trunk/gcc/cp/ChangeLog.apple Tue Jan 5 18:27:28 2010
@@ -1,5 +1,11 @@
2010-01-05 Jim Grosbach <grosbach at apple.com>
+ Radar 7465602
+ * semantics.c (finish_id_expression): Add check for "unavailable"
+ attribute.
+
+2010-01-05 Jim Grosbach <grosbach at apple.com>
+
Radar 7496972
* parser.c (objc_cp_parser_at_property): Don't warn on weak_import
on properties.
Modified: llvm-gcc-4.2/trunk/gcc/cp/semantics.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/cp/semantics.c?rev=92811&r1=92810&r2=92811&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/cp/semantics.c (original)
+++ llvm-gcc-4.2/trunk/gcc/cp/semantics.c Tue Jan 5 18:27:28 2010
@@ -2993,6 +2993,11 @@
}
}
+ /* APPLE LOCAL begin 7465602 "unavailable" attribute */
+ if (TREE_UNAVAILABLE (decl))
+ error_unavailable_use (decl);
+ /* APPLE LOCAL end 7465602 "unavailable" attribute */
+
if (TREE_DEPRECATED (decl))
warn_deprecated_use (decl);
More information about the llvm-commits
mailing list