From c153ac9f1b6302a6e778f1480ca5ff593be245c5 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 10 Dec 2014 18:50:07 +0000 Subject: [PATCH] Fix MIPS waitid build. As previously discussed in , MIPS (o32) waitid has build warnings (now errors) because a function is declared inline but functions with five-argument syscalls cannot be inlined for MIPS o32. This patch disables the -Winline warnings for waitid.c using a MIPS-specific wrapper file. As it's whole-file disabling, there's no point in using push and pop, so just DIAG_IGNORE_NEEDS_COMMENT is used. * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file. --- ChangeLog | 2 ++ sysdeps/unix/sysv/linux/mips/mips32/waitid.c | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/mips/mips32/waitid.c diff --git a/ChangeLog b/ChangeLog index a99abbccb5..0e060b3bd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2014-12-10 Joseph Myers + * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file. + * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) == signal] (CFLAGS-sigaction.c): New variable. [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise. diff --git a/sysdeps/unix/sysv/linux/mips/mips32/waitid.c b/sysdeps/unix/sysv/linux/mips/mips32/waitid.c new file mode 100644 index 0000000000..c18a57c0ec --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips32/waitid.c @@ -0,0 +1,7 @@ +#include + +/* MIPS forces a frame pointer for five-argument syscalls using + alloca, so resulting in "inlining failed in call to 'do_waitid': + function not inlinable". */ +DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Winline"); +#include