From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17799 invoked by alias); 19 Aug 2004 15:21:34 -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 17774 invoked by uid 48); 19 Aug 2004 15:21:34 -0000 Date: Thu, 19 Aug 2004 15:21:00 -0000 Message-ID: <20040819152134.17772.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040819145911.17106.steinmtz@us.ibm.com> References: <20040819145911.17106.steinmtz@us.ibm.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/17106] Opportunity to eliminate loads from TOC. X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg01943.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-19 15:21 ------- Confirmed, what needs to happen here is that GCC needs to put these variables in a struct like so: static struct {int s1, s2, s3; }t; void no_common_toc1 () { t.s1 = 1; t.s2 = 2; t.s3 = 3; } Which will produce the optimial code. This also helps powerpc-apple-darwin. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|other |tree-optimization Ever Confirmed| |1 Keywords| |missed-optimization Last reconfirmed|0000-00-00 00:00:00 |2004-08-19 15:21:33 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17106