Req #69928 [NEW]: -ffast-math incompatible with sqlite extension
| From: | 191919 at gmail dot com | Date: | Thu, 25 Jun 2015 08:14:37 +0000 |
| Subject: | Req #69928 [NEW]: -ffast-math incompatible with sqlite extension | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-193867@lists.php.net to get a copy of this message | ||
From: 191919 at gmail dot com
Operating system: OS X
PHP version: 7.0Git-2015-06-25 (Git)
Package: Compile Failure
Bug Type: Feature/Change Request
Bug description:-ffast-math incompatible with sqlite extension
Description:
------------
-ffast-math brings performance increase and the precision can be
accepted in most cases, but php cannot be compiled with this directive.
Would you please consider to add an extra ./configure setting to skip
the check in sqlite3 extension as it is the only one that explicitly
refuses the -ffast-math flag?
Test script:
---------------
CC=/opt/bin/gcc CFLAGS="-O2 -msse4.2 -ffast-math -fomit-frame-pointer
-fno-stack-protector -fno-exceptions" ./configure --prefix=/opt/php7
--enable-opcache
Expected result:
----------------
Compilation succeeds.
Actual result:
--------------
gcc-5.1.0 gave:
/Users/xx/box/php-src/ext/sqlite3/libsqlite/sqlite3.c:23512:3: error:
#error SQLite will not work correctly with the -ffast-math option of
GCC.
# error SQLite will not work correctly with the -ffast-math option of
GCC.
^
--
Edit bug report at https://bugs.php.net/bug.php?id=69928&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69928&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69928&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69928&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69928&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69928&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69928&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69928&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69928&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69928&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69928&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69928&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69928&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69928&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69928&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69928&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69928&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69928&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69928&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69928&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69928&r=mysqlcfg