public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [3_2-branch] fix c/8252
@ 2002-11-04 11:18 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2002-11-04 11:18 UTC (permalink / raw)
  To: gcc-patches

Can I commit this to the 3.2 branch?  The fix is already in mainline,
and it fixes 8252.

2002-11-04  Aldy Hernandez  <aldyh@redhat.com>

	Fix c/8252.

	* rs6000.c (rs6000_legitimate_address): Disallow vectors from
	PRE_INC/DEC.

Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.291.2.13.2.10
diff -c -p -r1.291.2.13.2.10 rs6000.c
*** config/rs6000/rs6000.c	28 Oct 2002 20:39:51 -0000	1.291.2.13.2.10
--- config/rs6000/rs6000.c	4 Nov 2002 19:13:45 -0000
*************** rs6000_legitimate_address (mode, x, reg_
*** 2011,2016 ****
--- 2011,2017 ----
    if (LEGITIMATE_INDIRECT_ADDRESS_P (x, reg_ok_strict))
      return 1;
    if ((GET_CODE (x) == PRE_INC || GET_CODE (x) == PRE_DEC)
+       && !ALTIVEC_VECTOR_MODE (mode)
        && TARGET_UPDATE
        && LEGITIMATE_INDIRECT_ADDRESS_P (XEXP (x, 0), reg_ok_strict))
      return 1;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-04 19:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-04 11:18 [3_2-branch] fix c/8252 Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).