From patchwork Tue Jan 3 21:37:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 710705 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ttS3M50btz9sQw for ; Wed, 4 Jan 2017 08:37:51 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="Q3bFa1o8"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id :mime-version:content-type; q=dns; s=default; b=ldbF6bFKY7ITxe6X KeAbTUSJLOapvVl0WT6lhqSD15XBol08s9caNyEo0Xgw3qBu7SiKz9WHD3MUMHrt M65GGCiM/jbtFWudBptmJ92DE0kQME+q+rTu9F8SYD7U3QCsIL9ImzxEES+PJNhd V6qDWbaWbuKX3JoBz6Z6gJsv3JQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id :mime-version:content-type; s=default; bh=KpzAkOPDH4FC6Tdm4UTZMd EP3Fk=; b=Q3bFa1o8KoyyuXc2dcYvmwbsaXlXUUYvgh8B4jiKgcxpw/wIbCWl/I /sucN88gOKkSWdMXgOhsk6KTJ7X+k9IN/hcO44wob56UChM2DMi48QefgyT57E9k yRK5G06+3wZuQylTa3pDsxAuerhXlt1oUjEFHs/DLy5syKDERrMdc= Received: (qmail 9746 invoked by alias); 3 Jan 2017 21:37:45 -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 9730 invoked by uid 89); 3 Jan 2017 21:37:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=0xFFFF, backtrace.c, UD:backtrace.c, backtracec X-HELO: relay1.mentorg.com Date: Tue, 3 Jan 2017 21:37:24 +0000 From: Joseph Myers To: CC: , Subject: Fix MicroBlaze __backtrace get_frame_size namespace (bug 21022) Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) Many linknamespace tests fail for MicroBlaze because __backtrace (as brought in by libc_fatal.c) uses an inline function get_frame_size which is not declared static. This patch fixes it to be declared static. Tested (compilation tests) with build-many-glibcs.py. 2017-01-03 Joseph Myers [BZ #21022] * sysdeps/microblaze/backtrace.c (get_frame_size): Make static. diff --git a/sysdeps/microblaze/backtrace.c b/sysdeps/microblaze/backtrace.c index 2b498f0..7cc28ff 100644 --- a/sysdeps/microblaze/backtrace.c +++ b/sysdeps/microblaze/backtrace.c @@ -27,7 +27,7 @@ _identify_sighandler (unsigned long fp, unsigned long pc, unsigned long *pprev_fp, unsigned long *pprev_pc, unsigned long *retaddr); -inline long +static inline long get_frame_size (unsigned long instr) { return abs ((short signed) (instr & 0xFFFF));