public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nathanael Nerode <neroden@twcny.rr.com>
To: gcc@gcc.gnu.org, zack@codesourcery.com
Subject: Re: Target deprecation, round three
Date: Tue, 25 Feb 2003 09:15:00 -0000	[thread overview]
Message-ID: <20030225084213.GA27586@doctormoo> (raw)

>Now, cpplib, c-lex.c, and c-parse.in all make extensive use of
>character constants to designate members of the basic source character
>set.  The actual values of these constants are defined by the
>execution character set of the host compiler.  If that set is ASCII or
This sounds wrong.  Shouldn't the values be defined by the execution set 
of the *build* compiler?  In a Canadian cross, that should be the 
compiler which is used to compile these files.

>any superset thereof, there is no problem -- ASCII corresponds exactly
>to the portion of ISO10646 containing the basic source character set.
>But if the execution character set of the host compiler is EBCDIC,
>the character constants will have inappropriate values for working
>with text encoded in UTF8.

Again, *build* compiler.  I suspect HOST_EBCDIC may be misnamed.

Suppose we require that the *build* compiler work in ASCII, and require 
that GCC operate in an encoding of ISO10646 internally.  We can then 
still make a native GCC for an EBCDIC host by causing all files input to
be translated from EBCDIC to ISO10646 before the rest of GCC operates, 
and likewise on output.  However, this native GCC can't be *built* on an 
EBCDIC machine; it has to be built on an ASCII machine.

In other words, you can make GCC target EBCDIC machines, you can have 
EBCDIC machines as hosts running GCC, but you can't actually build GCC 
on an EBCDIC machine.

I think that's a reasonable, low-gunk solution.  Are the users of EBCDIC 
environments wedded to the ability to bootstrap on their machines, or 
would being able to run GCC (built elsewhere) on their machines be 
sufficient?

--Nathanael

             reply	other threads:[~2003-02-25  8:42 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-25  9:15 Nathanael Nerode [this message]
2003-02-25 17:59 ` David Edelsohn
2003-02-25 18:16   ` Nathanael Nerode
  -- strict thread matches above, loose matches on Subject: below --
2003-02-25 16:57 Chris Lattner
2003-02-24  6:58 Zack Weinberg
2003-02-24 12:43 ` Hans-Peter Nilsson
2003-02-24 17:32   ` Zack Weinberg
2003-02-24 17:47     ` Hans-Peter Nilsson
2003-02-24 17:48       ` Zack Weinberg
2003-02-24 18:10         ` Hans-Peter Nilsson
2003-02-24 14:47 ` Daniel Jacobowitz
2003-02-24 16:17 ` David Edelsohn
2003-02-24 16:45   ` Andreas Jaeger
2003-02-24 16:46     ` David Edelsohn
2003-02-24 17:20   ` Zack Weinberg
2003-02-24 18:27     ` David Edelsohn
2003-02-24 18:37       ` Zack Weinberg
2003-02-24 19:36         ` Gabriel Dos Reis
2003-02-24 19:49           ` Zack Weinberg
2003-02-24 19:56             ` Gabriel Dos Reis
2003-02-24 20:02             ` David Edelsohn
2003-02-24 20:13               ` Gabriel Dos Reis
2003-02-24 21:14               ` Zack Weinberg
2003-02-24 21:42                 ` David Edelsohn
2003-02-24 23:03                   ` Mark Mitchell
2003-02-24 23:07                     ` Daniel Jacobowitz
2003-02-24 23:15                       ` David Edelsohn
2003-02-24 23:40                         ` Steven Bosscher
2003-02-25  1:44                           ` David Edelsohn
2003-02-25  6:45                             ` Tolga Dalman
2003-02-26  0:06                         ` Richard Henderson
2003-02-24 23:08                     ` David Edelsohn
2003-02-24 23:29                     ` Zack Weinberg
2003-02-25  3:26                 ` Fergus Henderson
2003-04-14 16:57                   ` Nick Ing-Simmons
2003-02-24 18:44 ` DJ Delorie
2003-02-24 18:57   ` Zack Weinberg
2003-02-24 21:49 ` Franz Sirl
2003-02-24 22:40 ` Nick Burrett
2003-02-24 22:47 ` Andreas Schwab
2003-02-25 11:14 ` Ralf Corsepius
2003-02-25 14:57   ` Joel Sherrill
2003-02-25 15:33     ` Ralf Corsepius
2003-02-25 15:36       ` Joel Sherrill
2003-02-25 19:23         ` Zack Weinberg
2003-02-25 19:25           ` Joel Sherrill
2003-02-25 19:28           ` Joel Sherrill
2003-02-25 20:36             ` Zack Weinberg
2003-02-25 23:55 ` Richard Henderson

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=20030225084213.GA27586@doctormoo \
    --to=neroden@twcny.rr.com \
    --cc=gcc@gcc.gnu.org \
    --cc=zack@codesourcery.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).