blob: 5bc91f355d32fd9457dbade97862436c161cd775 [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001gcc 4.4 did this: The MIPS port no longer recognizes the h asm constraint. It was necessary to remove this constraint in order to avoid generating unpredictable code sequences.
2
3so the libmad build with gcc-4.5.0 was failing.
4
5Found a solution here:
6
7http://us.generation-nt.com/answer/bug-568418-libmad0-dev-mpg321-compilation-errors-mips-mipsel-architectures-help-169033451.html
8
9Upstream-Status: Pending
10
112010/07/29
12Nitin A Kamble <nitin.a.kamble@intel.com>
13
Brad Bishop23eaf032019-11-20 05:15:02 -050014--- a/fixed.h
15+++ b/fixed.h
Patrick Williamsddad1a12017-02-23 20:36:32 -060016@@ -297,6 +297,15 @@ mad_fixed_t mad_f_mul_inline(mad_fixed_t
17
18 /* --- MIPS ---------------------------------------------------------------- */
19
Brad Bishop23eaf032019-11-20 05:15:02 -050020+# elif defined(FPM_MIPS) && (defined(__clang__) || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
Patrick Williamsddad1a12017-02-23 20:36:32 -060021+ typedef unsigned int u64_di_t __attribute__ ((mode (DI)));
22+# define MAD_F_MLX(hi, lo, x, y) \
23+ do { \
24+ u64_di_t __ll = (u64_di_t) (x) * (y); \
25+ hi = __ll >> 32; \
26+ lo = __ll; \
27+ } while (0)
28+
29 # elif defined(FPM_MIPS)
30
31 /*