delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/02/13:03:53

From: pavenis AT lanet DOT lv
Message-ID: <B0000096712@stargate.astr.lu.lv>
To: djgpp-workers AT delorie DOT com
Date: Mon, 2 Aug 1999 12:40:58 +0300
MIME-Version: 1.0
Subject: Name of cross-reference file for C++ in gcc-2.95 for DJGPP
X-mailer: Pegasus Mail for Win32 (v3.11)
Reply-To: djgpp-workers AT delorie DOT com

By default C++ compiler generates name of cross-reference output
(option -fxref) by adding '.' before filename and appending .gxref
after it. That of course is invalid name for plain MS-DOS.

So below is patch for gcc/cnfig/i386/xm-djgpp.h which changes that.
I haven't tested it yet. Only question is about the extension of file
we should use. Perhaps it's better to fit extension in 3 letters.

Andris

*** gcc-2.95/gcc/config/i386/xm-djgpp.h~1	Sun Jun 20 22:24:02 1999
--- gcc-2.95/gcc/config/i386/xm-djgpp.h	Mon Aug  2 12:35:08 1999
***************
*** 42,44 ****
--- 42,53 ----
    do { __system_flags |= (__system_allow_multiple_cmds			\
  		          | __system_emulate_chdir); } while (0)
  
+ /* Redefine name of xref file for DJGPP as original one is invalid for  
+    plain MS-DOS  */
+ #undef XREF_FILE_NAME
+ #define XREF_FILE_NAME(xref_file,file) \
+   do { 	char *w; \
+ 	strcpy (xref_file,file); \
+ 	w = strchr(basename(xref_file),'.'); \
+ 	strcat ((w ? w : xref_file),".gxref"); \
+ 	} while (0)

- Raw text -


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