https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65364
Bug ID: 65364 Summary: FAIL: gcc.dg/uninit-19.c (test for warnings, line 22) Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org On hppa64-hp-hpux11.11 and other PIC targets, the expected warning does not occur at the expected line number. I believe the test was already adjusted once. spawn /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /test/gnu/gcc/gc c/gcc/testsuite/gcc.dg/uninit-19.c -fno-diagnostics-show-caret -fdiagnostics-col or=never -O -Wuninitialized -S -o uninit-19.s /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/uninit-19.c: In function 'fn2': /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/uninit-19.c:13:15: warning: 'n' may be us ed uninitialized in this function [-Wmaybe-uninitialized] /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/uninit-19.c:19:10: note: 'n' was declared here output is: /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/uninit-19.c: In function 'fn2': /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/uninit-19.c:13:15: warning: 'n' may be us ed uninitialized in this function [-Wmaybe-uninitialized] /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/uninit-19.c:19:10: note: 'n' was declared here FAIL: gcc.dg/uninit-19.c (test for warnings, line 22) FAIL: gcc.dg/uninit-19.c (test for excess errors) Excess errors: /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/uninit-19.c:13:15: warning: 'n' may be us ed uninitialized in this function [-Wmaybe-uninitialized] /* { dg-warning "may be used uninitialized" "" { target nonpic } 13 } */^M /* { dg-warning "may be used uninitialized" "" { target { ! nonpic } } 22 } */^M The hppa64-hp-hpux11.11 target is always PIC and the warning occurs at line 13.