public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Sebastian Götzinger" <bastiangoe@hotmail.com>
To: cygwin@cygwin.com
Subject: 2.2.1(0.289/5/3), GCC5.2.0 Possible Bug
Date: Thu, 10 Sep 2015 12:22:00 -0000	[thread overview]
Message-ID: <BLU436-SMTP19207F39853E2E1301607ABC0510@phx.gbl> (raw)

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.

[1]
$ 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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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"
(gdb)


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2015-09-10 12:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10 12:22 Sebastian Götzinger [this message]
2015-09-10 12:36 ` Qian Hong
2015-09-10 12:39   ` Qian Hong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU436-SMTP19207F39853E2E1301607ABC0510@phx.gbl \
    --to=bastiangoe@hotmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).