From acbedac475eb2fc9f308dc3406787e75013d16d0 Mon Sep 17 00:00:00 2001 From: Jovan Zelincevic Date: Mon, 10 Feb 2014 05:21:24 -0800 Subject: [PATCH] MIPS: MIPS32r1: clang macro warning resolved .set macro - Enables the expansion of macro instructions. Change-Id: I1e44fe056798aeff803cc97171724d21da1fc2bf --- src/utils/bit_reader.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/bit_reader.h b/src/utils/bit_reader.h index cfd318bc..6c6a345a 100644 --- a/src/utils/bit_reader.h +++ b/src/utils/bit_reader.h @@ -161,7 +161,10 @@ static WEBP_INLINE void VP8LoadNewBytes(VP8BitReader* const br) { lbit_t in_bits; lbit_t* p_buf_ = (lbit_t*)br->buf_; __asm__ volatile( + ".set push \n\t" + ".set macro \n\t" "ulw %[in_bits], 0(%[p_buf_]) \n\t" + ".set pop \n\t" : [in_bits]"=r"(in_bits) : [p_buf_]"r"(p_buf_) : "memory"