public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18322] New: __func__ diagnostic in bad location
@ 2004-11-06 21:29 jsm28 at gcc dot gnu dot org
2004-11-06 21:32 ` [Bug c/18322] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2004-11-06 21:29 UTC (permalink / raw)
To: gcc-bugs
The diagnostic for use of __func__ outside a function, as tested in
gcc.dg/func-outside-*.c, wrongly has line number 0 instead of the
line number of the bad use of __func__.
func-outside-1.c:0: warning: '__func__' is not defined outside of function scope
This is a regression from 3.2.x.
When fixed, the " { target *-*-* } 0" should be removed from those
testcases so they test the diagnostic in its proper location.
--
Summary: __func__ diagnostic in bad location
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18322
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18322] [3.3/3.4/4.0 Regression] __func__ diagnostic in bad location
2004-11-06 21:29 [Bug c/18322] New: __func__ diagnostic in bad location jsm28 at gcc dot gnu dot org
@ 2004-11-06 21:32 ` pinskia at gcc dot gnu dot org
2004-11-09 21:22 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-06 21:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-06 21:32 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-11-06 21:32:43
date| |
Summary|__func__ diagnostic in bad |[3.3/3.4/4.0 Regression]
|location |__func__ diagnostic in bad
| |location
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18322
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18322] [3.3/3.4/4.0 Regression] __func__ diagnostic in bad location
2004-11-06 21:29 [Bug c/18322] New: __func__ diagnostic in bad location jsm28 at gcc dot gnu dot org
2004-11-06 21:32 ` [Bug c/18322] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-09 21:22 ` cvs-commit at gcc dot gnu dot org
2004-11-10 19:47 ` [Bug c/18322] [3.3/3.4 " cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-09 21:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-09 21:22 -------
Subject: Bug 18322
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jsm28@gcc.gnu.org 2004-11-09 21:22:27
Modified files:
gcc : ChangeLog c-common.c
gcc/testsuite : ChangeLog
gcc/testsuite/gcc.dg: func-outside-1.c func-outside-2.c
Log message:
PR c/18322
* c-common.c (fname_decl): Don't use line number of decl in
diagnostic.
testsuite:
* gcc.dg/func-outside-1.c, gcc.dg/func-outside-2.c: Correct
expected diagnostic location.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6257&r2=2.6258
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&r1=1.583&r2=1.584
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4566&r2=1.4567
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/func-outside-1.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/func-outside-2.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18322
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18322] [3.3/3.4 Regression] __func__ diagnostic in bad location
2004-11-06 21:29 [Bug c/18322] New: __func__ diagnostic in bad location jsm28 at gcc dot gnu dot org
2004-11-06 21:32 ` [Bug c/18322] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-09 21:22 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-10 19:47 ` cvs-commit at gcc dot gnu dot org
2004-11-11 15:06 ` [Bug c/18322] [3.3 " pinskia at gcc dot gnu dot org
2005-04-30 16:31 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-10 19:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-10 19:47 -------
Subject: Bug 18322
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: jsm28@gcc.gnu.org 2004-11-10 19:46:34
Modified files:
gcc : ChangeLog c-common.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: func-outside-1.c func-outside-2.c
Log message:
PR c/18322
* c-common.c (fname_decl): Don't use line number of decl in
diagnostic.
testsuite:
* gcc.dg/func-outside-1.c, gcc.dg/func-outside-2.c: New tests.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.685&r2=2.2326.2.686
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.476.4.9&r2=1.476.4.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.306&r2=1.3389.2.307
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/func-outside-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.2.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/func-outside-2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.2.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18322
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18322] [3.3 Regression] __func__ diagnostic in bad location
2004-11-06 21:29 [Bug c/18322] New: __func__ diagnostic in bad location jsm28 at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-11-10 19:47 ` [Bug c/18322] [3.3/3.4 " cvs-commit at gcc dot gnu dot org
@ 2004-11-11 15:06 ` pinskia at gcc dot gnu dot org
2005-04-30 16:31 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-11 15:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to work|3.2.3 4.0.0 |3.2.3 4.0.0 3.4.4
Summary|[3.3/3.4 Regression] |[3.3 Regression] __func__
|__func__ diagnostic in bad |diagnostic in bad location
|location |
Target Milestone|3.4.4 |3.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18322
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18322] [3.3 Regression] __func__ diagnostic in bad location
2004-11-06 21:29 [Bug c/18322] New: __func__ diagnostic in bad location jsm28 at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-11-11 15:06 ` [Bug c/18322] [3.3 " pinskia at gcc dot gnu dot org
@ 2005-04-30 16:31 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-04-30 16:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2005-04-30 16:31 -------
Fixed in 3.4.x. Thr formating machinery is different in 3.3.6 and
this is not critical for 3.3.6. So closing.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|3.3.6 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18322
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-04-30 16:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-06 21:29 [Bug c/18322] New: __func__ diagnostic in bad location jsm28 at gcc dot gnu dot org
2004-11-06 21:32 ` [Bug c/18322] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-09 21:22 ` cvs-commit at gcc dot gnu dot org
2004-11-10 19:47 ` [Bug c/18322] [3.3/3.4 " cvs-commit at gcc dot gnu dot org
2004-11-11 15:06 ` [Bug c/18322] [3.3 " pinskia at gcc dot gnu dot org
2005-04-30 16:31 ` gdr at gcc dot gnu dot org
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).