From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 481 invoked by alias); 22 Mar 2011 18:01:39 -0000 Received: (qmail 438 invoked by uid 22791); 22 Mar 2011 18:01:34 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_BJ X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Mar 2011 18:01:25 +0000 Received: by wwb17 with SMTP id 17so6994971wwb.12 for ; Tue, 22 Mar 2011 11:01:23 -0700 (PDT) Received: by 10.227.130.130 with SMTP id t2mr5693789wbs.7.1300816882872; Tue, 22 Mar 2011 11:01:22 -0700 (PDT) Received: from [192.168.2.99] (cpc2-cmbg8-0-0-cust61.5-4.cable.virginmedia.com [82.6.108.62]) by mx.google.com with ESMTPS id w25sm3391808wbd.39.2011.03.22.11.01.19 (version=SSLv3 cipher=OTHER); Tue, 22 Mar 2011 11:01:21 -0700 (PDT) Message-ID: <4D88E3DE.8020704@gmail.com> Date: Tue, 22 Mar 2011 18:01:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Kai Tietz CC: GCC Patches , gdb-patches@sourceware.org, Binutils Subject: Re: RFC: Issue about assumption of DOSish file-system for cygwin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00387.txt.bz2 On 22/03/2011 11:00, Kai Tietz wrote: > I noticed this issue while working on those directory-separator thing > for DOSish file-systems, and somehow this looks odd to me. For some > reason the filenames.h header assumes for cygwin DOSish file-system, > but in fact cygwin uses POSIXish file-system. I assume this definition > was caused by the times cygwin compiler had -mno-cygwin option, but > well I think we should correct this by following patch. > Dave, might it be that I am overlooking here something obvious, why > cygwin should assume DOSish filesystem? Cygwin works in mixed mode, it can use both dos and posix paths; it'll even preserve them into e.g. things like debug info: > $ as C:/hello.s -o C:/hello2.o -g > > $ ls C:/hello.s C:/hello2.o -la > -rw-r--r-- 1 DKAdmin None 437 Mar 22 17:56 C:/hello.s > -rw-r--r-- 1 DKAdmin None 1084 Mar 22 17:57 C:/hello2.o > > $ nm C:/hello2.o > 00000000 b .bss > 00000000 d .data > 00000000 r .rdata > 00000000 N .stab > 00000000 N .stabstr > 00000000 t .text > U ___main > 00000000 T _main > U _puts > > $ objdump -g C:/hello2.o > > C:/hello2.o: file format pe-i386 > > C:/hello.s: > /* file C:/hello.s line 10 addr 0x0 */ > /* file C:/hello.s line 11 addr 0x4 */ > /* file C:/hello.s line 12 addr 0x7 */ > /* file C:/hello.s line 13 addr 0xa */ > /* file C:/hello.s line 14 addr 0xb */ > /* file C:/hello.s line 15 addr 0xd */ > /* file C:/hello.s line 16 addr 0xe */ > /* file C:/hello.s line 17 addr 0x11 */ > /* file C:/hello.s line 18 addr 0x16 */ > /* file C:/hello.s line 19 addr 0x1d */ > /* file C:/hello.s line 20 addr 0x22 */ > /* file C:/hello.s line 21 addr 0x27 */ > /* file C:/hello.s line 22 addr 0x2a */ > /* file C:/hello.s line 23 addr 0x2b */ > /* file C:/hello.s line 24 addr 0x2c */ > /* file C:/hello.s line 25 addr 0x2f */ > > $ as /cygdrive/c/hello.s -o C:/hello3.o -g > > $ objdump -g C:/hello3.o > > C:/hello3.o: file format pe-i386 > > /cygdrive/c/hello.s: > /* file /cygdrive/c/hello.s line 10 addr 0x0 */ > /* file /cygdrive/c/hello.s line 11 addr 0x4 */ > /* file /cygdrive/c/hello.s line 12 addr 0x7 */ > /* file /cygdrive/c/hello.s line 13 addr 0xa */ > /* file /cygdrive/c/hello.s line 14 addr 0xb */ > /* file /cygdrive/c/hello.s line 15 addr 0xd */ > /* file /cygdrive/c/hello.s line 16 addr 0xe */ > /* file /cygdrive/c/hello.s line 17 addr 0x11 */ > /* file /cygdrive/c/hello.s line 18 addr 0x16 */ > /* file /cygdrive/c/hello.s line 19 addr 0x1d */ > /* file /cygdrive/c/hello.s line 20 addr 0x22 */ > /* file /cygdrive/c/hello.s line 21 addr 0x27 */ > /* file /cygdrive/c/hello.s line 22 addr 0x2a */ > /* file /cygdrive/c/hello.s line 23 addr 0x2b */ > /* file /cygdrive/c/hello.s line 24 addr 0x2c */ > /* file /cygdrive/c/hello.s line 25 addr 0x2f */ > > $ cheers, DaveK