From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22338 invoked by alias); 1 May 2008 15:47:09 -0000 Received: (qmail 22163 invoked by uid 48); 1 May 2008 15:46:14 -0000 Date: Thu, 01 May 2008 15:47:00 -0000 Message-ID: <20080501154614.22162.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/36090] [4.3/4.4 Regression] ppc64 cacoshl miscompilation In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dje 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-05/txt/msg00032.txt.bz2 ------- Comment #8 from dje at gcc dot gnu dot org 2008-05-01 15:46 ------- We can print the offset with something like the following patch: Index: rs6000.c =================================================================== *** rs6000.c (revision 134851) --- rs6000.c (working copy) *************** print_operand_address (FILE *file, rtx x *** 12346,12351 **** --- 12346,12355 ---- contains_minus = XEXP (contains_minus, 0); minus = XEXP (contains_minus, 0); + if (GET_CODE (XEXP (minus, 1)) == CONST + && (GET_CODE (XEXP (XEXP (minus, 1), 0)) == PLUS)) + fprintf (file, HOST_WIDE_INT_PRINT_DEC"+", + -INTVAL (XEXP (XEXP (XEXP (minus, 1), 0), 1))); symref = XEXP (minus, 0); XEXP (contains_minus, 0) = symref; if (TARGET_ELF) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36090