Re: [PATCH v3] powerpc/math-emu: Update macros from GCC

2018-12-03 Thread Segher Boessenkool
On Tue, Dec 04, 2018 at 09:37:46AM +1030, Joel Stanley wrote: > The add_ss, sub_ddmmss, umul_ppmm and udiv_qrnnd macros originate > from GCC's longlong.h which in turn was copied from GMP's longlong.h a > few decades ago. > > This was found when compiling with clang: > >

Re: [PATCH v3] powerpc/math-emu: Update macros from GCC

2018-12-03 Thread Nick Desaulniers
On Mon, Dec 3, 2018 at 3:07 PM Joel Stanley wrote: > > The add_ss, sub_ddmmss, umul_ppmm and udiv_qrnnd macros originate > from GCC's longlong.h which in turn was copied from GMP's longlong.h a > few decades ago. > > This was found when compiling with clang: > >

[PATCH v3] powerpc/math-emu: Update macros from GCC

2018-12-03 Thread Joel Stanley
The add_ss, sub_ddmmss, umul_ppmm and udiv_qrnnd macros originate from GCC's longlong.h which in turn was copied from GMP's longlong.h a few decades ago. This was found when compiling with clang: arch/powerpc/math-emu/fnmsub.c:46:2: error: invalid use of a cast in a inline asm context