Commit 0fda236e by Franz Sirl Committed by Franz Sirl

re PR libffi/10610 ([powerpc-linux] 230 testsuite failures due to alignment errors)

	2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	PR libgcj/10610
	* gcc.dg/ppc-stackalign-1.c: New test.

From-SVN: r73019
parent 06ba5854
2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
PR libgcj/10610
* gcc.dg/ppc-stackalign-1.c: New test.
2003-10-28 Arnaud Charlet <charlet@act-europe.fr> 2003-10-28 Arnaud Charlet <charlet@act-europe.fr>
* ada/acats/run_all.sh: Change output to be more compliant with * ada/acats/run_all.sh: Change output to be more compliant with
......
/* { dg-do run { target powerpc-*-linux* powerpc-*-sysv* } } */
/* Test stack pointer alignment against variable alloca. */
/* Inspired by PR libgcj/10610. */
/* Origin: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>. */
extern void abort (void);
extern void exit (int);
register unsigned long sp __asm__ ("r1");
void g (int * val __attribute__ ((unused)))
{
if (sp & 0xf)
abort ();
}
void f (int val)
{
int *val1 = __builtin_alloca (val);
g (val1);
return;
}
int main (void)
{
int i;
for (i = 1; i < 32; i++)
f (i);
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment