vala r1057 - in trunk: . compiler gobject



Author: juergbi
Date: Tue Feb 26 20:04:52 2008
New Revision: 1057
URL: http://svn.gnome.org/viewvc/vala?rev=1057&view=rev

Log:
2008-02-26  Juerg Billeter  <j bitron ch>

	* gobject/valaccodecompiler.vala, compiler/valacompiler.vala:
	  remove non-portable -O commandline option, fixes bug 518660


Modified:
   trunk/ChangeLog
   trunk/compiler/valacompiler.vala
   trunk/gobject/valaccodecompiler.vala

Modified: trunk/compiler/valacompiler.vala
==============================================================================
--- trunk/compiler/valacompiler.vala	(original)
+++ trunk/compiler/valacompiler.vala	Tue Feb 26 20:04:52 2008
@@ -40,7 +40,6 @@
 	static string output;
 	static bool debug;
 	static bool thread;
-	static int optlevel;
 	static bool disable_assert;
 	static bool disable_checking;
 	static bool non_null;
@@ -66,7 +65,6 @@
 		{ "output", 'o', 0, OptionArg.FILENAME, out output, "Place output in file FILE", "FILE" },
 		{ "debug", 'g', 0, OptionArg.NONE, ref debug, "Produce debug information", null },
 		{ "thread", 0, 0, OptionArg.NONE, ref thread, "Enable multithreading support", null },
-		{ "optimize", 'O', 0, OptionArg.INT, ref optlevel, "Optimization level", "OPTLEVEL" },
 		{ "define", 'D', 0, OptionArg.STRING_ARRAY, out defines, "Define SYMBOL", "SYMBOL..." },
 		{ "disable-assert", 0, 0, OptionArg.NONE, ref disable_assert, "Disable assertions", null },
 		{ "disable-checking", 0, 0, OptionArg.NONE, ref disable_checking, "Disable run-time checks", null },
@@ -159,7 +157,6 @@
 		}
 		context.debug = debug;
 		context.thread = thread;
-		context.optlevel = optlevel;
 		context.save_temps = save_temps;
 
 		if (defines != null) {

Modified: trunk/gobject/valaccodecompiler.vala
==============================================================================
--- trunk/gobject/valaccodecompiler.vala	(original)
+++ trunk/gobject/valaccodecompiler.vala	Tue Feb 26 20:04:52 2008
@@ -1,6 +1,6 @@
 /* valaccodecompiler.vala
  *
- * Copyright (C) 2007  JÃrg Billeter
+ * Copyright (C) 2007-2008  JÃrg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -84,7 +84,6 @@
 		if (context.debug) {
 			cmdline += " -g";
 		}
-		cmdline += " -O%d".printf (context.optlevel);
 		if (context.compile_only) {
 			cmdline += " -c";
 		} else if (context.output != null) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]