From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15938 invoked by alias); 20 May 2003 21:46:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 15910 invoked by uid 71); 20 May 2003 21:45:59 -0000 Resent-Date: 20 May 2003 21:45:59 -0000 Resent-Message-ID: <20030520214559.15908.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, Laurent Bonnaud Resent-Reply-To: gcc-gnats@gcc.gnu.org, 193049@bugs.debian.org Received: (qmail 22515 invoked from network); 20 May 2003 21:36:12 -0000 Received: from unknown (HELO hirsch.in-berlin.de) (192.109.42.6) by sources.redhat.com with SMTP; 20 May 2003 21:36:12 -0000 Received: from tango.net.local (dsl-213-023-156-180.arcor-ip.net [213.23.156.180]) (authenticated bits=0) by hirsch.in-berlin.de (8.12.9/8.12.9/Debian-1) with ESMTP id h4KLaBaQ014921 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Tue, 20 May 2003 23:36:11 +0200 Received: from doko by tango.net.local with local (Exim 4.20 #1 (Debian) [+araqnid]) id 19IEmI-0003as-Jq; Tue, 20 May 2003 23:36:10 +0200 Message-Id: Date: Tue, 20 May 2003 21:46:00 -0000 From: Matthias Klose Reply-To: 193049@bugs.debian.org To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org X-Send-Pr-Version: 3.113 X-GNATS-Notify: Laurent Bonnaud Subject: c++/10888: [3.3/3.4 warning regression] inlining failure for allocate in ~vector() X-SW-Source: 2003-05/txt/msg02214.txt.bz2 List-Id: >Number: 10888 >Category: c++ >Synopsis: [3.3/3.4 warning regression] inlining failure for allocate in ~vector() >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue May 20 21:45:59 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Laurent Bonnaud >Release: 3.3 (Debian) (Debian testing/unstable) >Organization: The Debian Project >Environment: System: Debian GNU/Linux (unstable) Architecture: i686 >Description: [ Reported to the Debian BTS as report #193049. Please CC 193049@bugs.debian.org on replies. Log of report can be found at http://bugs.debian.org/193049 ] This program generates warnings with 3.3 and CVS 20030501 whereas it did not with g++ 3.2: // Compile with: g++-3.3 -O -Winline essai.cpp #include using namespace std; int main(void) { vector v(10); } $ g++-3.3 -O -Winline essai.cpp essai.cpp: In member function `std::allocator<_Alloc>::~allocator() [with _Tp = int]': essai.cpp:232: instantiated from `static _Tp* std::__simple_alloc<_Tp, _Alloc>::allocate(unsigned int) [with _Tp = int, _Alloc = std::__default_alloc_template]' essai.cpp:233: instantiated from `_Tp* std::_Vector_alloc_base<_Tp, _Allocator, true>::_M_allocate(unsigned int) [with _Tp = int, _Allocator = std::allocator]' essai.cpp:127: instantiated from `std::_Vector_base<_Tp, _Alloc>::_Vector_base(unsigned int, typename std::_Vector_alloc_base<_Tp, _Alloc, std::_Alloc_traits<_Tp, _Allocator>::_S_instanceless>::allocator_type&) [with _Tp = int, _Alloc = std::allocator]' essai.cpp:158: instantiated from `std::vector<_Tp, _Alloc>::vector(unsigned int) [with _Tp = int, _Alloc = std::allocator]' essai.cpp:253: instantiated from here /usr/include/c++/3.3/bits/stl_alloc.h:388: warning: inlining failed in call to `static void* std::__default_alloc_template<__threads, __inst>::allocate(unsigned int) [with bool __threads = true, int __inst = 0] ' essai.cpp:232: warning: called from here essai.cpp: In member function `std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = int, _Alloc = std::allocator]': essai.cpp:242: instantiated from `static void std::__simple_alloc<_Tp, _Alloc>::deallocate(_Tp*, unsigned int) [with _Tp = int, _Alloc = std::__default_alloc_template]' essai.cpp:242: instantiated from `void std::_Vector_alloc_base<_Tp, _Allocator, true>::_M_deallocate(_Tp*, unsigned int) [with _Tp = int, _Allocator = std::allocator]' essai.cpp:130: instantiated from `std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = int, _Alloc = std::allocator]' essai.cpp:253: instantiated from `std::vector<_Tp, _Alloc>::vector(unsigned int) [with _Tp = int, _Alloc = std::allocator]' essai.cpp:253: instantiated from here /usr/include/c++/3.3/bits/stl_alloc.h:429: warning: inlining failed in call to `static void std::__default_alloc_template<__threads, __inst>::deallocate(void*, unsigned int) [with bool __threads = true, int __inst = 0]' essai.cpp:242: warning: called from here essai.cpp: In member function `std::vector<_Tp, _Alloc>::~vector() [with _Tp = int, _Alloc = std::allocator]': essai.cpp:242: instantiated from `static void std::__simple_alloc<_Tp, _Alloc>::deallocate(_Tp*, unsigned int) [with _Tp = int, _Alloc = std::__default_alloc_template]' essai.cpp:242: instantiated from `void std::_Vector_alloc_base<_Tp, _Allocator, true>::_M_deallocate(_Tp*, unsigned int) [with _Tp = int, _Allocator = std::allocator]' essai.cpp:130: instantiated from `std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = int, _Alloc = std::allocator]' essai.cpp:162: instantiated from `std::vector<_Tp, _Alloc>::~vector() [with _Tp = int, _Alloc = std::allocator]' essai.cpp:7: instantiated from here /usr/include/c++/3.3/bits/stl_alloc.h:429: warning: inlining failed in call to `static void std::__default_alloc_template<__threads, __inst>::deallocate(void*, unsigned int) [with bool __threads = true, int __inst = 0]' essai.cpp:242: warning: called from here >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: