public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/65364] New: FAIL: gcc.dg/uninit-19.c (test for warnings, line 22)
@ 2015-03-09 17:49 danglin at gcc dot gnu.org
2015-03-09 17:57 ` [Bug testsuite/65364] " dominiq at lps dot ens.fr
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: danglin at gcc dot gnu.org @ 2015-03-09 17:49 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/65364] FAIL: gcc.dg/uninit-19.c (test for warnings, line 22)
2015-03-09 17:49 [Bug testsuite/65364] New: FAIL: gcc.dg/uninit-19.c (test for warnings, line 22) danglin at gcc dot gnu.org
@ 2015-03-09 17:57 ` dominiq at lps dot ens.fr
2015-03-09 18:09 ` dominiq at lps dot ens.fr
2015-03-09 19:27 ` dave.anglin at bell dot net
2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-03-09 17:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65364
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-03-09
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed on darwin.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/65364] FAIL: gcc.dg/uninit-19.c (test for warnings, line 22)
2015-03-09 17:49 [Bug testsuite/65364] New: FAIL: gcc.dg/uninit-19.c (test for warnings, line 22) danglin at gcc dot gnu.org
2015-03-09 17:57 ` [Bug testsuite/65364] " dominiq at lps dot ens.fr
@ 2015-03-09 18:09 ` dominiq at lps dot ens.fr
2015-03-09 19:27 ` dave.anglin at bell dot net
2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-03-09 18:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65364
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
See https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00557.html for a patch and
https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00737.html for some analysis for
darwin.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/65364] FAIL: gcc.dg/uninit-19.c (test for warnings, line 22)
2015-03-09 17:49 [Bug testsuite/65364] New: FAIL: gcc.dg/uninit-19.c (test for warnings, line 22) danglin at gcc dot gnu.org
2015-03-09 17:57 ` [Bug testsuite/65364] " dominiq at lps dot ens.fr
2015-03-09 18:09 ` dominiq at lps dot ens.fr
@ 2015-03-09 19:27 ` dave.anglin at bell dot net
2 siblings, 0 replies; 4+ messages in thread
From: dave.anglin at bell dot net @ 2015-03-09 19:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65364
--- Comment #3 from dave.anglin at bell dot net ---
On 2015-03-09 2:08 PM, dominiq at lps dot ens.fr wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65364
>
> --- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> See https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00557.html for a patch and
> https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00737.html for some analysis for
> darwin.
>
hppa64-hp-hpux* uses the default binding heuristics. Maybe the nonpic
test doesn't really
determine on which line the warning occurs.
Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-09 19:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09 17:49 [Bug testsuite/65364] New: FAIL: gcc.dg/uninit-19.c (test for warnings, line 22) danglin at gcc dot gnu.org
2015-03-09 17:57 ` [Bug testsuite/65364] " dominiq at lps dot ens.fr
2015-03-09 18:09 ` dominiq at lps dot ens.fr
2015-03-09 19:27 ` dave.anglin at bell dot net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).