This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [TESTCASE] Minimized testcase for AltiVec segfault
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Alex Rosenberg <alexr at spies dot com>
- Cc: Daniel Egger <degger at fhm dot edu>, GCC Developer Mailinglist <gcc at gcc dot gnu dot org>
- Date: 28 Feb 2002 17:07:27 +1100
- Subject: Re: [TESTCASE] Minimized testcase for AltiVec segfault
- References: <B8A2D6C5.5BDE1%alexr@spies.com>
>>>>> "Alex" == Alex Rosenberg <alexr@spies.com> writes:
> void entrypoint(...)
> {
> #pragma altivec_vrsave allon
> do_work();
> }
> ..
Well if you're going to do that, why not wrap the entire
program in:
main()
{
asm("set all vrsave bits to on");
do stuff
asm("set all vrsave bits to off");
}
aldy