[PATCH] mips: Allow larger values for __aligned__

Thiemo Seufer ths@networkno.de
Thu Sep 21 15:44:00 GMT 2006


Carlos O'Donell wrote:
[snip]
> Index: gcc/config/mips/mips.h
> ===================================================================
> --- gcc/config/mips/mips.h	(revision 117093)
> +++ gcc/config/mips/mips.h	(working copy)
> @@ -1,6 +1,6 @@
>  /* Definitions of target machine for GNU compiler.  MIPS version.
>     Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
> -   1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
> +   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
>     Contributed by A. Lichnewsky (lich@inria.inria.fr).
>     Changed by Michael Meissner	(meissner@osf.org).
>     64 bit r4000 support by Ian Lance Taylor (ian@cygnus.com) and
> @@ -2710,3 +2710,8 @@ while (0)
>  #ifndef HAVE_AS_TLS
>  #define HAVE_AS_TLS 0
>  #endif
> +
> +/* The PageMask register allows a maximum page size of 256Mb.
> +   The value of MAX_OFILE_ALIGNMENT is in bits, so multiple by 8.  */

ITYM "multiply".

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


Thiemo



More information about the Gcc-patches mailing list