This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] mips: Allow larger values for __aligned__
- From: Daniel Jacobowitz <drow at false dot org>
- To: Thiemo Seufer <ths at networkno dot de>
- Cc: Carlos O'Donell <carlos at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, Richard Sandiford <richard at codesourcery dot com>, echristo at apple dot com
- Date: Thu, 21 Sep 2006 11:44:20 -0400
- Subject: Re: [PATCH] mips: Allow larger values for __aligned__
- References: <20060920224707.GI9301@lios> <20060920230331.GA3798@networkno.de>
On Thu, Sep 21, 2006 at 12:03:31AM +0100, Thiemo Seufer wrote:
> > +#undef MAX_OFILE_ALIGNMENT
> > +#define MAX_OFILE_ALIGNMENT (0x10000000 << 3)
>
> Binutils recently changed the maximum page size for o32 to 64k, and
> has the same for n32/n64. I think we should be consistent.
>
> Btw, 64k page sizes are also the maximum on IRIX, this suggests it
> provides enough headroom to build large systems. (This is only my
> guess, and not backed up by data.)
We were around this discussion internally already... :-) This has
nothing to do with the page size, except for numerical coincidence.
It's perfectly valid to have an object requiring 128K alignment on
a system with 4K pages, for instance if you use the low bits of a
pointer for something else.
--
Daniel Jacobowitz
CodeSourcery