On 5/26/21 10:51 PM, Joseph Myers wrote:
This commit breaks the build of glibc for powerpc64le-linux-gnu.  Compile
the following code with -O2 -mlong-double-128 -mabi=ibmlongdouble and I
get the error

opts-bug.c:8:1: error: '-mabi=ibmlongdouble' requires '-mlong-double-128'
     8 | {
       | ^

which is clearly nonsensical, since -mlong-double-128 is passed.

extern unsigned long int x;
extern float f (float);
extern __typeof (f) f_power8;
extern __typeof (f) f_power9;
extern __typeof (f) f __attribute__ ((ifunc ("f_ifunc")));
static __attribute__ ((optimize ("-fno-stack-protector"))) __typeof (f) *
f_ifunc (void)
{
   __typeof (f) *res = x ? f_power9 : f_power8;
   return res;
}


Sorry about the fallout, I'm working on it now..

Martin

Reply via email to