public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: Robert Dewar <dewar@gnat.com>
Cc: dave@hiauly1.hia.nrc.ca, gcc@gcc.gnu.org, willy@debian.org
Subject: Re: PA specifies invalid T_ADAFLAGS
Date: Wed, 24 Apr 2002 20:26:00 -0000	[thread overview]
Message-ID: <20020425040940.A32191@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20020425025913.C8E54F28C9@nile.gnat.com>; from dewar@gnat.com on Wed, Apr 24, 2002 at 10:59:13PM -0400

On Wed, Apr 24, 2002 at 10:59:13PM -0400, Robert Dewar wrote:
> > I suspect using "-mdisable-indexing" dates from a time when indexing
> > didn't work very well.  This was reworked a year or two ago.
> 
> No, this is definitely needed for Ada, due to its use of virtual array
> indexing, which otherwise fails on the PA, due to its odd segmentation
> semantics.

Hmm... could you be a little more specific?  I suspect this may not be an
issue for hppa-linux.  For those who are unfamiliar with what's going on,
a potted summary:

PA has 8 space registers numbered 0 to 7.  Most instructions allow you
to specify one of 1, 2 or 3, OR to select the space register to use based
on the top two bits of the virtual address.  If the top two bits are 00,
use sr4, 01, use sr5, 10 uses 6 and 11 uses 7.  HPUX takes advantage
of this to map all shared libraries in one quadrant, program text in
another quadrant and program data in a third and fourth.  Linux does
no such thing and programs space registers 4 to 7 with the same value.
So anything can be mapped anywhere and programs appear to have a flat
address space.  As long as the compiler doesn't decide to generate an
instruction specifying sr 1, 2 or 3 -- and there's no reason it should --
you can pretty much ignore the segmentation in userspace on Linux/PA.

-- 
Revolutions do not require corporate support.

  reply	other threads:[~2002-04-25  3:09 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-24 20:06 Robert Dewar
2002-04-24 20:26 ` Matthew Wilcox [this message]
2002-04-24 21:39   ` John David Anglin
  -- strict thread matches above, loose matches on Subject: below --
2002-04-26 16:14 Robert Dewar
     [not found] <10204260954.AA16645@vlsi1.ultra.nyu.edu>
2002-04-26  8:11 ` Matthew Wilcox
2002-04-26  4:06 Richard Kenner
2002-04-25 22:55 Matthew Wilcox
2002-04-25 21:14 Robert Dewar
2002-04-25 20:52 Robert Dewar
2002-04-25 21:53 ` John David Anglin
2002-04-25 19:58 Robert Dewar
2002-04-25 20:51 ` John David Anglin
2002-04-25 19:45 Robert Dewar
2002-04-25 19:37 Robert Dewar
2002-04-25 19:55 ` John David Anglin
2002-04-25  5:35 Richard Kenner
2002-04-26 10:54 ` law
2002-04-25  3:37 Richard Kenner
2002-04-24 22:08 Robert Dewar
2002-04-24 21:27 Robert Dewar
2002-04-24 20:37 Robert Dewar
2002-04-24 20:44 ` Matthew Wilcox
2002-04-24 21:44 ` John David Anglin
2002-04-24 20:09 Robert Dewar
2002-04-24 19:59 Richard Kenner
2002-04-24 22:07 ` John David Anglin
2002-04-25  0:18   ` Arnaud Charlet
2002-04-25  0:49     ` Richard Henderson
2002-04-26 10:51       ` law
2002-04-25  2:47   ` Olivier Hainque
2002-04-25  2:58     ` Michael Matz
2002-04-25  9:25     ` John David Anglin
2002-04-24 12:07 John David Anglin
2002-04-24 12:43 ` Matthew Wilcox
2002-04-25 15:04   ` John David Anglin
2002-04-26 10:56     ` law
2002-04-26 11:28       ` John David Anglin
2002-04-24 13:27 ` Arnaud Charlet
2002-04-24 13:38   ` John David Anglin
2002-04-24 14:28     ` Arnaud Charlet
2002-04-24 22:47       ` John David Anglin
2002-04-26  9:35 ` law
2002-04-26  9:39   ` John David Anglin
2002-04-26 10:43     ` law
2002-04-24 10:27 Matthew Wilcox

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=20020425040940.A32191@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=dewar@gnat.com \
    --cc=gcc@gcc.gnu.org \
    /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).