[phc-internals] [phc] r3385 committed - Ignore deprecation warnings when compiling plugins, which was giving a...

phc at googlecode.com phc at googlecode.com
Mon Oct 11 11:23:46 IST 2010


Revision: 3385
Author: paul.biggar
Date: Mon Oct 11 03:21:46 2010
Log: Ignore deprecation warnings when compiling plugins, which was giving a  
false positive.

http://code.google.com/p/phc/source/detail?r=3385

Modified:
  /trunk/test/expected_results/failure
  /trunk/test/expected_results/skipped
  /trunk/test/expected_results/success
  /trunk/test/expected_results/timeout
  /trunk/test/framework/compile_plugin_test.php

=======================================
--- /trunk/test/expected_results/failure	Sun Oct 10 13:14:15 2010
+++ /trunk/test/expected_results/failure	Mon Oct 11 03:21:46 2010
@@ -127,7 +127,6 @@
  CompileOptimized: Failure test/subjects/parsing/var_targets.php - Outputs  
dont match PHP outputs
  CompileOptimized: Failure test/subjects/reduced/0051.php - Outputs dont  
match PHP outputs
  CompilePluginTest: Failure  
/home/pbiggar/work/phc/svn/trunk/plugins/tools/reduce_statements.cpp - exit  
or err not clear
-CompilePluginTest: Failure  
/home/pbiggar/work/phc/svn/trunk/plugins/tools/test_ssi.cpp - exit or err  
not clear
  CompiledVsInterpreted: Failure test/subjects/bugs/bug0008.php - Outputs  
dont match PHP outputs
  CompiledVsInterpreted: Failure test/subjects/bugs/bug0025.php - Outputs  
dont match PHP outputs
  CompiledVsInterpreted: Failure test/subjects/codegen/019c.php - Outputs  
dont match PHP outputs
@@ -196,7 +195,6 @@
  Demi_eval_false: Failure test/subjects/codegen/include_once.php - Outputs  
dont match PHP outputs
  Demi_eval_false: Failure test/subjects/codegen/indexing_non_arrays.php -  
Outputs dont match PHP outputs
  Demi_eval_false: Failure test/subjects/codegen/loop_separation1.php -  
Outputs dont match PHP outputs
-Demi_eval_false: Failure test/subjects/codegen/loop_separation2.php -  
Outputs dont match PHP outputs
  Demi_eval_false: Failure test/subjects/codegen/object_exit.php - Outputs  
dont match PHP outputs
  Demi_eval_false: Failure test/subjects/codegen/oop_inheritance1.php -  
Outputs dont match PHP outputs
  Demi_eval_false: Failure test/subjects/codegen/oop_method_invocation5.php  
- Outputs dont match PHP outputs
@@ -222,7 +220,6 @@
  Demi_eval_true: Failure test/subjects/codegen/indexing_non_arrays.php -  
Outputs dont match PHP outputs
  Demi_eval_true: Failure test/subjects/codegen/inherited_array_field.php -  
Outputs dont match PHP outputs
  Demi_eval_true: Failure test/subjects/codegen/isset_byte.php - Outputs  
dont match PHP outputs
-Demi_eval_true: Failure test/subjects/codegen/loop_separation1.php -  
Outputs dont match PHP outputs
  Demi_eval_true: Failure test/subjects/codegen/loop_separation2.php -  
Outputs dont match PHP outputs
  Demi_eval_true: Failure test/subjects/codegen/non_existant_function.php -  
Outputs dont match PHP outputs
  Demi_eval_true: Failure test/subjects/codegen/oop_inheritance1.php -  
Outputs dont match PHP outputs
@@ -282,8 +279,10 @@
  InterpretCanonicalUnparsed: Failure test/subjects/codegen/target_rhs.php -  
Outputs dont match
  InterpretCanonicalUnparsed: Failure  
test/subjects/optimization/array_use.php - Outputs dont match
  InterpretCanonicalUnparsed: Failure  
test/subjects/optimization/may_defs.php - Outputs dont match
+InterpretCanonicalUnparsed: Failure test/subjects/optimization/sccp1.php -  
Outputs dont match
  InterpretCanonicalUnparsed: Failure test/subjects/parsing/functions.php -  
Outputs dont match
  InterpretCanonicalUnparsed: Failure  
test/subjects/parsing/scoped_function.php - Outputs dont match
+InterpretIncludes: Failure test/subjects/optimization/gettimeofday.php -  
Outputs dont match
  InterpretIncludes: Failure test/subjects/parsing/include_complex_once.php  
- Outputs dont match
  InterpretIncludes: Failure test/subjects/parsing/include_massive.php -  
Outputs dont match
  InterpretOptimized: Failure test/subjects/bugs/bug0030.php - Outputs dont  
match
@@ -577,6 +576,7 @@
  ReparseUnparsed: Failure test/subjects/reduced/0052.php - Outputs dont  
match
  cb_AST-to-HIR: Failure test/subjects/codegen/new.php - Latest pass fails
  cb_AST-to-HIR: Failure test/subjects/optimization/concat_null.php - Latest  
pass fails
+cb_AST-to-HIR: Failure test/subjects/optimization/gettimeofday.php -  
Latest pass fails
  cb_AST-to-HIR: Failure test/subjects/optimization/string_handler.php -  
Latest pass fails
  cb_AST-to-HIR: Failure test/subjects/parsing/constant_folding.php - Latest  
pass fails
  cb_AST-to-HIR: Failure test/subjects/php_bugs/4999.php - Latest pass fails
@@ -586,8 +586,8 @@
  cb_ast: Failure test/subjects/codegen/infinite_lists.php - Every pass fails
  cb_ast: Failure test/subjects/codegen/target_rhs.php - Every pass fails
  cb_ast: Failure test/subjects/optimization/array_use.php - Every pass fails
-cb_ast: Failure test/subjects/optimization/gettimeofday.php - Every pass  
fails
  cb_ast: Failure test/subjects/optimization/may_defs.php - Every pass fails
+cb_ast: Failure test/subjects/optimization/sccp1.php - Every pass fails
  cb_ast: Failure test/subjects/parsing/functions.php - Every pass fails
  cb_ast: Failure test/subjects/parsing/line_and_co.php - Every pass fails
  cb_ast: Failure test/subjects/parsing/scoped_function.php - Every pass  
fails
@@ -596,4 +596,3 @@
  cb_mir: Failure test/subjects/parsing/casts.php - Latest pass fails
  cb_mir: Failure test/subjects/reduced/0050.php - Latest pass fails
  cb_mir: Failure test/subjects/reduced/0056.php - Latest pass fails
-cb_sua: Failure test/subjects/optimization/sccp1.php - Every pass fails
=======================================
--- /trunk/test/expected_results/skipped	Sun Oct 10 13:14:15 2010
+++ /trunk/test/expected_results/skipped	Mon Oct 11 03:21:46 2010
@@ -2425,7 +2425,6 @@
  InterpretIncludes: Skipped test/subjects/errors/try_catch_break.php - Test  
failed dependency
  InterpretIncludes: Skipped test/subjects/optimization/array_use.php - Test  
failed dependency
  InterpretIncludes: Skipped test/subjects/optimization/dce_foreach1.php -  
Test failed dependency
-InterpretIncludes: Skipped test/subjects/optimization/gettimeofday.php -  
Test failed dependency
  InterpretIncludes: Skipped test/subjects/optimization/may_defs.php - Test  
failed dependency
  InterpretIncludes: Skipped test/subjects/optimization/sccp1.php - Test  
failed dependency
  InterpretIncludes: Skipped test/subjects/parsing/functions.php - Test  
failed dependency
@@ -3327,7 +3326,6 @@
  cb_AST-to-HIR: Skipped test/subjects/errors/try_catch_break.php - Test  
failed dependency
  cb_AST-to-HIR: Skipped test/subjects/optimization/array_use.php - Test  
failed dependency
  cb_AST-to-HIR: Skipped test/subjects/optimization/dce_foreach1.php - Test  
failed dependency
-cb_AST-to-HIR: Skipped test/subjects/optimization/gettimeofday.php - Test  
failed dependency
  cb_AST-to-HIR: Skipped test/subjects/optimization/may_defs.php - Test  
failed dependency
  cb_AST-to-HIR: Skipped test/subjects/optimization/sccp1.php - Test failed  
dependency
  cb_AST-to-HIR: Skipped test/subjects/parsing/capital_ticks.php - Test  
excepted
@@ -3584,8 +3582,8 @@
  cb_sua: Skipped test/subjects/errors/try_catch_break.php - Test failed  
dependency
  cb_sua: Skipped test/subjects/optimization/array_use.php - Test failed  
dependency
  cb_sua: Skipped test/subjects/optimization/dce_foreach1.php - Test failed  
dependency
-cb_sua: Skipped test/subjects/optimization/gettimeofday.php - Test failed  
dependency
  cb_sua: Skipped test/subjects/optimization/may_defs.php - Test failed  
dependency
+cb_sua: Skipped test/subjects/optimization/sccp1.php - Test failed  
dependency
  cb_sua: Skipped test/subjects/parsing/functions.php - Test failed  
dependency
  cb_sua: Skipped test/subjects/parsing/line_and_co.php - Test failed  
dependency
  cb_sua: Skipped test/subjects/parsing/scoped_function.php - Test failed  
dependency
=======================================
--- /trunk/test/expected_results/success	Sun Oct 10 13:14:15 2010
+++ /trunk/test/expected_results/success	Mon Oct 11 03:21:46 2010
File is too large to display a diff.
=======================================
--- /trunk/test/expected_results/timeout	Sun Oct 10 13:14:15 2010
+++ /trunk/test/expected_results/timeout	Mon Oct 11 03:21:46 2010
@@ -338,6 +338,5 @@
  InterpretOptimized: Timeout test/subjects/php_bugs/35106.php
  Refcounts: Timeout test/subjects/codegen/loop_separation1.php
  Refcounts: Timeout test/subjects/codegen/loop_separation2.php
-Refcounts: Timeout test/subjects/codegen/unset_non_array.php
  XML_roundtrip: Timeout test/subjects/parsing/allchars_inline.php
  XML_roundtrip: Timeout test/subjects/parsing/constant_folding.php
=======================================
--- /trunk/test/framework/compile_plugin_test.php	Sun Aug 22 13:03:55 2010
+++ /trunk/test/framework/compile_plugin_test.php	Mon Oct 11 03:21:46 2010
@@ -72,9 +72,12 @@
  		# phc_compile_plugin only allows CFLAGS and LDFLAGS, even
  		# though we use CPPFLAGS
  		if ($trunk_CPPFLAGS)
-			$CPPFLAGS = "CFLAGS=$trunk_CPPFLAGS";
+			$CPPFLAGS = "$trunk_CPPFLAGS";
  		else
-			$CPPFLAGS = "";
+			$CPPFLAGS = "''";
+
+		$CPPFLAGS[0] = ' ';
+		$CPPFLAGS="CFLAGS='-Wno-deprecated $CPPFLAGS";

  		$async->commands[0] = "$CPPFLAGS $phc_compile_plugin $plugin_name.cpp";
  		$async->err_handlers[0] = "fail_on_output";


More information about the phc-internals mailing list