public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/111475] New: Many C++ analyzer tests FAIL
@ 2023-09-19 11:50 ro at gcc dot gnu.org
  2023-09-19 11:51 ` [Bug analyzer/111475] " ro at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: ro at gcc dot gnu.org @ 2023-09-19 11:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111475

            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) analyzer
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=c++14  (test for
warnings, line 33)
FAIL: c-c++-common/analyzer/allocation-size-1.c  -std=c++14 note (test for
warnings, line 65)
FAIL: c-c++-common/analyzer/allocation-size-1.c  -std=c++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.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-05-06  8:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-19 11:50 [Bug analyzer/111475] New: Many C++ analyzer tests FAIL ro at gcc dot gnu.org
2023-09-19 11:51 ` [Bug analyzer/111475] " ro at gcc dot gnu.org
2024-01-18 12:52 ` ro at gcc dot gnu.org
2024-01-18 15:16 ` ro at CeBiTec dot Uni-Bielefeld.DE
2024-01-19 10:10 ` ro at gcc dot gnu.org
2024-01-19 10:11 ` ro at gcc dot gnu.org
2024-01-19 10:11 ` ro at gcc dot gnu.org
2024-04-23 13:46 ` [Bug analyzer/111475] [14 regression] " ro at gcc dot gnu.org
2024-04-23 17:16 ` ro at gcc dot gnu.org
2024-04-26 13:06 ` [Bug analyzer/111475] [14/15 " ro at gcc dot gnu.org
2024-04-26 13:15 ` dmalcolm at gcc dot gnu.org
2024-04-26 13:36 ` ro at CeBiTec dot Uni-Bielefeld.DE
2024-04-30 19:43 ` dmalcolm at gcc dot gnu.org
2024-05-01 10:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
2024-05-03 13:12 ` cvs-commit at gcc dot gnu.org
2024-05-03 13:34 ` [Bug analyzer/111475] [14 " dmalcolm at gcc dot gnu.org
2024-05-06  8:55 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).