|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-01-11 11:05 UTC] nikic@php.net
[2019-01-11 11:08 UTC] spam2 at rhsoft dot net
[2019-01-11 23:49 UTC] a at b dot c dot de
[2020-04-16 10:44 UTC] nikic@php.net
-Summary: Link-Time-Optimizations fail
+Summary: Link-Time-Optimizations fail if GCC global registers
are used
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ With gcc 8.2.1 -flto build fails: /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /src/mail/imap-2007f//lib/libc-client.a(osdep.o): in function `ssl_onceonlyinit': /src/mail/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /src/http/php-7.1.26/Zend/zend_vm_execute.h: In function 'ZEND_IS_SMALLER_OR_EQUAL_DOUBLE_SPEC_TMPVARCV_TMPVARCV_HANDLER': /src/http/php-7.1.26/Zend/zend_vm_execute.h:326:38: error: global register variable follows a function definition register zend_execute_data* volatile execute_data __asm__(ZEND_VM_FP_GLOBAL_REG); ^ /src/http/php-7.1.26/Zend/zend_vm_execute.h:332:34: error: global register variable follows a function definition register const zend_op* volatile opline __asm__(ZEND_VM_IP_GLOBAL_REG); ^ /src/http/php-7.1.26/ext/readline/readline_cli.c: In function 'cli_completion_generator_ht.constprop': /src/http/php-7.1.26/ext/readline/readline_cli.c:408:15: warning: 'name' may be used uninitialized in this function [-Wmaybe-uninitialized] zend_string *name; ^ /src/http/php-7.1.26/sapi/cli/php_cli_server.c: In function 'php_cli_server_client_read_request_on_path': /src/http/php-7.1.26/sapi/cli/php_cli_server.c:1571:29: warning: 'vpath_len' may be used uninitialized in this function [-Wmaybe-uninitialized] client->request.vpath_len = vpath_len; ^ /src/http/php-7.1.26/sapi/cli/php_cli_server.c:1568:10: note: 'vpath_len' was declared here size_t vpath_len; ^ /src/http/php-7.1.26/Zend/zend_execute.c: In function 'zend_check_arg_type': /src/http/php-7.1.26/Zend/zend_execute.c:959:3: warning: 'ce' may be used uninitialized in this function [-Wmaybe-uninitialized] zend_verify_arg_error(zf, cur_arg_info, arg_num, ce, arg); ^ /src/http/php-7.1.26/Zend/zend_execute.c:948:20: note: 'ce' was declared here zend_class_entry *ce; ^ lto-wrapper: fatal error: cc returned 1 exit status compilation terminated. /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make: *** [Makefile:300: sapi/cli/php] Error 1