public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/10929] [3.3/3.4 regression] -Winline warns about functions for which no definition is visible
@ 2003-05-22 15:14 bangerth@dealii.org
0 siblings, 0 replies; 6+ messages in thread
From: bangerth@dealii.org @ 2003-05-22 15:14 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10929
bangerth@dealii.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Priority|P2 |P1
Summary|g++-3.3 -Winline warns about|[3.3/3.4 regression] -
|functions that cannot/should|Winline warns about
|not be inlined |functions for which no
| |definition is visible
Target Milestone|3.4 |3.3.1
------- Additional Comments From bangerth@dealii.org 2003-05-22 14:33 -------
Confirmed. A profoundly unhelpful feature. It triggers on this simple code:
---------------------------
int foo(void);
int main() {
return foo();
}
---------------------------
3.3 and 3.4 warn like this:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc -O3 -Winline -c
x.cc: In function `int main()':
x.cc:1: warning: inlining failed in call to `int foo()'
x.cc:4: warning: called from here
Warning about functions for which no definition is visible doesn't
make much sense.
W.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/10929] [3.3/3.4 regression] -Winline warns about functions for which no definition is visible
[not found] <20030522111955.10929.thor@math.tu-berlin.de>
` (2 preceding siblings ...)
2003-06-17 23:00 ` cvs-commit at gcc dot gnu dot org
@ 2003-06-17 23:02 ` jason at gcc dot gnu dot org
2003-06-17 23:02 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2003-06-17 23:02 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10929
jason@gcc.gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From jason@gcc.gnu.org 2003-06-17 23:02 -------
Fixed for 3.3.1.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/10929] [3.3/3.4 regression] -Winline warns about functions for which no definition is visible
[not found] <20030522111955.10929.thor@math.tu-berlin.de>
` (3 preceding siblings ...)
2003-06-17 23:02 ` jason at gcc dot gnu dot org
@ 2003-06-17 23:02 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-06-17 23:02 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10929
------- Additional Comments From cvs-commit@gcc.gnu.org 2003-06-17 23:02 -------
Subject: Bug 10929
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: jason@gcc.gnu.org 2003-06-17 23:02:06
Modified files:
gcc : ChangeLog tree-inline.c
gcc/cp : ChangeLog decl.c
Log message:
PR c++/10929
* tree-inline.c (expand_call_inline): Don't warn about failing to
inline a function which was made inline by -finline-functions.
* cp/decl.c (grokfndecl): Don't mark a function inline for
-finline-functions if it isn't defined.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.588&r2=1.16114.2.589
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.38.2.8&r2=1.38.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.149&r2=1.3076.2.150
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.965.2.47&r2=1.965.2.48
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/10929] [3.3/3.4 regression] -Winline warns about functions for which no definition is visible
[not found] <20030522111955.10929.thor@math.tu-berlin.de>
2003-06-10 19:44 ` jason@gcc.gnu.org
2003-06-16 17:59 ` pinskia@physics.uc.edu
@ 2003-06-17 23:00 ` cvs-commit at gcc dot gnu dot org
2003-06-17 23:02 ` jason at gcc dot gnu dot org
2003-06-17 23:02 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-06-17 23:00 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10929
------- Additional Comments From cvs-commit@gcc.gnu.org 2003-06-17 23:00 -------
Subject: Bug 10929
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jason@gcc.gnu.org 2003-06-17 23:00:17
Modified files:
gcc : ChangeLog tree-inline.c
gcc/cp : ChangeLog decl.c
Added files:
gcc/testsuite/g++.dg/warn: Winline-2.C
Log message:
PR c++/10929
* tree-inline.c (expand_call_inline): Don't warn about failing to
inline a function which was made inline by -finline-functions.
* cp/decl.c (grokfndecl): Don't mark a function inline for
-finline-functions if it isn't defined.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Winline-2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.51&r2=2.52
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&r1=1.61&r2=1.62
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3430&r2=1.3431
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1066&r2=1.1067
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/10929] [3.3/3.4 regression] -Winline warns about functions for which no definition is visible
[not found] <20030522111955.10929.thor@math.tu-berlin.de>
2003-06-10 19:44 ` jason@gcc.gnu.org
@ 2003-06-16 17:59 ` pinskia@physics.uc.edu
2003-06-17 23:00 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-16 17:59 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10929
------- Additional Comments From pinskia@physics.uc.edu 2003-06-16 17:59 -------
Who ever fixes this, please check if bug 11067 is fixed too, it looks like the same
problem but a different test case.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/10929] [3.3/3.4 regression] -Winline warns about functions for which no definition is visible
[not found] <20030522111955.10929.thor@math.tu-berlin.de>
@ 2003-06-10 19:44 ` jason@gcc.gnu.org
2003-06-16 17:59 ` pinskia@physics.uc.edu
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jason@gcc.gnu.org @ 2003-06-10 19:44 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10929
jason@gcc.gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|0000-00-00 00:00:00 |2003-06-10 19:44:12
date| |
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-06-17 23:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-22 15:14 [Bug c++/10929] [3.3/3.4 regression] -Winline warns about functions for which no definition is visible bangerth@dealii.org
[not found] <20030522111955.10929.thor@math.tu-berlin.de>
2003-06-10 19:44 ` jason@gcc.gnu.org
2003-06-16 17:59 ` pinskia@physics.uc.edu
2003-06-17 23:00 ` cvs-commit at gcc dot gnu dot org
2003-06-17 23:02 ` jason at gcc dot gnu dot org
2003-06-17 23:02 ` cvs-commit 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).