X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 588883950C4D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1586691596;
	bh=aR0SOHP5YQ4V1LcykNzqdpAMVSNOFpCH9+wkdiEKnTM=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=dn3AHBczUI7yM1cpUaQnRDIxDbNi0bDXpYaKWIJh3R+CtqpV3sQCmi+e6cZtJc8SS
	 HvsOSM93vMCH6dj3MQ8I2xF0Nhk5UsD2nyQOTWU6nPP93KhM0Fc/t0fkoWRztLQd0d
	 T4emhO/OvMvq19D36fHeSyjo/l5d+DLis9h4icmM=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 22DEB3950C41
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=jVIi+1Ui9vZhAKzbOsEyqhVBDJ88Eck3JNA55iB20Lc=;
 b=MaTd2Y6TRAU502QyfgcVY8aA7IBc7jWRSDu3Em7jRLzgek0aFAi1M1mSYgkHm7Clia
 W/k8UFNhxfmXkj8JZmb2+irAbjKYGxvk++UNZlvfP6lMudj9QCImysNAe/n7Ez0UaVuV
 nM8dW7t/nZT1T2fUijaGJbPJBeqngrQ1ronwKrXU9XHFGRuMyiwa8ybVDCPg1kDRrpnK
 L255gKPuULgI+LUj1+VA08Om7kbxtFvauVEpa8XpiPDfiNi1/qHRfLfAljQR1IfwGqX6
 VumgR602aKhybCVJHwiosDaP5zjL3kEhZ9ZCWoA7WmqXpD1V7JSlWtfZ/udMs0ADU4z1
 3N3g==
X-Gm-Message-State: AGi0PuamhmRQxGsijU5VzFa6G34RN4XzJyjUqk2eMyf5rmEEYjmrHTF4
 IX/Jfj4bXT9Y8mFHPvlfA8ndIsiXFRAHpczC+wI=
X-Google-Smtp-Source: APiQypLYbUk+SBCPSRjY2ojlZObrOX1sZZNNl1PTj2RwLcTmBbTEGEUYQBqPB+dsZAsdH6N8HYJEMPwGRHaQqkUpCKI=
X-Received: by 2002:aa7:ca0b:: with SMTP id y11mr4121957eds.387.1586691592064; 
 Sun, 12 Apr 2020 04:39:52 -0700 (PDT)
MIME-Version: 1.0
References: <CAJn6YFC-brTm=nkC9_MdgZp3rj+NeMSctUYxk-8wsUThxQmRfQ@mail.gmail.com>
 <53361671-369b-0fac-039c-65150ea859ac@gmail.com>
 <CAJn6YFAxGLcGgWCGTo3DH13Xo2fPZL7NH+pZvpWSR0KnqhmjuA@mail.gmail.com>
 <6ab7f1ca-ec73-ee9e-4003-44bb15017eeb@gmail.com>
In-Reply-To: <6ab7f1ca-ec73-ee9e-4003-44bb15017eeb@gmail.com>
Date: Sun, 12 Apr 2020 04:39:41 -0700
Message-ID: <CAJn6YFAHgQ40T+vPuQMAP9Z8Om6nrvWYoAB5LjgkUcopa0y0Dw@mail.gmail.com>
Subject: Re: g++ with -fprofile-dir flag has a bug (backslash instead of
 forward-slash issue)
To: JonY <10walls@gmail.com>
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: John Selbie via Cygwin <cygwin@cygwin.com>
Reply-To: John Selbie <jselbie@gmail.com>
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

I would file a bug, but that link you provided takes me to a sign-up page
that says, "Account creation restricted.  Please contact ... response
within 24 hours..."

A quick cursory glace of GCC sources would suggest the issue is in
\gcc\coverage.c. This is a snippit of a function that builds the mangled
path for the .gcda file.

          if (profile_data_prefix)
        {
#if HAVE_DOS_BASED_FILE_SYSTEM
     const char *separator = "\\";
    #else
     const char *separator = "/";
    #endif
     filename = concat (getpwd (), separator, filename, NULL);
     filename = mangle_path (filename);
     len = strlen (filename);
    }

I'm not an expert on building gcc.  I just suspect that somewhere in the
build chain  HAVE_DOS_BASED_FILE_SYSTEM is getting defined for or by cygwin.

Another cursory search of gcc sources suggest HAVE_DOS_BASED_FILE_SYSTEM is
defined by this preprocessor stuff:

#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__) || defined
(__CYGWIN__)
#  ifndef HAVE_DOS_BASED_FILE_SYSTEM
#    define HAVE_DOS_BASED_FILE_SYSTEM 1
#  endif

Still a gcc bug?  I'm guessing so.




On Sun, Apr 12, 2020 at 4:26 AM JonY via Cygwin <cygwin@cygwin.com> wrote:

> On 4/12/20 10:59 AM, John Selbie via Cygwin wrote:
> > Sure, but this bug is unique to cygwin.  Why would that be there bug?
> >
>
> Because Cygwin does not modify gcc to use Windows paths.
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
