target/9290: incorrect alignment when using SSE on ia32

m.j.s.vandoesburg@planet.nl m.j.s.vandoesburg@planet.nl
Mon Jan 13 13:46:00 GMT 2003


The following reply was made to PR target/9290; it has been noted by GNATS.

From: m.j.s.vandoesburg@planet.nl
To: tprince@computer.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: target/9290: incorrect alignment when using SSE on ia32
Date: Mon, 13 Jan 2003 14:36:44 +0100

 	Don't data objects need to be allocated within a method which is
 	called from one which is built with -mpreferred-stack-alignment=4,
 	in order for gcc to apply alignment?
 
 The Contour object is not the problem, it's the temporary variable
 z. Obviously the given example is not realistic, but enough to provoke
 the bug. If I try to do a matrix multiplication with my own sse_t class
 there are temporaries created, these are not aligned.
 
 From what I understood (I can't remember where I found it, right now I'm
 doubting my own sanity) the new compiler aligns ebp to 16 bytes, and 16
 byte alignment for local variables should be possible (except in main
 unless you get the correct runtime environment).  I might be mistaken,
 in that case please consider it a feature request :-)



More information about the Gcc-prs mailing list