From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25391 invoked by alias); 9 Jul 2008 18:23:05 -0000 Received: (qmail 25132 invoked by uid 48); 9 Jul 2008 18:22:19 -0000 Date: Wed, 09 Jul 2008 18:23:00 -0000 Message-ID: <20080709182219.25131.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/36770] PowerPC generated PTR code ineffiency In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00932.txt.bz2 ------- Comment #1 from pinskia at gcc dot gnu dot org 2008-07-09 18:22 ------- forward-propagate is causing some of the issues as shown by: int *test(int *a ){ a[1]=a[0]; a++; return a; } But using the register extension is causing the rest :). I would recommend against using them in real code really, they are not that useful and cause too many issues in general. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org, bonzini at gnu dot org Severity|major |normal Status|UNCONFIRMED |NEW Component|c |middle-end Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-07-09 18:22:19 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36770