From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52368 invoked by alias); 9 Mar 2015 17:49:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 52289 invoked by uid 48); 9 Mar 2015 17:49:48 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/65364] New: FAIL: gcc.dg/uninit-19.c (test for warnings, line 22) Date: Mon, 09 Mar 2015 17:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00979.txt.bz2 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.