# HG changeset patch # User michaelni # Date 1044058730 0 # Node ID c8b438ecf8f45e096f4a0bc406978613bfaeb227 # Parent c6b3af81d79ee515f94c1004c2f20d843ac57cbc fix for ppc compile broken by (Romain Dolbeau and Colin Leroy ) diff -r c6b3af81d79e -r c8b438ecf8f4 ppc/dsputil_ppc.h --- a/ppc/dsputil_ppc.h Wed Jan 29 22:44:34 2003 +0000 +++ b/ppc/dsputil_ppc.h Sat Feb 01 00:18:50 2003 +0000 @@ -75,7 +75,7 @@ #else /* POWERPC_PERF_USE_PMC */ #define POWERPC_GET_CYCLES(a) asm volatile("mfspr %0, 937" : "=r" (a)) #define POWERPC_GET_MISS(a) asm volatile("mfspr %0, 938" : "=r" (a)) -#define POWERPC_TBL_DECLARE(a, cond) register unsigned long cycles_start, cycles_stop, miss_start, miss_stop; +#define POWERPC_TBL_DECLARE(a, cond) register unsigned long cycles_start, cycles_stop, miss_start, miss_stop #define POWERPC_TBL_START_COUNT(a, cond) do { POWERPC_GET_MISS(miss_start); POWERPC_GET_CYCLES(cycles_start); } while (0) #define POWERPC_TBL_STOP_COUNT(a, cond) do { \ POWERPC_GET_CYCLES(cycles_stop); \ @@ -114,9 +114,10 @@ #else /* POWERPC_TBL_PERFORMANCE_REPORT */ -#define POWERPC_TBL_DECLARE(a, cond) -#define POWERPC_TBL_START_COUNT(a, cond) -#define POWERPC_TBL_STOP_COUNT(a, cond) +// those are needed to avoid empty statements. +#define POWERPC_TBL_DECLARE(a, cond) int altivec_placeholder __attribute__ ((unused)) +#define POWERPC_TBL_START_COUNT(a, cond) do {} while (0) +#define POWERPC_TBL_STOP_COUNT(a, cond) do {} while (0) #endif /* POWERPC_TBL_PERFORMANCE_REPORT */ #endif /* _DSPUTIL_PPC_ */