This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ARM: Invalid Stack Alignment BUG


Jan Hubicka wrote:

> >   > Jan, why does cfun->stack_alignment_needed not have a minimum value of
> >   > STACK_BOUNDARY?

> This is mistake. At time I was designing stack_alignment_needed I was thinking
> exclusivly abou the needs of frame allocation on i386 and didn't checked
> this at later while modifying reload. Sorry.
> This was exactly situation we (Richard and I) wanted to avoid.

Well, whatever, but I had to comment out the following in
.../config/i386/i386.c, close to line 1788:

/*
  if (!size && stack_alignment_needed)
    abort ();
*/

to get it to bootstrap on my i686-pc-linux-gnu system (without it, the
bootstrap dies while compiling negdi2 with the stage 1 compiler).

Hope this helps,

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://gcc.gnu.org/onlinedocs/g77_news.html

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]