From patchwork Tue Jul 5 08:30:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 1652352 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=XmubP9jw; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LcbbJ49CVz9s1l for ; Tue, 5 Jul 2022 18:35:23 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5069385117F for ; Tue, 5 Jul 2022 08:35:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5069385117F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1657010120; bh=cKAtIsGN074o4bRq84xWny1tQ0OS23dm/4ALzJuPX7U=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=XmubP9jwCf5WoQ34xHQw8lQ1F8f4CZhGQeIzx8M+w93z2Q7yBAUoMJ96aBGeWxr98 ZXOFWIcXHTRze/nTjElmvTnBmjAqcZgXGJuc+G8NikljCHfG/XA38irpyOzd826OzO hH/fwdjFgdQu727LzxVL5k/MgBD+3NW0DHr0ip9w= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 801E43853550 for ; Tue, 5 Jul 2022 08:30:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 801E43853550 Received: by mail-wr1-x42e.google.com with SMTP id s1so16422400wra.9 for ; Tue, 05 Jul 2022 01:30:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=cKAtIsGN074o4bRq84xWny1tQ0OS23dm/4ALzJuPX7U=; b=VTaDxZnkZKItOsgVwqHM305Of58Kx7GxW9bQ6hFR4PDdeaIiiDxknQH0fe51tVhhk1 Jq/D1NFDz23y5hqAhxtdX3Inrzjgqaafk0WzLBfRtNRQMHucpoLzTBf9VqJdWdg+L8Kc 8ZaB3Rq/uDTco7xhbZY5BQVmtseIzdRN0G5C5uJzIEyrtTkfvrSiM2mKRrfXz2wg0bOV wx1G8fSuCHicWsGAFRso+SgirsLYSoAqBtpZLbfaj+p5gZF52SRNAuVjJZI7JmLSCfdL 0jg91x2CkUU3k5MX5Sj7qYtRVDUpIBL7+Mg544oIZgoSpIk3bsZGLooU4ntArxO1fHF8 5iDA== X-Gm-Message-State: AJIora+yW5pvBRC61RSUZNXKEU0uEPv2PDV1toS3cYhTr/EgL6BuY2IL RIJCb6Ih8MgXYyGYHlk3v8iJqp4cSGuWmw== X-Google-Smtp-Source: AGRyM1ut6W9ID1hcZNmAI5PNhyiD7xkbBiKdryttU7/4J9kR9b2GWwKt2JMl5K/wTWO5L4Rom5Y6ew== X-Received: by 2002:a5d:47c3:0:b0:21b:c774:a7 with SMTP id o3-20020a5d47c3000000b0021bc77400a7mr29719159wrc.626.1657009806080; Tue, 05 Jul 2022 01:30:06 -0700 (PDT) Received: from adacore.com ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id f2-20020a7bcd02000000b003a0499df21asm22944471wmj.25.2022.07.05.01.30.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 01:30:05 -0700 (PDT) Date: Tue, 5 Jul 2022 08:30:05 +0000 To: gcc-patches@gcc.gnu.org Subject: [Ada] qnx-7.1: ACATS cxag001 failure on qnx - realpath Message-ID: <20220705083005.GA3194347@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Pierre-Marie de Rodat via Gcc-patches From: Pierre-Marie de Rodat Reply-To: Pierre-Marie de Rodat Cc: Doug Rupp Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" The implementation of __gnat_full_name uses the CRTL realpath, however this function returns a null string so use the default implementation instead. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * cstreams.c (__gnat_full_name) [QNX]: Remove block. diff --git a/gcc/ada/cstreams.c b/gcc/ada/cstreams.c --- a/gcc/ada/cstreams.c +++ b/gcc/ada/cstreams.c @@ -202,19 +202,6 @@ __gnat_full_name (char *nam, char *buffer) getcwd approach instead. */ realpath (nam, buffer); -#elif defined (__QNX__) - - int length; - - if (__gnat_is_absolute_path (nam, strlen (nam))) - realpath (nam, buffer); - else - { - length = __gnat_max_path_len; - __gnat_get_current_dir (buffer, &length); - strncat (buffer, nam, __gnat_max_path_len - length - 1); - } - #elif defined (__vxworks) /* On VxWorks systems, an absolute path can be represented (depending on