From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E15F13858418; Tue, 19 Sep 2023 11:50:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E15F13858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695124251; bh=4cHtCxzT24THHU9uvlDjyf/1Q0XCArnQugFQ3pbeb7I=; h=From:To:Subject:Date:From; b=KUWgsVQg7d9+cwi4MhZtw5w40yDNxSdbE/ERP3oPVXIeKM6KCJsfuMJkddwjQQj4a 1q93ExI+GdoENWlhnzTv/8AqniL945fgKffXnm7eEKIG1IgX94ycq2AGR2unJHEps+ 97LhZ5N39vt88TncMuYDyzZ2KxZs1u5lIlWMqIIw= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/111475] New: Many C++ analyzer tests FAIL Date: Tue, 19 Sep 2023 11:50:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 14.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: dmalcolm at gcc dot gnu.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 cc target_milestone cf_gcctarget 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=3D111475 Bug ID: 111475 Summary: Many C++ analyzer tests FAIL Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: vultkayn at gcc dot gnu.org Target Milestone: --- Target: *-*-solaris2.11 Between 20230908 (f9cb357ae962ba2922b8507f4d96227780a063b9) and 20230911 (88a0a883960910530bfefa750461168f539f4a00), man (ca.350 per multilib) analy= zer tests FAIL on Solaris (both 32 and 64-bit, SPARC and x86). There may be a common pattern (I've only looked at one example): FAIL: c-c++-common/analyzer/allocation-size-1.c -std=3Dc++14 (test for warnings, line 33) FAIL: c-c++-common/analyzer/allocation-size-1.c -std=3Dc++14 note (test for warnings, line 65) FAIL: c-c++-common/analyzer/allocation-size-1.c -std=3Dc++14 note at line = 21 (test for warnings, line 15) Comparing the full output on Solaris /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c: In function 'void test_2()': /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:15:37: warning: allocated buffer size is not a multiple of the pointee's size [CWE-131] [-Wanalyzer-allocation-size] /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:15:37: note: (1) allocated 42 bytes and assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c: In function 'void test_4()': /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:34:12: warning: allocated buffer size is not a multiple of the pointee's size [CWE-131] [-Wanalyzer-allocation-size] /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:34:12: note: (1) allocated 42 bytes and assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c: In function 'void test_6()': /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:68:12: warning: allocated buffer size is not a multiple of the pointee's size [CWE-131] [-Wanalyzer-allocation-size] /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:68:12: note: (1) allocated and assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c: In function 'void test_11()': /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:125:37: warning: allocated buffer size is not a multiple of the pointee's size [CWE-131] [-Wanalyzer-allocation-size] /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:125:37: note: (1) allocated 3 bytes and assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' and Linux /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c: In function 'void test_2()': /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:15:37: warning: allocated buffer size is not a multiple of the pointee's size [CWE-131] [-Wanalyzer-allocation-size] /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:15:37: note: (1) allocated 42 bytes here /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:15:37: note: (2) assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c: In function 'void test_4()': /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:34:12: warning: allocated buffer size is not a multiple of the pointee's size [CWE-131] [-Wanalyzer-allocation-size] /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:33:22: note: (1) allocated 42 bytes here /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:34:12: note: (2) assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c: In function 'void test_6()': /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:68:12: warning: allocated buffer size is not a multiple of the pointee's size [CWE-131] [-Wanalyzer-allocation-size] /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:65:22: note: (1) allocated here /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:68:12: note: (2) assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c: In function 'void test_11()': /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:125:37: warning: allocated buffer size is not a multiple of the pointee's size [CWE-131] [-Wanalyzer-allocation-size] /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:125:37: note: (1) allocated 3 bytes here /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:125:37: note: (2) assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' ISTM that the primary difference is here: /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:15:37: note: (1) allocated 42 bytes and assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' vs. /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:15:37: note: (1) allocated 42 bytes here /vol/gcc/src/hg/master/local/gcc/testsuite/c-c++-common/analyzer/allocation= -size-1.c:15:37: note: (2) assigned to 'int32_t*' {aka 'int*'} here; 'sizeof (int32_t {aka int})' is '4' i.e. the wording of the note, where the testsuite doesn't cater to the first form. This creates an incredible amount of noise, unfortunately.=