svn commit: r243199 - stable/8/sys/dev/aic7xxx/aicasm

Dimitry Andric dim at FreeBSD.org
Sat Nov 17 23:39:36 UTC 2012


Author: dim
Date: Sat Nov 17 23:39:36 2012
New Revision: 243199
URL: http://svnweb.freebsd.org/changeset/base/243199

Log:
  MFC r243037:
  
  Fix a bug in aicasm_gram.y, noted by a newer clang 3.2 snapshot: it
  compared an enum scope_type against a yacc-generated define, so the
  condition would always be false.

Modified:
  stable/8/sys/dev/aic7xxx/aicasm/aicasm_gram.y
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/aic7xxx/   (props changed)

Modified: stable/8/sys/dev/aic7xxx/aicasm/aicasm_gram.y
==============================================================================
--- stable/8/sys/dev/aic7xxx/aicasm/aicasm_gram.y	Sat Nov 17 23:34:10 2012	(r243198)
+++ stable/8/sys/dev/aic7xxx/aicasm/aicasm_gram.y	Sat Nov 17 23:39:36 2012	(r243199)
@@ -1081,7 +1081,7 @@ conditional:
 		last_scope = TAILQ_LAST(&scope_context->inner_scope,
 					scope_tailq);
 		if (last_scope == NULL
-		 || last_scope->type == T_ELSE) {
+		 || last_scope->type == SCOPE_ELSE) {
 
 			stop("'else if' without leading 'if'", EX_DATAERR);
 			/* NOTREACHED */


More information about the svn-src-stable mailing list