]> granicus.if.org Git - yasm/commitdiff
Delete dbg optimizer (won't be useful) and add "basic" (equiv. to NASM 2-pass)
authorPeter Johnson <peter@tortall.net>
Sat, 1 Dec 2001 03:07:23 +0000 (03:07 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 1 Dec 2001 03:07:23 +0000 (03:07 -0000)
optimizer.

svn path=/trunk/yasm/; revision=364

14 files changed:
configure.ac
configure.in
libyasm/optimizer.h
modules/optimizers/Makefile.am
modules/optimizers/basic/basic-optimizer.c
modules/optimizers/basic/optimizer.c
modules/optimizers/dbg/Makefile.am [deleted file]
modules/optimizers/dbg/optimizer.c [deleted file]
src/optimizer.h
src/optimizers/Makefile.am
src/optimizers/basic/basic-optimizer.c
src/optimizers/basic/optimizer.c
src/optimizers/dbg/Makefile.am [deleted file]
src/optimizers/dbg/optimizer.c [deleted file]

index 1d9d8fa8d8652619d38a1d10f78262afe56d6764..38e2b1a908e9dede51b419fecfc20943b9102177 100644 (file)
@@ -210,7 +210,7 @@ AC_OUTPUT(Makefile
        src/preprocs/Makefile
        src/preprocs/raw/Makefile
        src/optimizers/Makefile
-       src/optimizers/dbg/Makefile
+       src/optimizers/basic/Makefile
        src/objfmts/Makefile
        src/objfmts/dbg/Makefile
        src/tests/Makefile
index 1d9d8fa8d8652619d38a1d10f78262afe56d6764..38e2b1a908e9dede51b419fecfc20943b9102177 100644 (file)
@@ -210,7 +210,7 @@ AC_OUTPUT(Makefile
        src/preprocs/Makefile
        src/preprocs/raw/Makefile
        src/optimizers/Makefile
-       src/optimizers/dbg/Makefile
+       src/optimizers/basic/Makefile
        src/objfmts/Makefile
        src/objfmts/dbg/Makefile
        src/tests/Makefile
index 0f52e08706993bfb8b936f3639bb3eba29b70d6d..cb4aae10b611c4324eee55d84e9b28f6dad6db4e 100644 (file)
@@ -38,6 +38,6 @@ struct optimizer {
 };
 
 /* Available optimizers */
-extern optimizer dbg_optimizer;
+extern optimizer basic_optimizer;
 
 #endif
index bfa6074557df27950c190886151c28299c7e1c15..794ebe234606889c0183352df4c22ea5b06e30b6 100644 (file)
@@ -1,3 +1,3 @@
 # $IdPath$
 
-SUBDIRS = dbg
+SUBDIRS = basic
index 763f3864fe0208b2ee200c94b4b1da5ca21bcad9..d22e6af4d9648ed0cf455c55950fba351ac0896a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Debugging optimizer (used to debug optimizer module interface)
+ * Basic optimizer (equivalent to the NASM 2-pass 'no optimizer' design)
  *
  *  Copyright (C) 2001  Peter Johnson
  *
@@ -26,7 +26,7 @@ RCSID("$IdPath$");
 
 
 /* Define optimizer structure -- see optimizer.h for details */
-optimizer dbg_optimizer = {
-    "Trace of all info passed to optimizer module",
-    "dbg"
+optimizer basic_optimizer = {
+    "Only the most basic optimizations",
+    "basic"
 };
index 763f3864fe0208b2ee200c94b4b1da5ca21bcad9..d22e6af4d9648ed0cf455c55950fba351ac0896a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Debugging optimizer (used to debug optimizer module interface)
+ * Basic optimizer (equivalent to the NASM 2-pass 'no optimizer' design)
  *
  *  Copyright (C) 2001  Peter Johnson
  *
@@ -26,7 +26,7 @@ RCSID("$IdPath$");
 
 
 /* Define optimizer structure -- see optimizer.h for details */
-optimizer dbg_optimizer = {
-    "Trace of all info passed to optimizer module",
-    "dbg"
+optimizer basic_optimizer = {
+    "Only the most basic optimizations",
+    "basic"
 };
diff --git a/modules/optimizers/dbg/Makefile.am b/modules/optimizers/dbg/Makefile.am
deleted file mode 100644 (file)
index 31ea1c2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# $IdPath$
-
-noinst_LIBRARIES = liboptimizer.a
-
-liboptimizer_a_SOURCES = \
-       optimizer.c
-
-INCLUDES = \
-       -I$(top_srcdir)/src     \
-       -I$(top_builddir)/intl
-
-CFLAGS = @ANSI_CFLAGS@
diff --git a/modules/optimizers/dbg/optimizer.c b/modules/optimizers/dbg/optimizer.c
deleted file mode 100644 (file)
index 763f386..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Debugging optimizer (used to debug optimizer module interface)
- *
- *  Copyright (C) 2001  Peter Johnson
- *
- *  This file is part of YASM.
- *
- *  YASM is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  YASM is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#include "util.h"
-RCSID("$IdPath$");
-
-#include "optimizer.h"
-
-
-/* Define optimizer structure -- see optimizer.h for details */
-optimizer dbg_optimizer = {
-    "Trace of all info passed to optimizer module",
-    "dbg"
-};
index 0f52e08706993bfb8b936f3639bb3eba29b70d6d..cb4aae10b611c4324eee55d84e9b28f6dad6db4e 100644 (file)
@@ -38,6 +38,6 @@ struct optimizer {
 };
 
 /* Available optimizers */
-extern optimizer dbg_optimizer;
+extern optimizer basic_optimizer;
 
 #endif
index bfa6074557df27950c190886151c28299c7e1c15..794ebe234606889c0183352df4c22ea5b06e30b6 100644 (file)
@@ -1,3 +1,3 @@
 # $IdPath$
 
-SUBDIRS = dbg
+SUBDIRS = basic
index 763f3864fe0208b2ee200c94b4b1da5ca21bcad9..d22e6af4d9648ed0cf455c55950fba351ac0896a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Debugging optimizer (used to debug optimizer module interface)
+ * Basic optimizer (equivalent to the NASM 2-pass 'no optimizer' design)
  *
  *  Copyright (C) 2001  Peter Johnson
  *
@@ -26,7 +26,7 @@ RCSID("$IdPath$");
 
 
 /* Define optimizer structure -- see optimizer.h for details */
-optimizer dbg_optimizer = {
-    "Trace of all info passed to optimizer module",
-    "dbg"
+optimizer basic_optimizer = {
+    "Only the most basic optimizations",
+    "basic"
 };
index 763f3864fe0208b2ee200c94b4b1da5ca21bcad9..d22e6af4d9648ed0cf455c55950fba351ac0896a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Debugging optimizer (used to debug optimizer module interface)
+ * Basic optimizer (equivalent to the NASM 2-pass 'no optimizer' design)
  *
  *  Copyright (C) 2001  Peter Johnson
  *
@@ -26,7 +26,7 @@ RCSID("$IdPath$");
 
 
 /* Define optimizer structure -- see optimizer.h for details */
-optimizer dbg_optimizer = {
-    "Trace of all info passed to optimizer module",
-    "dbg"
+optimizer basic_optimizer = {
+    "Only the most basic optimizations",
+    "basic"
 };
diff --git a/src/optimizers/dbg/Makefile.am b/src/optimizers/dbg/Makefile.am
deleted file mode 100644 (file)
index 31ea1c2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# $IdPath$
-
-noinst_LIBRARIES = liboptimizer.a
-
-liboptimizer_a_SOURCES = \
-       optimizer.c
-
-INCLUDES = \
-       -I$(top_srcdir)/src     \
-       -I$(top_builddir)/intl
-
-CFLAGS = @ANSI_CFLAGS@
diff --git a/src/optimizers/dbg/optimizer.c b/src/optimizers/dbg/optimizer.c
deleted file mode 100644 (file)
index 763f386..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Debugging optimizer (used to debug optimizer module interface)
- *
- *  Copyright (C) 2001  Peter Johnson
- *
- *  This file is part of YASM.
- *
- *  YASM is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  YASM is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#include "util.h"
-RCSID("$IdPath$");
-
-#include "optimizer.h"
-
-
-/* Define optimizer structure -- see optimizer.h for details */
-optimizer dbg_optimizer = {
-    "Trace of all info passed to optimizer module",
-    "dbg"
-};