This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Severe problems with vectorizing stuff in 4.0.3 HEAD
- From: Kean Johnston <jkj at sco dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Fri, 14 Oct 2005 12:43:55 -0700
- Subject: Re: Severe problems with vectorizing stuff in 4.0.3 HEAD
- References: <435002D3.5040208@sco.com> <ed8a5f0e26a14c356d432f844e103c56@physics.uc.edu>
- Reply-to: jkj at sco dot com
Can you try -fno-optimize-sibling-calls and see if that works?
Yes, it did, thank you.
If so, then the problem is that we sibling calls should not be
done in main. To fix the testcase anyways to be correct is to
put "return 0;" after the call to main1. Since right now the
return of main could be anything.
I don't think the test case is inocrrect. In a nutshell,
it has:
int main1() {
... stuff ...
return 0;
}
int main(void)
{
return main1();
}
That should be perfectly valid, and return 0 from main1
which subsequently returns 0 from main.
What does the fact that -fno-optimize-sibling-calls worked
indicate really? Without that option something really does
seem to be mis-calculating the stack offsets by 4. What may
be of interest here is that aside from the vect/* tests,
the only other test that is failing is sibcall-6.
Kean