public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17274] New: -Winline complains about nonexistent destructor
@ 2004-09-02 0:33 mckelvey at maskull dot com
2004-09-02 0:36 ` [Bug c++/17274] " mckelvey at maskull dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: mckelvey at maskull dot com @ 2004-09-02 0:33 UTC (permalink / raw)
To: gcc-bugs
I don't understand the warnings below. There is no destructor supplied for
std::pair, so why a complaint about a missing body? And what does "function not
considered for inlining" mean? I'm also suspicious about the "growth limit",
since the code isn't very complicated. See attachment for all warnings and
source.
alpha1:PD>uname -a
Linux alpha1 2.4.9-40 #1 Mon Sep 23 08:14:02 EDT 2002 alpha unknown
alpha1:PD>g++ -v
Reading specs from /usr/local/lib/gcc/alphaev56-unknown-linux-gnu/3.5.0/specs
Configured with: ../gcc/configure --verbose --enable-languages=c++
Thread model: posix
gcc version 3.5.0 20040207 (experimental)
g++ configured with:
alpha1:PD>alias CONFIGURECVS
alias CONFIGURECVS='../gcc/configure --verbose --enable-languages=c++
--disable-nls >clog 2>&1'
g++ built with:
alpha1:PD>alias BUILD
alias BUILD='nice gmake CFLAGS='\'''\'' BOOT_CFLAGS='\''-O'\'' LIBCFLAGS='\''-g
-O'\'' LIBCXXFLAGS='\''-g -O'\'' bootstrap >log 2>&1'
/usr/local/bin/g++ -c -O3 -DNDEBUG -D__USE_STRING_INLINES=1
-pedantic-errors -Werror -ansi -fno-common -fstrict-aliasing -Wall
-Wold-style-cast -Wsign-promo -Wpointer-arith -Wconversion -Wundef
-Wwrite-strings -Winvalid-pch -Woverloaded-virtual -Wcast-qual -Winline -Wextra
-MMD -fimplicit-templates -o SymbolTable.o SymbolTable.cc
PDSymbolTable.h:675: warning: inlining failed in call to
'std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char>
>, __gnu_norm::deque<PatternDriver::pdboolean,
std::allocator<PatternDriver::pdboolean> > >::~pair()': function body not
available
/usr/local/lib/gcc/alphaev56-unknown-linux-gnu/3.5.0/../../../../include/c++/3.5.0/bits/stl_pair.h:91:
warning: called from here
PDSymbolTable.h:675: warning: inlining failed in call to 'std::pair<const
PatternDriver::pdstring, PatternDriver::pdbooleans>::~pair()': function not
considered for inlining
/usr/local/lib/gcc/alphaev56-unknown-linux-gnu/3.5.0/../../../../include/c++/3.5.0/bits/stl_map.h:360:
warning: called from here
PDSymbolTable.h:658: warning: inlining failed in call to
'std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char>
>, __gnu_norm::vector<PatternDriver::pdfloat,
std::allocator<PatternDriver::pdfloat> > >::~pair()': --param
large-function-growth limit reached while inlining the caller
/usr/local/lib/gcc/alphaev56-unknown-linux-gnu/3.5.0/../../../../include/c++/3.5.0/bits/stl_pair.h:86:
warning: called from here
--
Summary: -Winline complains about nonexistent destructor
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mckelvey at maskull dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev56-unknown-linux-gnu
GCC host triplet: alphaev56-unknown-linux-gnu
GCC target triplet: alphaev56-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17274
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17274] -Winline complains about nonexistent destructor
2004-09-02 0:33 [Bug c++/17274] New: -Winline complains about nonexistent destructor mckelvey at maskull dot com
@ 2004-09-02 0:36 ` mckelvey at maskull dot com
2004-09-02 1:01 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mckelvey at maskull dot com @ 2004-09-02 0:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mckelvey at maskull dot com 2004-09-02 00:36 -------
Created an attachment (id=7018)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7018&action=view)
Log file from compile, and .ii source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17274
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17274] -Winline complains about nonexistent destructor
2004-09-02 0:33 [Bug c++/17274] New: -Winline complains about nonexistent destructor mckelvey at maskull dot com
2004-09-02 0:36 ` [Bug c++/17274] " mckelvey at maskull dot com
@ 2004-09-02 1:01 ` pinskia at gcc dot gnu dot org
2004-09-07 23:19 ` bangerth at dealii dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-02 1:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-02 01:01 -------
There are destructors even if there does not exist one in the code. It is a method which is created by
the compiler so maybe we should not be warning about it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17274
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17274] -Winline complains about nonexistent destructor
2004-09-02 0:33 [Bug c++/17274] New: -Winline complains about nonexistent destructor mckelvey at maskull dot com
2004-09-02 0:36 ` [Bug c++/17274] " mckelvey at maskull dot com
2004-09-02 1:01 ` pinskia at gcc dot gnu dot org
@ 2004-09-07 23:19 ` bangerth at dealii dot org
2004-09-12 19:00 ` mckelvey at maskull dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bangerth at dealii dot org @ 2004-09-07 23:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-09-07 23:19 -------
I can't reproduce this on my x86 linux machine. I realize you have a fairly
old mainline snapshot, would you mind testing this again with a newer one?
Thanks
Wolfgang
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17274
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17274] -Winline complains about nonexistent destructor
2004-09-02 0:33 [Bug c++/17274] New: -Winline complains about nonexistent destructor mckelvey at maskull dot com
` (2 preceding siblings ...)
2004-09-07 23:19 ` bangerth at dealii dot org
@ 2004-09-12 19:00 ` mckelvey at maskull dot com
2004-09-12 19:02 ` [Bug c++/17274] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-09-12 23:24 ` bangerth at dealii dot org
5 siblings, 0 replies; 7+ messages in thread
From: mckelvey at maskull dot com @ 2004-09-12 19:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mckelvey at maskull dot com 2004-09-12 19:00 -------
Subject: Re: -Winline complains about nonexistent destructor
On Tuesday 07 September 2004 16:19 pm, bangerth at dealii dot org wrote:
> ------- Additional Comments From bangerth at dealii dot org 2004-09-07
> 23:19 ------- I can't reproduce this on my x86 linux machine. I realize you
> have a fairly old mainline snapshot, would you mind testing this again with
> a newer one?
>
I managed to build finally from CVS, and this problem does not recur.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17274
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17274] [4.0 Regression] -Winline complains about nonexistent destructor
2004-09-02 0:33 [Bug c++/17274] New: -Winline complains about nonexistent destructor mckelvey at maskull dot com
` (3 preceding siblings ...)
2004-09-12 19:00 ` mckelvey at maskull dot com
@ 2004-09-12 19:02 ` pinskia at gcc dot gnu dot org
2004-09-12 23:24 ` bangerth at dealii dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-12 19:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-12 19:02 -------
So closing fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Keywords| |diagnostic
Resolution| |FIXED
Summary|-Winline complains about |[4.0 Regression] -Winline
|nonexistent destructor |complains about nonexistent
| |destructor
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17274
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17274] [4.0 Regression] -Winline complains about nonexistent destructor
2004-09-02 0:33 [Bug c++/17274] New: -Winline complains about nonexistent destructor mckelvey at maskull dot com
` (4 preceding siblings ...)
2004-09-12 19:02 ` [Bug c++/17274] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-09-12 23:24 ` bangerth at dealii dot org
5 siblings, 0 replies; 7+ messages in thread
From: bangerth at dealii dot org @ 2004-09-12 23:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-09-12 23:24 -------
Thanks, James, for double-checking!
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17274
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-12 23:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-02 0:33 [Bug c++/17274] New: -Winline complains about nonexistent destructor mckelvey at maskull dot com
2004-09-02 0:36 ` [Bug c++/17274] " mckelvey at maskull dot com
2004-09-02 1:01 ` pinskia at gcc dot gnu dot org
2004-09-07 23:19 ` bangerth at dealii dot org
2004-09-12 19:00 ` mckelvey at maskull dot com
2004-09-12 19:02 ` [Bug c++/17274] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-09-12 23:24 ` bangerth at dealii 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).