------- Comment #12 from mahatma at eu dot by  2009-10-09 14:07 -------
I found new AMD CPUs not required to stack aligning for SSE. IMHO there are
"misalignsse" cpu feature, found near SSE4a (fixme). Then, requirement for
stack realigning may be checked from "misalignsse" (precise) or "sse4a"
(simple).

I don't want (while) to exeperiments with make scripts for isolating
"-mno-stackrealign" CFLAGS for unwinding library and only suggest two variants
of common solution:
1) Checking "misalignsse" for -march=native, -mno-stackrealign (if given) may
produce broken code with SSE, gcc libs not verifyed against it.
2) Use TARGET_SSE4A as "cname" to misalignsse to detect realigning requirement.
Also trying to disable SSE if realigning forced to disable (-mno-stackrealign
given). SSE for gcc libs will be disabled.

This solutions may be mixed, but I see no sense. Or SSE4A is used or no. If no
- I not found way to move "misalignsse" flag to configuration section. Just may
be sense to remove SSE disabling in (2) - just remove i386.c changes.

IMHO last todo in this case: unwinding library (CFLAGS or -mstackrealign
support).

PS Both are untested. But sse-stackrealign-1.patch have not problems for me.

Both are


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41156

Reply via email to