Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | gcc 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 | |
| 3 | so the libmad build with gcc-4.5.0 was failing. |
| 4 | |
| 5 | Found a solution here: |
| 6 | |
| 7 | http://us.generation-nt.com/answer/bug-568418-libmad0-dev-mpg321-compilation-errors-mips-mipsel-architectures-help-169033451.html |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | 2010/07/29 |
| 12 | Nitin A Kamble <nitin.a.kamble@intel.com> |
| 13 | |
| 14 | Index: libmad-0.15.1b/fixed.h |
| 15 | =================================================================== |
| 16 | --- libmad-0.15.1b.orig/fixed.h |
| 17 | +++ libmad-0.15.1b/fixed.h |
| 18 | @@ -297,6 +297,15 @@ mad_fixed_t mad_f_mul_inline(mad_fixed_t |
| 19 | |
| 20 | /* --- MIPS ---------------------------------------------------------------- */ |
| 21 | |
| 22 | +# elif defined(FPM_MIPS) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) |
| 23 | + typedef unsigned int u64_di_t __attribute__ ((mode (DI))); |
| 24 | +# define MAD_F_MLX(hi, lo, x, y) \ |
| 25 | + do { \ |
| 26 | + u64_di_t __ll = (u64_di_t) (x) * (y); \ |
| 27 | + hi = __ll >> 32; \ |
| 28 | + lo = __ll; \ |
| 29 | + } while (0) |
| 30 | + |
| 31 | # elif defined(FPM_MIPS) |
| 32 | |
| 33 | /* |