From patchwork Fri Dec 13 14:18:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Hainque X-Patchwork-Id: 1209160 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515890-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="sQrv6L7H"; dkim-atps=neutral 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 47ZCSk63Q8z9sPK for ; Sat, 14 Dec 2019 01:18:30 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:subject:date:message-id:cc:to:mime-version; q=dns; s=default; b=S8LuVYRptFd2oXzISfL7SS5/uAnRGwGjPUZ1d1jjwrz2wU/mGg qLQlW9nkq9iWoI66Tfs/xoR9aO0alTti/vZ2UzPZqTEBIALQ1NpqMNoVIx8d7KqE uluzhdIMVK8cbBOpEg0s6etduMfWg8apJCPyDV3/q7ByutWnTwQTEUfaQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:subject:date:message-id:cc:to:mime-version; s= default; bh=1cbUUz2bls0H5qErViCnz5+B/sE=; b=sQrv6L7H+5Mqi4Id+IYy Cq+z4skiVpCx0A+JE+pne5gNu7nVWGWpK+hifJzZUDF8FWaZAZvURPvgSBJIG2N9 OgP2e7jeAx4TImnyVs3T4neNRWKHcbsCNkIb/Zf/HNRO2n93iiA4GyAlFcMXvYkY 3KjWHRCA+T1t0umAbYXLjKU= Received: (qmail 22998 invoked by alias); 13 Dec 2019 14:18:23 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 22988 invoked by uid 89); 13 Dec 2019 14:18:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:HHHH, H*c:HHHHHHHH X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Dec 2019 14:18:21 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 6BE1881A12; Fri, 13 Dec 2019 15:18:19 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J5qLve6XP2ZP; Fri, 13 Dec 2019 15:18:19 +0100 (CET) Received: from [IPv6:2a02:2ab8:224:100::1002] (unknown [IPv6:2a02:2ab8:224:100::1002]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 01BFE818D7; Fri, 13 Dec 2019 15:18:18 +0100 (CET) From: Olivier Hainque Subject: [patch] Define STARTFILE_PREFIX_SPEC for powerpc VxWorks < 7 Date: Fri, 13 Dec 2019 15:18:17 +0100 Message-Id: Cc: Olivier Hainque , Douglas B Rupp To: GCC Patches Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Prior to VxWorks 7, the path where startfiles and core libraries are located contains CPU architecture specific name components. This should normally be expressed through a CPU specific STARTFILE_PREFIX_SPEC for such versions of VxWorks. This change adds a definition for the PowerPc family, which have been using for years now. Tested in accordance with the description in https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00911.html Committing to mainline. Olivier 2019-12-13 Doug Rupp * config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Define. gcc/config/rs6000/vxworks.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/rs6000/vxworks.h b/gcc/config/rs6000/vxworks.h index dd9a6a23239..4240dfff548 100644 --- a/gcc/config/rs6000/vxworks.h +++ b/gcc/config/rs6000/vxworks.h @@ -43,6 +43,13 @@ along with GCC; see the file COPYING3. If not see } \ while (0) +/* vx6 library path. */ +#if !TARGET_VXWORKS7 +#undef STARTFILE_PREFIX_SPEC +#define STARTFILE_PREFIX_SPEC \ + "%{mrtp:%{!shared:%:getenv(WIND_BASE /target/lib/usr/lib/ppc/PPC32/common)}}" +#endif + /* Only big endian PPC is supported by VxWorks. */ #undef BYTES_BIG_ENDIAN #define BYTES_BIG_ENDIAN 1