From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18389 invoked by alias); 8 Jul 2005 14:38:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 18016 invoked by uid 48); 8 Jul 2005 14:37:55 -0000 Date: Fri, 08 Jul 2005 14:38:00 -0000 Message-ID: <20050708143755.18015.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050708072145.22362.peter@hawkins.emu.id.au> References: <20050708072145.22362.peter@hawkins.emu.id.au> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/22362] [3.4/4.0/4.1 Regression] static function calls and global register variables X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg00967.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-08 14:37 ------- What is happening is that MR_deep_copy_typeclass_info is not being inlined but instead GCC changes the how the arguments are passed, via registers. This is a target bug. The bug is in: /* Use register calling convention for local functions when possible. */ if (!TARGET_64BIT && !user_convention && decl && flag_unit_at_a_time && !profile_flag) { This is a latent bug in 3.4.0 also. In a way this could be reproduced in 3.4.0. This is a 3.4.0 and 4.0.0 and 4.1.0 regression (even though it is harder to reproduce in 3.4.0 and 4.1.0). -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|c |target Ever Confirmed| |1 Keywords| |ice-on-valid-code Last reconfirmed|0000-00-00 00:00:00 |2005-07-08 14:37:52 date| | Summary|Register allocation problem |[3.4/4.0/4.1 Regression] |in combination with -funit- |static function calls and |at-a-time and global |global register variables |register variables | Target Milestone|--- |3.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22362