[llvm-branch-commits] [llvm-gcc-branch] r107092 - /llvm-gcc-4.2/branches/Apple/Morbo/gcc/c-decl.c
Dale Johannesen
dalej at apple.com
Mon Jun 28 16:11:28 PDT 2010
Author: johannes
Date: Mon Jun 28 18:11:28 2010
New Revision: 107092
URL: http://llvm.org/viewvc/llvm-project?rev=107092&view=rev
Log:
--- Merging r107051 into '.':
U gcc/c-decl.c
Modified:
llvm-gcc-4.2/branches/Apple/Morbo/gcc/c-decl.c
Modified: llvm-gcc-4.2/branches/Apple/Morbo/gcc/c-decl.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Morbo/gcc/c-decl.c?rev=107092&r1=107091&r2=107092&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Morbo/gcc/c-decl.c (original)
+++ llvm-gcc-4.2/branches/Apple/Morbo/gcc/c-decl.c Mon Jun 28 18:11:28 2010
@@ -771,7 +771,10 @@
error ("label %q+D used but not defined", p);
DECL_INITIAL (p) = error_mark_node;
}
- else if (!TREE_USED (p) && warn_unused_label)
+/* LLVM LOCAL begin 7729514 */
+ else if (!TREE_USED (p) && warn_unused_label &&
+ strncmp( IDENTIFIER_POINTER (DECL_NAME (p)), "LASM$", 5) != 0)
+/* LLVM LOCAL end */
{
if (DECL_INITIAL (p))
warning (0, "label %q+D defined but not used", p);
More information about the llvm-branch-commits
mailing list