This is the mail archive of the
mailing list for the Cygwin project.
2.2.1(0.289/5/3), GCC5.2.0 Possible Bug
- From: Sebastian GÃtzinger <bastiangoe at hotmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 10 Sep 2015 14:21:57 +0200
- Subject: 2.2.1(0.289/5/3), GCC5.2.0 Possible Bug
- Authentication-results: sourceware.org; auth=none
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. 
Because of that, gcc tells us, it has no input files... so how could we
get rid of that?
$ 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 <http://gnu.org/licenses/gpl.html>
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.
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
(gdb) p argv
$2 = 0x600042ab0 "-DFOO=\\tt.h\" tt.c"
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple