Bug 83869 - [8 regression] c-c++-common/attr-nonstring-3.c fails starting with r256683
Summary: [8 regression] c-c++-common/attr-nonstring-3.c fails starting with r256683
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Martin Sebor
URL:
Keywords: diagnostic
Depends on: 82609
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-15 18:28 UTC by seurer
Modified: 2018-01-15 21:46 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-01-15 00:00:00


Attachments
Test summary for r256683. (507 bytes, text/plain)
2018-01-15 20:11 UTC, Martin Sebor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description seurer 2018-01-15 18:28:48 UTC
Looks like there was a change in warning messages and this test case was missed?

Executing on host: /home/seurer/gcc/build/gcc-trunk/gcc/testsuite/g++1/../../xg++ -B/home/seurer/gcc/build/gcc-trunk/gcc/testsuite/g++1/../../ /home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c  -fno-diagnostics-show-caret -fdiagnostics-color=never  -nostdinc++ -I/home/seurer/gcc/build/gcc-trunk/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-trunk/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-trunk/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-trunk/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/util -fmessage-length=0  -std=gnu++98 -O2 -Wattributes -Wstringop-overflow -ftrack-macro-expansion=0  -S   -o attr-nonstring-3.s    (timeout = 300)
spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-trunk/gcc/testsuite/g++1/../../xg++ -B/home/seurer/gcc/build/gcc-trunk/gcc/testsuite/g++1/../../ /home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c -fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++ -I/home/seurer/gcc/build/gcc-trunk/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-trunk/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-trunk/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-trunk/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++98 -O2 -Wattributes -Wstringop-overflow -ftrack-macro-expansion=0 -S -o attr-nonstring-3.s
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_printf(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:71:3: warning: 'int printf(const char*, ...)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:74:3: warning: 'int printf(const char*, ...)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:77:3: warning: 'int printf(const char*, ...)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_puts(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:84:3: warning: 'int puts(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:87:3: warning: 'int puts(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:90:3: warning: 'int puts(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_snprintf(char*, size_t, MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:97:3: warning: 'int snprintf(char*, size_t, const char*, ...)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:100:3: warning: 'int snprintf(char*, size_t, const char*, ...)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:103:3: warning: 'int snprintf(char*, size_t, const char*, ...)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_sprintf(char*, MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:110:3: warning: 'int sprintf(char*, const char*, ...)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:113:3: warning: 'int sprintf(char*, const char*, ...)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:116:3: warning: 'int sprintf(char*, const char*, ...)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_vsnprintf(char*, size_t, MemArrays*, va_list)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:123:3: warning: 'int vsnprintf(char*, size_t, const char*, va_list)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:126:3: warning: 'int vsnprintf(char*, size_t, const char*, va_list)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:129:3: warning: 'int vsnprintf(char*, size_t, const char*, va_list)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_vsprintf(char*, MemArrays*, va_list)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:136:3: warning: 'int vsprintf(char*, const char*, va_list)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:139:3: warning: 'int vsprintf(char*, const char*, va_list)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:142:3: warning: 'int vsprintf(char*, const char*, va_list)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strcmp(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:149:3: warning: 'int strcmp(const char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:150:3: warning: 'int strcmp(const char*, const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:153:3: warning: 'int strcmp(const char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:154:3: warning: 'int strcmp(const char*, const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:156:3: warning: 'int strcmp(const char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:157:3: warning: 'int strcmp(const char*, const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:158:3: warning: 'int strcmp(const char*, const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:60:14: note: argument 'MemArrays::parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strncmp_warn(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:168:3: warning: 'int strncmp(const char*, const char*, size_t)' argument 2 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:169:3: warning: 'int strncmp(const char*, const char*, size_t)' argument 1 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_stpcpy(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:203:3: warning: 'char* stpcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:207:3: warning: 'char* stpcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:210:3: warning: 'char* stpcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_stpncpy_warn(MemArrays*, unsigned int)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:249:3: warning: 'char* stpncpy(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:256:3: warning: 'char* stpncpy(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strcat(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:265:3: warning: 'char* strcat(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:269:3: warning: 'char* strcat(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:272:3: warning: 'char* strcat(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strncat(MemArrays*, unsigned int)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:281:3: warning: 'char* strncat(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:285:3: warning: 'char* strncat(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:288:3: warning: 'char* strncat(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strcpy(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:297:3: warning: 'char* strcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:301:3: warning: 'char* strcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:304:3: warning: 'char* strcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strchr(MemArrays*, int)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:329:3: warning: 'char* strchr(const char*, int)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:332:3: warning: 'char* strchr(const char*, int)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:335:3: warning: 'char* strchr(const char*, int)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strdup(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:342:3: warning: 'char* strdup(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:345:3: warning: 'char* strdup(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:348:3: warning: 'char* strdup(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_stnrdup_warn(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:379:3: warning: 'char* strndup(const char*, size_t)' argument 1 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:381:3: warning: 'char* strndup(const char*, size_t)' argument 1 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strlen(MemArrays*, char*, size_t)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:389:3: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:392:3: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:395:3: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:397:3: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:386:46: note: argument 's' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:406:5: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:404:10: note: argument 'a' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:421:5: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:417:11: note: argument 'p' declared here
output is:
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_printf(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:71:3: warning: 'int printf(const char*, ...)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:74:3: warning: 'int printf(const char*, ...)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:77:3: warning: 'int printf(const char*, ...)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_puts(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:84:3: warning: 'int puts(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:87:3: warning: 'int puts(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:90:3: warning: 'int puts(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_snprintf(char*, size_t, MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:97:3: warning: 'int snprintf(char*, size_t, const char*, ...)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:100:3: warning: 'int snprintf(char*, size_t, const char*, ...)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:103:3: warning: 'int snprintf(char*, size_t, const char*, ...)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_sprintf(char*, MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:110:3: warning: 'int sprintf(char*, const char*, ...)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:113:3: warning: 'int sprintf(char*, const char*, ...)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:116:3: warning: 'int sprintf(char*, const char*, ...)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_vsnprintf(char*, size_t, MemArrays*, va_list)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:123:3: warning: 'int vsnprintf(char*, size_t, const char*, va_list)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:126:3: warning: 'int vsnprintf(char*, size_t, const char*, va_list)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:129:3: warning: 'int vsnprintf(char*, size_t, const char*, va_list)' argument 3 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_vsprintf(char*, MemArrays*, va_list)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:136:3: warning: 'int vsprintf(char*, const char*, va_list)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:139:3: warning: 'int vsprintf(char*, const char*, va_list)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:142:3: warning: 'int vsprintf(char*, const char*, va_list)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strcmp(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:149:3: warning: 'int strcmp(const char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:150:3: warning: 'int strcmp(const char*, const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:153:3: warning: 'int strcmp(const char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:154:3: warning: 'int strcmp(const char*, const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:156:3: warning: 'int strcmp(const char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:157:3: warning: 'int strcmp(const char*, const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:158:3: warning: 'int strcmp(const char*, const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:60:14: note: argument 'MemArrays::parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strncmp_warn(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:168:3: warning: 'int strncmp(const char*, const char*, size_t)' argument 2 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:169:3: warning: 'int strncmp(const char*, const char*, size_t)' argument 1 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_stpcpy(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:203:3: warning: 'char* stpcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:207:3: warning: 'char* stpcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:210:3: warning: 'char* stpcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_stpncpy_warn(MemArrays*, unsigned int)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:249:3: warning: 'char* stpncpy(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:256:3: warning: 'char* stpncpy(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strcat(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:265:3: warning: 'char* strcat(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:269:3: warning: 'char* strcat(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:272:3: warning: 'char* strcat(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strncat(MemArrays*, unsigned int)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:281:3: warning: 'char* strncat(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:285:3: warning: 'char* strncat(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:288:3: warning: 'char* strncat(char*, const char*, size_t)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strcpy(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:297:3: warning: 'char* strcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:301:3: warning: 'char* strcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:304:3: warning: 'char* strcpy(char*, const char*)' argument 2 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strchr(MemArrays*, int)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:329:3: warning: 'char* strchr(const char*, int)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:332:3: warning: 'char* strchr(const char*, int)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:335:3: warning: 'char* strchr(const char*, int)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strdup(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:342:3: warning: 'char* strdup(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:345:3: warning: 'char* strdup(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:348:3: warning: 'char* strdup(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_stnrdup_warn(MemArrays*)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:379:3: warning: 'char* strndup(const char*, size_t)' argument 1 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:381:3: warning: 'char* strndup(const char*, size_t)' argument 1 declared attribute 'nonstring' is smaller than the specified bound 5 [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c: In function 'void test_strlen(MemArrays*, char*, size_t)':
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:389:3: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:51:6: note: argument 'arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:392:3: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:54:7: note: argument 'parr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:395:3: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:59:15: note: argument 'MemArrays::arr' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:397:3: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:386:46: note: argument 's' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:406:5: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:404:10: note: argument 'a' declared here
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:421:5: warning: 'size_t strlen(const char*)' argument 1 declared attribute 'nonstring' [-Wstringop-overflow=]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c:417:11: note: argument 'p' declared here

PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 71)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 74)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 77)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 84)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 87)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 90)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 97)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 100)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 103)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 110)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 113)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 116)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 123)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 126)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 129)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 136)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 139)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 142)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 149)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 150)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 153)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 154)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 156)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 157)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 158)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 168)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 169)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 203)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 207)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 210)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 249)
FAIL: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 250)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 256)
FAIL: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 257)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 265)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 269)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 272)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 281)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 285)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 288)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 297)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 301)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 304)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 329)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 332)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 335)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 342)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 345)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 348)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 379)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 381)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 389)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 392)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 395)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 397)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 406)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98  (test for warnings, line 421)
PASS: c-c++-common/attr-nonstring-3.c  -std=gnu++98 (test for excess errors)
Comment 1 Martin Sebor 2018-01-15 20:11:38 UTC
Created attachment 43142 [details]
Test summary for r256683.

Confirmed.  I see it in my test results with the patch for bug 83508 (attached).  Somehow I missed it.
Comment 2 Martin Sebor 2018-01-15 21:07:47 UTC
The failing test cases are these two:

$ cat -n gcc/testsuite/c-c++-common/attr-nonstring-3.c | grep "[[:space:]]25[07][[:space:]]"
   250	  T (stpncpy (arr, str, N + 1));          /* { dg-warning "writing 5 bytes into a region of size 4 overflows " } */
   257	  T (stpncpy (p->arr, p->str, N + 1));    /* { dg-warning "writing 5 bytes into a region of size 4 overflows" } */

The following test case demonstrates the problem.  The root cause is bug 82609: the extra set of parentheses around the stpncpy call suppresses the middle-end warnings in C++ (C is unaffected).

$ cat pr83869.C && gcc -O2 -S -Wstringop-overflow pr83869.C
#include <string.h>

char a[4], b[4];

void sink (char*);

void warn_overflow (void)
{
  sink (stpncpy (a, b, sizeof a + 1));   // -Wstringop-overflow (good)
}

void bug_82609_missing_warn_overflow (void)
{
  sink ((stpncpy (a, b, sizeof a + 1)));   // missing -Wstringop-overflow
}
pr83869.C: In function ‘void warn_overflow()’:
pr83869.C:9:8: warning: ‘char* stpncpy(char*, const char*, size_t)’ writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=]
   sink (stpncpy (a, b, sizeof a + 1));   // -Wstringop-overflow (good)
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 3 Martin Sebor 2018-01-15 21:45:51 UTC
Author: msebor
Date: Mon Jan 15 21:45:06 2018
New Revision: 256709

URL: https://gcc.gnu.org/viewcvs?rev=256709&root=gcc&view=rev
Log:
PR testsuite/83869 - c-c++-common/attr-nonstring-3.c fails starting with r256683

testsuite/CHangeLog:
	* c-c++-common/attr-nonstring-3.c: Work around bug c++/74762.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c
Comment 4 Martin Sebor 2018-01-15 21:46:36 UTC
I've xfailed the assertions in r256709.