https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120613
Bug ID: 120613 Summary: PGO build of PHP fails with SSA corruption Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: redhat.bugzilla at proton dot me Target Milestone: --- gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) on Almalinux 10 Options: ./configure CFLAGS='-O2 -march=native' --prefix=/usr/local/php848 --enable-intl --with-mysqli --with-zlib --with-zip --enable-fpm --with-openssl --enable-mbstring --with-curl --enable-calendar --enable-exif --enable-opcache --enable-shmop --enable-bcmath --with-sodium --enable-gd --with-fpm-systemd --with-fpm-selinux --with-pear --with-readline Command line: make prof-gen sapi/cgi/php-cgi -T 100 /path/to/index.php >/dev/null make prof-clean make prof-use Output: /bin/sh /tmp/php-8.4.8/libtool --silent --preserve-dup-deps --tag=CC --mode=compile cc -Iext/session/ -I/tmp/php-8.4.8/ext/session/ -I/tmp/php-8.4.8/main -I/tmp/php-8.4.8 -I/tmp/php-8.4.8/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/tmp/php-8.4.8/ext/mbstring/libmbfl -I/tmp/php-8.4.8/ext/mbstring/libmbfl/mbfl -I/tmp/php-8.4.8/TSRM -I/tmp/php-8.4.8/Zend -D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -O2 -march=native -ffp-contract=off -fvisibility=hidden -Wimplicit-fallthrough=1 -DZEND_SIGNALS -fprofile-use -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /tmp/php-8.4.8/ext/session/session.c -o ext/session/session.lo -MMD -MF ext/session/session.dep -MT ext/session/session.lo /tmp/php-8.4.8/ext/session/session.c: In function ‘php_session_rfc1867_callback’: /tmp/php-8.4.8/ext/session/session.c:3407:1: warning: ‘/tmp/php-8.4.8/ext/session/.libs/session.gcda’ profile count data file not found [-Wmissing-profile] 3407 | }; | ^ Unable to coalesce ssa_names 3 and 4 which are marked as MUST COALESCE. __orig_bailout_3(ab) and __orig_bailout_4(ab) during RTL pass: expand In file included from /tmp/php-8.4.8/main/php.h:35, from /tmp/php-8.4.8/ext/session/session.c:22: /tmp/php-8.4.8/ext/session/session.c: In function ‘zm_deactivate_session’: /tmp/php-8.4.8/Zend/zend_API.h:225:49: internal compiler error: SSA corruption 225 | #define ZEND_MODULE_DEACTIVATE_N(module) zm_deactivate_##module | ^~~~~~~~~~~~~~ /tmp/php-8.4.8/Zend/zend_API.h:235:61: note: in expansion of macro ‘ZEND_MODULE_DEACTIVATE_N’ 235 | #define ZEND_MODULE_DEACTIVATE_D(module) zend_result ZEND_MODULE_DEACTIVATE_N(module)(SHUTDOWN_FUNC_ARGS) | ^~~~~~~~~~~~~~~~~~~~~~~~ /tmp/php-8.4.8/main/php.h:403:33: note: in expansion of macro ‘ZEND_MODULE_DEACTIVATE_D’ 403 | #define PHP_RSHUTDOWN_FUNCTION ZEND_MODULE_DEACTIVATE_D | ^~~~~~~~~~~~~~~~~~~~~~~~ /tmp/php-8.4.8/ext/session/session.c:2925:8: note: in expansion of macro ‘PHP_RSHUTDOWN_FUNCTION’ 2925 | static PHP_RSHUTDOWN_FUNCTION(session) /* {{{ */ | ^~~~~~~~~~~~~~~~~~~~~~ Please submit a full bug report, with preprocessed source. See <http://bugs.almalinux.org/> for instructions. Preprocessed source stored into /tmp/ccJtjIIy.out file, please attach this to your bugreport. make[1]: *** [Makefile:2500: ext/session/session.lo] Error 1 make[1]: Leaving directory '/tmp/php-8.4.8' make: *** [Makefile:267: prof-use] Error 2 Preprocessed source is 3.1 MB and can’t be attached here.