https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79109
Bug ID: 79109 Summary: FAIL: gcc.dg/attr-alloc_size-4.c (test for excess errors) Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu Executing on host: /home/dave/gnu/gcc/objdir/gcc/xgcc -B/home/dave/gnu/gcc/objdi r/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c -fno-d iagnostics-show-caret -fdiagnostics-color=never -O2 -Wall -Walloc-size-larger- than=1234 -S -o attr-alloc_size-4.s (timeout = 300) spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/xgcc -B/home/dave/gnu/gcc/obj dir/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c -fno-di agnostics-show-caret -fdiagnostics-color=never -O2 -Wall -Walloc-size-larger-tha n=1234 -S -o attr-alloc_size-4.s /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c: In function 'te st_uint_cst': /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:84:3: warning: a rgument 1 value '1235' exceeds maximum object size 1234 [-Walloc-size-larger-tha n=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:20:7: note: in a call to allocation function 'f_uint_1' declared here/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:85:3: warning: argument 1 value '4294967294' exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:20:7: note: in a call to allocation function 'f_uint_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:86:3: warning: argument 1 value '4294967295' exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:20:7: note: in a call to allocation function 'f_uint_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c: In function 'test_uint_range': /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:101:3: warning: argument 1 range [1235, 1236] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:20:7: note: in a call to allocation function 'f_uint_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c: In function 'test_int_cst': /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:112:3: warning: argument 1 value '-2147483648' is negative [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:113:3: warning: argument 1 value '-1' is negative [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:118:3: warning: argument 1 value '2147483647' exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c: In function 'test_int_range': /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:130:3: warning: argument 1 range [-2, -1] is negative [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:132:3: warning: argument 1 range [1235, 2345] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:133:3: warning: argument 1 range [2147483646, 2147483647] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:138:3: warning: argument 1 range [1235, 2147483647] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:142:3: warning: argument 1 range [1236, 2147483647] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:144:3: warning: argument 1 range [-2147483648, -1] is negative [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:148:3: warning: argument 1 range [-2147483648, 0] is negative [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:22:7: note: in a call to allocation function 'f_int_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c: In function 'test_size_cst': /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:162:3: warning: product '2 * 1234' of arguments 1 and 2 exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:163:3: warning: product '1234 * 1234' of arguments 1 and 2 exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:164:3: warning: argument 1 value '1235' exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:165:3: warning: argument 2 value '1235' exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:166:3: warning: argument 2 value '4294967295' exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:167:3: warning: argument 1 value '4294967295' exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c: In function 'test_size_range': /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:185:3: warning: argument 1 range [1235, 4294967295] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:25:7: note: in a call to allocation function 'f_size_1' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:194:3: warning: argument 2 value '1235' exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:196:3: warning: argument 1 range [1235, 1236] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:198:3: warning: argument 1 range [1235, 1236] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:198:3: warning: argument 2 range [2147483647, 4294967295] exceeds maximum object size 1234 [-Walloc-size-larger-than=] /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:26:7: note: in a call to allocation function 'f_size_2' declared here PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 84) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 85) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 86) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 101) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 112) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 113) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 118) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 130) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 132) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 133) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 138) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 144) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 148) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 162) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 163) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 164) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 165) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 166) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 167) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 185) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 194) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 196) PASS: gcc.dg/attr-alloc_size-4.c (test for warnings, line 198) PASS: gcc.dg/attr-alloc_size-4.c argument 2 (test for warnings, line 198) FAIL: gcc.dg/attr-alloc_size-4.c (test for excess errors) Excess errors: /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:142:3: warning: argument 1 range [1236, 2147483647] exceeds maximum object size 1234 [-Walloc-size-larger-than=]