From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2747 invoked by alias); 2 Jul 2004 03:58:55 -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 2737 invoked by alias); 2 Jul 2004 03:58:55 -0000 Date: Fri, 02 Jul 2004 03:58:00 -0000 Message-ID: <20040702035855.2736.qmail@sourceware.org> From: "cgd at broadcom dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040702031629.16325.wilson@gcc.gnu.org> References: <20040702031629.16325.wilson@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/16325] value profiling clobbers gp on mips X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg00122.txt.bz2 List-Id: ------- Additional Comments From cgd at broadcom dot com 2004-07-02 03:58 ------- Subject: Re: value profiling clobbers gp on mips At Fri, 2 Jul 2004 03:22:10 +0000 (UTC), "wilson at gcc dot gnu dot org" wrote: > This is an inelegant untested patch that makes the testcase work. Cute bug. As for the workaround: o64 will suffer the same problem that o32 does, since it's basically o32 w/ 64-bit GPRs (and therefore, like o32, is required to leave space for a0..a3 on the stack for use by called functions). I don't know if EABI does the same thing. Anyway, I think i'd advise either explicitly checking for o32 or o64, or maybe checking for !TARGET_NEWABI (if EABI does have the same arg space save requirement), instead of checking !TARGET_64BIT. chris -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16325