delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/28/21:16:14

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: jeffdbREMOVETHIS AT goodnet DOT com (Mikey)
To: cygwin AT sourceware DOT cygnus DOT com, Mumit Khan <khan AT xraylith DOT wisc DOT edu>
Subject: egcs 1.1.2 win32 dir bug
Date: Thu, 29 Apr 1999 00:49:47 GMT
Organization: Never
Reply-To: jeffdbREMOVETHIS AT goodnet DOT com
Message-ID: <37273fcd.66961152@mail.goodnet.com>
X-Mailer: Forte Agent 1.5/32.452
MIME-Version: 1.0

Hi Mumit ;-)

the change in DIR_SEPARATOR in xm-cygwin32.h
causes this. egcs 1.1.2 outputs tmp\file.[ios]
when given a file argument tmp\file.c[c]

at the bash prompt

gcc -save-temps -c tmp\\main.c
outputs tmp\\main.i tmp\\main.o tmp\\main.s

gcc -c tmp/main.c
outputs ./main.i ./main.o ./main.s

apparently the input_basename argument substituted for %b in specs
is being output incorrectly when the dir separator is '\\' in input_filename.

Maybe just #ifdef with __CYGWIN__ && __MINGW32__ around line 5297 in gcc.c?
are there any other DIR_SEPARATOR's used on other platforms?

	  input_basename = input_filename;
	  for (p = input_filename; *p; p++)
	    if (*p == '/'
#if defined(__CYGWIN__) || defined(__MINGW32__)
             || *p == '\\'
#endif
             || *p == DIR_SEPARATOR)
	      input_basename = p + 1;


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019