This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

2.2.1(0.289/5/3), GCC5.2.0 Possible Bug

Dear Ladies and Gentlemen,

We had some issues with our program (a wrapper for compiler).

Somehow, not all arguments have been transported correctly to the compiler.

We now bootstrapped gcc-5.2.0 and let it run alone with gdb for cygwin.

During that, we encountered, that during the compilerinvocation, the Doublequotes did not got escaped correctly. [1]

Because of that, gcc tells us, it has no input files... so how could we get rid of that?

Best regards,
Sebastian GÃtzinger.

$ gdb --args gcc-5.2.0.exe -v -E -DFOO=\"tt.h\" tt.c
GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gcc-5.2.0.exe...done.
(gdb) b main
Breakpoint 1 at 0x10046af36: file ../../gcc-5.2.0/gcc/gcc-main.c, line 42.
(gdb) r
Starting program: /usr/local/bin/gcc-5.2.0.exe -v -E -DFOO=\"tt.h\" tt.c
[New Thread 5764.0x1e54]
[New Thread 5764.0x8c4]

Breakpoint 1, main (argc=4, argv=0xc3caf0) at ../../gcc-5.2.0/gcc/gcc-main.c:42
42      {
(gdb) p argv[3]
$2 = 0x600042ab0 "-DFOO=\\tt.h\" tt.c"

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]