ppc question for altivec
Dale Johannesen
dalej@apple.com
Fri Jan 25 19:41:00 GMT 2002
On Friday, January 25, 2002, at 05:32 PM, mike stump wrote:
> Stan, the failure mode of this should be so spectacular, that I don't
> see how darwin could get by with this bug in it. My code goes back to
> the moto altivec release with a gcc from 1998. Stan, can you see this
> in any of your compilers for darwin/altivec?
darwin.h has this:
/* Pad the outgoing args area to 16 bytes instead of the usual 8. */
#undef STARTING_FRAME_OFFSET
#define STARTING_FRAME_OFFSET \
(RS6000_ALIGN (current_function_outgoing_args_size \
+ RS6000_VARARGS_AREA \
+ RS6000_SAVE_AREA, 16))
#undef STACK_DYNAMIC_OFFSET
#define STACK_DYNAMIC_OFFSET(FUNDECL) \
(RS6000_ALIGN (current_function_outgoing_args_size \
+ (STACK_POINTER_OFFSET), 16))
I vaguely remember doing this when I ran into the problems you're seeing
(long before Aldy's code was in). I don't know if it's the right general
approach, though; I didn't like the design either.
More information about the Gcc
mailing list