public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/18547] New: Cygwin
@ 2004-11-18 17:22 illumanus at yahoo dot com
  2004-11-18 17:39 ` [Bug bootstrap/18547] Cygwin pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: illumanus at yahoo dot com @ 2004-11-18 17:22 UTC (permalink / raw)
  To: gcc-bugs

In latest change in cygwin 1.5.12-1, all volumes default binmode. In Win32 
configurations using cygwin: genconditions.exe creates insn-*.c files that 
contain 0xD, which causes "make bootstrap" to fail. Isolated to gensupport.c 
init_md_reader. Fix is as follows:
Line 920 currently reads:
     input_file = fopen (filename, "r");
Line 920 should read:
     input_file = fopen (filename, "rt")
This fixes reading condition files in text mode vice default (binary mode). In 
binary mode for win32, 0xD will be read in. In text mode for win32, 0xD is 
suppressed. (Win32 systems store 0xD before 0xA ('\n') for text files)
Note that this bug will not affect non-win32 systems as for most other systems 
text mode = binary mode.

-- 
           Summary: Cygwin
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: illumanus at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: default (i386)
  GCC host triplet: default (i386)
GCC target triplet: default (i386)


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


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

* [Bug bootstrap/18547] Cygwin
  2004-11-18 17:22 [Bug bootstrap/18547] New: Cygwin illumanus at yahoo dot com
@ 2004-11-18 17:39 ` pinskia at gcc dot gnu dot org
  2004-11-21 16:30 ` gerrit at gcc dot gnu dot org
  2004-11-21 16:34 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-18 17:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-18 17:39 -------
Text mode is the default at least according to C89 so the bug is in cygwin and not GCC.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
            Summary|Cygwin                      |Cygwin


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


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

* [Bug bootstrap/18547] Cygwin
  2004-11-18 17:22 [Bug bootstrap/18547] New: Cygwin illumanus at yahoo dot com
  2004-11-18 17:39 ` [Bug bootstrap/18547] Cygwin pinskia at gcc dot gnu dot org
@ 2004-11-21 16:30 ` gerrit at gcc dot gnu dot org
  2004-11-21 16:34 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: gerrit at gcc dot gnu dot org @ 2004-11-21 16:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gerrit at gcc dot gnu dot org  2004-11-21 16:30 -------
(In reply to comment #1)
> Text mode is the default at least according to C89 so the bug is in cygwin and
not GCC.

If you want a file to be mode 'A' then read/write it in this mode explicitly.
You cannot expect the underlying OS to know who is reading/writing a file and
how to do it without explicitly telling the OS what is expected.

-- 


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


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

* [Bug bootstrap/18547] Cygwin
  2004-11-18 17:22 [Bug bootstrap/18547] New: Cygwin illumanus at yahoo dot com
  2004-11-18 17:39 ` [Bug bootstrap/18547] Cygwin pinskia at gcc dot gnu dot org
  2004-11-21 16:30 ` gerrit at gcc dot gnu dot org
@ 2004-11-21 16:34 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-21 16:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-21 16:34 -------
But since the C standard says it is in text mode by default, it is the underlaying OS to do that and not to 
mess up.  Also the C standard says to enable binary mode by using the b mode.

-- 


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


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

end of thread, other threads:[~2004-11-21 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-18 17:22 [Bug bootstrap/18547] New: Cygwin illumanus at yahoo dot com
2004-11-18 17:39 ` [Bug bootstrap/18547] Cygwin pinskia at gcc dot gnu dot org
2004-11-21 16:30 ` gerrit at gcc dot gnu dot org
2004-11-21 16:34 ` pinskia at gcc dot gnu dot org

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