From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1A90E3858D38; Tue, 21 Mar 2023 12:42:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A90E3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679402533; bh=b0AX5K7QVihyyDXO5dBOjiVC+J9XUfBqKuQV1Avn2o0=; h=From:To:Subject:Date:From; b=dPmhSsauhGg2Z7dHcMii4yEN4vpdI+6AsolJNDDO3fQ1qG3/zgiIRysOtqR8EdLc+ 9RtX/iaZwNe4apqPkUTRRhnr/gB1UCFsTWhmIv2SvhGlIHVh0WEqSwCt+kd8ZfyaB/ Xet8KtApJdsSEdkr158HouAsNovvhYUIHKZPgefQ= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/109231] New: [13 regression] Comparison failure in libphobos/libdruntime/rt/util/typeinfo.o Date: Tue, 21 Mar 2023 12:42:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109231 Bug ID: 109231 Summary: [13 regression] Comparison failure in libphobos/libdruntime/rt/util/typeinfo.o Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ro at gcc dot gnu.org Target Milestone: --- Host: sparc-sun-solaris2.11 Target: sparc-sun-solaris2.11 Build: sparc-sun-solaris2.11 Between 20230317 (2bb71424636fba7944b36b1689e9df22a53f1a3f) and 20230320 (fbd50e867e6a782c7b56c9727bf7e1e74dae4b94), Solaris/SPARC bootstrap broke with a comparison failure: Comparing stages 2 and 3 Bootstrap comparison failure! sparc-sun-solaris2.11/libphobos/libdruntime/rt/util/.libs/typeinfo.o differs sparc-sun-solaris2.11/libphobos/libdruntime/rt/util/typeinfo.o differs make[2]: *** [Makefile:32772: compare] Error 1 For some reason, this only happens when using gas, not with the native as. elfcmp shows *** section: [244].text._D2rt4util8typeinfo__T20TypeInfoArrayGenericTfTfZQBb7compareMxFI= PvIQdZi: data information differs --- : _D2rt4util8typeinfo__T20TypeInfoArrayGenericTfTfZQBb7compareMxFIPvIQdZi() < 0x40:+0x40: 83 aa 4a a8 fcmpes %fcc1, %f9, %f8 > 0x40:+0x40: 81 aa 4a a8 fcmpes %fcc0, %f9, %f8 *** section: [245].text._D2rt4util8typeinfo__T20TypeInfoArrayGenericTdTdZQBb7compareMxFI= PvIQdZi: data information differs --- : _D2rt4util8typeinfo__T20TypeInfoArrayGenericTdTdZQBb7compareMxFIPvIQdZi() < 0x34:+0x34: 81 aa 0a 48 fcmpd %fcc0, %d8, %d8 > 0x34:+0x34: 83 aa 0a 48 fcmpd %fcc1, %d8, %d8 *** section: [246].text._D2rt4util8typeinfo__T20TypeInfoArrayGenericTEQBsQBs7utility17__= c_complex_floatTQBjZQCk7compareMxFIPvIQdZi: data information differs --- : _D2rt4util8typeinfo__T20TypeInfoArrayGenericTEQBsQBs7utility17__c_complex_f= loatTQBjZQCk7compareMxFIPvIQdZi() < 0x3c:+0x3c: 87 aa 0a 28 fcmps %fcc3, %f8, %f8 > 0x3c:+0x3c: 81 aa 0a 28 fcmps %fcc0, %f8, %f8 *** section: [247].text._D2rt4util8typeinfo__T20TypeInfoArrayGenericTEQBsQBs7utility18__= c_complex_doubleTQBkZQCl7compareMxFIPvIQdZi: data information differs --- : _D2rt4util8typeinfo__T20TypeInfoArrayGenericTEQBsQBs7utility18__c_complex_d= oubleTQBkZQCl7compareMxFIPvIQdZi() < 0x3c:+0x3c: 83 aa 0a 48 fcmpd %fcc1, %d8, %d8 > 0x3c:+0x3c: 85 aa 0a 48 fcmpd %fcc2, %d8, %d8 *** section: [248].text._D2rt4util8typeinfo__T15TypeInfoGenericTfTfZQw7compareMxFNaNbNeI= PvIQdZi: data information differs --- : _D2rt4util8typeinfo__T15TypeInfoGenericTfTfZQw7compareMxFNaNbNeIPvIQdZi() < 0x8:+0x8: 87 aa 0a 28 fcmps %fcc3, %f8, %f8 > 0x8:+0x8: 81 aa 0a 28 fcmps %fcc0, %f8, %f8 *** section: [249].text._D2rt4util8typeinfo__T15TypeInfoGenericTdTdZQw7compareMxFNaNbNeI= PvIQdZi: data information differs --- : _D2rt4util8typeinfo__T15TypeInfoGenericTdTdZQw7compareMxFNaNbNeIPvIQdZi() < 0x8:+0x8: 85 aa 0a 48 fcmpd %fcc2, %d8, %d8 > 0x8:+0x8: 87 aa 0a 48 fcmpd %fcc3, %d8, %d8 *** section: [250].text._D2rt4util8typeinfo__T15TypeInfoGenericTEQBnQBn7utility17__c_com= plex_floatTQBjZQCf7compareMxFNaNbNeIPvIQdZi: data information differs --- : _D2rt4util8typeinfo__T15TypeInfoGenericTEQBnQBn7utility17__c_complex_floatT= QBjZQCf7compareMxFNaNbNeIPvIQdZi() < 0x8:+0x8: 83 aa 0a 28 fcmps %fcc1, %f8, %f8 > 0x8:+0x8: 85 aa 0a 28 fcmps %fcc2, %f8, %f8 *** section: [251].text._D2rt4util8typeinfo__T15TypeInfoGenericTEQBnQBn7utility18__c_com= plex_doubleTQBkZQCg7compareMxFNaNbNeIPvIQdZi: data information differs --- : _D2rt4util8typeinfo__T15TypeInfoGenericTEQBnQBn7utility18__c_complex_double= TQBkZQCg7compareMxFNaNbNeIPvIQdZi() < 0x8:+0x8: 87 aa 0a 48 fcmpd %fcc3, %d8, %d8 > 0x8:+0x8: 81 aa 0a 48 fcmpd %fcc0, %d8, %d8 *** section: [284].text._D4core8internal5array8equality__T8__equalsTxE2rt4util7utility17= __c_complex_floatTxQBmZQCbFNaNbNiNfMAxQCfMQgZb: data information differs --- : _D4core8internal5array8equality__T8__equalsTxE2rt4util7utility17__c_complex= _floatTxQBmZQCbFNaNbNiNfMAxQCfMQgZb() < 0x44:+0x44: 85 aa 4a 28 fcmps %fcc2, %f9, %f8 > 0x44:+0x44: 87 aa 4a 28 fcmps %fcc3, %f9, %f8 *** section: [287].text._D4core8internal5array8equality__T8__equalsTxE2rt4util7utility18= __c_complex_doubleTxQBnZQCcFNaNbNiNfMAxQCgMQgZb: data information differs --- : _D4core8internal5array8equality__T8__equalsTxE2rt4util7utility18__c_complex= _doubleTxQBnZQCcFNaNbNiNfMAxQCgMQgZb() < 0x44:+0x44: 81 aa 8a 48 fcmpd %fcc0, %d10, %d8 > 0x44:+0x44: 83 aa 8a 48 fcmpd %fcc1, %d10, %d8 *** section: [295].text._D4core8internal4hash__T13coalesceFloatTfZQsFNaNbNiNfxfZf: data information differs --- : _D4core8internal4hash__T13coalesceFloatTfZQsFNaNbNiNfxfZf() < 0x28:+0x28: 83 aa 0a 20 fcmps %fcc1, %f8, %f0 > 0x28:+0x28: 85 aa 0a 20 fcmps %fcc2, %f8, %f0 *** section: [302].text._D4core8internal4hash__T13coalesceFloatTdZQsFNaNbNiNfxdZd: data information differs --- : _D4core8internal4hash__T13coalesceFloatTdZQsFNaNbNiNfxdZd() < 0x20:+0x20: 87 aa 0a 40 fcmpd %fcc3, %d8, %d0 > 0x20:+0x20: 81 aa 0a 40 fcmpd %fcc0, %d8, %d0 *** section: [415].text._D4core8internal5array8equality__T7isEqualTfTfZQnFNaNbNiMxPfMxQe= kZb: data information differs --- : _D4core8internal5array8equality__T7isEqualTfTfZQnFNaNbNiMxPfMxQekZb() < 0x2c:+0x2c: 83 aa 4a 28 fcmps %fcc1, %f9, %f8 > 0x2c:+0x2c: 85 aa 4a 28 fcmps %fcc2, %f9, %f8 *** section: [420].text._D4core8internal5array8equality__T7isEqualTdTdZQnFNaNbNiMxPdMxQe= kZb: data information differs --- : _D4core8internal5array8equality__T7isEqualTdTdZQnFNaNbNiMxPdMxQekZb() < 0x2c:+0x2c: 85 aa 8a 48 fcmpd %fcc2, %d10, %d8 > 0x2c:+0x2c: 87 aa 8a 48 fcmpd %fcc3, %d10, %d8 Those differences in register allocation may well not be a gdc problem at a= ll. Considering the commits in that range, this one commit 57688950b9328cbb4a9c21eb3199f9132b5119d3 Author: Vladimir N. Makarov Date: Fri Mar 17 08:58:58 2023 -0400 LRA: Implement combining secondary memory reload and original insn might be a candidate.=