[llvm-commits] [llvm-gcc-4.2] r58574 - /llvm-gcc-4.2/trunk/gcc/c-lex.c
Bill Wendling
isanbard at gmail.com
Sun Nov 2 17:28:42 PST 2008
Author: void
Date: Sun Nov 2 19:28:42 2008
New Revision: 58574
URL: http://llvm.org/viewvc/llvm-project?rev=58574&view=rev
Log:
If errors are deferred, they don't count as errors yet.
Modified:
llvm-gcc-4.2/trunk/gcc/c-lex.c
Modified: llvm-gcc-4.2/trunk/gcc/c-lex.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/c-lex.c?rev=58574&r1=58573&r2=58574&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/c-lex.c (original)
+++ llvm-gcc-4.2/trunk/gcc/c-lex.c Sun Nov 2 19:28:42 2008
@@ -481,7 +481,11 @@
case CPP_N_INVALID:
/* cpplib has issued an error. */
*value = error_mark_node;
- errorcount++;
+ /* APPLE LOCAL begin CW asm blocks 6276214 */
+ /* If errors are deferred, they don't count as errors yet. */
+ if (!flag_ms_asms)
+ errorcount++;
+ /* APPLE LOCAL end CW asm blocks 6276214 */
break;
case CPP_N_INTEGER:
More information about the llvm-commits
mailing list