From owner-svn-src-stable@FreeBSD.ORG Sat Nov 17 23:34:10 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 89022512; Sat, 17 Nov 2012 23:34:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 6D18F8FC12; Sat, 17 Nov 2012 23:34:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAHNYAOO007427; Sat, 17 Nov 2012 23:34:10 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAHNYA3c007425; Sat, 17 Nov 2012 23:34:10 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201211172334.qAHNYA3c007425@svn.freebsd.org> From: Dimitry Andric Date: Sat, 17 Nov 2012 23:34:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r243198 - stable/9/sys/dev/aic7xxx/aicasm X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 23:34:10 -0000 Author: dim Date: Sat Nov 17 23:34:10 2012 New Revision: 243198 URL: http://svnweb.freebsd.org/changeset/base/243198 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/9/sys/dev/aic7xxx/aicasm/aicasm_gram.y Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/aic7xxx/aicasm/aicasm_gram.y ============================================================================== --- stable/9/sys/dev/aic7xxx/aicasm/aicasm_gram.y Sat Nov 17 23:31:16 2012 (r243197) +++ stable/9/sys/dev/aic7xxx/aicasm/aicasm_gram.y Sat Nov 17 23:34:10 2012 (r243198) @@ -1076,7 +1076,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 */