Re: directory separators in compiler generated assembly code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joe Tilton wrote:

> The problem I'm having is the assembler code generated when using the
> -S option on the compiler. The code is using a forward slash for
> directory separators and is using relative file names. It generates
> script like,

You should build it as a MinGW-hosted toolchain then.  A Cygwin-hosted
app has no business outputting Win32 paths (backslash + drive letter),
as it's meant to be a POSIX environment.

> but this didn't help (this may be the wrong file to add the defines).
> I'm sure there's a simple option to set, but I couldn't find it
> searching the GCC site. Anyone have any suggestions?

But with that said, gcc simply mirrors in the debug info whatever
pathspec is given on the command line.  So you can try changing your
makefile to invoke gcc with win32 filenames e.g.

$(CC) $(CFLAGS) -c "`cygpath -wa $<`" -o $@

Brian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux