[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#302989: marked as done (optimizer breaks function inlining)



Your message dated Tue, 12 Apr 2005 09:49:09 +0200
with message-id <16987.32117.619208.759033@gargle.gargle.HOWL>
and subject line Fixed in upload of gcc-4.0 4.0ds10-0pre10 to experimental
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 3 Apr 2005 21:37:09 +0000
>From steven.robbins@videotron.ca Sun Apr 03 14:37:09 2005
Return-path: <steven.robbins@videotron.ca>
Received: from relais.videotron.ca [24.201.245.36] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DICmL-0001bu-00; Sun, 03 Apr 2005 14:37:09 -0700
Received: from riemann.nyongwa.montreal.qc.ca ([70.81.82.89])
 by VL-MO-MR011.ip.videotron.ca
 (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep  8 2003))
 with ESMTP id <0IEE00G9R41WS2@VL-MO-MR011.ip.videotron.ca> for
 submit@bugs.debian.org; Sun, 03 Apr 2005 17:37:08 -0400 (EDT)
Received: from steve by riemann.nyongwa.montreal.qc.ca with local
 (Exim 3.36 #1 (Debian))	id 1DICmK-0002Wb-00; Sun, 03 Apr 2005 17:37:08 -0400
Date: Sun, 03 Apr 2005 17:37:08 -0400
From: "Steve M. Robbins" <steven.robbins@videotron.ca>
Subject: optimizer breaks function inlining
To: Debian Bug Tracking System <submit@bugs.debian.org>
Message-id: <[🔎] E1DICmK-0002Wb-00@riemann.nyongwa.montreal.qc.ca>
MIME-version: 1.0
X-Mailer: reportbug 3.9
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: g++-4.0
Version: 4.0-0pre5
Severity: normal

Hi,

The following test code (atof.cc) elicits no warning when compiled with

  g++-4.0 -c -Wall atof.cc

but with optimization GCC complains about the standard library
function atof():

  steve@riemann{test}g++-4.0 -c -Wall -O atof.cc
  atof.cc: In member function 'double A::foo()':
  atof.cc:15: warning: control may reach end of non-void function 'double atof(const char*)' being inlined
  /usr/include/stdlib.h:378: warning: control may reach end of non-void function 'double strtod(const char*, char**)' being inlined

----------------------- atof.cc -----------------------------------

#include <cstdlib>

class A
{
public:
    double foo();
private:
};


double A::foo()
{
    return std::atof( "1.2" );
}

----------------------- atof.cc -----------------------------------

Regards,
-Steve



-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages g++-4.0 depends on:
ii  gcc-4.0                     4.0-0pre5    The GNU C compiler
ii  gcc-4.0-base                4.0-0pre5    The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libstdc++6-4.0-dev          4.0-0pre5    The GNU Standard C++ Library v3 (d

-- no debconf information

---------------------------------------
Received: (at 302989-done) by bugs.debian.org; 12 Apr 2005 07:49:24 +0000
>From doko@cs.tu-berlin.de Tue Apr 12 00:49:23 2005
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DLG99-0006ll-00; Tue, 12 Apr 2005 00:49:19 -0700
Received: from mailhost.cs.tu-berlin.de (postfix@mail.cs.tu-berlin.de [130.149.17.13])
	by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id JAA08478;
	Tue, 12 Apr 2005 09:49:12 +0200 (MEST)
Received: from localhost (localhost [127.0.0.1])
	by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id 2CA7DF21A;
	Tue, 12 Apr 2005 09:49:12 +0200 (MEST)
Received: from mailhost.cs.tu-berlin.de ([127.0.0.1])
 by localhost (bueno [127.0.0.1]) (amavisd-new, port 10224) with ESMTP
 id 06472-42; Tue, 12 Apr 2005 09:49:10 +0200 (MEST) 11340
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
	by mailhost.cs.tu-berlin.de (Postfix) with ESMTP;
	Tue, 12 Apr 2005 09:49:09 +0200 (MEST)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id j3C7n9jP016308;
	Tue, 12 Apr 2005 09:49:09 +0200 (MEST)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16987.32117.619208.759033@gargle.gargle.HOWL>
Date: Tue, 12 Apr 2005 09:49:09 +0200
To: 301140-done@bugs.debian.org, 302989-done@bugs.debian.org,
        303866-done@bugs.debian.org
Subject: Re: Fixed in upload of gcc-4.0 4.0ds10-0pre10 to experimental
In-Reply-To: <[🔎] E1DL0u5-0007Mb-00@newraff.debian.org>
References: <[🔎] E1DL0u5-0007Mb-00@newraff.debian.org>
X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid
X-Virus-Scanned: by amavisd-new at cs.tu-berlin.de
Delivered-To: 302989-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

> Changes: 
>  gcc-4.0 (4.0ds10-0pre10) experimental; urgency=low
>  .
>    * gcc-4.0.0-20050410 release candidate 1, built from the prerelease tarball.
>      - C++ fix for "optimizer breaks function inlining". Closes: #302989.
>    * Append the GCC version to the fastjar/grepjar version string.
>    * Use short file names in the libstdc++ docs (closes: #301140).
>    * Fix libstdc++-dbg dependencies (closes: #303866).



Reply to: