Re: --enable-debug and GCC 4.8 / -Og
| From: | Christopher Jones | Date: | Mon, 08 Jul 2013 16:54:41 +0000 |
| Subject: | Re: --enable-debug and GCC 4.8 / -Og | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68076@lists.php.net to get a copy of this message | ||
On 07/07/2013 07:55 AM, Sebastian Bergmann wrote:
On 07/07/2013 04:31 PM, Sebastian Bergmann wrote:Seems reasonable. Your test logic needs fixing. It should be like: "if ((major > 4) || (major == 4 && minor >= 8))" Chris -- christopher.jones@oracle.com http://twitter.com/ghrd Free PHP & Oracle book: http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.htmlCurrently "--enable-debug" sets "-O0". I think it would make sense to use "-Og" instead when GCC >= 4.8.0 is used.https://gist.github.com/sebastianbergmann/5943708 is an attempt to implement this. Only tested this on Fedora 19.