This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[3_2-branch] fix c/8252


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]