public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-1492] [Ada] qnx-7.1: ACATS cxag001 failure on qnx - realpath
Date: Tue,  5 Jul 2022 08:30:54 +0000 (GMT)	[thread overview]
Message-ID: <20220705083054.B72473850847@sourceware.org> (raw)

https://gcc.gnu.org/g:5709fac357bb922a9eeecf42adbedd532c00fde6

commit r13-1492-g5709fac357bb922a9eeecf42adbedd532c00fde6
Author: Doug Rupp <rupp@adacore.com>
Date:   Wed Jun 8 07:39:16 2022 -0700

    [Ada] qnx-7.1: ACATS cxag001 failure on qnx - realpath
    
    The implementation of __gnat_full_name uses the CRTL realpath, however
    this function returns a null string so use the default implementation
    instead.
    
    gcc/ada/
    
            * cstreams.c (__gnat_full_name) [QNX]: Remove block.

Diff:
---
 gcc/ada/cstreams.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/gcc/ada/cstreams.c b/gcc/ada/cstreams.c
index 48f996d09fa..10cc3a6faf8 100644
--- 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


                 reply	other threads:[~2022-07-05  8:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220705083054.B72473850847@sourceware.org \
    --to=pmderodat@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).