public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Geoff Keating <geoffk@apple.com>
To: Ian Lance Taylor <ian@wasabisystems.com>
Cc: gcc@gcc.gnu.org, Mark Mitchell <mark@codesourcery.com>,
	gcc-bugzilla@gcc.gnu.org
Subject: Re: [Bug pch/14400] Cannot compile qt-x11-free-3.3.0
Date: Mon, 05 Apr 2004 22:50:00 -0000	[thread overview]
Message-ID: <926E1C89-8753-11D8-90FC-0030657EA24A@apple.com> (raw)
In-Reply-To: <m3fzbkl8e1.fsf@gossamer.airs.com>


On Apr 3, 2004, at 7:38 PM, Ian Lance Taylor wrote:

> Geoffrey Keating <geoffk@apple.com> writes:
>
>> I think that PCH that fails on one case out of a thousand is better
>> than PCH that fails in one thousand cases out of one thousand.
>
> Any thoughts on how difficult it would be to, when a PCH can not be
> loaded at the correct address, skip the PCH and try for the original
> header files?  We'd want to issue a warning, but the result will still
> be better then a compiler crash, particularly since the crash will be
> awkward to work around without manually removing the PCH.  Of course,
> the result will not necessarily be equivalent--the original headers
> might not be present, or might have been modified since the PCH was
> created.

The primary difficulty that I see would be in documenting this, that is 
that the result is not convenient to use.  At the moment, the 
documentation for PCH describes everything that you need to do to use a 
PCH, and it's agreed that cases where it does not work are bugs.  
Adding an extra clause that says "oh, and even if you follow these 
rules, on some platforms the compiler might just decide it doesn't like 
your PCH" does not seem very helpful.  Especially if it doesn't come 
with a list of those platforms.

The other difficulty is that I'm not sure that you can always back out 
of the address-space allocation.  I would probably have to see a patch 
before I could say how difficult that might be.

Again, my experience is that on all unix-like platforms, you *can* 
always get a suitable chunk of address space in some fashion, if you 
try hard enough.  For example, HP-UX was quoted as an OS on which it is 
difficult to do this, yet with less than ten minutes' searching the 
web, I found 
<http://docs.hp.com/hpux/onlinedocs/5965-4642/5965-4642.html> which 
seems to give sufficient information under 'Space apportioned to a 
Process"; apparently on HP-UX 10.x in 32-bit mode, data lives beween 
0x40000000 and 0x7fffffff, with a default stack size of 80Mb, so 
probably mapping the PCH so that its end was at 0x6fffffff would work.

-- 
Geoff Keating <geoffk@apple.com>

  parent reply	other threads:[~2004-04-05 22:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040303083528.14400.schmid@snake.iap.physik.tu-darmstadt.de>
     [not found] ` <20040330014217.28608.qmail@sources.redhat.com>
2004-03-30 14:02   ` Ian Lance Taylor
2004-04-01  1:17     ` Geoff Keating
     [not found] ` <20040401011718.8875.qmail@sources.redhat.com>
2004-04-02 15:18   ` Ian Lance Taylor
2004-04-02 19:16     ` Geoffrey Keating
2004-04-04  3:38       ` Ian Lance Taylor
2004-04-05 20:54         ` Mike Stump
2004-04-05 22:50         ` Geoff Keating [this message]
2004-04-06  0:39           ` Ian Lance Taylor

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=926E1C89-8753-11D8-90FC-0030657EA24A@apple.com \
    --to=geoffk@apple.com \
    --cc=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=ian@wasabisystems.com \
    --cc=mark@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).