aboutsummaryrefslogtreecommitdiff
path: root/compiler/aslcompile.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-07-06 17:18:05 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-07-06 17:18:05 +0000
commit6d31afa8e3ab79bfa6c97c341af73f4fc093351a (patch)
tree514e3ade7be23ac83127870abf009b5e5ae1d36f /compiler/aslcompile.c
parentf2bf96d30fe08965ffd53a28099131ac030e43d5 (diff)
downloadsrc-6d31afa8e3ab79bfa6c97c341af73f4fc093351a.tar.gz
src-6d31afa8e3ab79bfa6c97c341af73f4fc093351a.zip
Import ACPICA 20100702.vendor/acpica/20100702
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=209734 svn path=/vendor-sys/acpica/20100702/; revision=209735; tag=vendor/acpica/20100702
Diffstat (limited to 'compiler/aslcompile.c')
-rw-r--r--compiler/aslcompile.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/compiler/aslcompile.c b/compiler/aslcompile.c
index 56663b571247..5b664ff5e3c5 100644
--- a/compiler/aslcompile.c
+++ b/compiler/aslcompile.c
@@ -903,10 +903,19 @@ CmCleanupAndExit (
/*
* Delete intermediate ("combined") source file (if -ls flag not set)
+ * This file is created during normal ASL/AML compiles. It is not
+ * created by the data table compiler.
+ *
+ * If the -ls flag is set, then the .SRC file should not be deleted.
+ * In this case, Gbl_SourceOutputFlag is set to TRUE.
+ *
+ * Note: Handles are cleared by FlCloseFile above, so we look at the
+ * filename instead, to determine if the .SRC file was actually
+ * created.
*
* TBD: SourceOutput should be .TMP, then rename if we want to keep it?
*/
- if (!Gbl_SourceOutputFlag)
+ if (!Gbl_SourceOutputFlag && Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename)
{
if (remove (Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename))
{