[xdebug-dev] xdebug xdebug/config.m4 - Fixed bug #154: GCC 4.0.2 optimizes too much out with -O2.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 31 Dec 2005 11:50:10 +0100

Date: Sat Dec 31 11:50:10 CET 2005
User: Derick Rethans
Directory: xdebug

Log Message:
[0.50]
- Fixed bug #154: GCC 4.0.2 optimizes too much out with -O2.

Modified files:
           xdebug/config.m4 (version: 1.22)

[FILE: /xdebug/config.m4]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- xdebug/config.m4:1.21 Sun Apr 11 12:22:08 2004 GMT
+++ xdebug/config.m4 Sat Dec 31 09:50:10 2005 GMT
@@ -1,10 +1,14 @@
-dnl $Id: cvstemp,v 1.21 2004/04/11 14:22:08 derick Exp $
+dnl $Id: cvstemp,v 1.22 2005/12/31 10:50:10 derick Exp $
 dnl config.m4 for extension xdebug
 
 PHP_ARG_ENABLE(xdebug, whether to enable eXtended debugging support,
 [ --enable-xdebug Enable Xdebug support])
 
 if test "$PHP_XDEBUG" != "no"; then
+dnl We need to set optimization to 0 because my GCC otherwise optimizes too
+dnl much out.
+ CFLAGS=`echo $CFLAGS | sed 's/O2/O0/'`
+
   PHP_NEW_EXTENSION(xdebug, xdebug.c xdebug_code_coverage.c xdebug_com.c xdebug_compat.c xdebug_handler_dbgp.c xdebug_handler_gdb.c xdebug_handler_php3.c xdebug_handlers.c xdebug_llist.c xdebug_hash.c xdebug_private.c xdebug_profiler.c xdebug_str.c xdebug_superglobals.c xdebug_var.c xdebug_xml.c usefulstuff.c, $ext_shared)
   AC_DEFINE(HAVE_XDEBUG,1,[ ])
 
Received on Sat Dec 31 2005 - 11:50:13 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST