From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3407 invoked by alias); 6 Apr 2003 16:46:01 -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 3387 invoked by uid 71); 6 Apr 2003 16:46:01 -0000 Resent-Date: 6 Apr 2003 16:46:01 -0000 Resent-Message-ID: <20030406164601.3386.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 Resent-Reply-To: gcc-gnats@gcc.gnu.org, pinskia@physics.uc.edu Received: (qmail 32458 invoked by uid 48); 6 Apr 2003 16:36:14 -0000 Message-Id: <20030406163614.32457.qmail@sources.redhat.com> Date: Sun, 06 Apr 2003 16:46:00 -0000 From: pinskia@physics.uc.edu Reply-To: pinskia@physics.uc.edu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/10320: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined X-SW-Source: 2003-04/txt/msg00200.txt.bz2 List-Id: >Number: 10320 >Category: c >Synopsis: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Apr 06 16:46:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Andrew Pinski >Release: gcc version 3.4 20030406 (experimental) >Organization: >Environment: i686-pc-linux-gnu and powerpc-apple-darwin6.4, it should not matter. >Description: If a function that is declared inline is defined without inline after where it is called, the function is not inlined and is not emited. Note with -funit-at-a-time or -finline-functions, it works. It does not work at -O0, -O1, or -O2 or -O3 -fno-unit-at-a-time -fno-inline-functions. Note this causes ssa-branch bootstrap failure on powerpc-apple-darwin6.4. Note this also works right with `gcc version 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2)' and `Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 (prerelease)' and `gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)' so this is regression. >How-To-Repeat: compile and link and run (try at least) the following source: static inline void temp(); int main() { temp(); return 0; } static void temp(){} >Fix: Do not know. >Release-Note: >Audit-Trail: >Unformatted: