From patchwork Wed Dec 10 18:45:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 4153 Received: (qmail 25757 invoked by alias); 10 Dec 2014 18:45:54 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 25744 invoked by uid 89); 10 Dec 2014 18:45:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_05, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Wed, 10 Dec 2014 18:45:48 +0000 From: Joseph Myers To: Subject: Fix MIPS sigaction build [committed] Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Building MIPS sigaction (for ABIs other than o32) fails because of "'restore_rt' used but never defined", arising from static functions being defined in asms and referred to from C code. There is no corresponding -W option for that warning, so this patch uses -Wno-error for building sigaction.c. Committed. 2014-12-10 Joseph Myers * 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/mips64/Makefile b/sysdeps/unix/sysv/linux/mips/mips64/Makefile index 0a37c5b..b4fb190 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/Makefile +++ b/sysdeps/unix/sysv/linux/mips/mips64/Makefile @@ -7,3 +7,15 @@ ifeq ($(subdir),nptl) CFLAGS-recv.c += -fexceptions CFLAGS-send.c += -fexceptions endif + +ifeq ($(subdir),signal) +# sigaction.c defines static functions in asms and refers to them from +# C code, resulting in "'restore_rt' used but never defined" (which +# has no corresponding warning option to allow it to be disabled with +# diagnostic pragmas). +CFLAGS-sigaction.c += -Wno-error +endif + +ifeq ($(subdir),nptl) +CFLAGS-sigaction.c += -Wno-error +endif