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]
Other format: [Raw text]

Re: c/9564: compiling sdiff causes ICE on powerpc


Segher Boessenkool wrote:

Aldy Hernandez wrote:

Could you add a testcase in the dg directory? After which, the patch is fine.
Will do.
Sorry for this late follow-up.

Well, I'm not really sure what you want to test for: the ICE
or correct generated code.  Testcase for the ICE attached,
although it's pretty useless as it won't ICE on even minor
changes to the testcase (or changes to GCC, presumably).

I'm not going to write a test for the generated code, as I
don't know enough of the various ABI's to know what it is
supposed to do; the only thing my patch did was replace
an incomplete AltiVec-specific routine by a call to a
generic routine that already handled all possible cases.

Also, instead of just testing for this particular case,
it would be more useful to have a full suite of tests
for the AltiVec ABI's.


Cheers,

Segher


[gcc.dg/altivec-9.c]

/* { dg-do compile { target powerpc-*-* } } */
/* { dg-options "-maltivec -mabi=altivec -g" } */

/* PR9564 */

extern int vfork(void);

void boom(void)
{
	char buf[65536];
	vfork();
}



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