This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36090] [4.3/4.4 Regression] ppc64 cacoshl miscompilation
- From: "dje at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2008 15:46:14 -0000
- Subject: [Bug target/36090] [4.3/4.4 Regression] ppc64 cacoshl miscompilation
- References: <bug-36090-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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