public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin-specific gcc question
@ 2010-07-21 21:57 Eric Blake
  2010-07-23  1:19 ` Dave Korn
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Blake @ 2010-07-21 21:57 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

Is there any sane reason that:

gcc -E -dD -o - foo.c

generates ./-.exe on cygwin, rather than outputting to stdout like on
every other platform?  This tripped up an autoconf test.  Fortunately,
removing '-o -' appears to be portable.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cygwin-specific gcc question
  2010-07-21 21:57 cygwin-specific gcc question Eric Blake
@ 2010-07-23  1:19 ` Dave Korn
  2010-07-23 12:52   ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Korn @ 2010-07-23  1:19 UTC (permalink / raw)
  To: cygwin

On 21/07/2010 22:54, Eric Blake wrote:
> Is there any sane reason that:
> 
> gcc -E -dD -o - foo.c
> 
> generates ./-.exe on cygwin, rather than outputting to stdout like on
> every other platform?  This tripped up an autoconf test.  Fortunately,
> removing '-o -' appears to be portable.

  I've seen that too, but didn't know that the malbehaviour of this (and iirc
also -M options) was cygwin-specific at all.  Would you file a PR upstream please?

    cheers,
      DaveK



--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cygwin-specific gcc question
  2010-07-23  1:19 ` Dave Korn
@ 2010-07-23 12:52   ` Eric Blake
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Blake @ 2010-07-23 12:52 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

On 07/22/2010 06:09 PM, Dave Korn wrote:
> On 21/07/2010 22:54, Eric Blake wrote:
>> Is there any sane reason that:
>>
>> gcc -E -dD -o - foo.c
>>
>> generates ./-.exe on cygwin, rather than outputting to stdout like on
>> every other platform?  This tripped up an autoconf test.  Fortunately,
>> removing '-o -' appears to be portable.
> 
>   I've seen that too, but didn't know that the malbehaviour of this (and iirc
> also -M options) was cygwin-specific at all.  Would you file a PR upstream please?

Done.  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45041

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-23 12:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 21:57 cygwin-specific gcc question Eric Blake
2010-07-23  1:19 ` Dave Korn
2010-07-23 12:52   ` Eric Blake

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).