summaryrefslogtreecommitdiff
path: root/source/compiler/aslcompile.c
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2014-11-20 13:37:08 -0800
committerRobert Moore <Robert.Moore@intel.com>2014-11-20 13:37:08 -0800
commit2ea59729b262796bc881756d260e0e89238401a3 (patch)
treee6c35bf197e93fa86f58d0335ed1e142c75881b9 /source/compiler/aslcompile.c
parente0a0963cbbf9904388f1ddbb913d6b462c3ab90c (diff)
downloadacpica-2ea59729b262796bc881756d260e0e89238401a3.tar.gz
iASL: Add global to differentiate parser-detected errors.
We want to abort on most or all syntax errors detected by the parser, since we really can't continue or recover. Add a special global for this case in order to quickly differentiate this type of error from all other types of error.
Diffstat (limited to 'source/compiler/aslcompile.c')
-rw-r--r--source/compiler/aslcompile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/compiler/aslcompile.c b/source/compiler/aslcompile.c
index a4a33d9b3..feeb42315 100644
--- a/source/compiler/aslcompile.c
+++ b/source/compiler/aslcompile.c
@@ -190,10 +190,9 @@ CmDoCompile (
AslCompilerparse();
UtEndEvent (Event);
- /* Check for parse errors */
+ /* Check for parser-detected syntax errors */
- Status = AslCheckForErrorExit ();
- if (ACPI_FAILURE (Status))
+ if (Gbl_SyntaxError)
{
fprintf (stderr, "Compiler aborting due to parser-detected syntax error(s)\n");
LsDumpParseTree ();