[llvm-commits] [llvm-gcc-4.2] r107051 - /llvm-gcc-4.2/trunk/gcc/c-decl.c

Dale Johannesen dalej at apple.com
Mon Jun 28 13:06:59 PDT 2010


Author: johannes
Date: Mon Jun 28 15:06:59 2010
New Revision: 107051

URL: http://llvm.org/viewvc/llvm-project?rev=107051&view=rev
Log:
Don't emit warnings for labels created internally
as part of parsing asm-block style inline asm.  7729514.


Modified:
    llvm-gcc-4.2/trunk/gcc/c-decl.c

Modified: llvm-gcc-4.2/trunk/gcc/c-decl.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/c-decl.c?rev=107051&r1=107050&r2=107051&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/c-decl.c (original)
+++ llvm-gcc-4.2/trunk/gcc/c-decl.c Mon Jun 28 15:06:59 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-commits mailing list