This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
ppc e500: more spe.h fixes
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 17 Feb 2003 11:14:01 -0800
- Subject: ppc e500: more spe.h fixes
Since the interconversion vector patches are not in the FSF sources, we
need to cast these arguments to void pointers to avoid warnings when
using these macros.
Aldy
2003-02-17 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
(__ev_stdw): Same.
(__ev_stdh): Same.
Index: config/rs6000/spe.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/spe.h,v
retrieving revision 1.8
diff -c -p -r1.8 spe.h
*** config/rs6000/spe.h 12 Feb 2003 23:49:30 -0000 1.8
--- config/rs6000/spe.h 17 Feb 2003 19:11:13 -0000
*************** typedef int __vector __ev64_opaque__;
*** 127,135 ****
#define __ev_stwwox(a,b,c) __builtin_spe_evstwwox ((__v2si)(a), (b),
(c))
#define __ev_stwhex(a,b,c) __builtin_spe_evstwhex ((__v2si)(a), (b),
(c))
#define __ev_stwhox(a,b,c) __builtin_spe_evstwhox ((__v2si)(a), (b),
(c))
! #define __ev_stdd(a,b,c) __builtin_spe_evstdd ((__v2si)(a), (b), (c))
! #define __ev_stdw(a,b,c) __builtin_spe_evstdw ((__v2si)(a), (b), (c))
! #define __ev_stdh(a,b,c) __builtin_spe_evstdh ((__v2si)(a), (b), (c))
#define __ev_stwwe(a,b,c) __builtin_spe_evstwwe ((__v2si)(a), (b),
(c))
#define __ev_stwwo(a,b,c) __builtin_spe_evstwwo ((__v2si)(a), (b),
(c))
#define __ev_stwhe(a,b,c) __builtin_spe_evstwhe ((__v2si)(a), (b),
(c))
--- 127,135 ----
#define __ev_stwwox(a,b,c) __builtin_spe_evstwwox ((__v2si)(a), (b),
(c))
#define __ev_stwhex(a,b,c) __builtin_spe_evstwhex ((__v2si)(a), (b),
(c))
#define __ev_stwhox(a,b,c) __builtin_spe_evstwhox ((__v2si)(a), (b),
(c))
! #define __ev_stdd(a,b,c) __builtin_spe_evstdd ((__v2si)(a), (void
*)(b), (c))
! #define __ev_stdw(a,b,c) __builtin_spe_evstdw ((__v2si)(a), (void
*)(b), (c))
! #define __ev_stdh(a,b,c) __builtin_spe_evstdh ((__v2si)(a), (void
*)(b), (c))
#define __ev_stwwe(a,b,c) __builtin_spe_evstwwe ((__v2si)(a), (b),
(c))
#define __ev_stwwo(a,b,c) __builtin_spe_evstwwo ((__v2si)(a), (b),
(c))
#define __ev_stwhe(a,b,c) __builtin_spe_evstwhe ((__v2si)(a), (b),
(c))