https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106480
Bug ID: 106480
Summary: FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for
warnings, line 33)
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: danglin at gcc dot gnu.org
Target Milestone: ---
Host: hppa*-*-linux*
Target: hppa*-*-linux*
Build: hppa*-*-linux*
FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 33)
FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 133)
spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/xgcc
-B/home/dave/gnu/gcc/objdir/gcc/
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c
-fdiagnostics-plain-output -O2 -Wall -S -o Warray-bounds-48.s
In function 'warn_ax_local',
inlined from 'test_ax' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:63:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:22:8: warning:
array subscript 0 is outside array bounds of 'int16_t[]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_ax':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:17:11: note:
while referencing 'ax'
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:62:15: note:
defined here 'sax'
In function 'warn_ax_local',
inlined from 'test_ax' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:63:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:23:8: warning:
array subscript 1 is outside array bounds of 'int16_t[]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_ax':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:17:11: note:
while referencing 'ax'
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:62:15: note:
defined here 'sax'
In function 'warn_ax_local_buf',
inlined from 'test_ax' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:77:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:35:8: warning:
array subscript 2 is above array bounds of 'int16_t[]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_ax':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:17:11: note:
while referencing 'ax'
In function 'warn_ax_local_buf',
inlined from 'test_ax' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:77:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:36:8: warning:
array subscript 3 is above array bounds of 'int16_t[]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_ax':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:17:11: note:
while referencing 'ax'
In function 'warn_ax_local_buf',
inlined from 'test_ax' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:77:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:37:8: warning:
array subscript 4 is above array bounds of 'int16_t[]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_ax':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:17:11: note:
while referencing 'ax'
In function 'warn_ax_extern_buf',
inlined from 'test_ax' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:85:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:44:8: warning:
array subscript 3 is above array bounds of 'int16_t[]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_ax':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:17:11: note:
while referencing 'ax'
In function 'warn_ax_extern_buf',
inlined from 'test_ax' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:85:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:45:8: warning:
array subscript 4 is above array bounds of 'int16_t[]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_ax':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:17:11: note:
while referencing 'ax'
In function 'warn_ax_extern_buf',
inlined from 'test_ax' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:85:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:46:8: warning:
array subscript 5 is above array bounds of 'int16_t[]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_ax':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:17:11: note:
while referencing 'ax'
In function 'warn_a0_local',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:163:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:121:8: warning:
array subscript 0 is outside array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:162:15: note:
defined here 'sa0'
In function 'warn_a0_local',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:163:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:122:8: warning:
array subscript 1 is outside array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:162:15: note:
defined here 'sa0'
In function 'warn_a0_extern',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:170:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:127:8: warning:
array subscript 0 is outside array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:169:17: note:
defined here 'xsa0'
In function 'warn_a0_extern',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:170:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:128:8: warning:
array subscript 1 is outside array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:169:17: note:
defined here 'xsa0'
In function 'warn_a0_local_buf',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:177:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:135:8: warning:
array subscript 2 is above array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
In function 'warn_a0_local_buf',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:177:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:136:8: warning:
array subscript 3 is above array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
In function 'warn_a0_local_buf',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:177:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:137:8: warning:
array subscript 4 is above array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
In function 'warn_a0_extern_buf',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:185:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:144:8: warning:
array subscript 3 is above array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
In function 'warn_a0_extern_buf',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:185:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:145:8: warning:
array subscript 4 is above array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
In function 'warn_a0_extern_buf',
inlined from 'test_a0' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:185:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:146:8: warning:
array subscript 5 is above array bounds of 'int16_t[0]' {aka 'short int[]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a0':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:116:11: note:
while referencing 'a0'
In function 'warn_a1_local_noinit',
inlined from 'test_a1' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:268:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:222:8: warning:
array subscript 1 is above array bounds of 'int16_t[1]' {aka 'short int[1]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a1':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:216:11: note:
while referencing 'a1'
In function 'warn_a1_local_noinit',
inlined from 'test_a1' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:268:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:223:8: warning:
array subscript 2 is above array bounds of 'int16_t[1]' {aka 'short int[1]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a1':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:216:11: note:
while referencing 'a1'
In function 'warn_a1_extern',
inlined from 'test_a1' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:274:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:229:8: warning:
array subscript 1 is above array bounds of 'int16_t[1]' {aka 'short int[1]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a1':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:216:11: note:
while referencing 'a1'
In function 'warn_a1_extern',
inlined from 'test_a1' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:274:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:230:8: warning:
array subscript 2 is above array bounds of 'int16_t[1]' {aka 'short int[1]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a1':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:216:11: note:
while referencing 'a1'
In function 'warn_a1_init',
inlined from 'test_a1' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:279:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:236:8: warning:
array subscript 1 is above array bounds of 'int16_t[1]' {aka 'short int[1]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a1':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:216:11: note:
while referencing 'a1'
In function 'warn_a1_init',
inlined from 'test_a1' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:279:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:237:8: warning:
array subscript 2 is above array bounds of 'int16_t[1]' {aka 'short int[1]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a1':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:216:11: note:
while referencing 'a1'
In function 'warn_a1_local_buf',
inlined from 'test_a1' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:286:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:244:8: warning:
array subscript 4 is above array bounds of 'int16_t[1]' {aka 'short int[1]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a1':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:216:11: note:
while referencing 'a1'
In function 'warn_a1_extern_buf',
inlined from 'test_a1' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:294:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:251:8: warning:
array subscript 5 is above array bounds of 'int16_t[1]' {aka 'short int[1]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a1':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:216:11: note:
while referencing 'a1'
In function 'warn_a2_noinit',
inlined from 'test_a2' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:354:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:331:8: warning:
array subscript 2 is above array bounds of 'int16_t[2]' {aka 'short int[2]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a2':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:324:11: note:
while referencing 'a2'
In function 'warn_a2_init',
inlined from 'test_a2' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:360:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:338:8: warning:
array subscript 2 is above array bounds of 'int16_t[2]' {aka 'short int[2]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a2':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:324:11: note:
while referencing 'a2'
In function 'warn_a2_init',
inlined from 'test_a2' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:360:5:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:339:8: warning:
array subscript 9 is above array bounds of 'int16_t[2]' {aka 'short int[2]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a2':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:324:11: note:
while referencing 'a2'
In function 'warn_a2_ref',
inlined from 'test_a2' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:364:3:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:346:8: warning:
array subscript 2 is above array bounds of 'int16_t[2]' {aka 'short int[2]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a2':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:324:11: note:
while referencing 'a2'
In function 'warn_a2_ref',
inlined from 'test_a2' at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:364:3:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:347:8: warning:
array subscript 9 is above array bounds of 'int16_t[2]' {aka 'short int[2]'}
[-Warray-bounds]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c: In function
'test_a2':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/Warray-bounds-48.c:324:11: note:
while referencing 'a2'