Mail Archives: djgpp-workers/1999/08/02/13:03:53
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 -